Skip to main content

luaur_ast/methods/
parser_expect_and_consume_parser.rs

1use crate::records::lexeme::Type;
2use crate::records::parser::Parser;
3
4impl Parser {
5    pub fn expect_and_consume_char(&mut self, value: char, context: &str) -> bool {
6        let type_ = Type(value as i32);
7        self.expect_and_consume_type(type_, context)
8    }
9}