diff --git a/src/chunk.zig b/src/chunk.zig index 3f8b2f6..eb002d6 100644 --- a/src/chunk.zig +++ b/src/chunk.zig @@ -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;