Expand description
An easy and simple way to convert your dynamic pest trees into an AST built from structs and enums.
This crate is centered around the pest_tree_derive::PestTree
derive macro.
The macro uses the pest_tree
attribute macro to help derive the trait
pest_tree_derive::PestTree
for the relevant struct/enum.
Re-exports§
Modules§
- auto
- Implementations for basic types used by the
convert(auto)
conversion attribute. - errors
TreeError
s and its variants used for error reporting and pretty printing.- validator
- Set of functions for convenient usage in validate(…)
Structs§
- Parsing
Context - Contains information about the original source file/string.
Traits§
- Pest
Tree - Implemented for types that can be parsed from
pest::iterators::Pair
.