indexes
Some checks failed
Build / build (push) Failing after 5m57s
Test / build (push) Failing after 5m41s

This commit is contained in:
Chuck Smith
2024-02-27 16:45:22 -05:00
parent 0a1201f1bc
commit 4185926e3e
5 changed files with 116 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ const (
OpSetGlobal
OpArray
OpHash
OpIndex
)
type Definition struct {
@@ -59,6 +60,7 @@ var definitions = map[Opcode]*Definition{
OpSetGlobal: {"OpSetGlobal", []int{2}},
OpArray: {"OpArray", []int{2}},
OpHash: {"OpHash", []int{2}},
OpIndex: {"OpIndex", []int{}},
}
func Lookup(op byte) (*Definition, error) {