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
bool
checkToken
@safe
(
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