Python compiler Functions

EditRocket provides the following information on compiler functions in the Python source code builder.

compile(source, filename, mode, flags=None, dont_inherit=None) - Compile the string source, a Python module, statement or expression, into a code object that can be executed by the exec statement or eval().

compileFile(source) - Compiles the file source and generates a .

parse(buf) - Returns an abstract syntax tree for the Python source code in buf.

parseFile(path) - Return an abstract syntax tree for the Python source code in the file specified by path.

walk(ast, visitor[, verbose]) - Do a pre-order walk over the abstract syntax tree ast.