bitwise operators and boolean operators
This commit is contained in:
16
code/code.go
16
code/code.go
@@ -26,6 +26,13 @@ const (
|
||||
OpMul
|
||||
OpDiv
|
||||
OpMod
|
||||
OpOr
|
||||
OpAnd
|
||||
OpNot
|
||||
OpBitwiseOR
|
||||
OpBitwiseXOR
|
||||
OpBitwiseAND
|
||||
OpBitwiseNOT
|
||||
OpTrue
|
||||
OpFalse
|
||||
OpEqual
|
||||
@@ -33,7 +40,6 @@ const (
|
||||
OpGreaterThan
|
||||
OpGreaterThanEqual
|
||||
OpMinus
|
||||
OpBang
|
||||
OpJumpNotTruthy
|
||||
OpJump
|
||||
OpNull
|
||||
@@ -71,6 +77,13 @@ var definitions = map[Opcode]*Definition{
|
||||
OpMul: {"OpMul", []int{}},
|
||||
OpDiv: {"OpDiv", []int{}},
|
||||
OpMod: {"OpMod", []int{}},
|
||||
OpOr: {"OpOr", []int{}},
|
||||
OpAnd: {"OpAnd", []int{}},
|
||||
OpNot: {"OpNot", []int{}},
|
||||
OpBitwiseOR: {"OpBitwiseOR", []int{}},
|
||||
OpBitwiseXOR: {"OpBitwiseXOR", []int{}},
|
||||
OpBitwiseAND: {"OpBitwiseAND", []int{}},
|
||||
OpBitwiseNOT: {"OpBitwiseNOT", []int{}},
|
||||
OpTrue: {"OpTrue", []int{}},
|
||||
OpFalse: {"OpFalse", []int{}},
|
||||
OpEqual: {"OpEqual", []int{}},
|
||||
@@ -78,7 +91,6 @@ var definitions = map[Opcode]*Definition{
|
||||
OpGreaterThan: {"OpGreaterThan", []int{}},
|
||||
OpGreaterThanEqual: {"OpGreaterThanEqual", []int{}},
|
||||
OpMinus: {"OpMinus", []int{}},
|
||||
OpBang: {"OpBang", []int{}},
|
||||
OpJumpNotTruthy: {"OpJumpNotTruthy", []int{2}},
|
||||
OpJump: {"OpJump", []int{2}},
|
||||
OpNull: {"OpNull", []int{}},
|
||||
|
||||
Reference in New Issue
Block a user