498 |
message += name_[ilooka_]; |
message += name_[ilooka_]; |
499 |
{ |
{ |
500 |
int count = 0; |
int count = 0; |
501 |
for (int x = (n_ < 0 ? -n_ : 0); x < ntokens_ + nnts_; ++x) |
/* Start YYX at -YYN if negative to avoid negative indexes in |
502 |
|
YYCHECK. */ |
503 |
|
int xbegin = n_ < 0 ? -n_ : 0; |
504 |
|
/* Stay within bounds of both yycheck and yytname. */ |
505 |
|
int checklim = last_ - n_; |
506 |
|
int xend = checklim < ntokens_ ? checklim : ntokens_; |
507 |
|
for (int x = xbegin; x < xend; ++x) |
508 |
if (check_[x + n_] == x && x != terror_) |
if (check_[x + n_] == x && x != terror_) |
509 |
++count; |
++count; |
510 |
if (count < 5) |
if (count < 5) |
511 |
{ |
{ |
512 |
count = 0; |
count = 0; |
513 |
for (int x = (n_ < 0 ? -n_ : 0); x < ntokens_ + nnts_; ++x) |
for (int x = xbegin; x < xend; ++x) |
514 |
if (check_[x + n_] == x && x != terror_) |
if (check_[x + n_] == x && x != terror_) |
515 |
{ |
{ |
516 |
message += (!count++) ? ", expecting " : " or "; |
message += (!count++) ? ", expecting " : " or "; |