Fixed the shift reduce errors in the grammer using the yacc debugger.