summaryrefslogtreecommitdiff
path: root/vm.h
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-06-24 20:20:06 +0100
committerubq323 <ubq323@ubq323.website>2024-06-24 20:20:06 +0100
commite9b99a90510309ac4f5d91d4a5138e7a84904057 (patch)
tree9d633feb897bcbbd43da6419882df600f9de5595 /vm.h
parentbc47478d855b08023409dbfc8550958991265c14 (diff)
add local variables and (let) form
Diffstat (limited to 'vm.h')
-rw-r--r--vm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/vm.h b/vm.h
index 74fe506..0d1782d 100644
--- a/vm.h
+++ b/vm.h
@@ -50,6 +50,8 @@ typedef enum {
OP_GETGLOBAL,
OP_SETGLOBAL,
+ OP_GETLOCAL,
+
OP_TRUE,
OP_FALSE,
OP_NIL,
@@ -59,6 +61,7 @@ typedef enum {
OP_REDO,
OP_CALL,
+ OP_ENDSCOPE,
} Op;
int runvm(State *S);