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

Unified Diff: tools/lexer_generator/automata_test.py

Issue 157813004: Experimental parser: store literals as ints (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 6 years, 10 months 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/nfa_builder.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/lexer_generator/automata_test.py
diff --git a/tools/lexer_generator/automata_test.py b/tools/lexer_generator/automata_test.py
index 158a602543206cc3665370340c63e34a52644b44..63142f21fbf9ec19503b9d4856481d3e3f60bdf0 100644
--- a/tools/lexer_generator/automata_test.py
+++ b/tools/lexer_generator/automata_test.py
@@ -91,9 +91,9 @@ class AutomataTestCase(unittest.TestCase):
'terminal' : False,
'action' : Action.empty_action() }
mapping = { k : empty_node() for k in ['S_0', 'S_1', 'S_2', 'S_3'] }
- key_a = TransitionKey.single_char(encoding, 'a')
- key_b = TransitionKey.single_char(encoding, 'b')
- key_c = TransitionKey.single_char(encoding, 'c')
+ key_a = TransitionKey.single_char(encoding, ord('a'))
+ key_b = TransitionKey.single_char(encoding, ord('b'))
+ key_c = TransitionKey.single_char(encoding, ord('c'))
mapping['S_0']['transitions'][key_a] = 'S_1'
mapping['S_0']['transitions'][key_b] = 'S_2'
« no previous file with comments | « no previous file | tools/lexer_generator/nfa_builder.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698