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

Function parse

Parser/asdl.py:219–223  ·  view source on GitHub ↗

Parse ASDL from the given file and return a Module node describing it.

(filename)

Source from the content-addressed store, hash-verified

217# here is the top-level parse function.
218
219def parse(filename):
220 """Parse ASDL from the given file and return a Module node describing it."""
221 with open(filename, encoding="utf-8") as f:
222 parser = ASDLParser()
223 return parser.parse(f.read())
224
225# Types for describing tokens in an ASDL specification.
226class TokenKind:

Callers

nothing calls this directly

Calls 4

parseMethod · 0.95
ASDLParserClass · 0.85
openFunction · 0.50
readMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…