Module rustpython_vm::compiler::codegen::compile
source · Expand description
Take an AST and transform it into bytecode
Inspirational code: https://github.com/python/cpython/blob/main/Python/compile.c https://github.com/micropython/micropython/blob/master/py/compile.c
Structs
Functions
- Compile a standard Python program to bytecode
- Compile a Python program to bytecode for the context of a REPL
- Compile an located_ast::Mod produced from rustpython_parser::parse()