quicksort example, I64.parse, IO.write_file

This commit is contained in:
2025-06-03 16:10:06 +02:00
parent d8f2ff28db
commit c3badb609c
9 changed files with 222 additions and 155 deletions

View File

@@ -44,6 +44,7 @@ fn compile_file(path: String) -> Result<(), ZernError> {
compile_file_to(&mut codegen, filename, source)?;
codegen.emit_epilogue()?;
// TODO
if fs::write("out.s", codegen.get_output()).is_err() {
eprintln!("\x1b[91mERROR\x1b[0m: failed to write to out.s");
process::exit(1);