Scanner.checkToken

Check if the next token is one of specified types.

If no types are specified, checks if any tokens are left.

class Scanner
@safe
bool
checkToken
(
const TokenID[] ids...
)

Return Value

Type: bool

true if the next token is one of specified types, or if there are any tokens left if no types specified, false otherwise.

Meta