+ /* If not already recovering from an error, report this error. */
+ if (!errstatus)
+ {
+ ++nerrs;
+
+ // FIXME: Should be #if YYERROR_VERBOSE from here...
+ n = pact_[[state]];
+ if (n > b4_flag && n < b4_last)
+ {
+ message = "parse error, unexpected ";
+ message += name_[[ilooka]];
+ {
+ int count = 0;
+ for (int x = (n < 0 ? -n : 0); x < b4_ntokens + b4_nnts; ++x)
+ if (check_[[x + n]] == x)
+ ++count;
+ if (count < 5)
+ {
+ count = 0;
+ for (int x = (n < 0 ? -n : 0); x < b4_ntokens + b4_nnts; ++x)
+ if (check_[[x + n]] == x)
+ {
+ message += (!count++) ? ", expecting " : " or ";
+ message += name_[[x]];
+ }
+ }
+ }
+ }
+ else
+ // FIXME: to there...
+ message = "parse error";
+ }
+ error_ ();