0001 """Package for parsing and compiling Python source code 0002 0003 There are several functions defined at the top level that are imported 0004 from modules contained in the package. 0005 0006 parse(buf, mode="exec") -> AST 0007 Converts a string containing Python source code to an abstract 0008 syntax tree (AST). The AST is defined in compiler.ast. 0009 0010 parseFile(path) -> AST 0011 The same as parse(open(path)) 0012 0013 walk(ast, visitor, verbose=None) 0014 Does a pre-order walk over the ast using the visitor instance. 0015 See compiler.visitor for details. 0016 0017 compile(source, filename, mode, flags=None, dont_inherit=None) 0018 Returns a code object. A replacement for the builtin compile() function. 0019 0020 compileFile(filename) 0021 Generates a .pyc file by compiling filename. 0022 """ 0023 0024 from transformer import parse, parseFile 0025 from visitor import walk 0026 from pycodegen import compile, compileFile 0027
Generated by PyXR 0.9.4