Home
last modified time | relevance | path

Searched refs:grammar_source (Results 1 – 5 of 5) sorted by relevance

/third_party/python/Lib/test/test_peg_generator/
Dtest_c_parser.py91 def build_extension(self, grammar_source): argument
92 grammar = parse_string(grammar_source, GrammarParser)
95 def run_test(self, grammar_source, test_source): argument
96 self.build_extension(grammar_source)
104 grammar_source = """
142 self.run_test(grammar_source, test_source)
145 grammar_source = """
154 self.run_test(grammar_source, test_source)
157 grammar_source = """
166 self.run_test(grammar_source, test_source)
[all …]
Dtest_grammar_validator.py14 grammar_source = """
20 grammar: Grammar = parse_string(grammar_source, GrammarParser)
26 grammar_source = """
32 grammar: Grammar = parse_string(grammar_source, GrammarParser)
39 grammar_source = """
47 grammar: Grammar = parse_string(grammar_source, GrammarParser)
Dtest_pegen.py25 grammar_source = """
35 grammar: Grammar = parse_string(grammar_source, GrammarParser)
45 grammar_source = """
59 grammar: Grammar = parse_string(grammar_source, GrammarParser)
296 grammar_source = """
304 grammar: Grammar = parse_string(grammar_source, GrammarParser)
352 grammar_source = """
356 grammar: Grammar = parse_string(grammar_source, GrammarParser)
364 grammar_source = """
368 grammar: Grammar = parse_string(grammar_source, GrammarParser)
[all …]
Dtest_first_sets.py15 def calculate_first_sets(self, grammar_source: str) -> Dict[str, Set[str]]:
16 grammar: Grammar = parse_string(grammar_source, GrammarParser)
/third_party/python/Lib/lib2to3/pgen2/
Ddriver.py143 def load_packaged_grammar(package, grammar_source): argument
154 if os.path.isfile(grammar_source):
155 return load_grammar(grammar_source)
156 pickled_name = _generate_pickle_name(os.path.basename(grammar_source))