Finish Chapter 15

Implement a basic VM that is capable of simple math.

Signed-off-by: Daniel Henry <iamdanhenry@gmail.com>
This commit is contained in:
2025-08-21 20:30:02 -05:00
parent cb203282e5
commit 8df0ffb7e5
6 changed files with 152 additions and 0 deletions

View File

@@ -6,6 +6,11 @@
typedef enum {
OP_CONSTANT,
OP_ADD,
OP_SUBTRACT,
OP_MULTIPLY,
OP_DIVIDE,
OP_NEGATE,
OP_RETURN,
} OpCode;