4 releases (2 breaking)

0.4.0 Aug 6, 2024
0.3.1 Apr 6, 2024
0.3.0 Aug 29, 2023
0.2.0 Jan 11, 2023

#622 in Development tools

Download history 15068/week @ 2024-08-22 10217/week @ 2024-08-29 11412/week @ 2024-09-05 8051/week @ 2024-09-12 11810/week @ 2024-09-19 19432/week @ 2024-09-26 6879/week @ 2024-10-03 12226/week @ 2024-10-10 13724/week @ 2024-10-17 8341/week @ 2024-10-24 10611/week @ 2024-10-31 8258/week @ 2024-11-07 47220/week @ 2024-11-14 12683/week @ 2024-11-21 17684/week @ 2024-11-28 14461/week @ 2024-12-05

96,523 downloads per month
Used in 37 crates (9 directly)

MIT and LGPL-3.0-only

425KB
12K SLoC

Rust 11K SLoC // 0.0% comments Python 2K SLoC // 0.2% comments

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

Dependencies

~8.5MB
~152K SLoC