Class: UnexpectedTokenError

UnexpectedTokenError(token, expectedType)

new UnexpectedTokenError(token, expectedType)

Exception for unexpected tokens Thrown when the parser encounters a token that is not expected.
Parameters:
Name Type Description
token Parser.Token The relevant token that led to the exception
expectedType string The type of token expected
Source: