Lox::Parser
Inherits Struct < Value < Object
Parsing and compiling are sort of the same thing, in a sense; the line between them is blurry. For the purposes of what we're doing here, the compiler is doing most of the work and this "Parser" is really just a mutable struct that holds the state of compilation.
Constructors
new(previous : Token, current : Token, had_error : Bool, panic_mode : Bool)
SourceInstance methods
current
Sourcecurrent=(current : Lox::Token)
Sourcehad_error
Sourcehad_error=(had_error : Bool)
Sourcepanic_mode
Sourcepanic_mode=(panic_mode : Bool)
Sourceprevious
Sourceprevious=(previous : Lox::Token)
Source