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

Unified Diff: tools/lexer_generator/action_test.py

Issue 64213002: Experimental parser: some cleanup and assertions for rule_parser (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/generator.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/lexer_generator/action_test.py
diff --git a/tools/lexer_generator/action_test.py b/tools/lexer_generator/action_test.py
index bb80100f83e8f49a005a00d91a8cb91c362f3b3f..84f659b8fb22dd1a6709afd1a08ac950cfd816a4 100644
--- a/tools/lexer_generator/action_test.py
+++ b/tools/lexer_generator/action_test.py
@@ -39,8 +39,8 @@ def process_rules(parser_state):
builder = NfaBuilder()
for k, v in parser_state.rules.items():
graphs = []
- for (graph, precedence, code, condition) in v['regex']:
- graphs.append(NfaBuilder.add_action(graph, (precedence, code, condition)))
+ for (graph, action) in v['regex']:
+ graphs.append(NfaBuilder.add_action(graph, action))
nfa = builder.nfa(NfaBuilder.or_graphs(graphs))
dfa = dfa_from_nfa(nfa)
rule_map[k] = (nfa, dfa)
« no previous file with comments | « no previous file | tools/lexer_generator/generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698