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

Function parse

Tools/c-analyzer/c_parser/parser/__init__.py:125–131  ·  view source on GitHub ↗
(srclines, **srckwargs)

Source from the content-addressed store, hash-verified

123
124
125def parse(srclines, **srckwargs):
126 if isinstance(srclines, str): # a filename
127 raise NotImplementedError
128
129 anon_name = anonymous_names()
130 for result in _parse(srclines, anon_name, **srckwargs):
131 yield ParsedItem.from_raw(result)
132
133
134# XXX Later: Add a separate function to deal with preprocessor directives

Callers

nothing calls this directly

Calls 3

anonymous_namesFunction · 0.85
_parseFunction · 0.70
from_rawMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…