This commit is contained in:
2026-04-18 00:16:03 -04:00
parent b3f77076d4
commit d864adfd05
12 changed files with 167 additions and 38 deletions
+4 -8
View File
@@ -1,11 +1,13 @@
use crate::{
io::CompilerOutput,
parser::{Node, parse_root},
parser::{Node, parse_file},
parser_ir::parse_program,
};
mod io;
mod ir;
mod parser;
mod parser_ir;
fn main() {
let mut args = std::env::args();
@@ -14,15 +16,9 @@ fn main() {
return;
};
let mut output = CompilerOutput::new();
let root = parse_root(&path, &mut output);
let root = parse_file(&path, &mut output);
if let Some(root) = root {
print!("{}", root.new_dsp());
// for item in &root.items {
// output.errors.push(io::CompilerMsg {
// spans: vec![item.span],
// msg: format!("hello"),
// });
// }
}
output.write(&mut std::io::stdout());
}