class Kaze::Program

Overview

Class for the main process.

Defined in:

main.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Class Method Detail

def self.error(token : Token, message : String) #

Reports an error with a token.


[View source]
def self.error(line : Int32, message : String, column : Int32 | Nil = nil) #

Reports an error in a particular line.


[View source]
def self.had_error #

[View source]
def self.loc #

[View source]
def self.loc=(other : Int32) #

[View source]
def self.runtime_error(error : RuntimeError) #

Reports a runtime error.


[View source]

Instance Method Detail

def run_file(path : String) #

Interprets a file.


[View source]
def run_prompt #

Fires up a REPL.


[View source]