class

TokenStream

Inherits Reference < Object

Shared token navigation for all parser components.

Constructors

new(tokens : Array(Token))

Instance methods

consume(expected_type : TokenType) : Token
peek
position
skip_unexpected(context : String)