parse tree printer