Revision: 18644
Author: [email protected]
Date: Thu Jan 16 12:05:01 2014 UTC
Log: Experimental parser: fix an assert to be more meaningful.
BUG=
[email protected]
Review URL: https://codereview.chromium.org/139303008
http://code.google.com/p/v8/source/detail?r=18644
Modified:
/branches/experimental/parser/tools/lexer_generator/dfa.py
=======================================
--- /branches/experimental/parser/tools/lexer_generator/dfa.py Fri Nov 22
09:02:55 2013 UTC
+++ /branches/experimental/parser/tools/lexer_generator/dfa.py Thu Jan 16
12:05:01 2014 UTC
@@ -189,7 +189,9 @@
all_keys.append(state.key_iter())
if action:
if state not in terminal_set:
- assert action.entry_action()
+ # Match actions are valid only if we have matched the whole
token, not
+ # just some sub-part of it.
+ assert not action.match_action()
key = ("nonterminal action", action)
else:
key = ("terminal action", action)
--
--
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.