1- /* A Bison parser, made by GNU Bison 3.4.90.26-44cd . */
1+ /* A Bison parser, made by GNU Bison 3.4.91.18-42a6c . */
22
33/* Bison implementation for Yacc-like parsers in C
44
4848#define YYBISON 1
4949
5050/* Bison version. */
51- #define YYBISON_VERSION "3.4.90.26-44cd "
51+ #define YYBISON_VERSION "3.4.91.18-42a6c "
5252
5353/* Skeleton name. */
5454#define YYSKELETON_NAME "yacc.c"
@@ -348,19 +348,30 @@ typedef int yy_state_fast_t;
348348
349349#if defined __GNUC__ && ! defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
350350/* Suppress an incorrect diagnostic about yylval being uninitialized. */
351- # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
352- _Pragma ("GCC diagnostic push") \
353- _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\
351+ # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
352+ _Pragma ("GCC diagnostic push") \
353+ _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") \
354354 _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
355- # define YY_IGNORE_MAYBE_UNINITIALIZED_END \
355+ # define YY_IGNORE_MAYBE_UNINITIALIZED_END \
356356 _Pragma ("GCC diagnostic pop")
357+ # if defined __cplusplus
358+ # define YY_IGNORE_USELESS_CAST_BEGIN \
359+ _Pragma ("GCC diagnostic push") \
360+ _Pragma ("GCC diagnostic ignored \"-Wuseless-cast\"")
361+ # define YY_IGNORE_USELESS_CAST_END \
362+ _Pragma ("GCC diagnostic pop")
363+ # endif
357364#else
358365# define YY_INITIAL_VALUE (Value ) Value
359366#endif
360367#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
361368# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
362369# define YY_IGNORE_MAYBE_UNINITIALIZED_END
363370#endif
371+ #ifndef YY_IGNORE_USELESS_CAST_BEGIN
372+ # define YY_IGNORE_USELESS_CAST_BEGIN
373+ # define YY_IGNORE_USELESS_CAST_END
374+ #endif
364375#ifndef YY_INITIAL_VALUE
365376# define YY_INITIAL_VALUE (Value ) /* Nothing. */
366377#endif
@@ -1410,7 +1421,9 @@ yy_lac (yy_state_t *yyesa, yy_state_t **yyes,
14101421 if (yyesp == yyes_prev )
14111422 {
14121423 yyesp = * yyes ;
1424+ YY_IGNORE_USELESS_CAST_BEGIN
14131425 * yyesp = YY_CAST (yy_state_t , yystate );
1426+ YY_IGNORE_USELESS_CAST_END
14141427 }
14151428 else
14161429 {
@@ -1423,7 +1436,9 @@ yy_lac (yy_state_t *yyesa, yy_state_t **yyes,
14231436 YYDPRINTF ((stderr , "\n" ));
14241437 return 2 ;
14251438 }
1439+ YY_IGNORE_USELESS_CAST_BEGIN
14261440 * ++ yyesp = YY_CAST (yy_state_t , yystate );
1441+ YY_IGNORE_USELESS_CAST_END
14271442 }
14281443 YYDPRINTF ((stderr , " G%d" , yystate ));
14291444 }
@@ -1535,16 +1550,16 @@ yysyntax_error (YYPTRDIFF_T *yymsg_alloc, char **yymsg,
15351550 yy_state_t * yyesa , yy_state_t * * yyes ,
15361551 YYPTRDIFF_T * yyes_capacity , yy_state_t * yyssp , int yytoken )
15371552{
1538- YYPTRDIFF_T yysize0 = yytnamerr (YY_NULLPTR , yytname [yytoken ]);
1539- YYPTRDIFF_T yysize = yysize0 ;
15401553 enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
15411554 /* Internationalized format string. */
15421555 const char * yyformat = YY_NULLPTR ;
1543- /* Arguments of yyformat. */
1556+ /* Arguments of yyformat: reported tokens (one for the "unexpected",
1557+ one per "expected"). */
15441558 char const * yyarg [YYERROR_VERBOSE_ARGS_MAXIMUM ];
1545- /* Number of reported tokens (one for the "unexpected", one per
1546- "expected"). */
1559+ /* Actual size of YYARG. */
15471560 int yycount = 0 ;
1561+ /* Cumulated lengths of YYARG. */
1562+ YYPTRDIFF_T yysize = 0 ;
15481563
15491564 /* There are many possibilities here to consider:
15501565 - If this state is a consistent state with a default action, then
@@ -1569,6 +1584,8 @@ yysyntax_error (YYPTRDIFF_T *yymsg_alloc, char **yymsg,
15691584 if (yytoken != YYEMPTY )
15701585 {
15711586 int yyn = yypact [* yyssp ];
1587+ YYPTRDIFF_T yysize0 = yytnamerr (YY_NULLPTR , yytname [yytoken ]);
1588+ yysize = yysize0 ;
15721589 YYDPRINTF ((stderr , "Constructing syntax error message\n" ));
15731590 yyarg [yycount ++ ] = yytname [yytoken ];
15741591 if (!yypact_value_is_default (yyn ))
@@ -1594,8 +1611,8 @@ yysyntax_error (YYPTRDIFF_T *yymsg_alloc, char **yymsg,
15941611 }
15951612 yyarg [yycount ++ ] = yytname [yyx ];
15961613 {
1597- YYPTRDIFF_T yysize1 = yysize + yytnamerr ( YY_NULLPTR ,
1598- yytname [yyx ]);
1614+ YYPTRDIFF_T yysize1
1615+ = yysize + yytnamerr ( YY_NULLPTR , yytname [yyx ]);
15991616 if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM )
16001617 yysize = yysize1 ;
16011618 else
@@ -1626,7 +1643,9 @@ yysyntax_error (YYPTRDIFF_T *yymsg_alloc, char **yymsg,
16261643 }
16271644
16281645 {
1629- YYPTRDIFF_T yysize1 = yysize + yystrlen (yyformat );
1646+ /* Don't count the "%s"s in the final size, but reserve room for
1647+ the terminator. */
1648+ YYPTRDIFF_T yysize1 = yysize + (yystrlen (yyformat ) - 2 * yycount ) + 1 ;
16301649 if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM )
16311650 yysize = yysize1 ;
16321651 else
@@ -1656,8 +1675,8 @@ yysyntax_error (YYPTRDIFF_T *yymsg_alloc, char **yymsg,
16561675 }
16571676 else
16581677 {
1659- yyp ++ ;
1660- yyformat ++ ;
1678+ ++ yyp ;
1679+ ++ yyformat ;
16611680 }
16621681 }
16631682 return 0 ;
@@ -1857,7 +1876,9 @@ YYLTYPE yylloc = yyloc_default;
18571876yysetstate :
18581877 YYDPRINTF ((stderr , "Entering state %d\n" , yystate ));
18591878 YY_ASSERT (0 <= yystate && yystate < YYNSTATES );
1860- * yyssp = YY_CAST (yy_state_t , yystate );
1879+ YY_IGNORE_USELESS_CAST_BEGIN
1880+ * yyssp = YY_CAST (yy_state_t , yystate );
1881+ YY_IGNORE_USELESS_CAST_END
18611882
18621883 if (yyss + yystacksize - 1 <= yyssp )
18631884#if !defined yyoverflow && !defined YYSTACK_RELOCATE
@@ -1917,8 +1938,10 @@ YYLTYPE yylloc = yyloc_default;
19171938 yyvsp = yyvs + yysize - 1 ;
19181939 yylsp = yyls + yysize - 1 ;
19191940
1941+ YY_IGNORE_USELESS_CAST_BEGIN
19201942 YYDPRINTF ((stderr , "Stack size increased to %ld\n" ,
19211943 YY_CAST (long , yystacksize )));
1944+ YY_IGNORE_USELESS_CAST_END
19221945
19231946 if (yyss + yystacksize - 1 <= yyssp )
19241947 YYABORT ;
0 commit comments