Output Pairs in a tree on the console
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
pest-ast is an add-on to the pest parsing library that provides a structured way to convert dynamically typed Pest Parse Trees into strongly typed Abstract Syntax Trees (ASTs). It includes a derive macro to automate this conversion, helping developers reduce repetitive code and improve type safety in their parsers. ## Key Features - **Automatic AST Derivation** — Provides a derive macro to automatically generate conversion code from pest parse trees to custom AST types. - **Strong Typing** — Converts pest's dynamically typed parse tree nodes into strongly typed Rust structures for better compile-time safety. - **Future Grammar Integration** — Plans to optionally validate source grammars statically to prevent runtime errors. - **Trait Framework** — Built on the `from-pest` crate which provides the foundational trait system for parse tree conversions. ## Philosophy pest-ast aims to bridge the gap between pest's flexible parse trees and the rigor of typed ASTs, making parser development more ergonomic and less error-prone through automation and strong typing.
This crate can help with the parse tree traversing boilerplate
It is a testing framework for pest grammars