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

Unified Diff: tools/lexer_generator/automata_test.py

Issue 54773002: Experimental parser: key inversion (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 7 years, 2 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/regex_lexer.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 abe33e8731a473cd5a519bf049bbf9c7deb23680..167c1b8292a3592fbfbe73398471622415da0147 100644
--- a/tools/lexer_generator/automata_test.py
+++ b/tools/lexer_generator/automata_test.py
@@ -31,9 +31,7 @@ from nfa import NfaBuilder
from dfa import Dfa
def build_automata(string):
- parser = RegexParser()
- parser.build()
- graph = parser.parse(string)
+ graph = RegexParser.parse(string)
nfa = NfaBuilder().nfa(graph)
(start_name, dfa_nodes, end_nodes) = nfa.compute_dfa()
dfa = Dfa(start_name, dfa_nodes, end_nodes)
« no previous file with comments | « no previous file | tools/lexer_generator/regex_lexer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698