Logos::SpannedIter(Token, Source, Extras, Error)
Inherits Iterator < Enumerable < Reference < Object
Iterator that pairs tokens with their position in the source.
Look at Lexer#spanned for documentation.
Constructors
new(lexer : Lexer(Token, Source, Extras, Error))
SourceInstance methods
next
Returns the next element in this iterator, or Iterator::Stop::INSTANCE if there
are no more elements.