[][src]Module rustpython_compiler::compile

Take an AST and transform it into bytecode

Inspirational code: https://github.com/python/cpython/blob/master/Python/compile.c https://github.com/micropython/micropython/blob/master/py/compile.c

Re-exports

pub use crate::mode::Mode;

Structs

CompileOpts

Functions

compile

Compile a given sourcecode into a bytecode object.

compile_program

Compile a standard Python program to bytecode

compile_program_single

Compile a Python program to bytecode for the context of a REPL

compile_statement_eval

Compile a single Python expression to bytecode