Lines Matching refs:grammar
64 def execParser(self, grammar, grammarEntry, input, expectErrors=False): argument
65 lexerCls, parserCls = self.compileInlineGrammar(grammar)
92 def execTreeParser(self, grammar, grammarEntry, treeGrammar, treeEntry, input): argument
93 lexerCls, parserCls = self.compileInlineGrammar(grammar)
113 grammar = textwrap.dedent(
123 found = self.execParser(grammar, "a", "abc 34")
128 grammar = textwrap.dedent(
138 found = self.execParser(grammar, "a", "abc")
143 grammar = textwrap.dedent(
153 found = self.execParser(grammar, "a", "abc")
158 grammar = textwrap.dedent(
168 found = self.execParser(grammar, "a", "abc")
174 grammar = textwrap.dedent(
184 found = self.execParser(grammar, "a", "abc")
189 grammar = textwrap.dedent(
199 found = self.execParser(grammar, "a", "c")
204 grammar = textwrap.dedent(
214 found = self.execParser(grammar, "a", "ick")
219 grammar = textwrap.dedent(
230 found = self.execParser(grammar, "a", "abc")
235 grammar = textwrap.dedent(
245 found = self.execParser(grammar, "a", "abc 34")
250 grammar = textwrap.dedent(
261 found = self.execParser(grammar, "a", "abc 34")
266 grammar = textwrap.dedent(
276 found = self.execParser(grammar, "a", "abc 34")
281 grammar = textwrap.dedent(
291 found = self.execParser(grammar, "a", "void abc 34")
297 grammar = textwrap.dedent(
308 found = self.execParser(grammar, "a", "a 1 b 2")
313 grammar = textwrap.dedent(
323 found = self.execParser(grammar, "a", "abc")
328 grammar = textwrap.dedent(
338 found = self.execParser(grammar, "a", "a b")
343 grammar = textwrap.dedent(
353 found = self.execParser(grammar, "a", "a b")
358 grammar = textwrap.dedent(
369 found = self.execParser(grammar, "a", "abc")
374 grammar = textwrap.dedent(
385 found = self.execParser(grammar, "a", "a b")
390 grammar = textwrap.dedent(
401 found = self.execParser(grammar, "a", "a b")
406 grammar = textwrap.dedent(
416 found = self.execParser(grammar, "a", "a")
421 grammar = textwrap.dedent(
432 found = self.execParser(grammar, "a", "a b")
437 grammar = textwrap.dedent(
447 found = self.execParser(grammar, "a", "abc")
452 grammar = textwrap.dedent(
462 found = self.execParser(grammar, "a", "abc")
467 grammar = textwrap.dedent(
480 found = self.execParser(grammar, "a", "a 2")
485 grammar = textwrap.dedent(
498 found = self.execParser(grammar, "a", "a 2")
503 grammar = textwrap.dedent(
514 found = self.execParser(grammar, "a", "-34")
519 grammar = textwrap.dedent(
530 found = self.execParser(grammar, "a", "+ 34")
536 grammar = textwrap.dedent(
547 found = self.execParser(grammar, "a", "var a:int; b:float;")
552 grammar = textwrap.dedent(
564 found = self.execParser(grammar, "a", "a,b,c")
569 grammar = textwrap.dedent(
581 found = self.execParser(grammar, "a", "a")
586 grammar = textwrap.dedent(
598 found = self.execParser(grammar, "a", "a,b,c")
603 grammar = textwrap.dedent(
615 found = self.execParser(grammar, "a", "{a b c}")
620 grammar = textwrap.dedent(
632 found = self.execParser(grammar, "a", "{a b c}")
637 grammar = textwrap.dedent(
651 found = self.execParser(grammar, "a", "a 1 2")
656 grammar = textwrap.dedent(
669 found = self.execParser(grammar, "a", "a 1 2 3")
674 grammar = textwrap.dedent(
691 found = self.execParser(grammar, "a", "int a; int b=3;")
696 grammar = textwrap.dedent(
710 found = self.execParser(grammar, "a", "a b c d; 42")
715 grammar = textwrap.dedent(
726 found = self.execParser(grammar, "a", "3")
731 grammar = textwrap.dedent(
742 found = self.execParser(grammar, "a", "3")
747 grammar = textwrap.dedent(
759 found = self.execParser(grammar, "a", "3+4+5")
764 grammar = textwrap.dedent(
776 found = self.execParser(grammar, "a", "3")
782 grammar = textwrap.dedent(
792 found = self.execParser(grammar, "a", "int a,b,c;")
799 grammar = textwrap.dedent(
810 found = self.execParser(grammar, "a", "public int a,b,c;")
817 grammar = textwrap.dedent(
828 found = self.execParser(grammar, "a", "public int a,b,c;")
835 grammar = textwrap.dedent(
847 found = self.execParser(grammar, "a", "public int a,b,c;")
852 grammar = textwrap.dedent(
862 found = self.execParser(grammar, "a", "a,b,c;")
867 grammar = textwrap.dedent(
878 found = self.execParser(grammar, "a", "a")
883 grammar = textwrap.dedent(
894 found = self.execParser(grammar, "a", "a")
899 grammar = textwrap.dedent(
910 found = self.execParser(grammar, "a", "int a,b,c;")
915 grammar = textwrap.dedent(
926 found = self.execParser(grammar, "a", "int a;")
931 grammar = textwrap.dedent(
942 found = self.execParser(grammar, "a", "int a,b,c;")
948 grammar = textwrap.dedent(
959 found = self.execParser(grammar, "a", "int a:1,b:2,c:3;")
964 grammar = textwrap.dedent(
975 found = self.execParser(grammar, "a", "a b c")
980 grammar = textwrap.dedent(
992 found = self.execParser(grammar, "a", "a b c")
997 grammar = textwrap.dedent(
1011 found = self.execParser(grammar, "a", "a a b b b c c c d")
1016 grammar = textwrap.dedent(
1027 found = self.execParser(grammar, "a", "a")
1032 grammar = textwrap.dedent(
1042 found = self.execParser(grammar,
1048 grammar = textwrap.dedent(
1059 found = self.execParser(grammar, "a", "a b")
1064 grammar = textwrap.dedent(
1075 found = self.execParser(grammar, "a", "a b")
1080 grammar = textwrap.dedent(
1091 found = self.execParser(grammar, "a", "a")
1096 grammar = textwrap.dedent(
1107 found = self.execParser(grammar, "a", "a b")
1112 grammar = textwrap.dedent(
1123 found = self.execParser(grammar, "a", "a b")
1128 grammar = textwrap.dedent(
1139 found = self.execParser(grammar, "a", "a b")
1144 grammar = textwrap.dedent(
1155 found = self.execParser(grammar, "a", "a")
1160 grammar = textwrap.dedent(
1171 found = self.execParser(grammar, "a", "a b")
1176 grammar = textwrap.dedent(
1186 found = self.execParser(grammar, "a", "2 a 34 de")
1191 grammar = textwrap.dedent(
1201 found = self.execParser(grammar, "a", "2")
1208 grammar = textwrap.dedent(
1218 found = self.execParser(grammar, "a", "2")
1223 grammar = textwrap.dedent(
1235 found = self.execParser(grammar, "r", "25")
1242 grammar = textwrap.dedent(
1256 found = self.execParser(grammar, "modulo", "modulo abc (x y #)")
1263 grammar = textwrap.dedent(
1275 self.execParser(grammar, "a", "a b 3 4 5")
1282 grammar = textwrap.dedent(
1294 self.execParser(grammar, "a", "a b")
1301 grammar = textwrap.dedent(
1313 self.execParser(grammar, "a", "3")
1320 grammar = textwrap.dedent(
1332 self.execParser(grammar, "a", "3")
1339 grammar = textwrap.dedent(
1349 found = self.execParser(grammar, "a", "abc 34")
1356 grammar = textwrap.dedent(
1368 found, errors = self.execParser(grammar, "decl", "int 34 x=1;",
1377 grammar = textwrap.dedent(
1389 found, errors = self.execParser(grammar, "decl", "int =1;",
1396 grammar = textwrap.dedent(
1408 found, errors = self.execParser(grammar, "decl", "x=1;",
1416 grammar = textwrap.dedent(
1426 found, errors = self.execParser(grammar, "a", "abc",
1434 grammar = textwrap.dedent(
1446 found, errors = self.execParser(grammar, "a", "abc ick 34",
1455 grammar = textwrap.dedent(
1465 found, errors = self.execParser(grammar, "a", "34", expectErrors=True)
1472 grammar = textwrap.dedent(
1484 found, errors = self.execParser(grammar, "a", "34", expectErrors=True)
1493 grammar = textwrap.dedent(
1506 found, errors = self.execParser(grammar, "a", "*", expectErrors=True)