This commit is contained in:
2026-04-17 18:51:12 -04:00
parent 2f91e454dd
commit b3f77076d4
20 changed files with 244 additions and 192 deletions
+14 -4
View File
@@ -1,6 +1,10 @@
use crate::{io::CompilerOutput, parser::parse_root};
use crate::{
io::CompilerOutput,
parser::{Node, parse_root},
};
mod io;
mod ir;
mod parser;
fn main() {
@@ -10,9 +14,15 @@ fn main() {
return;
};
let mut output = CompilerOutput::new();
let nodes = parse_root(&path, &mut output);
if let Some(root) = nodes {
print!("{root}");
let root = parse_root(&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());
}