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

Unified Diff: tools/lexer_generator/dot_utilities.py

Issue 160443002: Experimental parser: remove match actions (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 | « tools/lexer_generator/dfa_optimizer.py ('k') | tools/lexer_generator/lexer_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/lexer_generator/dot_utilities.py
diff --git a/tools/lexer_generator/dot_utilities.py b/tools/lexer_generator/dot_utilities.py
index ebd7a4950af102bdd38c6537ecb3a32897a6860f..533ef2243ab66379ce033e92ea2d914f54ead121 100644
--- a/tools/lexer_generator/dot_utilities.py
+++ b/tools/lexer_generator/dot_utilities.py
@@ -82,6 +82,8 @@ def automaton_to_dot(automaton):
for key, state in node.key_state_iter():
if key == TransitionKey.epsilon():
key = "ε"
+ elif key == TransitionKey.omega():
+ key = "ω"
else:
key = key.to_string(automaton.encoding())
edge_content.append(" S_%s -> S_%s [ label = \"%s\" ];" % (
« no previous file with comments | « tools/lexer_generator/dfa_optimizer.py ('k') | tools/lexer_generator/lexer_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698