From e9b99a90510309ac4f5d91d4a5138e7a84904057 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Mon, 24 Jun 2024 20:20:06 +0100 Subject: add local variables and (let) form --- vm.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vm.h') 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); -- cgit v1.2.3