Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeInstruction ¶
Types ¶
type Instructions ¶
type Instructions []byte
func (Instructions) String ¶
func (instructions Instructions) String() string
type Opcode ¶
type Opcode byte
const ( OpConstant Opcode = iota OpAdd OpSub OpMul OpDiv OpTrue OpFalse OpEqual OpNotEqual OpGreaterThan OpAnd OpOr OpMinus OpBang OpPop OpGotoNotTruthy // goto only if value on top of the stack is not truthy OpGoto OpNull OpGetGlobal OpSetGlobal OpGetLocal OpSetLocal OpGetStdlib OpArray OpHashMap OpIndex OpCall OpReturnValue OpReturn )
Click to show internal directories.
Click to hide internal directories.