link "../ilib/structs" procedure main() while s := read() do { write(s) a := ltree(s) write(depth(a)) write(stree(a)) b := tcopy(a) if eq(a,b) then write("eq okay") else write("eq failed") if teq(a,b) then write("teq okay") else write("teq failed") every write(stree(visit(a))) } end