next

abstract operator override fun next(): Token

Returns the next token.

The token will be removed from the stream. (Every invocation of this method must happen after calling either checkToken or peekToken

Return

the coming token

Throws

Thrown in case of malformed input.

if no more token left