struct Compilers::MCompiler
- Compilers::MCompiler
- Struct
- Value
- Object
Defined in:
compiler.crConstructors
Instance Method Summary
- #bytecode : Bytecode
- #compile(program : Program)
- #current_scope : CompilationScope
- #emit(op : Opcode) : Int32
- #emit(op : Opcode, *operands : Int32) : Int32
- #enter_scope
- #leave_scope
- #scope_index : Int32
- #symbol_table : Symbols::SymbolTable
- #symbol_table=(symbol_table : Symbols::SymbolTable)
Instance methods inherited from class Object
also(& : self | Nil -> _) : self
also,
or_else(alternative)
or_else
Constructor Detail
def self.new(constants : Array(Objects::MObject) = [] of MObject, symbol_table : Symbols::SymbolTable = SymbolTable.new)
#