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

Unified Diff: tools/lexer_generator/action_test.py

Issue 61003003: Experimental parser: cleanup rule processing result (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_test.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 66b93d2fbdcc7384bb769551ac05cf22c1287b7a..5ff4498a0c29d72ab347d2f4453055ef5bcd4cee 100644
--- a/tools/lexer_generator/action_test.py
+++ b/tools/lexer_generator/action_test.py
@@ -51,7 +51,7 @@ class ActionTestCase(unittest.TestCase):
automata_for_conditions = process_rules(rules)
self.assertEqual(len(automata_for_conditions), 1)
self.assertTrue('default' in automata_for_conditions)
- (nfa, dfa) = automata_for_conditions['default']
+ dfa = automata_for_conditions['default'].dfa()
self.__verify_last_action(dfa, 'foo', 'ID')
self.__verify_last_action(dfa, 'key', 'KEYWORD')
@@ -66,7 +66,7 @@ class ActionTestCase(unittest.TestCase):
automata_for_conditions = process_rules(rules)
self.assertEqual(len(automata_for_conditions), 1)
self.assertTrue('default' in automata_for_conditions)
- (nfa, dfa) = automata_for_conditions['default']
+ dfa = automata_for_conditions['default'].dfa()
# The keyword is not recognized because of the rule preference order (ID
# is preferred over KEYWORD).
« no previous file with comments | « no previous file | tools/lexer_generator/code_generator_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698