Expand description
Helpers for validating pest grammars that could help with debugging and provide a more user-friendly error message.
Functions§
- validate_
already_ defined - Validates that the given
definitions
do not contain any duplicate rules. - validate_
ast - Validates the abstract syntax tree for common mistakes:
- validate_
pairs - It checks the parsed grammar for common mistakes:
- validate_
pest_ keywords - Validates that the given
definitions
do not contain any Pest keywords. - validate_
rust_ keywords Deprecated - Validates that the given
definitions
do not contain any Rust keywords. - validate_
undefined - Validates that the given
definitions
do not contain any undefined rules.