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

Unified Diff: tools/lexer_generator/code_generator.py

Issue 70273008: Experimental lexer generator: default action fix. (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 | 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 ba5db95830eb4de1746b6ce493c3810948a95113..1f8cd2080281e0c1b9a9d6aad90acedeabd411ba 100644
--- a/tools/lexer_generator/code_generator.py
+++ b/tools/lexer_generator/code_generator.py
@@ -89,7 +89,7 @@ code_%s:
if action:
code += '%s\nBACK();\ngoto code_%s;\n' % (action.data(),
- start_node_number)
+ start_node_number)
else:
code += 'goto default_action;'
return code
@@ -116,7 +116,6 @@ uint32_t EvenMoreExperimentalScanner::DoLex() {
default_action:
//fprintf(stderr, "default action\\n");
%s
- BACK();
goto code_%s;
return 0;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698