compile functions
This commit is contained in:
@@ -32,6 +32,9 @@ const (
|
||||
OpArray
|
||||
OpHash
|
||||
OpIndex
|
||||
OpCall
|
||||
OpReturnValue
|
||||
OpReturn
|
||||
)
|
||||
|
||||
type Definition struct {
|
||||
@@ -61,6 +64,9 @@ var definitions = map[Opcode]*Definition{
|
||||
OpArray: {"OpArray", []int{2}},
|
||||
OpHash: {"OpHash", []int{2}},
|
||||
OpIndex: {"OpIndex", []int{}},
|
||||
OpCall: {"OpCall", []int{}},
|
||||
OpReturnValue: {"OpReturnValue", []int{}},
|
||||
OpReturn: {"OpReturn", []int{}},
|
||||
}
|
||||
|
||||
func Lookup(op byte) (*Definition, error) {
|
||||
|
||||
Reference in New Issue
Block a user