Expand description
§pest meta
This crate parses, validates, optimizes, and converts pest’s own grammars to ASTs.
§Resource Limits
When grammar definitions are untrusted, bound their size and configure
pest::set_call_limit as appropriate. Automatic native-stack checks in
supported std builds are best-effort. Parser-state limits do not govern all
validation, AST processing, or optimization work; supervise the entire pipeline
when a deadline must be enforced. See the resource-limit guidance.
Modules§
- ast
- Types for the pest’s abstract syntax tree.
- optimizer
- Different optimizations for pest’s ASTs.
- parser
- Types and helpers for the pest’s own grammar parser.
- validator
- Helpers for validating pest grammars that could help with debugging and provide a more user-friendly error message.
Functions§
- parse_
and_ optimize - Parses, validates, processes and optimizes the provided grammar.
- unwrap_
or_ report - A helper that will unwrap the result or panic with the nicely formatted error message.