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

Unified Diff: tools/lexer_generator/generator.py

Issue 62203017: Experimental parser: print out minimization savings (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/generator.py
diff --git a/tools/lexer_generator/generator.py b/tools/lexer_generator/generator.py
index d50920bc3dfbae37dffc8fa80ee9a30e3b4abbaa..c45d0cc3d14ef527411cd3f8b0da1b00b069e829 100644
--- a/tools/lexer_generator/generator.py
+++ b/tools/lexer_generator/generator.py
@@ -109,7 +109,9 @@ if __name__ == '__main__':
if args.minimize_default:
if args.no_verify_default:
DfaMinimizer.set_verify(False)
- rule_processor.default_automata().minimal_dfa()
+ dfa = rule_processor.default_automata().dfa()
+ mdfa = rule_processor.default_automata().minimal_dfa()
+ print "nodes reduced from %s to %s" % (dfa.node_count(), mdfa.node_count())
DfaMinimizer.set_verify(True)
html_file = args.html
« 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