Searched refs:python_grammar (Results 1 – 8 of 8) sorted by relevance
32 python_grammar = driver.load_packaged_grammar("lib2to3", _GRAMMAR_FILE) variable34 python_symbols = Symbols(python_grammar)36 python_grammar_no_print_statement = python_grammar.copy()
97 for node_type in chain(pygram.python_grammar.symbol2number.itervalues(),98 pygram.python_grammar.tokens):198 self.grammar = pygram.python_grammar
51 self.pygrammar = pygram.python_grammar
94 for node_type in chain(pygram.python_grammar.symbol2number.values(),95 pygram.python_grammar.tokens):177 self.grammar = pygram.python_grammar.copy()
69 return pygram.python_grammar.number2symbol[node.type]92 _GRAMMAR_FOR_PY2 = pygram.python_grammar.copy()
26 _GRAMMAR_SYMBOL2NUMBER = pygram.python_grammar.symbol2number44 node = pytree.Node(pygram.python_grammar.symbol2number['suite'], [leaf])