Crate rustpython_ast

source ·
Expand description

Python AST node definitions and utilities.

AST nodes are very similary defined like Python AST. But a few exceptions exist due to parser optimization. They can be transformed to matching Python-styled AST in reasonable cost.

PythonArguments is replaced by Arguments. The new Arguments type representation uses a new type ArgWithDefault to represent arguments with default values. See each type documentation for more details.

A few top-level sum types are renamed to human friendly names. CmpOp refers cmpop UnaryOp refers unaryop BoolOp refers boolop WithItem refers withitem ExceptHandler refers excepthandler

Re-exports§

Modules§

Structs§

Enums§

Traits§

Type Aliases§