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

Unified Diff: tools/lexer_generator/code_generator.py

Issue 66163014: Experimental parser: fix up action_type display (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/automaton.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.py
diff --git a/tools/lexer_generator/code_generator.py b/tools/lexer_generator/code_generator.py
index 87cb2ab742757b98e8db1179d54ab112eb6369a1..598c562701cf7ce8b3bfcec37175b1135b6f7c8e 100644
--- a/tools/lexer_generator/code_generator.py
+++ b/tools/lexer_generator/code_generator.py
@@ -92,8 +92,9 @@ code_%s:
code += '%s\nBACK();\ngoto code_%s;\n' % (action.data(),
start_node_number)
elif action.type() == 'push_token':
- #TODO
- pass
+ content = 'PUSH_TOKEN(Token::%s);' % action.data()
+ code += '%s\nBACK();\ngoto code_%s;\n' % (content,
+ start_node_number)
else:
raise Exception("unknown type %s" % action.type())
else:
« no previous file with comments | « tools/lexer_generator/automaton.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698