Helper class to build stack vm bytecode
Class is only available through StackMachine.build method
Constructors
new
Create a builder with an empty set of instructions
SourceInstance methods
build
Return the built instructions
Sourceop_add
Opcode helper method for adding an add instruction
Sourceop_div
Opcode helper method for adding a div instruction
Sourceop_eq
Opcode helper method for adding a eq instruction
Sourceop_ge
Opcode helper method for adding a ge instruction
Sourceop_gt
Opcode helper method for adding a gt instruction
Sourceop_jmpf(x : Int32 | Symbol)
Opcode helper method for creating a jmpf instruction
Sourceop_jmpf_backward(x : Int32)
Opcode helper method for creating a jmpf_backward instruction
Sourceop_jmpf_forward(x : Int32)
Opcode helper method for creating a jmpf_forward instruction
Sourceop_jmpt(x : Int32 | Symbol)
Opcode helper method for creating a jmpt instruction
Sourceop_jmpt_backward(x : Int32)
Opcode helper method for creating a jmpt_backward instruction
Sourceop_jmpt_forward(x : Int32)
Opcode helper method for creating a jmpt_forward instruction
Sourceop_jump(x : Int32 | Symbol)
Opcode helper method for creating a jump instruction
Sourceop_jump_backward(x : Int32)
Opcode helper method for creating a jump_backward instruction
Sourceop_jump_forward(x : Int32)
Opcode helper method for creating a jump_forward instruction
Sourceop_label(x : Symbol)
Opcode helper method for creating a label instruction
Sourceop_le
Opcode helper method for adding a le instruction
Sourceop_load(x : Int32)
Opcode helper method for creating a load instruction
Sourceop_lt
Opcode helper method for adding a lt instruction
Sourceop_mul
Opcode helper method for adding a mul instruction
Sourceop_ne
Opcode helper method for adding a ne instruction
Sourceop_num(n : Int32)
Opcode helper method for adding an integer instruction
Sourceop_store(x : Int32)
Opcode helper method for creating a store instruction
Sourceop_sub
Opcode helper method for adding a sub instruction
Source