peek

open override fun peek(): T(source)

Get the next Token from the TokenBasedTokenInputStream without increasing the position

Return

the next Token

Since

0.1.0

Throws

if there are no Tokens left


open override fun peek(offset: Int): T(source)

Get a specific Token from the TokenBasedTokenInputStream without increasing the position

Return

the Token at the given offset

Since

0.1.0

Parameters

offset

the offset of the Token to get

Throws

if there are not enough Tokens left