fixed shift reduce parser to reduce current token also