CrLox::Helper
Constants
INNER_SPACING = TAB_SPACING * 2
MODULE = "CrLox"
POSTFIX = ".cr"
TAB_SPACING = " "
Instance methods
alpha?(char : Char) : Bool
Sourcealpha_neumeric?(char : Char) : Bool
Sourcedefine_ast(base_name : String, types : Array(String)) : String
Sourcedefine_type(base_name : String, class_name : String, field_list : String) : String
Sourcedefine_visitor(base_name : String, types : Array(String)) : String
Sourcedigit?(char : Char) : Bool
Sourceequal?(left : LiteralType, right : LiteralType) : Bool
Sourceerror(line : Int32, message : String) : String
Sourceerror(token : Token, message : String) : String
Sourceformat_abstract_class(base_name : String) : String
Sourceformat_init_fn(names : String, fields : String) : String
Sourceformat_init_fn_params(field_list : String) : Tuple(String, String)
Sourceformat_number(number : Float64) : Int32 | Float64
Sourceformat_types(types : Array(String), base_name : String) : String
Sourceformat_visit_fn(name : String, base_name : String) : String
Sourceformat_visitor_fn(class_name : String, base_name : String)
Sourceget_path(args : Array(String) = ARGV) : String
Sourceget_source_from_file(path : String)
Sourcelog_runtime_error(operator : Token, message : String)
Sourcereport(line : Int32, where : String, message : String) : String
Sourcerun(source : String)
Sourceruntime_error(error : RuntimeException)
Sourcestringify(object : LiteralType)
Sourcetruthy?(literal : LiteralType) : Bool
Sourceverify_number_operand(operator : Token, operand : LiteralType)
Sourceverify_number_operands(operator : Token, left : LiteralType, right : LiteralType)
Source