print all trees

stable
Ivory 2023-06-04 17:36:23 -04:00
parent 9e142003f1
commit a2d373d426
1 changed files with 10 additions and 5 deletions

View File

@ -34,13 +34,18 @@ fn main() {
println!("Computed {} {} for program", trees.len(), pluralize(trees.len(), "tree", "trees"));
let tree = trees[0].borrow();
for tree in trees {
println!("{}", tree);
println!("---");
let program = Program::new(&tree);
println!("{:#?}", program);
println!("---");
}
let program = Program::new(tree);
// let tree = trees[0].borrow();
println!("{:#?}", program);
println!("---");
}
fn pluralize<'a>(n: usize, singular: &'a str, plural: &'a str) -> &'a str {