2021-11-28 | Paul Boddie | raw annotate files changeset graph | Introduced support for values that can be allocated on a special thread-local stack, copied around and overwritten/mutated, demonstrating the concept using integer and floating-point numbers. Various complications arise with special attributes (such as __data__) due to the way references are tagged to indicate mutable values, and attribute slots must be cleared in locals, objects and fragments before values are stored since target slots are tested for mutable values. | tagged-address-values |
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