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

Unified Diff: tools/lexer_generator/code_generator_test.py

Issue 73943002: Experimental parser: abstract code generator a bit (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 7 years, 1 month 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/code_generator.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/lexer_generator/code_generator_test.py
diff --git a/tools/lexer_generator/code_generator_test.py b/tools/lexer_generator/code_generator_test.py
index 19c6938ec358490c310e7cc64fb98f86b4ed12f4..0d63e77e0394a050ff0f1a192c765b1e9b305630 100644
--- a/tools/lexer_generator/code_generator_test.py
+++ b/tools/lexer_generator/code_generator_test.py
@@ -34,9 +34,9 @@ class CodeGeneratorTestCase(unittest.TestCase):
def test_simple(self):
rules = '''
<<default>>
- "(" <|LBRACE|>
- ")" <|RBRACE|>
+ "(" <|{LBRACE}|>
+ ")" <|{RBRACE}|>
- "foo" <|FOO|>
+ "foo" <|{FOO}|>
eof <|terminate|>'''
CodeGenerator.rule_processor_to_code(RuleProcessor.parse(rules), False)
« no previous file with comments | « tools/lexer_generator/code_generator.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698