1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/compiler/__init__.py Tue Aug 30 16:51:10 2016 +0200
1.3 @@ -0,0 +1,14 @@
1.4 +"""Package for parsing and compiling Python source code
1.5 +
1.6 +There are several functions defined at the top level that are imported
1.7 +from modules contained in the package.
1.8 +
1.9 +parse(buf, mode="exec") -> AST
1.10 + Converts a string containing Python source code to an abstract
1.11 + syntax tree (AST). The AST is defined in compiler.ast.
1.12 +
1.13 +parseFile(path) -> AST
1.14 + The same as parse(open(path))
1.15 +"""
1.16 +
1.17 +from compiler.transformer import parse, parseFile