Simplifying the parse tree.