Catalogue: add tree builder for tree_print and editor for tree_edit