partial traverse of parse tree.