steal from jai

This commit is contained in:
2026-06-01 22:40:24 -04:00
parent d864adfd05
commit 1d568f8ce3
17 changed files with 231 additions and 84 deletions
+2 -9
View File
@@ -1,8 +1,4 @@
use crate::{
io::CompilerOutput,
parser::{Node, parse_file},
parser_ir::parse_program,
};
use crate::{io::CompilerOutput, parser_ir::parse_program};
mod io;
mod ir;
@@ -16,9 +12,6 @@ fn main() {
return;
};
let mut output = CompilerOutput::new();
let root = parse_file(&path, &mut output);
if let Some(root) = root {
print!("{}", root.new_dsp());
}
let ir = parse_program(&path, &mut output);
output.write(&mut std::io::stdout());
}