A Parser error, when the next token is not the one expected. It produces a different error message if the tokenFound is at the end of document.
tokenFound
The constructor for Gobstones parser UnexpectedTokenError error.
The token that was found when expecting another one.
A Parser error, when the next token is not the one expected. It produces a different error message if the
tokenFound
is at the end of document.