3 unstable releases

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

#571 in Development tools

Download history 802/week @ 2024-01-22 652/week @ 2024-01-29 863/week @ 2024-02-05 620/week @ 2024-02-12 510/week @ 2024-02-19 650/week @ 2024-02-26 643/week @ 2024-03-04 1924/week @ 2024-03-11 595/week @ 2024-03-18 496/week @ 2024-03-25 615/week @ 2024-04-01 687/week @ 2024-04-08 831/week @ 2024-04-15 439/week @ 2024-04-22 371/week @ 2024-04-29 443/week @ 2024-05-06

2,175 downloads per month
Used in 22 crates (7 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

~9MB
~172K SLoC