struct

Compilers::MCompiler

Inherits Struct / Value / Object

Constructors

new(constants : Array(Objects::MObject) = [] of MObject, symbol_table : Symbols::SymbolTable = SymbolTable.new)
Source

Instance methods

bytecode
Source
compile(program : Program)
Source
current_scope
Source
emit(op : Opcode) : Int32
Source
emit(op : Opcode, *operands : Int32) : Int32
Source
enter_scope
Source
leave_scope
Source
scope_index
Source
symbol_table
Source
symbol_table=(symbol_table : Symbols::SymbolTable)
Source