Versions in this module Expand all Collapse all v5 v5.0.12 Jul 23, 2026 Changes in this version + func Make(op Opcode, operands ...int) []byte + func ReadOperands(def *Definition, ins Instructions) ([]int, int) + func ReadUint16(ins Instructions) uint16 + func ReadUint8(ins Instructions) uint8 + type Definition struct + Name string + OperandWidths []int + func Lookup(op byte) (*Definition, error) + type Instructions []byte + func (ins Instructions) String() string + type Opcode byte + const OpAdd + const OpAnd + const OpArray + const OpAssignName + const OpBang + const OpBreak + const OpCall + const OpCallBlock + const OpClosure + const OpConstant + const OpContinue + const OpCurrentClosure + const OpDiv + const OpEqual + const OpFalse + const OpFor + const OpGetBuiltin + const OpGetFree + const OpGetGlobal + const OpGetLocal + const OpGetName + const OpGetNameOrNull + const OpGetProperty + const OpGreaterEqual + const OpGreaterThan + const OpHash + const OpHole + const OpIndex + const OpJump + const OpJumpNotTruthy + const OpMatches + const OpMinus + const OpMul + const OpNotEqual + const OpNull + const OpOr + const OpPop + const OpRenderTemplate + const OpReturn + const OpReturnValue + const OpSetGlobal + const OpSetIndex + const OpSetLocal + const OpSetName + const OpSub + const OpTrue + const OpWrite + const OpWriteCall + const OpWriteConstant + const OpWriteGlobal + const OpWriteGlobalProperty + const OpWriteHTML + const OpWriteLocal + const OpWriteLocalProperty + const OpWriteName + const OpWriteNameCall + const OpWriteNameOrNull + const OpWriteNameProperty + const OpWriteString