class Kaze::Program
- Kaze::Program
- Reference
- Object
Overview
Class for the main process.
Defined in:
main.crConstructors
Class Method Summary
-
.error(token : Token, message : String)
Reports an error with a token.
-
.error(line : Int32, message : String, column : Int32 | Nil = nil)
Reports an error in a particular line.
- .had_error
- .loc
- .loc=(other : Int32)
-
.runtime_error(error : RuntimeError)
Reports a runtime error.
Instance Method Summary
-
#run_file(path : String)
Interprets a file.
-
#run_prompt
Fires up a REPL.
Constructor Detail
Class Method Detail
def self.error(line : Int32, message : String, column : Int32 | Nil = nil)
#
Reports an error in a particular line.