Lines Matching defs:grammar
7 parser from a grammar file in Python's grammar notation. But I don't
19 On the other hand, symbol numbers (representing the grammar's
20 non-terminals) are assigned by pgen based on the actual grammar
24 equivalent grammar tables directly from the Grammar.txt input file
33 from pgen2 import grammar, token
36 class Converter(grammar.Grammar):
48 """Load the grammar tables from the text files written by pgen."""
57 nonterminals of the grammar as numbers. We build two tables
90 #include "grammar.h"
97 4) a struct defining the grammar
124 assert line == '#include "grammar.h"\n', (lineno, line)
219 # Parse the grammar struct
221 assert line == "grammar _PyParser_Grammar = {\n", (lineno, line)