Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Unified Diff: tools/lexer_generator/regex_parser.py

Issue 158823002: Experimental parser: refactor TransitionKey to use Term (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/lexer_generator/generator.py ('k') | tools/lexer_generator/transition_key_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/lexer_generator/regex_parser.py
diff --git a/tools/lexer_generator/regex_parser.py b/tools/lexer_generator/regex_parser.py
index 600bd4c7f45963d70f8ad8ac83d81b1937348b11..d74a3e8d9b76b941ce8e9376f9d1b720d29e76d0 100644
--- a/tools/lexer_generator/regex_parser.py
+++ b/tools/lexer_generator/regex_parser.py
@@ -229,7 +229,7 @@ class RegexParser:
| empty'''
if len(p) == 4:
p[0] = ("REPEAT", p[2], p[2])
- elif len(p) == 5:
+ elif len(p) == 6:
p[0] = ("REPEAT", p[2], p[4])
elif p[1]:
p[0] = (self.token_map[p[1]],)
« no previous file with comments | « tools/lexer_generator/generator.py ('k') | tools/lexer_generator/transition_key_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698