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
extern crate wood;
use wood::{parse_multiline_termpose};
use std::error::Error;

fn main()-> Result<(), Box<dyn Error>> {
    let w = parse_multiline_termpose(std::fs::read_to_string("longterm.term")?.as_str())?;
    //assert that the first term in the file has 14 children
    assert_eq!(w.head()?.tail().len(), 14);
    Ok(())
}