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 |