diff options
| author | Mel <einebeere@gmail.com> | 2022-06-02 00:07:20 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-02 00:07:20 +0000 |
| commit | 87d115da565618b2f2f1cbbdcca883bbc0c57e60 (patch) | |
| tree | b962cfd3ba765277e25b67fa2ec39576a1d1f589 /pkg/lang/vm/text | |
| parent | edca72c160967f1918b65c91a40de89ecd8badda (diff) | |
| download | jinx-87d115da565618b2f2f1cbbdcca883bbc0c57e60.tar.zst jinx-87d115da565618b2f2f1cbbdcca883bbc0c57e60.zip | |
OpMod and OpSetLocal for prime test
Diffstat (limited to 'pkg/lang/vm/text')
| -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 e6af940..0d01bdb 100644 --- a/pkg/lang/vm/text/op.go +++ b/pkg/lang/vm/text/op.go @@ -19,6 +19,7 @@ var ( code.OpDrop: "drop", code.OpGetGlobal: "get_global", code.OpGetLocal: "get_local", + code.OpSetLocal: "set_local", code.OpGetMember: "get_member", code.OpSetMember: "set_member", code.OpGetEnv: "get_env", @@ -27,6 +28,7 @@ var ( code.OpAnchorType: "anchor_type", code.OpAdd: "add", code.OpSub: "sub", + code.OpMod: "mod", code.OpIndex: "index", code.OpLte: "lte", code.OpCall: "call", |
