modified grammar.g and remove one print at the end of the parsing