wood 0.10.1

A robust material that is simple to work: Parsing, serialization and deserialization for termpose and woodslist
Documentation
1
2
3
4
5
6
7
8
9
10
11
extern crate wood;
use std::error::Error;
use wood::parse_multiline_termpose;

fn main() -> Result<(), Box<dyn Error>> {
    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(())
}