2018-06-24 | Paul Boddie | raw annotate files changeset graph | Changed target handling in the invocation code to eliminate superfluous temporary storage for targets and to treat context and target storage separately. Changed access instruction generation to expose the accessor test instructions more readily to the translator, with the error conversion being introduced by the translator. This allows the presence of accessor tests to be considered by the translator and for such tests to be included in generated code where they might otherwise be optimised away. Fixed detection of context temporary variables. Simplified the tracking of target and context temporary usage. |
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