class

Compiler

Inherits Reference < Object

the compiler manages the entire compilation process

Constructors

new(target_stage : Compiler::Stage = Stage::Run, log_level = Logger::Level::Info, log_out = STDOUT, program_out : IO = STDOUT, prelude_path : String | Nil = "./std/prelude.mismo", zig_dir : Path = Path["./src/zig"])
Source

Class methods

config(file_path : String, input : IO | String | Nil = nil, target_stage : Stage = Stage::Run, log_level : Logger::Level = Logger::Level::Info, log_out : IO = STDOUT, starting_line = 1, prelude_path : String | Nil = "./std/prelude.mismo", zig_dir : String = "./src/zig")
Source
run(*args)
Source

Instance methods

add_file(file_path : String, input : IO | String | Nil = nil, log_level : Logger::Level = Logger::Level::Info, log_out : IO = STDOUT, starting_line = 1) : Compiler
Source
files
Source
files=(files : Array(Mismo::File))
Source
log=(log : Logger)
Source
program_out
Source
program_out=(program_out : IO)
Source
target_stage
Source
target_stage=(target_stage : Stage)
Source
zig_dir
Source
zig_dir=(zig_dir : Path)
Source

Nested types