• Home
  • Raw
  • Download

Lines Matching refs:found

123         found = self.execParser(grammar, "a", "abc 34")
124 self.assertEquals("abc 34", found);
138 found = self.execParser(grammar,"a", "abc 34")
139 self.assertEquals("abc 34", found)
153 found = self.execParser(grammar, "a", "abc 34")
154 self.assertEquals("(abc 34)", found)
168 found = self.execParser(grammar, "a", "34 abc")
169 self.assertEquals("(abc 34)", found)
183 found = self.execParser(grammar, "a", "abc 34 dag 4532")
184 self.assertEquals("abc 4532", found)
198 found = self.execParser(grammar, "a", "a 1 b")
199 self.assertEquals("(b a 1)", found)
213 found = self.execParser(grammar, "a", "void foo;")
214 self.assertEquals("(void foo ;)", found)
228 found = self.execParser(grammar, "a", "void foo;")
229 self.assertEquals("(void foo ;)", found)
243 found = self.execParser(grammar, "a", "void foo;")
244 self.assertEquals("(foo void ;)", found)
258 found = self.execParser(grammar, "a", "void foo;")
259 self.assertEquals("(foo void ;)", found)
273 found = self.execParser(grammar, "a", "void foo;")
274 self.assertEquals("(foo void ;)", found)
288 found = self.execParser(grammar, "a", "void foo;")
289 self.assertEquals("void ;", found)
303 found = self.execParser(grammar, "a", "a 34 c")
304 self.assertEquals("(34 a c)", found)
318 found = self.execParser(grammar, "a", "a 34 c")
319 self.assertEquals("(c (34 a))", found)
333 found = self.execParser(grammar, "a", "a 34 * b 9 * c")
334 self.assertEquals("(* (* (a 34) b 9) c)", found)
348 found = self.execParser(grammar, "a", "void a b;")
349 self.assertEquals("void a b ;", found)
364 found = self.execParser(grammar, "a", "int a")
365 self.assertEquals("int a", found)
380 found = self.execParser(grammar, "a", "int a")
381 self.assertEquals("(int a)", found)
396 found = self.execParser(grammar, "a", "int a")
397 self.assertEquals("(int a)", found)
412 found = self.execParser(grammar, "a", "int a")
413 self.assertEquals("(int a)", found)
427 found = self.execParser(grammar, "a", "a+b+c+d")
428 self.assertEquals("(+ (+ (+ a b) c) d)", found)
443 found = self.execParser(grammar, "a", "a+b+c-d")
444 self.assertEquals("(- (+ (+ a b) c) d)", found)
460 found = self.execParser(grammar, "s", "3 exp 4 exp 5")
461 self.assertEquals("(exp 3 (exp 4 5))", found)
475 found = self.execParser(grammar, "a", "abc")
476 self.assertEquals("abc", found)
490 found = self.execParser(grammar, "a", "+abc")
491 self.assertEquals("(+ abc)", found)
507 found = self.execParser(grammar, "a", "+abc")
508 self.assertEquals("(+ abc)", found)
522 found = self.execParser(grammar, "a", "a+b-c")
523 self.assertEquals("(- (+ a b) c)", found)
537 found = self.execParser(grammar, "a", "34+2")
538 self.assertEquals("34 + 2", found)
552 found = self.execParser(grammar, "a", "34+2")
553 self.assertEquals("34 + 2", found)
567 found = self.execParser(grammar, "a", "34+2")
568 self.assertEquals("34 + 2", found)
582 found = self.execParser(grammar, "a", "34 55")
583 self.assertEquals("(34 55)", found)
597 found = self.execParser(grammar, "a", "34 55")
598 self.assertEquals("(34 55)", found)
612 found = self.execParser(grammar, "a", "34 55")
613 self.assertEquals("(34 55)", found)
628 found = self.execParser(grammar, "a", "3+4+5")
629 self.assertEquals("(+ (+ 3 4) 5)", found)
645 found = self.execParser(grammar, "a", "a b")
646 self.assertEquals("2nd id=b;a b", found)
661 found = self.execParser(grammar, "a", "a b")
662 self.assertEquals("2nd id=b,(b a)", found)
678 found = self.execParser(grammar, "a", "a b")
680 self.assertEquals(expecting, found)
696 found = self.execParser(grammar, "a", "a b")
698 self.assertEquals(expecting, found)
712 found = self.execParser(grammar, "a", "a")
713 self.assertEquals("a", found)
727 found = self.execParser(grammar, "a", "a")
728 self.assertEquals("", found)
746 found = self.execParser(grammar, "a", "a b")
747 self.assertEquals("2nd x=b,a b", found)
764 found = self.execParser(grammar, "a", "a b")
765 self.assertEquals("x=(b a),(b a)", found)
782 found = self.execParser(grammar, "a", "a b")
783 self.assertEquals("1st x=a,b", found)
800 found = self.execParser(grammar, "a", "a b b c c d")
801 self.assertEquals("a b b c c d", found)
816 found = self.execParser(grammar, "a", "abc 34")
817 self.assertEquals("34\nabc 34", found)
831 found = self.execParser(grammar, "r", "abc 34 d")
832 self.assertEquals("abc 34 d", found)
847 found, errors = self.execParser(grammar, "decl", "int 34 x=1;",
851 self.assertEquals("(int x 1)", found) # tree gets correct x and 1 tokens
867 found, errors = self.execParser(grammar, "decl", "int =1;",
870 self.assertEquals("(int <missing ID> 1)", found) # tree gets invented ID token
886 found, errors = self.execParser(grammar, "decl", "x=1;",
889 self.assertEquals("(<error: x> x 1)", found) # tree gets invented ID token
903 found, errors = self.execParser(grammar, "a", "abc", expectErrors=True)
905 self.assertEquals("abc <missing INT>", found)
920 found, errors = self.execParser(grammar, "a", "abc", expectErrors=True)
922 self.assertEquals("<mismatched token: <EOF>, resync=abc>", found)
938 found, errors = self.execParser(grammar, "a", "abc ick 34",
942 self.assertEquals("abc 34", found)
956 found, errors = self.execParser(grammar, "a", "34", expectErrors=True)
958 self.assertEquals("<missing ID> 34", found)
974 found, errors = self.execParser(grammar, "a", "34", expectErrors=True)
980 self.assertEquals("<missing ID> 34", found)
997 found, errors = self.execParser(grammar, "a", "*", expectErrors=True)
1001 found)