check Token
Check if the next token is one of the given types.
Return
true
if the next token is one of the given types. Returns false
if no more tokens are available.
Parameters
choices
token IDs to match with
Throws
Thrown in case of malformed input.
Check if the next token is the given type.
Return
true
if the next token is the given type. Returns false
if no more tokens are available.
Parameters
choice
token ID to match with
Throws
Thrown in case of malformed input.