Reviewers: ulan,
Message:
ptal
Description:
Experimental parser: add docs.
[email protected]
BUG=
Please review this at https://codereview.chromium.org/141483008/
SVN Base: https://v8.googlecode.com/svn/branches/experimental/parser
Affected files (+15, -4 lines):
M src/lexer/lexer_py.re
Index: src/lexer/lexer_py.re
diff --git a/src/lexer/lexer_py.re b/src/lexer/lexer_py.re
index
0b7ef3895bc7806ebda882f10edeef3c1a85bc09..328fda5e863c8ec3b8a946a0030a8ca5d53265bf
100644
--- a/src/lexer/lexer_py.re
+++ b/src/lexer/lexer_py.re
@@ -25,6 +25,8 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# Character classes and auxiliary regexps.
+
line_terminator = [:line_terminator:];
identifier_start = [$_:letter:];
identifier_char = [:identifier_start::identifier_part_not_letter:];
@@ -51,11 +53,20 @@ harmony_number = "0"[bBoO][:digit:]+;
line_terminator_sequence = /[:line_terminator:]|(\r\n|\n\r)/;
eos = [:eos:];
-# grammar is
-# regex <action_on_state_entry|action_on_match|transition>
+# Rules.
+
+# Grammar is
+# regex <entry_action|match_action|transition>
+#
+# Actions are identifiers to be passed to codegen.
+#
+# Entry action is executed when we enter the corresponding automaton
state, that
+# is, right after seeing something that matches the regex. Match action is
+# executed when we have matched the regex but cannot continue to match
something
+# bigger (there is no legal transition out with the next character we're
+# lexing).
#
-# actions are identifiers to be passed to codegen
-# transition must be 'continue' or the name of a subgraph
+# Transition must be 'continue' or the name of a subgraph.
<<default>>
--
--
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.