class

Lox::Scanner

Inherits Reference < Object

Constructors

new(input : String)
Source

Instance methods

advance!
Source
eof?
Source
error_token(msg : String) : Token
Source
identifier_token!
Source
identifier_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.

Source
match!(expected : Char) : Bool
Source
number_token!
Source
peek
Source
peek_next
Source
scan_token!
Source
skip_whitespace!
Source
string_token!
Source
token(type : TokenType) : Token
Source