2018-07-12 | Paul Boddie | file changeset files shortlog | Support trailing data after attributes in objects, employed by float instances to store their double-precision numeric data which needs more space than single attributes on some systems. In order to initialise such instances statically, specific object types must be indicated instead of the generic __obj type. This then requires casting to __ref of direct references to objects. Added an underflow error. Added initial testing of floating point numbers. | trailing-data |
paul@0 | 1 | """Package for parsing and compiling Python source code |
paul@0 | 2 | |
paul@0 | 3 | There are several functions defined at the top level that are imported |
paul@0 | 4 | from modules contained in the package. |
paul@0 | 5 | |
paul@0 | 6 | parse(buf, mode="exec") -> AST |
paul@0 | 7 | Converts a string containing Python source code to an abstract |
paul@0 | 8 | syntax tree (AST). The AST is defined in compiler.ast. |
paul@0 | 9 | |
paul@0 | 10 | parseFile(path) -> AST |
paul@0 | 11 | The same as parse(open(path)) |
paul@0 | 12 | """ |
paul@0 | 13 | |
paul@0 | 14 | from compiler.transformer import parse, parseFile |