From 39e28f01ace285e3e123da093e3d702cae3bd020 Mon Sep 17 00:00:00 2001 From: Luna Date: Sun, 2 Jun 2019 00:03:54 -0300 Subject: [PATCH] chunk: add printing of OP_NOT --- src/chunk.zig | 2 ++ 1 file changed, 2 insertions(+) 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;