It is now possible to test the serializer on arbitrary bytecode files
This commit is contained in:
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")
|
stderr.styledWriteLine(fgRed, styleBright, "Error: ", fgDefault, "the selected backend is not implemented yet")
|
||||||
elif backend == PeonBackend.Bytecode:
|
elif backend == PeonBackend.Bytecode:
|
||||||
serialized = serializer.loadFile(f)
|
serialized = serializer.loadFile(f)
|
||||||
|
compiled = serialized.chunk
|
||||||
if debugCompiler:
|
if debugCompiler:
|
||||||
styledEcho fgCyan, "Compilation step:\n"
|
styledEcho fgCyan, "Compilation step:\n"
|
||||||
debugger.disassembleChunk(serialized.chunk, f)
|
debugger.disassembleChunk(serialized.chunk, f)
|
||||||
|
|
Loading…
Reference in New Issue