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