extern crate wood; use std::error::Error; use wood::parse_multiline_termpose; fn main() -> Result<(), Box> { let w = parse_multiline_termpose(std::fs::read_to_string("longterm.term")?.as_str())?; std::fs::write("big curvy.sli", &wood::indented_woodslist(&w)).unwrap(); //assert that the first term in the file has 14 children assert_eq!(w.head()?.tail().len(), 14); Ok(()) }