chunk: add printing of OP_NOT
This commit is contained in:
parent
c5d704a34f
commit
39e28f01ac
1 changed files with 2 additions and 0 deletions
|
@ -176,6 +176,8 @@ pub const Chunk = struct {
|
|||
return try simpleInstruction(stdout, "OP_TRUE", index);
|
||||
} else if (instruction == OpCode.False) {
|
||||
return try simpleInstruction(stdout, "OP_FALSE", index);
|
||||
} else if (instruction == OpCode.Not) {
|
||||
return try simpleInstruction(stdout, "OP_NOT", index);
|
||||
} else {
|
||||
try stdout.print("Unknown opcode: {}\n", instruction);
|
||||
return index + 1;
|
||||
|
|
Loading…
Reference in a new issue