Lox::Scanner
Inherits Reference < Object
Constructors
new(input : String)
SourceInstance methods
advance!
Sourceeof?
Sourceerror_token(msg : String) : Token
Sourceidentifier_token!
Sourceidentifier_type
This is probably not as fast as the algorithm in the book, but I'm gonna do it anyway because I'm curious how much it really matters.
match!(expected : Char) : Bool
Sourcenumber_token!
Sourcepeek
Sourcepeek_next
Sourcescan_token!
Sourceskip_whitespace!
Sourcestring_token!
Sourcetoken(type : TokenType) : Token
Source