|
@@ -74,6 +74,9 @@ const (
|
|
|
OpEqual // ==
|
|
OpEqual // ==
|
|
|
OpNotEqual // !=
|
|
OpNotEqual // !=
|
|
|
OpGreaterThan // >
|
|
OpGreaterThan // >
|
|
|
|
|
+
|
|
|
|
|
+ OpMinus
|
|
|
|
|
+ OpBang
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
// Definition For debugging and testing purposes
|
|
// Definition For debugging and testing purposes
|
|
@@ -100,6 +103,8 @@ var definitions = map[Opcode]*Definition{
|
|
|
OpEqual: {"OpEqual", []int{}},
|
|
OpEqual: {"OpEqual", []int{}},
|
|
|
OpNotEqual: {"OpNotEqual", []int{}},
|
|
OpNotEqual: {"OpNotEqual", []int{}},
|
|
|
OpGreaterThan: {"OpGreaterThan", []int{}},
|
|
OpGreaterThan: {"OpGreaterThan", []int{}},
|
|
|
|
|
+ OpMinus: {"OpMinus", []int{}},
|
|
|
|
|
+ OpBang: {"OpBang", []int{}},
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func Lookup(op byte) (*Definition, error) {
|
|
func Lookup(op byte) (*Definition, error) {
|