Revision: 17595
Author:   [email protected]
Date:     Fri Nov  8 13:26:55 2013 UTC
Log:      Experimental lexer generator: DfaState += __str__

[email protected]
BUG=

Review URL: https://codereview.chromium.org/66673003
http://code.google.com/p/v8/source/detail?r=17595

Modified:
 /branches/experimental/parser/tools/lexer_generator/dfa.py

=======================================
--- /branches/experimental/parser/tools/lexer_generator/dfa.py Thu Nov 7 15:42:57 2013 UTC +++ /branches/experimental/parser/tools/lexer_generator/dfa.py Fri Nov 8 13:26:55 2013 UTC
@@ -46,6 +46,9 @@
   def transitions(self):
     return self.__transitions

+  def __str__(self):
+    return str(self.node_number())
+
 class Dfa(Automaton):

   def __init__(self, start_name, mapping):

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to