public reset() as Void
Resets the cursor back to the beginning of the token stream.
import klyn.code import klyn.code.klyn cursor = SourceTokenCursor.fromSource(KlynTokenizer(), "x = 1") cursor.next() cursor.reset() assert cursor.peek().text == "x"