struct

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)
Source

Instance methods

current
Source
current=(current : Lox::Token)
Source
had_error
Source
had_error=(had_error : Bool)
Source
panic_mode
Source
panic_mode=(panic_mode : Bool)
Source
previous
Source
previous=(previous : Lox::Token)
Source