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:
@@ -6,6 +6,11 @@
|
||||
|
||||
typedef enum {
|
||||
OP_CONSTANT,
|
||||
OP_ADD,
|
||||
OP_SUBTRACT,
|
||||
OP_MULTIPLY,
|
||||
OP_DIVIDE,
|
||||
OP_NEGATE,
|
||||
OP_RETURN,
|
||||
} OpCode;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user