It is now possible to test the serializer on arbitrary bytecode files
parent
68a6e2e83b
commit
5fa463d9b4
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue