Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadOperands ¶
func ReadOperands(def *Definition, ins Instructions) ([]int, int)
func ReadUint16 ¶
func ReadUint16(ins Instructions) uint16
func ReadUint8 ¶
func ReadUint8(ins Instructions) uint8
Types ¶
type Definition ¶
func Lookup ¶
func Lookup(op byte) (*Definition, error)
type Instructions ¶
type Instructions []byte
func (Instructions) String ¶
func (ins Instructions) String() string
type Opcode ¶
type Opcode byte
const ( LoadConstant Opcode = iota LoadBuiltin AssignGlobal AssignLocal LoadGlobal BindGlobal LoadLocal BindLocal LoadFree LoadModule LoadSelf LoadTrue LoadFalse LoadNull GetItem SetItem MakeArray MakeHash MakeClosure Pop Add Sub Mul Div Mod Or And Not BitwiseOR BitwiseXOR BitwiseAND BitwiseNOT LeftShift RightShift Equal NotEqual GreaterThan GreaterThanEqual Minus JumpIfFalse Jump Call Return ReturnValue Halt )
Click to show internal directories.
Click to hide internal directories.