astlib 0.1.0

A libary for generating (and manipulating) abstract syntax trees (AST) using ASDL descriptions.
Documentation
  • Coverage
  • 100%
    1 out of 1 items documented0 out of 0 items with examples
  • Size
  • Source code size: 3.88 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 978.12 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • DuckLogic/rust-astlib
    1 0 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Techcable

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 :)