1 |
/* A Bison parser, made by GNU Bison 1.75e. */ |
/* A Bison parser, made by GNU Bison 1.75f. */ |
2 |
|
|
3 |
/* Skeleton parser for Yacc-like parsing with Bison, |
/* Skeleton parser for Yacc-like parsing with Bison, |
4 |
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software Foundation, Inc. |
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software Foundation, Inc. |
221 |
assoc assoc; |
assoc assoc; |
222 |
uniqstr uniqstr; |
uniqstr uniqstr; |
223 |
} YYSTYPE; |
} YYSTYPE; |
224 |
/* Line 192 of yacc.c. */ |
/* Line 191 of yacc.c. */ |
225 |
#line 225 "parse-gram.c" |
#line 225 "parse-gram.c" |
226 |
# define yystype YYSTYPE /* obsolescent; will be withdrawn */ |
# define yystype YYSTYPE /* obsolescent; will be withdrawn */ |
227 |
# define YYSTYPE_IS_DECLARED 1 |
# define YYSTYPE_IS_DECLARED 1 |
245 |
/* Copy the second part of user declarations. */ |
/* Copy the second part of user declarations. */ |
246 |
|
|
247 |
|
|
248 |
/* Line 215 of yacc.c. */ |
/* Line 214 of yacc.c. */ |
249 |
#line 249 "parse-gram.c" |
#line 249 "parse-gram.c" |
250 |
|
|
251 |
#if ! defined (yyoverflow) || YYERROR_VERBOSE |
#if ! defined (yyoverflow) || YYERROR_VERBOSE |
1032 |
YYLTYPE yylsa[YYINITDEPTH]; |
YYLTYPE yylsa[YYINITDEPTH]; |
1033 |
YYLTYPE *yyls = yylsa; |
YYLTYPE *yyls = yylsa; |
1034 |
YYLTYPE *yylsp; |
YYLTYPE *yylsp; |
1035 |
|
YYLTYPE *yylerrsp; |
1036 |
|
|
1037 |
#define YYPOPSTACK (yyvsp--, yyssp--, yylsp--) |
#define YYPOPSTACK (yyvsp--, yyssp--, yylsp--) |
1038 |
|
|
1335 |
|
|
1336 |
case 23: |
case 23: |
1337 |
#line 192 "parse-gram.y" |
#line 192 "parse-gram.y" |
1338 |
{ report_flag = 1; } |
{ report_flag = report_states; } |
1339 |
break; |
break; |
1340 |
|
|
1341 |
case 24: |
case 24: |
1611 |
} |
} |
1612 |
|
|
1613 |
/* Line 991 of yacc.c. */ |
/* Line 991 of yacc.c. */ |
1614 |
#line 1613 "parse-gram.c" |
#line 1614 "parse-gram.c" |
1615 |
|
|
1616 |
yyvsp -= yylen; |
yyvsp -= yylen; |
1617 |
yyssp -= yylen; |
yyssp -= yylen; |
1695 |
yyerror ("syntax error"); |
yyerror ("syntax error"); |
1696 |
} |
} |
1697 |
|
|
1698 |
|
yylerrsp = yylsp; |
1699 |
|
|
1700 |
if (yyerrstatus == 3) |
if (yyerrstatus == 3) |
1701 |
{ |
{ |
1702 |
/* If just tried and failed to reuse lookahead token after an |
/* If just tried and failed to reuse lookahead token after an |
1720 |
YYDSYMPRINTF ("Error: discarding", yytoken, &yylval, &yylloc); |
YYDSYMPRINTF ("Error: discarding", yytoken, &yylval, &yylloc); |
1721 |
yydestruct (yytoken, &yylval, &yylloc); |
yydestruct (yytoken, &yylval, &yylloc); |
1722 |
yychar = YYEMPTY; |
yychar = YYEMPTY; |
1723 |
|
*++yylerrsp = yylloc; |
1724 |
} |
} |
1725 |
|
|
1726 |
/* Else will try to reuse lookahead token after shifting the error |
/* Else will try to reuse lookahead token after shifting the error |
1727 |
token. */ |
token. */ |
1728 |
goto yyerrlab1; |
goto yyerrlab2; |
1729 |
|
|
1730 |
|
|
1731 |
/*----------------------------------------------------. |
/*----------------------------------------------------. |
1732 |
| yyerrlab1 -- error raised explicitly by an action. | |
| yyerrlab1 -- error raised explicitly by an action. | |
1733 |
`----------------------------------------------------*/ |
`----------------------------------------------------*/ |
1734 |
yyerrlab1: |
yyerrlab1: |
1735 |
|
|
1736 |
|
/* Suppress GCC warning that yyerrlab1 is unused when no action |
1737 |
|
invokes YYERROR. */ |
1738 |
|
#if defined (__GNUC_MINOR__) && 2093 <= (__GNUC__ * 1000 + __GNUC_MINOR__) |
1739 |
|
__attribute__ ((__unused__)) |
1740 |
|
#endif |
1741 |
|
|
1742 |
|
yylerrsp = yylsp; |
1743 |
|
*++yylerrsp = yyloc; |
1744 |
|
goto yyerrlab2; |
1745 |
|
|
1746 |
|
|
1747 |
|
/*---------------------------------------------------------------. |
1748 |
|
| yyerrlab2 -- pop states until the error token can be shifted. | |
1749 |
|
`---------------------------------------------------------------*/ |
1750 |
|
yyerrlab2: |
1751 |
yyerrstatus = 3; /* Each real token shifted decrements this. */ |
yyerrstatus = 3; /* Each real token shifted decrements this. */ |
1752 |
|
|
1753 |
for (;;) |
for (;;) |
1782 |
YYDPRINTF ((stderr, "Shifting error token, ")); |
YYDPRINTF ((stderr, "Shifting error token, ")); |
1783 |
|
|
1784 |
*++yyvsp = yylval; |
*++yyvsp = yylval; |
1785 |
*++yylsp = yylloc; |
YYLLOC_DEFAULT (yyloc, yylsp, (yylerrsp - yylsp)); |
1786 |
|
*++yylsp = yyloc; |
1787 |
|
|
1788 |
yystate = yyn; |
yystate = yyn; |
1789 |
goto yynewstate; |
goto yynewstate; |