• Home
  • Raw
  • Download

Lines Matching refs:found

123         found = self.execParser(grammar, "a", "abc 34")
124 self.assertEqual("", found)
138 found = self.execParser(grammar, "a", "abc")
139 self.assertEqual("abc", found)
153 found = self.execParser(grammar, "a", "abc")
154 self.assertEqual("x", found)
168 found = self.execParser(grammar, "a", "abc")
169 self.assertEqual("(x INT)", found)
184 found = self.execParser(grammar, "a", "abc")
185 self.assertEqual("ID", found)
199 found = self.execParser(grammar, "a", "c")
200 self.assertEqual("c", found)
214 found = self.execParser(grammar, "a", "ick")
215 self.assertEqual("ick", found)
230 found = self.execParser(grammar, "a", "abc")
231 self.assertEqual("abc", found)
245 found = self.execParser(grammar, "a", "abc 34")
246 self.assertEqual("34 abc", found)
261 found = self.execParser(grammar, "a", "abc 34")
262 self.assertEqual("34 abc", found)
276 found = self.execParser(grammar, "a", "abc 34")
277 self.assertEqual("(34 abc)", found)
291 found = self.execParser(grammar, "a", "void abc 34")
292 self.assertEqual("void (34 abc)", found)
308 found = self.execParser(grammar, "a", "a 1 b 2")
309 self.assertEqual("(DUH a (DUH 1)) (DUH b (DUH 2))", found)
323 found = self.execParser(grammar, "a", "abc")
324 self.assertEqual("abc", found)
338 found = self.execParser(grammar, "a", "a b")
339 self.assertEqual("a b", found)
353 found = self.execParser(grammar, "a", "a b")
354 self.assertEqual("a b", found)
369 found = self.execParser(grammar, "a", "abc")
370 self.assertEqual("abc", found)
385 found = self.execParser(grammar, "a", "a b")
386 self.assertEqual("a b", found)
401 found = self.execParser(grammar, "a", "a b")
402 self.assertEqual("a b", found)
416 found = self.execParser(grammar, "a", "a")
417 self.assertEqual("a", found)
432 found = self.execParser(grammar, "a", "a b")
433 self.assertEqual("a b", found)
447 found = self.execParser(grammar, "a", "abc")
448 self.assertEqual("abc", found)
462 found = self.execParser(grammar, "a", "abc")
463 self.assertEqual("", found)
480 found = self.execParser(grammar, "a", "a 2")
481 self.assertEqual("2", found)
498 found = self.execParser(grammar, "a", "a 2")
499 self.assertEqual("(2 a)", found)
514 found = self.execParser(grammar, "a", "-34")
515 self.assertEqual("(- 34)", found)
530 found = self.execParser(grammar, "a", "+ 34")
531 self.assertEqual("(34 +)", found)
547 found = self.execParser(grammar, "a", "var a:int; b:float;")
548 self.assertEqual("(var (: a int) (: b float))", found)
564 found = self.execParser(grammar, "a", "a,b,c")
565 self.assertEqual("(VAR a) (VAR b) (VAR c)", found)
581 found = self.execParser(grammar, "a", "a")
582 self.assertEqual("ID", found)
598 found = self.execParser(grammar, "a", "a,b,c")
599 self.assertEqual("(var a) (var b) (var c)", found)
615 found = self.execParser(grammar, "a", "{a b c}")
616 self.assertEqual("({ a b c)", found)
632 found = self.execParser(grammar, "a", "{a b c}")
633 self.assertEqual("(block a b c)", found)
651 found = self.execParser(grammar, "a", "a 1 2")
652 self.assertEqual("(2 1 a)", found)
669 found = self.execParser(grammar, "a", "a 1 2 3")
670 self.assertEqual("1 a 2 3", found)
691 found = self.execParser(grammar, "a", "int a; int b=3;")
692 self.assertEqual("(TYPE int a) (TYPE int b 3)", found)
710 found = self.execParser(grammar, "a", "a b c d; 42")
711 self.assertEqual("d 42", found)
726 found = self.execParser(grammar, "a", "3")
727 self.assertEqual("(9 3)", found)
742 found = self.execParser(grammar, "a", "3")
743 self.assertEqual("9 3", found)
759 found = self.execParser(grammar, "a", "3+4+5")
760 self.assertEqual("(+ (+ 3 4) 5)", found)
776 found = self.execParser(grammar, "a", "3")
777 self.assertEqual("(3 3)", found)
792 found = self.execParser(grammar, "a", "int a,b,c;")
793 self.assertEqual("(int a) (int b) (int c)", found)
810 found = self.execParser(grammar, "a", "public int a,b,c;")
811 self.assertEqual("(int public a) (int public b) (int public c)", found)
828 found = self.execParser(grammar, "a", "public int a,b,c;")
829 …"(int public a) (int public b) (int public c) (int public a) (int public b) (int public c)", found)
847 found = self.execParser(grammar, "a", "public int a,b,c;")
848 self.assertEqual("(int (MOD public) a) (int (MOD public) b) (int (MOD public) c)", found)
862 found = self.execParser(grammar, "a", "a,b,c;")
863 self.assertEqual("a b c a b c", found)
878 found = self.execParser(grammar, "a", "a")
879 self.assertEqual("a a", found)
894 found = self.execParser(grammar, "a", "a")
895 self.assertEqual("(a a)", found)
910 found = self.execParser(grammar, "a", "int a,b,c;")
911 self.assertEqual("(int a b c)", found)
926 found = self.execParser(grammar, "a", "int a;")
927 self.assertEqual("int a int a", found)
942 found = self.execParser(grammar, "a", "int a,b,c;")
943 self.assertEqual("(int a) (int b) (int c)", found)
959 found = self.execParser(grammar, "a", "int a:1,b:2,c:3;")
960 self.assertEqual("(int a 1) (int b 2) (int c 3)", found)
975 found = self.execParser(grammar, "a", "a b c")
976 self.assertEqual("a b c", found)
992 found = self.execParser(grammar, "a", "a b c")
993 self.assertEqual("a VAR b c", found)
1011 found = self.execParser(grammar, "a", "a a b b b c c c d")
1012 self.assertEqual("a a b b b c c c d", found)
1027 found = self.execParser(grammar, "a", "a")
1028 self.assertEqual("a", found)
1042 found = self.execParser(grammar,
1044 self.assertEqual("34", found)
1059 found = self.execParser(grammar, "a", "a b")
1060 self.assertEqual("a b", found)
1075 found = self.execParser(grammar, "a", "a b")
1076 self.assertEqual("a b", found)
1091 found = self.execParser(grammar, "a", "a")
1092 self.assertEqual("a", found)
1107 found = self.execParser(grammar, "a", "a b")
1108 self.assertEqual("a b", found)
1123 found = self.execParser(grammar, "a", "a b")
1124 self.assertEqual("a b", found)
1139 found = self.execParser(grammar, "a", "a b")
1140 self.assertEqual("a b", found)
1155 found = self.execParser(grammar, "a", "a")
1156 self.assertEqual("a", found)
1171 found = self.execParser(grammar, "a", "a b")
1172 self.assertEqual("", found)
1186 found = self.execParser(grammar, "a", "2 a 34 de")
1187 self.assertEqual("2 34 a de", found)
1201 found = self.execParser(grammar, "a", "2")
1202 self.assertEqual("2", found)
1218 found = self.execParser(grammar, "a", "2")
1219 self.assertEqual("2", found)
1235 found = self.execParser(grammar, "r", "25")
1236 self.assertEqual("25.0", found)
1256 found = self.execParser(grammar, "modulo", "modulo abc (x y #)")
1257 self.assertEqual("(modulo abc (PARMS x y #))", found)
1337 found = self.execParser(grammar, "a", "abc 34")
1338 self.assertEqual("34", found)
1356 found, errors = self.execParser(grammar, "decl", "int 34 x=1;",
1360 self.assertEqual("(EXPR int x 1)", found) # tree gets correct x and 1 tokens
1377 found, errors = self.execParser(grammar, "decl", "int =1;",
1380 self.assertEqual("(EXPR int <missing ID> 1)", found) # tree gets invented ID token
1396 found, errors = self.execParser(grammar, "decl", "x=1;",
1400 self.assertEqual("(EXPR <error: x> x 1)", found) # tree gets invented ID token
1414 found, errors = self.execParser(grammar, "a", "abc",
1418 self.assertEqual("abc <missing INT>", found)
1434 found, errors = self.execParser(grammar, "a", "abc ick 34",
1438 self.assertEqual("abc 34", found)
1453 found, errors = self.execParser(grammar, "a", "34", expectErrors=True)
1455 self.assertEqual("<missing ID> 34", found)
1472 found, errors = self.execParser(grammar, "a", "34", expectErrors=True)
1477 self.assertEqual("<missing ID> 34", found)
1494 found, errors = self.execParser(grammar, "a", "*", expectErrors=True)
1501 found)