Wire together initial label sanitization pass

This commit is contained in:
2025-06-15 12:28:05 -07:00
parent 30e81381ff
commit 68938b5e00
4 changed files with 50 additions and 4 deletions
+5 -1
View File
@@ -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()?)?;