Function handle_simple_token

Source
fn handle_simple_token(
    state: &mut LexerState<'_>,
    token_type: Tokentype,
    lexeme: &str,
    start_pos: usize,
)
Expand description

Handles simple one-character tokens

ยงArguments

  • state - The current lexer state
  • token_type - The type of token to add
  • lexeme - The string representation of the token
  • start_pos - The starting position of the token in the input