Format parse tree.