builtins
Some checks failed
Build / build (push) Failing after 1h2m55s
Test / build (push) Failing after 29m38s

This commit is contained in:
Chuck Smith
2024-03-12 16:35:24 -04:00
parent 1d2c7f0a51
commit e373e9f68a
11 changed files with 354 additions and 125 deletions

View File

@@ -37,6 +37,7 @@ const (
OpReturn
OpGetLocal
OpSetLocal
OpGetBuiltin
)
type Definition struct {
@@ -71,6 +72,7 @@ var definitions = map[Opcode]*Definition{
OpReturn: {"OpReturn", []int{}},
OpGetLocal: {"OpGetLocal", []int{1}},
OpSetLocal: {"OpSetLocal", []int{1}},
OpGetBuiltin: {"OpGetBuiltin", []int{1}},
}
func Lookup(op byte) (*Definition, error) {