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

#588 in Development tools

Download history 14041/week @ 2024-09-20 19609/week @ 2024-09-27 5044/week @ 2024-10-04 13270/week @ 2024-10-11 12261/week @ 2024-10-18 11088/week @ 2024-10-25 7141/week @ 2024-11-01 19030/week @ 2024-11-08 39489/week @ 2024-11-15 9802/week @ 2024-11-22 18227/week @ 2024-11-29 20921/week @ 2024-12-06 23310/week @ 2024-12-13 2332/week @ 2024-12-20 3192/week @ 2024-12-27 16147/week @ 2025-01-03

50,538 downloads per month
Used in 39 crates (10 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
~153K SLoC