acceptToken

fun acceptToken(token: Int, endOffset: Int = 0)

Accept a token. By default, the end of the token is set to the current stream position, but you can pass an offset (relative to the stream position) to change that.