3 unstable releases

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

#628 in Development tools

Download history 587/week @ 2024-03-31 687/week @ 2024-04-07 876/week @ 2024-04-14 468/week @ 2024-04-21 366/week @ 2024-04-28 432/week @ 2024-05-05 623/week @ 2024-05-12 6567/week @ 2024-05-19 6094/week @ 2024-05-26 6660/week @ 2024-06-02 12810/week @ 2024-06-09 5849/week @ 2024-06-16 8453/week @ 2024-06-23 7053/week @ 2024-06-30 7501/week @ 2024-07-07 3393/week @ 2024-07-14

26,561 downloads per month
Used in 25 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
~156K SLoC