array literals
Some checks failed
Build / build (push) Failing after 2m16s
Test / build (push) Failing after 1m46s

This commit is contained in:
Chuck Smith
2024-02-26 15:47:24 -05:00
parent e4bca02235
commit 8721665bc1
5 changed files with 105 additions and 0 deletions

View File

@@ -29,6 +29,7 @@ const (
OpNull
OpGetGlobal
OpSetGlobal
OpArray
)
type Definition struct {
@@ -55,6 +56,7 @@ var definitions = map[Opcode]*Definition{
OpNull: {"OpNull", []int{}},
OpGetGlobal: {"OpGetGlobal", []int{2}},
OpSetGlobal: {"OpSetGlobal", []int{2}},
OpArray: {"OpArray", []int{2}},
}
func Lookup(op byte) (*Definition, error) {