From 5fa463d9b4575c8c6cd4bd941cc2cb112ec273b8 Mon Sep 17 00:00:00 2001 From: Mattia Giambirtone Date: Sat, 22 Jul 2023 16:19:52 +0200 Subject: [PATCH] It is now possible to test the serializer on arbitrary bytecode files --- src/main.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.nim b/src/main.nim index 8012e8f..643c833 100644 --- a/src/main.nim +++ b/src/main.nim @@ -101,6 +101,7 @@ proc runFile(f: string, fromString: bool = false, dump: bool = true, breakpoints stderr.styledWriteLine(fgRed, styleBright, "Error: ", fgDefault, "the selected backend is not implemented yet") elif backend == PeonBackend.Bytecode: serialized = serializer.loadFile(f) + compiled = serialized.chunk if debugCompiler: styledEcho fgCyan, "Compilation step:\n" debugger.disassembleChunk(serialized.chunk, f)