From 0c70372774297272dd14133d48e40e9a3624420a Mon Sep 17 00:00:00 2001 From: Ben Winston Date: Sat, 20 May 2023 15:12:30 -0400 Subject: initial commit of compiler/VM with a couple basic instructions --- chunk.d | 2 ++ 1 file changed, 2 insertions(+) (limited to 'chunk.d') diff --git a/chunk.d b/chunk.d index 56b960d..f6dce01 100644 --- a/chunk.d +++ b/chunk.d @@ -33,10 +33,12 @@ class Function : Obj { enum OpCode { OP_ADD, + OP_LESS, OP_NEGATE, OP_RETURN, OP_CONSTANT, OP_POP, + OP_SUBTRACT, OP_NIL, } -- cgit v1.2.3