aboutsummaryrefslogtreecommitdiff
path: root/chunk.d
diff options
context:
space:
mode:
authorBen Winston2023-05-20 15:12:30 -0400
committerBen Winston2023-05-20 15:12:30 -0400
commit0c70372774297272dd14133d48e40e9a3624420a (patch)
tree4e66fb1b97a0fd537a20dca4ddcd26003f83c94d /chunk.d
parent6902cc5abe09da9f6f2d86f22d06684d97cfa9f3 (diff)
initial commit of compiler/VM with a couple basic instructions
Diffstat (limited to 'chunk.d')
-rw-r--r--chunk.d2
1 files changed, 2 insertions, 0 deletions
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,
}