Home
last modified time | relevance | path

Searched refs:parser_class (Results 1 – 6 of 6) sorted by relevance

/third_party/python/Lib/test/test_peg_generator/
Dtest_pegen.py88 parser_class = make_parser(grammar)
89 node = parse_string("42\n", parser_class)
94 node = parse_string("1, 2\n", parser_class)
109 parser_class = make_parser(grammar)
110 node = parse_string("42\n", parser_class)
122 parser_class = make_parser(grammar)
123 node = parse_string("1+2\n", parser_class)
134 node = parse_string("1\n", parser_class)
146 parser_class = make_parser(grammar)
147 node = parse_string("1+\n", parser_class)
[all …]
/third_party/python/Tools/peg_generator/pegen/
Dtestutil.py39 def run_parser(file: IO[bytes], parser_class: Type[Parser], *, verbose: bool = False) -> Any:
42 parser = parser_class(tokenizer, verbose=verbose)
50 source: str, parser_class: Type[Parser], *, dedent: bool = True, verbose: bool = False
56 return run_parser(file, parser_class, verbose=verbose) # type: ignore # typeshed issue #3515
Dparser.py241 def simple_parser_main(parser_class: Type[Parser]) -> None:
271 parser = parser_class(tokenizer, verbose=verbose_parser)
/third_party/python/Lib/test/
Dtest_argparse.py154 cls.parser_class = ErrorRaisingArgumentParser
218 parser = tester.parser_class(*args, **kwargs)
1510 parser_class = FromFileConverterArgumentParser variable in TestArgumentsFromFileConverter
4584 parser_class=argparse.ArgumentParser)
/third_party/python/Lib/
Dargparse.py1143 parser_class, argument
1150 self._parser_class = parser_class
/third_party/python/Doc/library/
Dargparse.rst1617 [parser_class], [action], \
1646 * parser_class - class which will be used to create sub-parser instances, by