Wire together initial label sanitization pass
This commit is contained in:
+5
-1
@@ -5,7 +5,7 @@ mod preprocess;
|
||||
mod world;
|
||||
|
||||
use anyhow::anyhow;
|
||||
use labels::parse::print_labels;
|
||||
use labels::{parse::print_labels, process::process_labels};
|
||||
use preprocess::eval::Context;
|
||||
use std::{env, error::Error, fs, path::PathBuf, process::exit};
|
||||
use world::World;
|
||||
@@ -55,6 +55,10 @@ fn main() -> Result<(), Box<dyn Error>> {
|
||||
}
|
||||
}
|
||||
|
||||
for mut board in &mut world.boards {
|
||||
process_labels(&mut board);
|
||||
}
|
||||
|
||||
// Try to write a modified world file
|
||||
fs::write("tmp.zzt", world.to_bytes()?)?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user