This commit is contained in:
2026-04-17 01:49:43 -04:00
parent e5ae506a84
commit 2f91e454dd
16 changed files with 268 additions and 401 deletions
+4 -4
View File
@@ -1,4 +1,4 @@
use crate::{io::CompilerOutput, parser::Nodes};
use crate::{io::CompilerOutput, parser::parse_root};
mod io;
mod parser;
@@ -10,9 +10,9 @@ fn main() {
return;
};
let mut output = CompilerOutput::new();
let nodes = Nodes::parse_root(&path, &mut output);
if let Some((nodes, root)) = nodes {
print!("{}", root.dsp(&nodes));
let nodes = parse_root(&path, &mut output);
if let Some(root) = nodes {
print!("{root}");
}
output.write(&mut std::io::stdout());
}