MCPcopy Index your code
hub / github.com/python/cpython / make_parser

Function make_parser

Tools/peg_generator/pegen/testutil.py:58–61  ·  view source on GitHub ↗
(source: str)

Source from the content-addressed store, hash-verified

56
57
58def make_parser(source: str) -> type[Parser]:
59 # Combine parse_string() and generate_parser().
60 grammar = parse_string(source, GrammarParser)
61 return generate_parser(grammar)
62
63
64def import_file(full_name: str, path: str) -> Any:

Callers 15

test_gatherMethod · 0.90
test_expr_grammarMethod · 0.90
test_optional_literalMethod · 0.90
test_repeat_0_simpleMethod · 0.90
test_repeat_0_complexMethod · 0.90
test_repeat_1_simpleMethod · 0.90
test_repeat_1_complexMethod · 0.90
test_python_exprMethod · 0.90

Calls 2

parse_stringFunction · 0.85
generate_parserFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…