249 |
# endif |
# endif |
250 |
#endif |
#endif |
251 |
|
|
252 |
|
#ifndef YYASSERT |
253 |
|
# define YYASSERT(condition) ((void) ((condition) || (abort (), 0))) |
254 |
|
#endif |
255 |
|
|
256 |
#ifndef ATTRIBUTE_UNUSED |
#ifndef ATTRIBUTE_UNUSED |
257 |
# define ATTRIBUTE_UNUSED __attribute__ ((__unused__)) |
# define ATTRIBUTE_UNUSED __attribute__ ((__unused__)) |
258 |
#endif |
#endif |
653 |
s = yyvsp[yylow0].yystate.yypred; |
s = yyvsp[yylow0].yystate.yypred; |
654 |
for (i = yylow0-1; i >= yylow1; i -= 1) |
for (i = yylow0-1; i >= yylow1; i -= 1) |
655 |
{ |
{ |
656 |
if (! s->yyresolved) |
YYASSERT (s->yyresolved); |
|
abort (); |
|
657 |
yyvsp[i].yystate.yyresolved = yytrue; |
yyvsp[i].yystate.yyresolved = yytrue; |
658 |
yyvsp[i].yystate.yysemantics.yysval = s->yysemantics.yysval; |
yyvsp[i].yystate.yysemantics.yysval = s->yysemantics.yysval; |
659 |
yyvsp[i].yystate.yyloc = s->yyloc; |
yyvsp[i].yystate.yyloc = s->yyloc; |
1102 |
{ |
{ |
1103 |
/* Standard special case: single stack. */ |
/* Standard special case: single stack. */ |
1104 |
yyGLRStackItem* rhs = (yyGLRStackItem*) yystack->yytops.yystates[yyk]; |
yyGLRStackItem* rhs = (yyGLRStackItem*) yystack->yytops.yystates[yyk]; |
1105 |
if (yyk != 0) |
YYASSERT (yyk == 0); |
|
abort (); |
|
1106 |
yystack->yynextFree -= yynrhs; |
yystack->yynextFree -= yynrhs; |
1107 |
yystack->yyspaceLeft += yynrhs; |
yystack->yyspaceLeft += yynrhs; |
1108 |
yystack->yytops.yystates[0] = & yystack->yynextFree[-1].yystate; |
yystack->yytops.yystates[0] = & yystack->yynextFree[-1].yystate; |
1119 |
for (yyi = 0; yyi < yynrhs; yyi += 1) |
for (yyi = 0; yyi < yynrhs; yyi += 1) |
1120 |
{ |
{ |
1121 |
yys = yys->yypred; |
yys = yys->yypred; |
1122 |
if (yys == NULL) |
YYASSERT (yys); |
|
abort (); |
|
1123 |
} |
} |
1124 |
yyupdateSplit (yystack, yys); |
yyupdateSplit (yystack, yys); |
1125 |
yystack->yytops.yystates[yyk] = yys; |
yystack->yytops.yystates[yyk] = yys; |
1195 |
0 < yyn; yyn -= 1) |
0 < yyn; yyn -= 1) |
1196 |
{ |
{ |
1197 |
yys = yys->yypred; |
yys = yys->yypred; |
1198 |
if (yys == NULL) |
YYASSERT (yys); |
|
abort (); |
|
1199 |
} |
} |
1200 |
yyupdateSplit (yystack, yys); |
yyupdateSplit (yystack, yys); |
1201 |
yynewLRState = yyLRgotoState (yys->yylrState, yylhsNonterm (yyrule)); |
yynewLRState = yyLRgotoState (yys->yylrState, yylhsNonterm (yyrule)); |
1232 |
{ |
{ |
1233 |
if (yystack->yysplitPoint == NULL) |
if (yystack->yysplitPoint == NULL) |
1234 |
{ |
{ |
1235 |
if (yyk != 0) |
YYASSERT (yyk == 0); |
|
abort (); |
|
1236 |
yystack->yysplitPoint = yystack->yytops.yystates[yyk]; |
yystack->yysplitPoint = yystack->yytops.yystates[yyk]; |
1237 |
} |
} |
1238 |
if (yystack->yytops.yysize >= yystack->yytops.yycapacity) |
if (yystack->yytops.yysize >= yystack->yytops.yycapacity) |
1330 |
YYRESULTTAG yyflag; |
YYRESULTTAG yyflag; |
1331 |
if (0 < yyn) |
if (0 < yyn) |
1332 |
{ |
{ |
1333 |
if (yys->yypred == NULL) |
YYASSERT (yys->yypred); |
|
abort (); |
|
1334 |
yyflag = yyresolveStates (yys->yypred, yyn-1, yystack]b4_user_args[); |
yyflag = yyresolveStates (yys->yypred, yyn-1, yystack]b4_user_args[); |
1335 |
if (yyflag != yyok) |
if (yyflag != yyok) |
1336 |
return yyflag; |
return yyflag; |
1547 |
yyStateNum yystate = yystack->yytops.yystates[yyk]->yylrState; |
yyStateNum yystate = yystack->yytops.yystates[yyk]->yylrState; |
1548 |
YYDPRINTF ((stderr, "Stack %d Entering state %d\n", yyk, yystate)); |
YYDPRINTF ((stderr, "Stack %d Entering state %d\n", yyk, yystate)); |
1549 |
|
|
1550 |
if (yystate == YYFINAL) |
YYASSERT (yystate != YYFINAL); |
1551 |
abort (); |
|
1552 |
if (yyisDefaultedState (yystate)) |
if (yyisDefaultedState (yystate)) |
1553 |
{ |
{ |
1554 |
yyrule = yydefaultAction (yystate); |
yyrule = yydefaultAction (yystate); |