diff options
| author | Mel <einebeere@gmail.com> | 2022-07-27 11:01:29 +0000 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2022-07-27 11:01:29 +0000 |
| commit | 22a69393f58abcf3bcf9e7039f994dae78422213 (patch) | |
| tree | 6f88f586bd57d298d54e345a6c4b8d7144a5d2ec /pkg/lang/vm/text/op.go | |
| parent | 45b6f073fe398e820e9e4a82900bc282ee32af9b (diff) | |
| download | jinx-22a69393f58abcf3bcf9e7039f994dae78422213.tar.zst jinx-22a69393f58abcf3bcf9e7039f994dae78422213.zip | |
Implement VM modules and globals
Diffstat (limited to 'pkg/lang/vm/text/op.go')
| -rw-r--r-- | pkg/lang/vm/text/op.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/lang/vm/text/op.go b/pkg/lang/vm/text/op.go index ce53f50..ff3c568 100644 --- a/pkg/lang/vm/text/op.go +++ b/pkg/lang/vm/text/op.go @@ -17,7 +17,9 @@ var ( code.OpPushObject: "push_object", code.OpPushType: "push_type", code.OpDrop: "drop", + code.OpAddGlobal: "add_global", code.OpGetGlobal: "get_global", + code.OpSetGlobal: "set_global", code.OpGetLocal: "get_local", code.OpSetLocal: "set_local", code.OpGetMember: "get_member", |
