Use another firstUnusedIndex field, to point at the first character which has not been yielded in a token yet, even though currentIndex has advanced beyond.
Use another firstUnusedIndex field, to point at the first character which has not been yielded in a token yet, even though currentIndex has advanced beyond.

PenguinF/sandra-three