aboutsummaryrefslogtreecommitdiff
path: root/chunk.d
diff options
context:
space:
mode:
authorBen Winston2023-05-20 22:54:07 -0400
committerBen Winston2023-05-20 22:54:07 -0400
commit2ad2be250a68e907b308b120b934edcbfc99ae6e (patch)
tree54cd9308286cb4a368a8f7eb11ad9011c74ac58a /chunk.d
parent38dc63a67879a42f208b5642a8590e1192e8e2e5 (diff)
block scope and local variables (not really working)
Diffstat (limited to 'chunk.d')
-rw-r--r--chunk.d4
1 files changed, 4 insertions, 0 deletions
diff --git a/chunk.d b/chunk.d
index daced26..571cf25 100644
--- a/chunk.d
+++ b/chunk.d
@@ -38,8 +38,12 @@ enum OpCode {
OP_RETURN,
OP_CONSTANT,
OP_DEFINE_GLOBAL,
+ OP_GET_LOCAL,
+ OP_SET_LOCAL,
OP_GET_GLOBAL,
+ OP_SET_GLOBAL,
OP_POP,
+ OP_POP_SCOPE,
OP_SUBTRACT,
OP_NIL,
}