Modules§
- ast
- 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§
- Code
Object - Primary container of a single code object. Each python function has a code object. Also a module has a code object.
- Compile
Opts - Parse
Error - Tokens
- Tokens represents a vector of lexed
Token.
Enums§
- Compile
Error - Compile
Error Type - Mode
- Token
Kind - A kind of a token.
Functions§
- _compile_
symtable - compile
- Compile a given source code into a bytecode object.
- compile_
symtable - compile_
with_ syntax_ warning_ handler - dont_
imply_ dedent_ source_ error - Detect input that only parses because Ruff’s lexer closes indentation at EOF.
- long_
decimal_ integer_ literal_ error - Return the syntax error for a decimal integer literal exceeding the configured limit.
- pre_
parse_ source_ error - Source-level errors raised before parsing, as CPython’s tokenizer does.
- too_
deeply_ nested_ error - Rejects an AST nested deeper than
limit.