Tree registry compiler