class

X::Assembler::Loader

Inherits Reference / Object

Constants

Log = ::Log.for(self)

Constructors

new(engine : Engine::Context, search_roots : Array(String) = ["src/", "lib/", "./"])
Source

Instance methods

aliases
Source
engine
Source
load_file(path : String) : CodeGenerator::CompiledModule

Load a .xasm file from disk

Source
load_module(module_name : String) : CodeGenerator::CompiledModule

Load a module by name (resolves file path automatically)

Source
load_source(source : String, filename : String = "<input>") : CodeGenerator::CompiledModule

Load a single .xasm file from source string

Source
loaded_modules
Source
reload_module(module_name : String, new_source : String) : Bool

Reload a dynamic module

Source
resolver
Source
wire_and_run

Wire all loaded modules into the engine and run

Source
wire_module(compiled : CodeGenerator::CompiledModule)

Wire a single module into the engine

Source