Menu

Diff of /trunk/python/python-parser.php [000000] .. [r5]  Maximize  Restore

Switch to side-by-side view

--- a
+++ b/trunk/python/python-parser.php
@@ -0,0 +1,93 @@
+<?php
+
+
+/*
+
+DON'T EDIT THIS FILE!
+
+This file was automatically generated by the Lime parser generator.
+The real source code you should be looking at is in one or more
+grammar files in the Lime format.
+
+THE ONLY REASON TO LOOK AT THIS FILE is to see where in the grammar
+file that your error happened, because there are enough comments to
+help you debug your grammar.
+
+If you ignore this warning, you're shooting yourself in the brain,
+not the foot.
+
+*/
+
+class python extends lime_parser {
+var $qi = 0;
+var $i = array (
+  0 => 
+  array (
+    'simple_stmt' => 's 1',
+    'compound_stmt' => 's 2',
+    'stmt' => 's 3',
+    '\'start\'' => 'a \'start\'',
+  ),
+  1 => 
+  array (
+    '#' => 'r 0',
+  ),
+  2 => 
+  array (
+    '#' => 'r 1',
+  ),
+  3 => 
+  array (
+    '#' => 'r 2',
+  ),
+);
+function reduce_0_stmt_1($tokens, &$result) {
+#
+# (0) stmt :=  simple_stmt
+#
+$result = reset($tokens);
+
+}
+
+function reduce_1_stmt_2($tokens, &$result) {
+#
+# (1) stmt :=  compound_stmt
+#
+$result = reset($tokens);
+
+}
+
+function reduce_2_start_1($tokens, &$result) {
+#
+# (2) 'start' :=  stmt
+#
+$result = reset($tokens);
+
+}
+
+var $method = array (
+  0 => 'reduce_0_stmt_1',
+  1 => 'reduce_1_stmt_2',
+  2 => 'reduce_2_start_1',
+);
+var $a = array (
+  0 => 
+  array (
+    'symbol' => 'stmt',
+    'len' => 1,
+    'replace' => true,
+  ),
+  1 => 
+  array (
+    'symbol' => 'stmt',
+    'len' => 1,
+    'replace' => true,
+  ),
+  2 => 
+  array (
+    'symbol' => '\'start\'',
+    'len' => 1,
+    'replace' => true,
+  ),
+);
+}