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

Unified Diff: tools/lexer_generator/automaton.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 | « no previous file | tools/lexer_generator/code_generator.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/lexer_generator/automaton.py
diff --git a/tools/lexer_generator/automaton.py b/tools/lexer_generator/automaton.py
index 1ed580c4ea75105fa47f2824d4da39fc24f474fe..e0f1165dfb5429f2a87f56ff41497e0aeb2398e4 100644
--- a/tools/lexer_generator/automaton.py
+++ b/tools/lexer_generator/automaton.py
@@ -137,8 +137,9 @@ class Automaton(object):
if node.action():
action = node.action()
if action.type() == 'code':
- # assert action.data()
action_text = action.data()
+ elif action.type() == 'push_token':
+ action_text = "token(" + action.data() + ")"
else:
action_text = action.type()
action_text = escape(action_text)
« no previous file with comments | « no previous file | tools/lexer_generator/code_generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698