eat

abstract fun eat(): K

Eats the current token, advancing the index by one.

abstract fun eat(type: T): K

Eats the current token, advancing the index by one. Throws a SyntaxException if the token type doesn't match.