printing the parse tree of input