Lichen

Annotated compiler/__init__.py

570:4e9856fce8e3
2017-02-11 Paul Boddie Tidied up table output and made use of convenience macros. attr-strvalue-without-size
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