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

Method parse

Parser/asdl.py:278–283  ·  view source on GitHub ↗

Parse the ASDL in the buffer and return an AST with a Module root.

(self, buf)

Source from the content-addressed store, hash-verified

276 self.cur_token = None
277
278 def parse(self, buf):
279 """Parse the ASDL in the buffer and return an AST with a Module root.
280 """
281 self._tokenizer = tokenize_asdl(buf)
282 self._advance()
283 return self._parse_module()
284
285 def _parse_module(self):
286 if self._at_keyword('module'):

Callers 5

parseFunction · 0.95
mainFunction · 0.45
_fixup_sccdFunction · 0.45
get_appxmanifestFunction · 0.45

Calls 3

_advanceMethod · 0.95
_parse_moduleMethod · 0.95
tokenize_asdlFunction · 0.85

Tested by

no test coverage detected