This Rust library helps you build an object tree for reo compiler of EO programs.
Create a tree:
use Sot;
let mut sot = empty;
sot.add?; // add a vertex no.1
sot.add?; // add a vertex no.1
sot.bind?; // connect v0 to v1 with label "foo"
sot.put?; // attach data to v1
You can find a vertex by the label of an edge departing from another vertex:
let id = sot.kid?; // returns 1
You can find all kids of a vertex:
let kids: = sot.kids;
You can read the data of a vertex:
let bytes: = sot.data?; // empty if no data written before
Then, you can print the tree:
println!;
Also, you can serialize and deserialize the tree.