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_
block_ expression - compile_
expression - 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_
top - Compile an located_ast::Mod produced from rustpython_parser::parse()