nextIs

abstract fun nextIs(type: T): Boolean

Peeks the next token and if the token types are equal, returns true.