enum

Code::Opcode

Inherits Enum / Comparable / Value / Object

Constants

OpConstant = 0
OpAdd = 1
OpPop = 2
OpSub = 3
OpMul = 4
OpDiv = 5
OpTrue = 6
OpFalse = 7
OpEqual = 8
OpNotEqual = 9
OpGreaterThan = 10
OpMinus = 11
OpBang = 12
OpJumpNotTruthy = 13
OpJump = 14
OpNull = 15
OpGetGlobal = 16
OpSetGlobal = 17
OpArray = 18
OpHash = 19
OpIndex = 20
OpCall = 21
OpReturnValue = 22
OpReturn = 23
OpGetLocal = 24
OpSetLocal = 25
OpGetBuiltin = 26
OpClosure = 27
OpGetFree = 28
OpCurrentClosure = 29

Instance methods

op_add?

Returns true if this enum value equals OpAdd

Source
op_array?

Returns true if this enum value equals OpArray

Source
op_bang?

Returns true if this enum value equals OpBang

Source
op_call?

Returns true if this enum value equals OpCall

Source
op_closure?

Returns true if this enum value equals OpClosure

Source
op_constant?

Returns true if this enum value equals OpConstant

Source
op_current_closure?

Returns true if this enum value equals OpCurrentClosure

Source
op_div?

Returns true if this enum value equals OpDiv

Source
op_equal?

Returns true if this enum value equals OpEqual

Source
op_false?

Returns true if this enum value equals OpFalse

Source
op_get_builtin?

Returns true if this enum value equals OpGetBuiltin

Source
op_get_free?

Returns true if this enum value equals OpGetFree

Source
op_get_global?

Returns true if this enum value equals OpGetGlobal

Source
op_get_local?

Returns true if this enum value equals OpGetLocal

Source
op_greater_than?

Returns true if this enum value equals OpGreaterThan

Source
op_hash?

Returns true if this enum value equals OpHash

Source
op_index?

Returns true if this enum value equals OpIndex

Source
op_jump?

Returns true if this enum value equals OpJump

Source
op_jump_not_truthy?

Returns true if this enum value equals OpJumpNotTruthy

Source
op_minus?

Returns true if this enum value equals OpMinus

Source
op_mul?

Returns true if this enum value equals OpMul

Source
op_not_equal?

Returns true if this enum value equals OpNotEqual

Source
op_null?

Returns true if this enum value equals OpNull

Source
op_pop?

Returns true if this enum value equals OpPop

Source
op_return?

Returns true if this enum value equals OpReturn

Source
op_return_value?

Returns true if this enum value equals OpReturnValue

Source
op_set_global?

Returns true if this enum value equals OpSetGlobal

Source
op_set_local?

Returns true if this enum value equals OpSetLocal

Source
op_sub?

Returns true if this enum value equals OpSub

Source
op_true?

Returns true if this enum value equals OpTrue

Source