mirror of
https://github.com/miguelmota/cointop
synced 2024-11-10 13:10:26 +00:00
57 lines
627 B
Go
57 lines
627 B
Go
package vm
|
|
|
|
const (
|
|
OpPush byte = iota
|
|
OpPop
|
|
OpRot
|
|
OpFetch
|
|
OpFetchNilSafe
|
|
OpFetchMap
|
|
OpTrue
|
|
OpFalse
|
|
OpNil
|
|
OpNegate
|
|
OpNot
|
|
OpEqual
|
|
OpEqualInt
|
|
OpEqualString
|
|
OpJump
|
|
OpJumpIfTrue
|
|
OpJumpIfFalse
|
|
OpJumpBackward
|
|
OpIn
|
|
OpLess
|
|
OpMore
|
|
OpLessOrEqual
|
|
OpMoreOrEqual
|
|
OpAdd
|
|
OpSubtract
|
|
OpMultiply
|
|
OpDivide
|
|
OpModulo
|
|
OpExponent
|
|
OpRange
|
|
OpMatches
|
|
OpMatchesConst
|
|
OpContains
|
|
OpStartsWith
|
|
OpEndsWith
|
|
OpIndex
|
|
OpSlice
|
|
OpProperty
|
|
OpPropertyNilSafe
|
|
OpCall
|
|
OpCallFast
|
|
OpMethod
|
|
OpMethodNilSafe
|
|
OpArray
|
|
OpMap
|
|
OpLen
|
|
OpCast
|
|
OpStore
|
|
OpLoad
|
|
OpInc
|
|
OpBegin
|
|
OpEnd // This opcode must be at the end of this list.
|
|
)
|