Module compiler

Source

Modules§

codegen
Compile a Python AST or source code into bytecode consumable by RustPython.
core
parser
This crate can be used to parse Python source code into an Abstract Syntax Tree.

Structs§

CodeObject
Primary container of a single code object. Each python function has a code object. Also a module has a code object.
CompileOpts
LinearLocator
Converts source code byte-offset to Python convention line and column numbers.

Enums§

CompileErrorType
Mode

Traits§

Parse
Parse Python code string to implementor’s type.

Functions§

compile
Compile a given source code into a bytecode object.
compile_symtable

Type Aliases§

CompileError