Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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 ( OpConstant Opcode = iota OpPop OpAdd OpSub OpMul OpDiv OpMod OpTrue OpFalse OpEqual OpNotEqual OpGreaterThan OpGreaterOrEqual OpMinus OpBang OpJumpNotTruthy OpJump OpNull OpGetGlobal OpSetGlobal OpGetLocal OpSetLocal OpGetFree OpSetFree OpArray OpHash OpIndex OpIndexSet OpCall OpReturnValue OpReturn OpGetBuiltin OpClosure OpMember OpMemberSet OpExport OpScope OpScopeResolve )
Click to show internal directories.
Click to hide internal directories.