Home
last modified time | relevance | path

Searched refs:python_grammar (Results 1 – 8 of 8) sorted by relevance

/external/python/cpython2/Lib/lib2to3/
Dpygram.py32 python_grammar = driver.load_packaged_grammar("lib2to3", _GRAMMAR_FILE) variable
34 python_symbols = Symbols(python_grammar)
36 python_grammar_no_print_statement = python_grammar.copy()
Drefactor.py97 for node_type in chain(pygram.python_grammar.symbol2number.itervalues(),
98 pygram.python_grammar.tokens):
198 self.grammar = pygram.python_grammar
Dpatcomp.py51 self.pygrammar = pygram.python_grammar
/external/python/cpython3/Lib/lib2to3/
Dpygram.py32 python_grammar = driver.load_packaged_grammar("lib2to3", _GRAMMAR_FILE) variable
34 python_symbols = Symbols(python_grammar)
36 python_grammar_no_print_statement = python_grammar.copy()
Drefactor.py94 for node_type in chain(pygram.python_grammar.symbol2number.values(),
95 pygram.python_grammar.tokens):
177 self.grammar = pygram.python_grammar.copy()
Dpatcomp.py51 self.pygrammar = pygram.python_grammar
/external/yapf/yapf/yapflib/
Dpytree_utils.py69 return pygram.python_grammar.number2symbol[node.type]
92 _GRAMMAR_FOR_PY2 = pygram.python_grammar.copy()
/external/yapf/yapftests/
Dpytree_utils_test.py26 _GRAMMAR_SYMBOL2NUMBER = pygram.python_grammar.symbol2number
44 node = pytree.Node(pygram.python_grammar.symbol2number['suite'], [leaf])