compile functions
Some checks failed
Build / build (push) Failing after 1m57s
Test / build (push) Successful in 2m15s

This commit is contained in:
Chuck Smith
2024-02-28 16:57:01 -05:00
parent 4185926e3e
commit e56fb40f83
5 changed files with 320 additions and 34 deletions

View File

@@ -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) {