Change assignment into expressions
Some checks failed
Test / build (push) Waiting to run
Build / build (push) Has been cancelled

This commit is contained in:
Chuck Smith
2024-03-19 20:30:30 -04:00
parent aa0582ed72
commit be81b9a6d6
12 changed files with 478 additions and 153 deletions

View File

@@ -42,7 +42,8 @@ const (
OpSetGlobal
OpArray
OpHash
OpIndex
OpGetItem
OpSetItem
OpCall
OpReturn
OpGetLocal
@@ -83,7 +84,8 @@ var definitions = map[Opcode]*Definition{
OpSetGlobal: {"OpSetGlobal", []int{2}},
OpArray: {"OpArray", []int{2}},
OpHash: {"OpHash", []int{2}},
OpIndex: {"OpIndex", []int{}},
OpGetItem: {"OpGetItem", []int{}},
OpSetItem: {"OpSetItem", []int{}},
OpCall: {"OpCall", []int{1}},
OpReturn: {"OpReturn", []int{}},
OpGetLocal: {"OpGetLocal", []int{1}},