struct Compilers::MCompiler

Defined in:

compiler.cr

Constructors

Instance Method Summary

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) #

[View source]

Instance Method Detail

def bytecode : Bytecode #

[View source]
def compile(program : Program) #

[View source]
def current_scope : CompilationScope #

[View source]
def emit(op : Opcode) : Int32 #

[View source]
def emit(op : Opcode, *operands : Int32) : Int32 #

[View source]
def enter_scope #

[View source]
def leave_scope #

[View source]
def scope_index : Int32 #

[View source]
def symbol_table : Symbols::SymbolTable #

[View source]
def symbol_table=(symbol_table : Symbols::SymbolTable) #

[View source]