A Virtual Machine 15

This commit is contained in:
nazrin 2025-06-03 19:04:25 +00:00
parent 7fa01b4fb9
commit aba643a88e
7 changed files with 139 additions and 28 deletions

View file

@ -6,8 +6,10 @@ import std.stdio;
import clox.value;
enum OpCode : ubyte{
OP_CONSTANT,
OP_RETURN,
Constant,
Add, Subtract, Multiply, Divide,
Negate,
Return,
}
struct Chunk{