Does a peek and advances a token and adds an error if it doesn't match.
Does a peek and advances a token.
Checks if the current token matches type & optional match.
See Implementation