Returns a token of the specified type if it was the next token, otherwise calls the error function and returns null. Advances the lexer by one token.
See Implementation
Returns a token of the specified type if it was the next token, otherwise calls the error function and returns null. Advances the lexer by one token.