Home
last modified time | relevance | path

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

/external/python/cpython3/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 …]
/external/python/cpython3/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)
/external/antlr/runtime/Ruby/lib/antlr3/
Dprofile.rb111 self.top_rule = self.parser_class = self.grammar_file = nil
134 report << "| Profiled #{ parser_class.name }##{ top_rule }".ljust( 78 ) << " |\n"
241 @profile.parser_class = @parser.class
Dmain.rb374 def initialize( parser_class, options = {} ) argument
378 @parser_class = parser_class
/external/python/cpython2/Lib/test/
Dtest_argparse.py168 cls.parser_class = ErrorRaisingArgumentParser
232 parser = tester.parser_class(*args, **kwargs)
1404 parser_class = FromFileConverterArgumentParser variable in TestArgumentsFromFileConverter
4184 parser_class=argparse.ArgumentParser)
/external/python/cpython2/Lib/
Dargparse.py1040 parser_class, argument
1046 self._parser_class = parser_class
/external/llvm-project/polly/utils/
Dargparse.py1063 parser_class, argument
1069 self._parser_class = parser_class
/external/python/cpython3/Lib/test/
Dtest_argparse.py154 cls.parser_class = ErrorRaisingArgumentParser
218 parser = tester.parser_class(*args, **kwargs)
1510 parser_class = FromFileConverterArgumentParser variable in TestArgumentsFromFileConverter
4508 parser_class=argparse.ArgumentParser)
/external/python/cpython3/Lib/
Dargparse.py1137 parser_class, argument
1144 self._parser_class = parser_class
/external/python/cpython3/Doc/library/
Dargparse.rst1602 [parser_class], [action], \
1631 * parser_class - class which will be used to create sub-parser instances, by
/external/python/cpython2/Doc/library/
Dargparse.rst1489 [parser_class], [action], \
1518 * parser_class - class which will be used to create sub-parser instances, by