pub fn validate_ast<'a, 'i: 'a>(
    rules: &'a Vec<ParserRule<'i>>
) -> Vec<Error<Rule>>