From 2ad2be250a68e907b308b120b934edcbfc99ae6e Mon Sep 17 00:00:00 2001 From: Ben Winston Date: Sat, 20 May 2023 22:54:07 -0400 Subject: block scope and local variables (not really working) --- chunk.d | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'chunk.d') 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, } -- cgit v1.2.3