Crate pest_tree

Source
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§

pub use ariadne;
pub use errors::*;
pub use auto::*;
pub use validator::*;

Modules§

auto
Implementations for basic types used by the convert(auto) conversion attribute.
errors
TreeErrors and its variants used for error reporting and pretty printing.
validator
Set of functions for convenient usage in validate(…)

Structs§

ParsingContext
Contains information about the original source file/string.

Traits§

PestTree
Implemented for types that can be parsed from pest::iterators::Pair.