Crates.io | astlib |
lib.rs | astlib |
version | 0.1.0 |
source | src |
created_at | 2022-01-09 02:52:40.481788 |
updated_at | 2022-01-09 02:52:40.481788 |
description | A libary for generating (and manipulating) abstract syntax trees (AST) using ASDL descriptions. |
homepage | |
repository | https://github.com/DuckLogic/rust-astlib |
max_upload_size | |
id | 510631 |
size | 4,204 |
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.
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 :)