array literals
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user