Null my old friend

This commit is contained in:
Chuck Smith
2024-02-07 16:02:06 -05:00
parent 77401260a2
commit 6ba2d3abe4
5 changed files with 42 additions and 16 deletions

View File

@@ -26,6 +26,7 @@ const (
OpBang
OpJumpNotTruthy
OpJump
OpNull
)
type Definition struct {
@@ -49,6 +50,7 @@ var definitions = map[Opcode]*Definition{
OpBang: {"OpBang", []int{}},
OpJumpNotTruthy: {"OpJumpNotTruthy", []int{2}},
OpJump: {"OpJump", []int{2}},
OpNull: {"OpNull", []int{}},
}
func Lookup(op byte) (*Definition, error) {