prefix expressions

This commit is contained in:
Chuck Smith
2024-02-07 10:51:09 -05:00
parent dcc869a6e2
commit cff4375649
5 changed files with 84 additions and 0 deletions

View File

@@ -22,6 +22,8 @@ const (
OpEqual
OpNotEqual
OpGreaterThan
OpMinus
OpBang
)
type Definition struct {
@@ -41,6 +43,8 @@ var definitions = map[Opcode]*Definition{
OpEqual: {"OpEqual", []int{}},
OpNotEqual: {"OpNotEqual", []int{}},
OpGreaterThan: {"OpGreaterThan", []int{}},
OpMinus: {"OpMinus", []int{}},
OpBang: {"OpBang", []int{}},
}
func Lookup(op byte) (*Definition, error) {