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

Modules

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

Structs

  • Contains information about the original source file/string.

Traits