stuff
This commit is contained in:
+4
-4
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user