astlib

Crates.ioastlib
lib.rsastlib
version0.1.0
sourcesrc
created_at2022-01-09 02:52:40.481788
updated_at2022-01-09 02:52:40.481788
descriptionA libary for generating (and manipulating) abstract syntax trees (AST) using ASDL descriptions.
homepage
repositoryhttps://github.com/DuckLogic/rust-astlib
max_upload_size
id510631
size4,204
(Techcable)

documentation

README

astlib

A libary for generating (and manipulating) abstract syntax trees (AST) using ASDL descriptions.

Note that an AST is very different from a parse tree, and is independent of any specific parser generator.

See this stack overflow answer for details on the difference between AST/parse tree.

See this blog post for more details on what ASDL is (and why it's still useful). It is written by the Oil Shell people.

Details

Right now, the actual code generation is based on the scripts that CPython uses.

As such, currently using this library requires Python.

In the future, I plan to move the implementation into Rust.

Ideally we can be self-hosting :)

Commit count: 25

cargo fmt