A Virtual Machine 15
This commit is contained in:
parent
7fa01b4fb9
commit
aba643a88e
7 changed files with 139 additions and 28 deletions
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue