pub fn validate_ast<'a, 'i: 'a>( rules: &'a Vec<ParserRule<'i>>, ) -> Vec<Error<Rule>>
Validates the abstract syntax tree for common mistakes: