Home | History | Annotate | Download | only in tests

Lines Matching refs:grammar

64     def execParser(self, grammar, grammarEntry, input, expectErrors=False):
65 lexerCls, parserCls = self.compileInlineGrammar(grammar)
92 def execTreeParser(self, grammar, grammarEntry, treeGrammar, treeEntry, input):
93 lexerCls, parserCls = self.compileInlineGrammar(grammar)
113 grammar = textwrap.dedent(
115 grammar foo;
123 found = self.execParser(grammar, "a", "abc 34")
128 grammar = textwrap.dedent(
130 grammar foo;
138 found = self.execParser(grammar,"a", "abc 34")
143 grammar = textwrap.dedent(
145 grammar foo;
153 found = self.execParser(grammar, "a", "abc 34")
158 grammar = textwrap.dedent(
160 grammar T;
168 found = self.execParser(grammar, "a", "34 abc")
173 grammar = textwrap.dedent(
175 grammar T;
183 found = self.execParser(grammar, "a", "abc 34 dag 4532")
188 grammar = textwrap.dedent(
190 grammar T;
198 found = self.execParser(grammar, "a", "a 1 b")
203 grammar = textwrap.dedent(
205 grammar T;
213 found = self.execParser(grammar, "a", "void foo;")
218 grammar = textwrap.dedent(
220 grammar T;
228 found = self.execParser(grammar, "a", "void foo;")
233 grammar = textwrap.dedent(
235 grammar T;
243 found = self.execParser(grammar, "a", "void foo;")
248 grammar = textwrap.dedent(
250 grammar T;
258 found = self.execParser(grammar, "a", "void foo;")
263 grammar = textwrap.dedent(
265 grammar T;
273 found = self.execParser(grammar, "a", "void foo;")
278 grammar = textwrap.dedent(
280 grammar T;
288 found = self.execParser(grammar, "a", "void foo;")
293 grammar = textwrap.dedent(
295 grammar T;
303 found = self.execParser(grammar, "a", "a 34 c")
308 grammar = textwrap.dedent(
310 grammar T;
318 found = self.execParser(grammar, "a", "a 34 c")
323 grammar = textwrap.dedent(
325 grammar T;
333 found = self.execParser(grammar, "a", "a 34 * b 9 * c")
338 grammar = textwrap.dedent(
340 grammar T;
348 found = self.execParser(grammar, "a", "void a b;")
353 grammar = textwrap.dedent(
355 grammar T;
364 found = self.execParser(grammar, "a", "int a")
369 grammar = textwrap.dedent(
371 grammar T;
380 found = self.execParser(grammar, "a", "int a")
385 grammar = textwrap.dedent(
387 grammar T;
396 found = self.execParser(grammar, "a", "int a")
401 grammar = textwrap.dedent(
403 grammar T;
412 found = self.execParser(grammar, "a", "int a")
417 grammar = textwrap.dedent(
419 grammar T;
427 found = self.execParser(grammar, "a", "a+b+c+d")
432 grammar = textwrap.dedent(
434 grammar T;
443 found = self.execParser(grammar, "a", "a+b+c-d")
448 grammar = textwrap.dedent(
450 grammar T;
460 found = self.execParser(grammar, "s", "3 exp 4 exp 5")
465 grammar = textwrap.dedent(
467 grammar T;
475 found = self.execParser(grammar, "a", "abc")
480 grammar = textwrap.dedent(
482 grammar T;
490 found = self.execParser(grammar, "a", "+abc")
497 grammar = textwrap.dedent(
499 grammar T;
507 found = self.execParser(grammar, "a", "+abc")
512 grammar = textwrap.dedent(
514 grammar T;
522 found = self.execParser(grammar, "a", "a+b-c")
527 grammar = textwrap.dedent(
529 grammar T;
537 found = self.execParser(grammar, "a", "34+2")
542 grammar = textwrap.dedent(
544 grammar T;
552 found = self.execParser(grammar, "a", "34+2")
557 grammar = textwrap.dedent(
559 grammar T;
567 found = self.execParser(grammar, "a", "34+2")
572 grammar = textwrap.dedent(
574 grammar T;
582 found = self.execParser(grammar, "a", "34 55")
587 grammar = textwrap.dedent(
589 grammar T;
597 found = self.execParser(grammar, "a", "34 55")
602 grammar = textwrap.dedent(
604 grammar T;
612 found = self.execParser(grammar, "a", "34 55")
617 grammar = textwrap.dedent(
619 grammar T;
628 found = self.execParser(grammar, "a", "3+4+5")
635 grammar = textwrap.dedent(
637 grammar T;
645 found = self.execParser(grammar, "a", "a b")
651 grammar = textwrap.dedent(
653 grammar T;
661 found = self.execParser(grammar, "a", "a b")
668 grammar = textwrap.dedent(
670 grammar T;
678 found = self.execParser(grammar, "a", "a b")
686 grammar = textwrap.dedent(
688 grammar T;
696 found = self.execParser(grammar, "a", "a b")
702 grammar = textwrap.dedent(
704 grammar T;
712 found = self.execParser(grammar, "a", "a")
717 grammar = textwrap.dedent(
719 grammar T;
727 found = self.execParser(grammar, "a", "a")
732 grammar = textwrap.dedent(
734 grammar T;
746 found = self.execParser(grammar, "a", "a b")
751 grammar = textwrap.dedent(
753 grammar T;
764 found = self.execParser(grammar, "a", "a b")
769 grammar = textwrap.dedent(
771 grammar T;
782 found = self.execParser(grammar, "a", "a b")
788 grammar = textwrap.dedent(
790 grammar T;
800 found = self.execParser(grammar, "a", "a b b c c d")
805 grammar = textwrap.dedent(
807 grammar foo;
816 found = self.execParser(grammar, "a", "abc 34")
821 grammar = textwrap.dedent(
823 grammar T;
831 found = self.execParser(grammar, "r", "abc 34 d")
836 grammar = textwrap.dedent(
838 grammar foo;
847 found, errors = self.execParser(grammar, "decl", "int 34 x=1;",
855 grammar = textwrap.dedent(
857 grammar foo;
867 found, errors = self.execParser(grammar, "decl", "int =1;",
874 grammar = textwrap.dedent(
876 grammar foo;
886 found, errors = self.execParser(grammar, "decl", "x=1;",
893 grammar = textwrap.dedent(
895 grammar foo;
903 found, errors = self.execParser(grammar, "a", "abc", expectErrors=True)
909 grammar = textwrap.dedent(
911 grammar foo;
920 found, errors = self.execParser(grammar, "a", "abc", expectErrors=True)
926 grammar = textwrap.dedent(
928 grammar foo;
938 found, errors = self.execParser(grammar, "a", "abc ick 34",
946 grammar = textwrap.dedent(
948 grammar foo;
956 found, errors = self.execParser(grammar, "a", "34", expectErrors=True)
962 grammar = textwrap.dedent(
964 grammar foo;
974 found, errors = self.execParser(grammar, "a", "34", expectErrors=True)
984 grammar = textwrap.dedent(
986 grammar foo;
997 found, errors = self.execParser(grammar, "a", "*", expectErrors=True)