Function pest_meta::validator::validate_ast
source · pub fn validate_ast<'a, 'i: 'a>(
rules: &'a Vec<ParserRule<'i>>
) -> Vec<Error<Rule>>
Expand description
Validates the abstract syntax tree for common mistakes:
- infinite repetitions
- choices that cannot be reached
- left recursion