• Home
  • Raw
  • Download

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 34")
143 grammar = textwrap.dedent(
153 found = self.execParser(grammar, "a", "abc 34")
158 grammar = textwrap.dedent(
168 found = self.execParser(grammar, "a", "34 abc")
173 grammar = textwrap.dedent(
183 found = self.execParser(grammar, "a", "abc 34 dag 4532")
188 grammar = textwrap.dedent(
198 found = self.execParser(grammar, "a", "a 1 b")
203 grammar = textwrap.dedent(
213 found = self.execParser(grammar, "a", "void foo;")
218 grammar = textwrap.dedent(
228 found = self.execParser(grammar, "a", "void foo;")
233 grammar = textwrap.dedent(
243 found = self.execParser(grammar, "a", "void foo;")
248 grammar = textwrap.dedent(
258 found = self.execParser(grammar, "a", "void foo;")
263 grammar = textwrap.dedent(
273 found = self.execParser(grammar, "a", "void foo;")
278 grammar = textwrap.dedent(
288 found = self.execParser(grammar, "a", "void foo;")
293 grammar = textwrap.dedent(
303 found = self.execParser(grammar, "a", "a 34 c")
308 grammar = textwrap.dedent(
318 found = self.execParser(grammar, "a", "a 34 c")
323 grammar = textwrap.dedent(
333 found = self.execParser(grammar, "a", "a 34 * b 9 * c")
338 grammar = textwrap.dedent(
348 found = self.execParser(grammar, "a", "void a b;")
353 grammar = textwrap.dedent(
364 found = self.execParser(grammar, "a", "int a")
369 grammar = textwrap.dedent(
380 found = self.execParser(grammar, "a", "int a")
385 grammar = textwrap.dedent(
396 found = self.execParser(grammar, "a", "int a")
401 grammar = textwrap.dedent(
412 found = self.execParser(grammar, "a", "int a")
417 grammar = textwrap.dedent(
427 found = self.execParser(grammar, "a", "a+b+c+d")
432 grammar = textwrap.dedent(
443 found = self.execParser(grammar, "a", "a+b+c-d")
448 grammar = textwrap.dedent(
460 found = self.execParser(grammar, "s", "3 exp 4 exp 5")
465 grammar = textwrap.dedent(
475 found = self.execParser(grammar, "a", "abc")
480 grammar = textwrap.dedent(
490 found = self.execParser(grammar, "a", "+abc")
497 grammar = textwrap.dedent(
507 found = self.execParser(grammar, "a", "+abc")
512 grammar = textwrap.dedent(
522 found = self.execParser(grammar, "a", "a+b-c")
527 grammar = textwrap.dedent(
537 found = self.execParser(grammar, "a", "34+2")
542 grammar = textwrap.dedent(
552 found = self.execParser(grammar, "a", "34+2")
557 grammar = textwrap.dedent(
567 found = self.execParser(grammar, "a", "34+2")
572 grammar = textwrap.dedent(
582 found = self.execParser(grammar, "a", "34 55")
587 grammar = textwrap.dedent(
597 found = self.execParser(grammar, "a", "34 55")
602 grammar = textwrap.dedent(
612 found = self.execParser(grammar, "a", "34 55")
617 grammar = textwrap.dedent(
628 found = self.execParser(grammar, "a", "3+4+5")
635 grammar = textwrap.dedent(
645 found = self.execParser(grammar, "a", "a b")
651 grammar = textwrap.dedent(
661 found = self.execParser(grammar, "a", "a b")
668 grammar = textwrap.dedent(
678 found = self.execParser(grammar, "a", "a b")
686 grammar = textwrap.dedent(
696 found = self.execParser(grammar, "a", "a b")
702 grammar = textwrap.dedent(
712 found = self.execParser(grammar, "a", "a")
717 grammar = textwrap.dedent(
727 found = self.execParser(grammar, "a", "a")
732 grammar = textwrap.dedent(
746 found = self.execParser(grammar, "a", "a b")
751 grammar = textwrap.dedent(
764 found = self.execParser(grammar, "a", "a b")
769 grammar = textwrap.dedent(
782 found = self.execParser(grammar, "a", "a b")
788 grammar = textwrap.dedent(
800 found = self.execParser(grammar, "a", "a b b c c d")
805 grammar = textwrap.dedent(
816 found = self.execParser(grammar, "a", "abc 34")
821 grammar = textwrap.dedent(
831 found = self.execParser(grammar, "r", "abc 34 d")
836 grammar = textwrap.dedent(
847 found, errors = self.execParser(grammar, "decl", "int 34 x=1;",
855 grammar = textwrap.dedent(
867 found, errors = self.execParser(grammar, "decl", "int =1;",
874 grammar = textwrap.dedent(
886 found, errors = self.execParser(grammar, "decl", "x=1;",
893 grammar = textwrap.dedent(
903 found, errors = self.execParser(grammar, "a", "abc", expectErrors=True)
909 grammar = textwrap.dedent(
920 found, errors = self.execParser(grammar, "a", "abc", expectErrors=True)
926 grammar = textwrap.dedent(
938 found, errors = self.execParser(grammar, "a", "abc ick 34",
946 grammar = textwrap.dedent(
956 found, errors = self.execParser(grammar, "a", "34", expectErrors=True)
962 grammar = textwrap.dedent(
974 found, errors = self.execParser(grammar, "a", "34", expectErrors=True)
984 grammar = textwrap.dedent(
997 found, errors = self.execParser(grammar, "a", "*", expectErrors=True)