fn string_check(&mut self, str_check: &str) {
        for i in 0..str_check.len() {
            match self.current_char {
                None => panic!("Invalid string at pos {}", self.pos),
                Some(c) if c != str_check.chars().nth(i).unwrap() => {panic!("Invalid string at pos {}", self.pos)},
                _ => {}
            }
            self.advance()
        }
    }
// Check if the lexer's input matches a given string (true, false, null)
Check if the lexer's input matches a given string (true, false, null)
Check if the lexer ' s input matches a given string ( true false null )
fn string_check(&mut self, str_check: &str) {
        for i in 0..str_check.len() {
            match self.current_char {
                None => panic!("Invalid string at pos {}", self.pos),
                Some(c) if c != str_check.chars().nth(i).unwrap() => {panic!("Invalid string at pos {}", self.pos)},
                _ => {}
            }
            self.advance()
        }
    }
fn string_check ( & mut self , str_check : & str ) { for i in 0 .. str_check . len ( ) { match self . current_char { None => panic ! ( " " self pos ) , Some ( c ) if c != str_check . chars ( ) . nth ( i ) . unwrap ( ) => { panic ! ( " " self pos ) } , _ => { } } self . advance ( ) } }
Check if the lexer's input matches a given string (true, false, null)
Check if the lexer ' s input matches a given string ( true false null )
&mut self
str_check
&str
&mut self
str_check
&str