Searched refs:grammar_source (Results 1 – 5 of 5) sorted by relevance
/third_party/python/Lib/test/test_peg_generator/ |
D | test_c_parser.py | 91 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 …]
|
D | test_grammar_validator.py | 14 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)
|
D | test_pegen.py | 25 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 …]
|
D | test_first_sets.py | 15 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/ |
D | driver.py | 143 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))
|