2016-09-05 | Paul Boddie | raw annotate files changeset graph | Separated external name reference definition from subsequent operations involving name references so that deferred references can be identified in the importer's resolution activity and be replaced with resolved names, with such resolved names then becoming available to each module's resolution activity. Introduced a special "<invoke>" reference kind that can be handled in the initialised name processing (which uses inspection-specific name reference objects) and also when processing affected module data. |
1 """Package for parsing and compiling Python source code 2 3 There are several functions defined at the top level that are imported 4 from modules contained in the package. 5 6 parse(buf, mode="exec") -> AST 7 Converts a string containing Python source code to an abstract 8 syntax tree (AST). The AST is defined in compiler.ast. 9 10 parseFile(path) -> AST 11 The same as parse(open(path)) 12 """ 13 14 from compiler.transformer import parse, parseFile