module

CrLox::Helper

Constants

INNER_SPACING = TAB_SPACING * 2
MODULE = "CrLox"
POSTFIX = ".cr"
TAB_SPACING = " "

Instance methods

alpha?(char : Char) : Bool
Source
alpha_neumeric?(char : Char) : Bool
Source
define_ast(base_name : String, types : Array(String)) : String
Source
define_type(base_name : String, class_name : String, field_list : String) : String
Source
define_visitor(base_name : String, types : Array(String)) : String
Source
digit?(char : Char) : Bool
Source
equal?(left : LiteralType, right : LiteralType) : Bool
Source
error(line : Int32, message : String) : String
Source
error(token : Token, message : String) : String
Source
format_abstract_class(base_name : String) : String
Source
format_init_fn(names : String, fields : String) : String
Source
format_init_fn_params(field_list : String) : Tuple(String, String)
Source
format_number(number : Float64) : Int32 | Float64
Source
format_types(types : Array(String), base_name : String) : String
Source
format_visit_fn(name : String, base_name : String) : String
Source
format_visitor_fn(class_name : String, base_name : String)
Source
get_path(args : Array(String) = ARGV) : String
Source
get_source_from_file(path : String)
Source
log_runtime_error(operator : Token, message : String)
Source
report(line : Int32, where : String, message : String) : String
Source
run(source : String)
Source
runtime_error(error : RuntimeException)
Source
stringify(object : LiteralType)
Source
truthy?(literal : LiteralType) : Bool
Source
verify_number_operand(operator : Token, operand : LiteralType)
Source
verify_number_operands(operator : Token, left : LiteralType, right : LiteralType)
Source

Nested types