parser for print statements