Once the bocage has an ordering, the parses trees can be iterated. Marpa’s parse tree iterators iterate the parse trees contained in a bocage object. In Libmarpa, “parse tree iterators” are usually just called trees.
To create a tree, use the
A newly created tree iterator is positioned before the first parse tree.
When a tree iterator is no longer in use, its memory can be freed
To position a newly created tree iterator at the first parse tree,
Once the tree iterator is positioned at a parse tree,
marpa_t_next() method is used
to position it to the next parse tree.