Issue error if the current token is not value, advance to next token.
location for error message
token value to compare with
See Implementation
Issue error if the current token is not value, advance to next token.