version 1.1.1.3, 2013/07/22 01:32:15
|
version 1.1.1.4, 2013/10/14 08:02:48
|
Line 1
|
Line 1
|
/* A Bison parser, made by GNU Bison 2.3. */ | /* A Bison parser, made by GNU Bison 2.7. */ |
|
|
/* Skeleton implementation for Bison's Yacc-like parsers in C | /* Bison implementation for Yacc-like parsers in C |
| |
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 | Copyright (C) 1984, 1989-1990, 2000-2012 Free Software Foundation, Inc. |
Free Software Foundation, Inc. | |
| This program is free software: you can redistribute it and/or modify |
This program is free software; you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
the Free Software Foundation; either version 2, or (at your option) | the Free Software Foundation, either version 3 of the License, or |
any later version. | (at your option) any later version. |
| |
This program is distributed in the hope that it will be useful, |
This program is distributed in the hope that it will be useful, |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
GNU General Public License for more details. |
GNU General Public License for more details. |
| |
You should have received a copy of the GNU General Public License |
You should have received a copy of the GNU General Public License |
along with this program; if not, write to the Free Software | along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
Foundation, Inc., 51 Franklin Street, Fifth Floor, | |
Boston, MA 02110-1301, USA. */ | |
|
|
/* As a special exception, you may create a larger work that contains |
/* As a special exception, you may create a larger work that contains |
part or all of the Bison parser skeleton and distribute that work |
part or all of the Bison parser skeleton and distribute that work |
Line 29
|
Line 26
|
special exception, which will cause the skeleton and the resulting |
special exception, which will cause the skeleton and the resulting |
Bison output files to be licensed under the GNU General Public |
Bison output files to be licensed under the GNU General Public |
License without this special exception. |
License without this special exception. |
| |
This special exception was added by the Free Software Foundation in |
This special exception was added by the Free Software Foundation in |
version 2.2 of Bison. */ |
version 2.2 of Bison. */ |
|
|
Line 47
|
Line 44
|
#define YYBISON 1 |
#define YYBISON 1 |
|
|
/* Bison version. */ |
/* Bison version. */ |
#define YYBISON_VERSION "2.3" | #define YYBISON_VERSION "2.7" |
|
|
/* Skeleton name. */ |
/* Skeleton name. */ |
#define YYSKELETON_NAME "yacc.c" |
#define YYSKELETON_NAME "yacc.c" |
Line 55
|
Line 52
|
/* Pure parsers. */ |
/* Pure parsers. */ |
#define YYPURE 1 |
#define YYPURE 1 |
|
|
/* Using locations. */ | /* Push parsers. */ |
#define YYLSP_NEEDED 0 | #define YYPUSH 0 |
|
|
|
/* Pull parsers. */ |
|
#define YYPULL 1 |
|
|
|
|
/* Substitute the variable and function names. */ |
/* Substitute the variable and function names. */ |
#define yyparse zendparse | #define yyparse zendparse |
#define yylex zendlex | #define yylex zendlex |
#define yyerror zenderror | #define yyerror zenderror |
#define yylval zendlval | #define yylval zendlval |
#define yychar zendchar | #define yychar zendchar |
#define yydebug zenddebug | #define yydebug zenddebug |
#define yynerrs zendnerrs | #define yynerrs zendnerrs |
|
|
|
/* Copy the first part of user declarations. */ |
|
|
|
|
|
/* |
|
+----------------------------------------------------------------------+ |
|
| Zend Engine | |
|
+----------------------------------------------------------------------+ |
|
| Copyright (c) 1998-2013 Zend Technologies Ltd. (http://www.zend.com) | |
|
+----------------------------------------------------------------------+ |
|
| This source file is subject to version 2.00 of the Zend license, | |
|
| that is bundled with this package in the file LICENSE, and is | |
|
| available through the world-wide-web at the following url: | |
|
| http://www.zend.com/license/2_00.txt. | |
|
| If you did not receive a copy of the Zend license and are unable to | |
|
| obtain it through the world-wide-web, please send a note to | |
|
| license@zend.com so we can mail you a copy immediately. | |
|
+----------------------------------------------------------------------+ |
|
| Authors: Andi Gutmans <andi@zend.com> | |
|
| Zeev Suraski <zeev@zend.com> | |
|
+----------------------------------------------------------------------+ |
|
*/ |
|
|
|
/* $Id$ */ |
|
|
|
/* |
|
* LALR shift/reduce conflicts and how they are resolved: |
|
* |
|
* - 2 shift/reduce conflicts due to the dangling elseif/else ambiguity. Solved by shift. |
|
* |
|
*/ |
|
|
|
|
|
#include "zend_compile.h" |
|
#include "zend.h" |
|
#include "zend_list.h" |
|
#include "zend_globals.h" |
|
#include "zend_API.h" |
|
#include "zend_constants.h" |
|
|
|
#define YYSIZE_T size_t |
|
#define yytnamerr zend_yytnamerr |
|
static YYSIZE_T zend_yytnamerr(char*, const char*); |
|
|
|
#define YYERROR_VERBOSE |
|
#define YYSTYPE znode |
|
|
|
|
|
|
|
|
|
# ifndef YY_NULL |
|
# if defined __cplusplus && 201103L <= __cplusplus |
|
# define YY_NULL nullptr |
|
# else |
|
# define YY_NULL 0 |
|
# endif |
|
# endif |
|
|
|
/* Enabling verbose error messages. */ |
|
#ifdef YYERROR_VERBOSE |
|
# undef YYERROR_VERBOSE |
|
# define YYERROR_VERBOSE 1 |
|
#else |
|
# define YYERROR_VERBOSE 0 |
|
#endif |
|
|
|
/* In a future release of Bison, this section will be replaced |
|
by #include "zend_language_parser.h". */ |
|
#ifndef YY_ZEND_ZEND_ZEND_LANGUAGE_PARSER_H_INCLUDED |
|
# define YY_ZEND_ZEND_ZEND_LANGUAGE_PARSER_H_INCLUDED |
|
/* Enabling traces. */ |
|
#ifndef YYDEBUG |
|
# define YYDEBUG 0 |
|
#endif |
|
#if YYDEBUG |
|
extern int zenddebug; |
|
#endif |
|
/* "%code requires" blocks. */ |
|
|
|
|
|
#ifdef ZTS |
|
# define YYPARSE_PARAM tsrm_ls |
|
# define YYLEX_PARAM tsrm_ls |
|
#endif |
|
|
|
|
|
|
|
|
/* Tokens. */ |
/* Tokens. */ |
#ifndef YYTOKENTYPE |
#ifndef YYTOKENTYPE |
# define YYTOKENTYPE |
# define YYTOKENTYPE |
Line 336
|
Line 423
|
|
|
|
|
|
|
|
|
/* Copy the first part of user declarations. */ |
|
|
|
|
|
/* |
|
+----------------------------------------------------------------------+ |
|
| Zend Engine | |
|
+----------------------------------------------------------------------+ |
|
| Copyright (c) 1998-2013 Zend Technologies Ltd. (http://www.zend.com) | |
|
+----------------------------------------------------------------------+ |
|
| This source file is subject to version 2.00 of the Zend license, | |
|
| that is bundled with this package in the file LICENSE, and is | |
|
| available through the world-wide-web at the following url: | |
|
| http://www.zend.com/license/2_00.txt. | |
|
| If you did not receive a copy of the Zend license and are unable to | |
|
| obtain it through the world-wide-web, please send a note to | |
|
| license@zend.com so we can mail you a copy immediately. | |
|
+----------------------------------------------------------------------+ |
|
| Authors: Andi Gutmans <andi@zend.com> | |
|
| Zeev Suraski <zeev@zend.com> | |
|
+----------------------------------------------------------------------+ |
|
*/ |
|
|
|
/* $Id$ */ |
|
|
|
/* |
|
* LALR shift/reduce conflicts and how they are resolved: |
|
* |
|
* - 2 shift/reduce conflicts due to the dangling elseif/else ambiguity. Solved by shift. |
|
* |
|
*/ |
|
|
|
|
|
#include "zend_compile.h" |
|
#include "zend.h" |
|
#include "zend_list.h" |
|
#include "zend_globals.h" |
|
#include "zend_API.h" |
|
#include "zend_constants.h" |
|
|
|
#define YYSIZE_T size_t |
|
#define yytnamerr zend_yytnamerr |
|
static YYSIZE_T zend_yytnamerr(char*, const char*); |
|
|
|
#define YYERROR_VERBOSE |
|
#define YYSTYPE znode |
|
#ifdef ZTS |
|
# define YYPARSE_PARAM tsrm_ls |
|
# define YYLEX_PARAM tsrm_ls |
|
#endif |
|
|
|
|
|
|
|
|
|
/* Enabling traces. */ |
|
#ifndef YYDEBUG |
|
# define YYDEBUG 0 |
|
#endif |
|
|
|
/* Enabling verbose error messages. */ |
|
#ifdef YYERROR_VERBOSE |
|
# undef YYERROR_VERBOSE |
|
# define YYERROR_VERBOSE 1 |
|
#else |
|
# define YYERROR_VERBOSE 0 |
|
#endif |
|
|
|
/* Enabling the token table. */ |
|
#ifndef YYTOKEN_TABLE |
|
# define YYTOKEN_TABLE 0 |
|
#endif |
|
|
|
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED |
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED |
typedef int YYSTYPE; |
typedef int YYSTYPE; |
|
# define YYSTYPE_IS_TRIVIAL 1 |
# define yystype YYSTYPE /* obsolescent; will be withdrawn */ |
# define yystype YYSTYPE /* obsolescent; will be withdrawn */ |
# define YYSTYPE_IS_DECLARED 1 |
# define YYSTYPE_IS_DECLARED 1 |
# define YYSTYPE_IS_TRIVIAL 1 |
|
#endif |
#endif |
|
|
|
|
|
#ifdef YYPARSE_PARAM |
|
#if defined __STDC__ || defined __cplusplus |
|
int zendparse (void *YYPARSE_PARAM); |
|
#else |
|
int zendparse (); |
|
#endif |
|
#else /* ! YYPARSE_PARAM */ |
|
#if defined __STDC__ || defined __cplusplus |
|
int zendparse (void); |
|
#else |
|
int zendparse (); |
|
#endif |
|
#endif /* ! YYPARSE_PARAM */ |
|
|
|
#endif /* !YY_ZEND_ZEND_ZEND_LANGUAGE_PARSER_H_INCLUDED */ |
|
|
/* Copy the second part of user declarations. */ |
/* Copy the second part of user declarations. */ |
|
|
|
|
/* Line 216 of yacc.c. */ |
|
|
|
|
|
#ifdef short |
#ifdef short |
# undef short |
# undef short |
#endif |
#endif |
Line 474 typedef short int yytype_int16;
|
Line 502 typedef short int yytype_int16;
|
# if defined YYENABLE_NLS && YYENABLE_NLS |
# if defined YYENABLE_NLS && YYENABLE_NLS |
# if ENABLE_NLS |
# if ENABLE_NLS |
# include <libintl.h> /* INFRINGES ON USER NAME SPACE */ |
# include <libintl.h> /* INFRINGES ON USER NAME SPACE */ |
# define YY_(msgid) dgettext ("bison-runtime", msgid) | # define YY_(Msgid) dgettext ("bison-runtime", Msgid) |
# endif |
# endif |
# endif |
# endif |
# ifndef YY_ |
# ifndef YY_ |
# define YY_(msgid) msgid | # define YY_(Msgid) Msgid |
# endif |
# endif |
#endif |
#endif |
|
|
/* Suppress unused-variable warnings by "using" E. */ |
/* Suppress unused-variable warnings by "using" E. */ |
#if ! defined lint || defined __GNUC__ |
#if ! defined lint || defined __GNUC__ |
# define YYUSE(e) ((void) (e)) | # define YYUSE(E) ((void) (E)) |
#else |
#else |
# define YYUSE(e) /* empty */ | # define YYUSE(E) /* empty */ |
#endif |
#endif |
|
|
/* Identity function, used to suppress warnings about constant conditions. */ |
/* Identity function, used to suppress warnings about constant conditions. */ |
#ifndef lint |
#ifndef lint |
# define YYID(n) (n) | # define YYID(N) (N) |
#else |
#else |
#if (defined __STDC__ || defined __C99__FUNC__ \ |
#if (defined __STDC__ || defined __C99__FUNC__ \ |
|| defined __cplusplus || defined _MSC_VER) |
|| defined __cplusplus || defined _MSC_VER) |
static int |
static int |
YYID (int i) | YYID (int yyi) |
#else |
#else |
static int |
static int |
YYID (i) | YYID (yyi) |
int i; | int yyi; |
#endif |
#endif |
{ |
{ |
return i; | return yyi; |
} |
} |
#endif |
#endif |
|
|
Line 524 YYID (i)
|
Line 552 YYID (i)
|
# define alloca _alloca |
# define alloca _alloca |
# else |
# else |
# define YYSTACK_ALLOC alloca |
# define YYSTACK_ALLOC alloca |
# if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ | # if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \ |
|| defined __cplusplus || defined _MSC_VER) |
|| defined __cplusplus || defined _MSC_VER) |
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ |
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ |
# ifndef _STDLIB_H | /* Use EXIT_SUCCESS as a witness for stdlib.h. */ |
# define _STDLIB_H 1 | # ifndef EXIT_SUCCESS |
| # define EXIT_SUCCESS 0 |
# endif |
# endif |
# endif |
# endif |
# endif |
# endif |
Line 551 YYID (i)
|
Line 580 YYID (i)
|
# ifndef YYSTACK_ALLOC_MAXIMUM |
# ifndef YYSTACK_ALLOC_MAXIMUM |
# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
# endif |
# endif |
# if (defined __cplusplus && ! defined _STDLIB_H \ | # if (defined __cplusplus && ! defined EXIT_SUCCESS \ |
&& ! ((defined YYMALLOC || defined malloc) \ |
&& ! ((defined YYMALLOC || defined malloc) \ |
&& (defined YYFREE || defined free))) |
&& (defined YYFREE || defined free))) |
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ |
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ |
# ifndef _STDLIB_H | # ifndef EXIT_SUCCESS |
# define _STDLIB_H 1 | # define EXIT_SUCCESS 0 |
# endif |
# endif |
# endif |
# endif |
# ifndef YYMALLOC |
# ifndef YYMALLOC |
# define YYMALLOC malloc |
# define YYMALLOC malloc |
# if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ | # if ! defined malloc && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \ |
|| defined __cplusplus || defined _MSC_VER) |
|| defined __cplusplus || defined _MSC_VER) |
void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ |
void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ |
# endif |
# endif |
# endif |
# endif |
# ifndef YYFREE |
# ifndef YYFREE |
# define YYFREE free |
# define YYFREE free |
# if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ | # if ! defined free && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \ |
|| defined __cplusplus || defined _MSC_VER) |
|| defined __cplusplus || defined _MSC_VER) |
void free (void *); /* INFRINGES ON USER NAME SPACE */ |
void free (void *); /* INFRINGES ON USER NAME SPACE */ |
# endif |
# endif |
Line 584 void free (void *); /* INFRINGES ON USER NAME SPACE */
|
Line 613 void free (void *); /* INFRINGES ON USER NAME SPACE */
|
/* A type that is properly aligned for any stack member. */ |
/* A type that is properly aligned for any stack member. */ |
union yyalloc |
union yyalloc |
{ |
{ |
yytype_int16 yyss; | yytype_int16 yyss_alloc; |
YYSTYPE yyvs; | YYSTYPE yyvs_alloc; |
}; | }; |
|
|
/* The size of the maximum gap between one aligned stack and the next. */ |
/* The size of the maximum gap between one aligned stack and the next. */ |
# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) |
# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) |
Line 597 union yyalloc
|
Line 626 union yyalloc
|
((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ |
((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ |
+ YYSTACK_GAP_MAXIMUM) |
+ YYSTACK_GAP_MAXIMUM) |
|
|
/* Copy COUNT objects from FROM to TO. The source and destination do | # define YYCOPY_NEEDED 1 |
not overlap. */ | |
# ifndef YYCOPY | |
# if defined __GNUC__ && 1 < __GNUC__ | |
# define YYCOPY(To, From, Count) \ | |
__builtin_memcpy (To, From, (Count) * sizeof (*(From))) | |
# else | |
# define YYCOPY(To, From, Count) \ | |
do \ | |
{ \ | |
YYSIZE_T yyi; \ | |
for (yyi = 0; yyi < (Count); yyi++) \ | |
(To)[yyi] = (From)[yyi]; \ | |
} \ | |
while (YYID (0)) | |
# endif | |
# endif | |
|
|
/* Relocate STACK from its old location to the new one. The |
/* Relocate STACK from its old location to the new one. The |
local variables YYSIZE and YYSTACKSIZE give the old and new number of |
local variables YYSIZE and YYSTACKSIZE give the old and new number of |
elements in the stack, and YYPTR gives the new location of the |
elements in the stack, and YYPTR gives the new location of the |
stack. Advance YYPTR to a properly aligned location for the next |
stack. Advance YYPTR to a properly aligned location for the next |
stack. */ |
stack. */ |
# define YYSTACK_RELOCATE(Stack) \ | # define YYSTACK_RELOCATE(Stack_alloc, Stack) \ |
do \ |
do \ |
{ \ |
{ \ |
YYSIZE_T yynewbytes; \ |
YYSIZE_T yynewbytes; \ |
YYCOPY (&yyptr->Stack, Stack, yysize); \ | YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ |
Stack = &yyptr->Stack; \ | Stack = &yyptr->Stack_alloc; \ |
yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ |
yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ |
yyptr += yynewbytes / sizeof (*yyptr); \ |
yyptr += yynewbytes / sizeof (*yyptr); \ |
} \ |
} \ |
Line 633 union yyalloc
|
Line 646 union yyalloc
|
|
|
#endif |
#endif |
|
|
|
#if defined YYCOPY_NEEDED && YYCOPY_NEEDED |
|
/* Copy COUNT objects from SRC to DST. The source and destination do |
|
not overlap. */ |
|
# ifndef YYCOPY |
|
# if defined __GNUC__ && 1 < __GNUC__ |
|
# define YYCOPY(Dst, Src, Count) \ |
|
__builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src))) |
|
# else |
|
# define YYCOPY(Dst, Src, Count) \ |
|
do \ |
|
{ \ |
|
YYSIZE_T yyi; \ |
|
for (yyi = 0; yyi < (Count); yyi++) \ |
|
(Dst)[yyi] = (Src)[yyi]; \ |
|
} \ |
|
while (YYID (0)) |
|
# endif |
|
# endif |
|
#endif /* !YYCOPY_NEEDED */ |
|
|
/* YYFINAL -- State number of the termination state. */ |
/* YYFINAL -- State number of the termination state. */ |
#define YYFINAL 3 |
#define YYFINAL 3 |
/* YYLAST -- Last index in YYTABLE. */ |
/* YYLAST -- Last index in YYTABLE. */ |
Line 933 static const yytype_int16 yyrhs[] =
|
Line 966 static const yytype_int16 yyrhs[] =
|
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */ |
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */ |
static const yytype_uint16 yyrline[] = |
static const yytype_uint16 yyrline[] = |
{ |
{ |
0, 214, 214, 218, 218, 219, 223, 224, 228, 229, | 0, 216, 216, 220, 220, 221, 225, 226, 230, 231, |
230, 231, 232, 233, 233, 235, 235, 237, 238, 242, | 232, 233, 234, 235, 235, 237, 237, 239, 240, 244, |
243, 247, 248, 249, 250, 254, 255, 259, 259, 260, | 245, 249, 250, 251, 252, 256, 257, 261, 261, 262, |
265, 266, 267, 268, 273, 274, 278, 279, 279, 279, | 267, 268, 269, 270, 275, 276, 280, 281, 281, 281, |
280, 280, 280, 281, 281, 281, 282, 282, 282, 286, | 282, 282, 282, 283, 283, 283, 284, 284, 284, 288, |
288, 290, 283, 292, 292, 293, 294, 295, 296, 297, | 290, 292, 285, 294, 294, 295, 296, 297, 298, 299, |
298, 299, 300, 301, 302, 303, 304, 305, 307, 308, | 300, 301, 302, 303, 304, 305, 306, 307, 309, 310, |
306, 311, 312, 310, 314, 314, 315, 316, 317, 318, | 308, 313, 314, 312, 316, 316, 317, 318, 319, 320, |
319, 320, 316, 322, 323, 328, 329, 333, 334, 339, | 321, 322, 318, 324, 325, 330, 331, 335, 336, 341, |
339, 339, 344, 345, 349, 353, 357, 362, 363, 368, | 341, 341, 346, 347, 351, 355, 359, 364, 365, 370, |
368, 374, 373, 380, 379, 389, 390, 391, 392, 396, | 370, 376, 375, 382, 381, 391, 392, 393, 394, 398, |
397, 401, 404, 406, 409, 411, 415, 416, 420, 421, | 399, 403, 406, 408, 411, 413, 417, 418, 422, 423, |
426, 427, 431, 432, 437, 438, 443, 444, 449, 450, | 428, 429, 433, 434, 439, 440, 445, 446, 451, 452, |
455, 456, 457, 458, 463, 464, 464, 465, 465, 470, | 457, 458, 459, 460, 465, 466, 466, 467, 467, 472, |
471, 476, 477, 482, 484, 484, 488, 490, 490, 494, | 473, 478, 479, 484, 486, 486, 490, 492, 492, 496, |
496, 500, 502, 507, 508, 513, 514, 515, 516, 517, | 498, 502, 504, 509, 510, 515, 516, 517, 518, 519, |
518, 519, 520, 525, 526, 527, 528, 533, 534, 539, | 520, 521, 522, 527, 528, 529, 530, 535, 536, 541, |
540, 541, 542, 543, 544, 548, 549, 554, 555, 556, | 542, 543, 544, 545, 546, 550, 551, 556, 557, 558, |
561, 562, 563, 564, 570, 571, 576, 576, 577, 578, | 563, 564, 565, 566, 572, 573, 578, 578, 579, 580, |
579, 579, 584, 588, 589, 593, 594, 597, 599, 603, | 581, 581, 586, 590, 591, 595, 596, 599, 601, 605, |
604, 608, 609, 613, 617, 618, 622, 623, 627, 631, | 606, 610, 611, 615, 619, 620, 624, 625, 629, 633, |
632, 636, 637, 641, 642, 646, 647, 651, 652, 656, | 634, 638, 639, 643, 644, 648, 649, 653, 654, 658, |
657, 661, 662, 663, 664, 665, 666, 670, 671, 672, | 659, 663, 664, 665, 666, 667, 668, 672, 673, 674, |
673, 677, 678, 682, 683, 688, 689, 693, 693, 694, | 675, 679, 680, 684, 685, 690, 691, 695, 695, 696, |
698, 699, 703, 704, 708, 708, 709, 710, 714, 715, | 700, 701, 705, 706, 710, 710, 711, 712, 716, 717, |
715, 720, 720, 724, 724, 725, 726, 727, 727, 728, | 717, 722, 722, 726, 726, 727, 728, 729, 729, 730, |
729, 730, 731, 732, 733, 734, 735, 736, 737, 738, | 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, |
739, 740, 741, 742, 743, 744, 744, 745, 745, 746, | 741, 742, 743, 744, 745, 746, 746, 747, 747, 748, |
746, 747, 747, 748, 749, 750, 751, 752, 753, 754, | 748, 749, 749, 750, 751, 752, 753, 754, 755, 756, |
755, 756, 757, 758, 759, 760, 761, 762, 763, 764, | 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, |
765, 766, 767, 768, 769, 770, 771, 772, 773, 774, | 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, |
775, 775, 776, 777, 776, 779, 779, 781, 782, 783, | 777, 777, 778, 779, 778, 781, 781, 783, 784, 785, |
784, 785, 786, 787, 788, 789, 790, 790, 791, 792, | 786, 787, 788, 789, 790, 791, 792, 792, 793, 794, |
793, 794, 795, 796, 796, 798, 798, 803, 806, 808, | 795, 796, 797, 798, 798, 800, 800, 805, 808, 810, |
812, 813, 814, 815, 819, 819, 822, 822, 825, 825, | 814, 815, 816, 817, 821, 821, 824, 824, 827, 827, |
828, 828, 831, 831, 834, 834, 837, 837, 840, 840, | 830, 830, 833, 833, 836, 836, 839, 839, 842, 842, |
846, 847, 848, 849, 853, 854, 855, 861, 862, 867, | 848, 849, 850, 851, 855, 856, 857, 863, 864, 869, |
868, 867, 870, 875, 876, 881, 885, 886, 887, 891, | 870, 869, 872, 877, 878, 883, 887, 888, 889, 893, |
892, 893, 898, 899, 904, 905, 906, 907, 908, 909, | 894, 895, 900, 901, 906, 907, 908, 909, 910, 911, |
910, 911, 912, 913, 914, 915, 920, 921, 922, 923, | 912, 913, 914, 915, 916, 917, 922, 923, 924, 925, |
924, 925, 926, 927, 928, 929, 933, 937, 938, 939, | 926, 927, 928, 929, 930, 931, 935, 939, 940, 941, |
940, 941, 942, 943, 944, 945, 950, 951, 954, 956, | 942, 943, 944, 945, 946, 947, 952, 953, 956, 958, |
960, 961, 962, 963, 967, 968, 973, 978, 983, 988, | 962, 963, 964, 965, 969, 970, 975, 980, 985, 990, |
989, 988, 991, 995, 996, 1001, 1001, 1005, 1006, 1010, | 991, 990, 993, 997, 998, 1003, 1003, 1007, 1008, 1012, |
1010, 1016, 1017, 1018, 1022, 1023, 1027, 1028, 1033, 1037, | 1012, 1018, 1019, 1020, 1024, 1025, 1029, 1030, 1035, 1039, |
1038, 1038, 1043, 1044, 1045, 1050, 1051, 1052, 1056, 1057, | 1040, 1040, 1045, 1046, 1047, 1052, 1053, 1054, 1058, 1059, |
1058, 1063, 1064, 1068, 1069, 1074, 1075, 1075, 1079, 1080, | 1060, 1065, 1066, 1070, 1071, 1076, 1077, 1077, 1081, 1082, |
1081, 1085, 1086, 1090, 1091, 1095, 1096, 1101, 1102, 1102, | 1083, 1087, 1088, 1092, 1093, 1097, 1098, 1103, 1104, 1104, |
1103, 1108, 1109, 1113, 1114, 1115, 1116, 1117, 1118, 1119, | 1105, 1110, 1111, 1115, 1116, 1117, 1118, 1119, 1120, 1121, |
1120, 1124, 1125, 1126, 1127, 1133, 1134, 1134, 1135, 1136, | 1122, 1126, 1127, 1128, 1129, 1135, 1136, 1136, 1137, 1138, |
1137, 1138, 1143, 1144, 1145, 1150, 1151, 1152, 1153, 1154, | 1139, 1140, 1145, 1146, 1147, 1152, 1153, 1154, 1155, 1156, |
1155, 1156, 1160, 1161, 1161, 1165, 1166 | 1157, 1158, 1162, 1163, 1163, 1167, 1168 |
}; |
}; |
#endif |
#endif |
|
|
#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE | #if YYDEBUG || YYERROR_VERBOSE || 0 |
/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. |
/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. |
First, the terminals, then, starting at YYNTOKENS, nonterminals. */ |
First, the terminals, then, starting at YYNTOKENS, nonterminals. */ |
static const char *const yytname[] = |
static const char *const yytname[] = |
Line 1055 static const char *const yytname[] =
|
Line 1088 static const char *const yytname[] =
|
"\":: (T_PAAMAYIM_NEKUDOTAYIM)\"", "\"namespace (T_NAMESPACE)\"", |
"\":: (T_PAAMAYIM_NEKUDOTAYIM)\"", "\"namespace (T_NAMESPACE)\"", |
"\"__NAMESPACE__ (T_NS_C)\"", "\"__DIR__ (T_DIR)\"", |
"\"__NAMESPACE__ (T_NS_C)\"", "\"__DIR__ (T_DIR)\"", |
"\"\\\\ (T_NS_SEPARATOR)\"", "'('", "')'", "';'", "'{'", "'}'", "'$'", |
"\"\\\\ (T_NS_SEPARATOR)\"", "'('", "')'", "';'", "'{'", "'}'", "'$'", |
"']'", "'`'", "'\"'", "$accept", "start", "top_statement_list", "@1", | "']'", "'`'", "'\"'", "$accept", "start", "top_statement_list", "$@1", |
"namespace_name", "top_statement", "@2", "@3", "use_declarations", | "namespace_name", "top_statement", "$@2", "$@3", "use_declarations", |
"use_declaration", "constant_declaration", "inner_statement_list", "@4", | "use_declaration", "constant_declaration", "inner_statement_list", "$@4", |
"inner_statement", "statement", "unticked_statement", "@5", "@6", "@7", | "inner_statement", "statement", "unticked_statement", "$@5", "$@6", |
"@8", "@9", "@10", "@11", "@12", "@13", "@14", "@15", "@16", "@17", | "$@7", "$@8", "$@9", "$@10", "$@11", "$@12", "$@13", "$@14", "$@15", |
"@18", "@19", "@20", "@21", "@22", "@23", "@24", "@25", "@26", | "$@16", "$@17", "$@18", "$@19", "$@20", "$@21", "$@22", "$@23", "$@24", |
"additional_catches", "non_empty_additional_catches", "additional_catch", | "$@25", "$@26", "additional_catches", "non_empty_additional_catches", |
"@27", "@28", "unset_variables", "unset_variable", | "additional_catch", "@27", "$@28", "unset_variables", "unset_variable", |
"function_declaration_statement", "class_declaration_statement", |
"function_declaration_statement", "class_declaration_statement", |
"is_reference", "unticked_function_declaration_statement", "@29", | "is_reference", "unticked_function_declaration_statement", "$@29", |
"unticked_class_declaration_statement", "@30", "@31", "class_entry_type", | "unticked_class_declaration_statement", "$@30", "$@31", |
"extends_from", "interface_entry", "interface_extends_list", | "class_entry_type", "extends_from", "interface_entry", |
"implements_list", "interface_list", "foreach_optional_arg", | "interface_extends_list", "implements_list", "interface_list", |
"foreach_variable", "for_statement", "foreach_statement", | "foreach_optional_arg", "foreach_variable", "for_statement", |
"declare_statement", "declare_list", "switch_case_list", "case_list", | "foreach_statement", "declare_statement", "declare_list", |
"@32", "@33", "case_separator", "while_statement", "elseif_list", "@34", | "switch_case_list", "case_list", "$@32", "$@33", "case_separator", |
"new_elseif_list", "@35", "else_single", "new_else_single", | "while_statement", "elseif_list", "$@34", "new_elseif_list", "$@35", |
"parameter_list", "non_empty_parameter_list", "optional_class_type", | "else_single", "new_else_single", "parameter_list", |
| "non_empty_parameter_list", "optional_class_type", |
"function_call_parameter_list", "non_empty_function_call_parameter_list", |
"function_call_parameter_list", "non_empty_function_call_parameter_list", |
"global_var_list", "global_var", "static_var_list", |
"global_var_list", "global_var", "static_var_list", |
"class_statement_list", "class_statement", "@36", "@37", | "class_statement_list", "class_statement", "$@36", "$@37", |
"trait_use_statement", "trait_list", "trait_adaptations", |
"trait_use_statement", "trait_list", "trait_adaptations", |
"trait_adaptation_list", "non_empty_trait_adaptation_list", |
"trait_adaptation_list", "non_empty_trait_adaptation_list", |
"trait_adaptation_statement", "trait_precedence", "trait_reference_list", |
"trait_adaptation_statement", "trait_precedence", "trait_reference_list", |
Line 1083 static const char *const yytname[] =
|
Line 1117 static const char *const yytname[] =
|
"trait_alias", "trait_modifiers", "method_body", "variable_modifiers", |
"trait_alias", "trait_modifiers", "method_body", "variable_modifiers", |
"method_modifiers", "non_empty_member_modifiers", "member_modifier", |
"method_modifiers", "non_empty_member_modifiers", "member_modifier", |
"class_variable_declaration", "class_constant_declaration", |
"class_variable_declaration", "class_constant_declaration", |
"echo_expr_list", "for_expr", "non_empty_for_expr", "@38", | "echo_expr_list", "for_expr", "non_empty_for_expr", "$@38", |
"chaining_method_or_property", "chaining_dereference", |
"chaining_method_or_property", "chaining_dereference", |
"chaining_instance_call", "@39", "instance_call", "@40", "new_expr", | "chaining_instance_call", "$@39", "instance_call", "$@40", "new_expr", |
"@41", "expr_without_variable", "@42", "@43", "@44", "@45", "@46", "@47", | "$@41", "expr_without_variable", "$@42", "$@43", "$@44", "$@45", "$@46", |
"@48", "@49", "@50", "@51", "@52", "@53", "@54", "function", | "$@47", "@48", "$@49", "$@50", "$@51", "$@52", "@53", "@54", "function", |
"lexical_vars", "lexical_var_list", "function_call", "@55", "@56", "@57", | "lexical_vars", "lexical_var_list", "function_call", "$@55", "$@56", |
"@58", "@59", "@60", "@61", "@62", "class_name", | "$@57", "$@58", "$@59", "$@60", "$@61", "$@62", "class_name", |
"fully_qualified_class_name", "class_name_reference", |
"fully_qualified_class_name", "class_name_reference", |
"dynamic_class_name_reference", "@63", "@64", | "dynamic_class_name_reference", "$@63", "$@64", |
"dynamic_class_name_variable_properties", |
"dynamic_class_name_variable_properties", |
"dynamic_class_name_variable_property", "exit_expr", "backticks_expr", |
"dynamic_class_name_variable_property", "exit_expr", "backticks_expr", |
"ctor_arguments", "common_scalar", "static_scalar", |
"ctor_arguments", "common_scalar", "static_scalar", |
"static_class_constant", "scalar", "static_array_pair_list", |
"static_class_constant", "scalar", "static_array_pair_list", |
"possible_comma", "non_empty_static_array_pair_list", "expr", |
"possible_comma", "non_empty_static_array_pair_list", "expr", |
"r_variable", "w_variable", "rw_variable", "variable", "@65", "@66", | "r_variable", "w_variable", "rw_variable", "variable", "$@65", "$@66", |
"variable_properties", "variable_property", "@67", | "variable_properties", "variable_property", "$@67", |
"array_method_dereference", "method", "@68", "method_or_not", | "array_method_dereference", "method", "$@68", "method_or_not", |
"variable_without_objects", "static_member", "variable_class_name", |
"variable_without_objects", "static_member", "variable_class_name", |
"array_function_dereference", "@69", "base_variable_with_function_calls", | "array_function_dereference", "$@69", |
"base_variable", "reference_variable", "compound_variable", "dim_offset", | "base_variable_with_function_calls", "base_variable", |
"object_property", "@70", "object_dim_list", "variable_name", | "reference_variable", "compound_variable", "dim_offset", |
| "object_property", "$@70", "object_dim_list", "variable_name", |
"simple_indirect_reference", "assignment_list", |
"simple_indirect_reference", "assignment_list", |
"assignment_list_element", "@71", "array_pair_list", | "assignment_list_element", "$@71", "array_pair_list", |
"non_empty_array_pair_list", "encaps_list", "encaps_var", "@72", | "non_empty_array_pair_list", "encaps_list", "encaps_var", "$@72", |
"encaps_var_offset", "internal_functions_in_yacc", "isset_variables", |
"encaps_var_offset", "internal_functions_in_yacc", "isset_variables", |
"@73", "class_constant", 0 | "$@73", "class_constant", YY_NULL |
}; |
}; |
#endif |
#endif |
|
|
Line 1250 static const yytype_uint8 yyr2[] =
|
Line 1285 static const yytype_uint8 yyr2[] =
|
2, 2, 1, 0, 4, 3, 3 |
2, 2, 1, 0, 4, 3, 3 |
}; |
}; |
|
|
/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state | /* YYDEFACT[STATE-NAME] -- Default reduction number in state STATE-NUM. |
STATE-NUM when YYTABLE doesn't specify something else to do. Zero | Performed when YYTABLE doesn't specify something else to do. Zero |
means the default is an error. */ |
means the default is an error. */ |
static const yytype_uint16 yydefact[] = |
static const yytype_uint16 yydefact[] = |
{ |
{ |
Line 1516 static const yytype_int16 yypgoto[] =
|
Line 1551 static const yytype_int16 yypgoto[] =
|
|
|
/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If |
/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If |
positive, shift that token. If negative, reduce the rule which |
positive, shift that token. If negative, reduce the rule which |
number is the opposite. If zero, do what YYDEFACT says. | number is the opposite. If YYTABLE_NINF, syntax error. */ |
If YYTABLE_NINF, syntax error. */ | |
#define YYTABLE_NINF -472 |
#define YYTABLE_NINF -472 |
static const yytype_int16 yytable[] = |
static const yytype_int16 yytable[] = |
{ |
{ |
Line 2055 static const yytype_int16 yytable[] =
|
Line 2089 static const yytype_int16 yytable[] =
|
259, 0, 260 |
259, 0, 260 |
}; |
}; |
|
|
|
#define yypact_value_is_default(Yystate) \ |
|
(!!((Yystate) == (-736))) |
|
|
|
#define yytable_value_is_error(Yytable_value) \ |
|
(!!((Yytable_value) == (-472))) |
|
|
static const yytype_int16 yycheck[] = |
static const yytype_int16 yycheck[] = |
{ |
{ |
23, 24, 4, 234, 27, 119, 27, 577, 4, 373, |
23, 24, 4, 234, 27, 119, 27, 577, 4, 373, |
Line 2708 static const yytype_uint16 yystos[] =
|
Line 2748 static const yytype_uint16 yystos[] =
|
|
|
/* Like YYERROR except do call yyerror. This remains here temporarily |
/* Like YYERROR except do call yyerror. This remains here temporarily |
to ease the transition to the new meaning of YYERROR, for GCC. |
to ease the transition to the new meaning of YYERROR, for GCC. |
Once GCC version 2 has supplanted version 1, this can go. */ | Once GCC version 2 has supplanted version 1, this can go. However, |
| YYFAIL appears to be in use. Nevertheless, it is formally deprecated |
| in Bison 2.4.2's NEWS entry, where a plan to phase it out is |
| discussed. */ |
|
|
#define YYFAIL goto yyerrlab |
#define YYFAIL goto yyerrlab |
|
#if defined YYFAIL |
|
/* This is here to suppress warnings from the GCC cpp's |
|
-Wunused-macros. Normally we don't worry about that warning, but |
|
some users do, and we want to make it easy for users to remove |
|
YYFAIL uses, which will produce warnings from Bison 2.5. */ |
|
#endif |
|
|
#define YYRECOVERING() (!!yyerrstatus) |
#define YYRECOVERING() (!!yyerrstatus) |
|
|
#define YYBACKUP(Token, Value) \ | #define YYBACKUP(Token, Value) \ |
do \ | do \ |
if (yychar == YYEMPTY && yylen == 1) \ | if (yychar == YYEMPTY) \ |
{ \ | { \ |
yychar = (Token); \ | yychar = (Token); \ |
yylval = (Value); \ | yylval = (Value); \ |
yytoken = YYTRANSLATE (yychar); \ | YYPOPSTACK (yylen); \ |
YYPOPSTACK (1); \ | yystate = *yyssp; \ |
goto yybackup; \ | goto yybackup; \ |
} \ | } \ |
else \ | else \ |
{ \ | { \ |
yyerror (YY_("syntax error: cannot back up")); \ |
yyerror (YY_("syntax error: cannot back up")); \ |
YYERROR; \ |
YYERROR; \ |
} \ |
} \ |
while (YYID (0)) |
while (YYID (0)) |
|
|
| /* Error token number */ |
#define YYTERROR 1 |
#define YYTERROR 1 |
#define YYERRCODE 256 |
#define YYERRCODE 256 |
|
|
|
|
/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N]. | /* This macro is provided for backward compatibility. */ |
If N is 0, then set CURRENT to the empty location which ends | |
the previous symbol: RHS[0] (always defined). */ | |
| |
#define YYRHSLOC(Rhs, K) ((Rhs)[K]) | |
#ifndef YYLLOC_DEFAULT | |
# define YYLLOC_DEFAULT(Current, Rhs, N) \ | |
do \ | |
if (YYID (N)) \ | |
{ \ | |
(Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ | |
(Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ | |
(Current).last_line = YYRHSLOC (Rhs, N).last_line; \ | |
(Current).last_column = YYRHSLOC (Rhs, N).last_column; \ | |
} \ | |
else \ | |
{ \ | |
(Current).first_line = (Current).last_line = \ | |
YYRHSLOC (Rhs, 0).last_line; \ | |
(Current).first_column = (Current).last_column = \ | |
YYRHSLOC (Rhs, 0).last_column; \ | |
} \ | |
while (YYID (0)) | |
#endif | |
| |
| |
/* YY_LOCATION_PRINT -- Print the location on the stream. | |
This macro was not mandated originally: define only if we know | |
we won't break user code: when these are the locations we know. */ | |
| |
#ifndef YY_LOCATION_PRINT |
#ifndef YY_LOCATION_PRINT |
# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL | # define YY_LOCATION_PRINT(File, Loc) ((void) 0) |
# define YY_LOCATION_PRINT(File, Loc) \ | |
fprintf (File, "%d.%d-%d.%d", \ | |
(Loc).first_line, (Loc).first_column, \ | |
(Loc).last_line, (Loc).last_column) | |
# else | |
# define YY_LOCATION_PRINT(File, Loc) ((void) 0) | |
# endif | |
#endif |
#endif |
|
|
|
|
/* YYLEX -- calling `yylex' with the right arguments. */ |
/* YYLEX -- calling `yylex' with the right arguments. */ |
|
|
#ifdef YYLEX_PARAM |
#ifdef YYLEX_PARAM |
# define YYLEX yylex (&yylval, YYLEX_PARAM) |
# define YYLEX yylex (&yylval, YYLEX_PARAM) |
#else |
#else |
Line 2829 yy_symbol_value_print (yyoutput, yytype, yyvaluep)
|
Line 2841 yy_symbol_value_print (yyoutput, yytype, yyvaluep)
|
YYSTYPE const * const yyvaluep; |
YYSTYPE const * const yyvaluep; |
#endif |
#endif |
{ |
{ |
|
FILE *yyo = yyoutput; |
|
YYUSE (yyo); |
if (!yyvaluep) |
if (!yyvaluep) |
return; |
return; |
# ifdef YYPRINT |
# ifdef YYPRINT |
Line 2840 yy_symbol_value_print (yyoutput, yytype, yyvaluep)
|
Line 2854 yy_symbol_value_print (yyoutput, yytype, yyvaluep)
|
switch (yytype) |
switch (yytype) |
{ |
{ |
default: |
default: |
break; | break; |
} |
} |
} |
} |
|
|
Line 2878 yy_symbol_print (yyoutput, yytype, yyvaluep)
|
Line 2892 yy_symbol_print (yyoutput, yytype, yyvaluep)
|
#if (defined __STDC__ || defined __C99__FUNC__ \ |
#if (defined __STDC__ || defined __C99__FUNC__ \ |
|| defined __cplusplus || defined _MSC_VER) |
|| defined __cplusplus || defined _MSC_VER) |
static void |
static void |
yy_stack_print (yytype_int16 *bottom, yytype_int16 *top) | yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop) |
#else |
#else |
static void |
static void |
yy_stack_print (bottom, top) | yy_stack_print (yybottom, yytop) |
yytype_int16 *bottom; | yytype_int16 *yybottom; |
yytype_int16 *top; | yytype_int16 *yytop; |
#endif |
#endif |
{ |
{ |
YYFPRINTF (stderr, "Stack now"); |
YYFPRINTF (stderr, "Stack now"); |
for (; bottom <= top; ++bottom) | for (; yybottom <= yytop; yybottom++) |
YYFPRINTF (stderr, " %d", *bottom); | { |
| int yybot = *yybottom; |
| YYFPRINTF (stderr, " %d", yybot); |
| } |
YYFPRINTF (stderr, "\n"); |
YYFPRINTF (stderr, "\n"); |
} |
} |
|
|
Line 2922 yy_reduce_print (yyvsp, yyrule)
|
Line 2939 yy_reduce_print (yyvsp, yyrule)
|
/* The symbols being reduced. */ |
/* The symbols being reduced. */ |
for (yyi = 0; yyi < yynrhs; yyi++) |
for (yyi = 0; yyi < yynrhs; yyi++) |
{ |
{ |
fprintf (stderr, " $%d = ", yyi + 1); | YYFPRINTF (stderr, " $%d = ", yyi + 1); |
yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi], |
yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi], |
&(yyvsp[(yyi + 1) - (yynrhs)]) |
&(yyvsp[(yyi + 1) - (yynrhs)]) |
); |
); |
fprintf (stderr, "\n"); | YYFPRINTF (stderr, "\n"); |
} |
} |
} |
} |
|
|
Line 2963 int yydebug;
|
Line 2980 int yydebug;
|
# define YYMAXDEPTH 10000 |
# define YYMAXDEPTH 10000 |
#endif |
#endif |
|
|
|
|
|
|
#if YYERROR_VERBOSE |
#if YYERROR_VERBOSE |
|
|
Line 3066 yytnamerr (char *yyres, const char *yystr)
|
Line 3082 yytnamerr (char *yyres, const char *yystr)
|
} |
} |
# endif |
# endif |
|
|
/* Copy into YYRESULT an error message about the unexpected token | /* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message |
YYCHAR while in state YYSTATE. Return the number of bytes copied, | about the unexpected token YYTOKEN for the state stack whose top is |
including the terminating null byte. If YYRESULT is null, do not | YYSSP. |
copy anything; just return the number of bytes that would be | |
copied. As a special case, return 0 if an ordinary "syntax error" | Return 0 if *YYMSG was successfully written. Return 1 if *YYMSG is |
message will do. Return YYSIZE_MAXIMUM if overflow occurs during | not large enough to hold the message. In that case, also set |
size calculation. */ | *YYMSG_ALLOC to the required number of bytes. Return 2 if the |
static YYSIZE_T | required number of bytes is too large to store. */ |
yysyntax_error (char *yyresult, int yystate, int yychar) | static int |
| yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, |
| yytype_int16 *yyssp, int yytoken) |
{ |
{ |
int yyn = yypact[yystate]; | YYSIZE_T yysize0 = yytnamerr (YY_NULL, yytname[yytoken]); |
| YYSIZE_T yysize = yysize0; |
| enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; |
| /* Internationalized format string. */ |
| const char *yyformat = YY_NULL; |
| /* Arguments of yyformat. */ |
| char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; |
| /* Number of reported tokens (one for the "unexpected", one per |
| "expected"). */ |
| int yycount = 0; |
|
|
if (! (YYPACT_NINF < yyn && yyn <= YYLAST)) | /* There are many possibilities here to consider: |
return 0; | - Assume YYFAIL is not used. It's too flawed to consider. See |
else | <http://lists.gnu.org/archive/html/bison-patches/2009-12/msg00024.html> |
| for details. YYERROR is fine as it does not invoke this |
| function. |
| - If this state is a consistent state with a default action, then |
| the only way this function was invoked is if the default action |
| is an error action. In that case, don't check for expected |
| tokens because there are none. |
| - The only way there can be no lookahead present (in yychar) is if |
| this state is a consistent state with a default action. Thus, |
| detecting the absence of a lookahead is sufficient to determine |
| that there is no unexpected or expected token to report. In that |
| case, just report a simple "syntax error". |
| - Don't assume there isn't a lookahead just because this state is a |
| consistent state with a default action. There might have been a |
| previous inconsistent state, consistent state with a non-default |
| action, or user semantic action that manipulated yychar. |
| - Of course, the expected token list depends on states to have |
| correct lookahead information, and it depends on the parser not |
| to perform extra reductions after fetching a lookahead from the |
| scanner and before detecting a syntax error. Thus, state merging |
| (from LALR or IELR) and default reductions corrupt the expected |
| token list. However, the list is correct for canonical LR with |
| one exception: it will still contain any token that will not be |
| accepted due to an error action in a later state. |
| */ |
| if (yytoken != YYEMPTY) |
{ |
{ |
int yytype = YYTRANSLATE (yychar); | int yyn = yypact[*yyssp]; |
YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]); | yyarg[yycount++] = yytname[yytoken]; |
YYSIZE_T yysize = yysize0; | if (!yypact_value_is_default (yyn)) |
YYSIZE_T yysize1; | { |
int yysize_overflow = 0; | /* Start YYX at -YYN if negative to avoid negative indexes in |
enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; | YYCHECK. In other words, skip the first -YYN actions for |
char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; | this state because they are default actions. */ |
int yyx; | int yyxbegin = yyn < 0 ? -yyn : 0; |
| /* Stay within bounds of both yycheck and yytname. */ |
| int yychecklim = YYLAST - yyn + 1; |
| int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; |
| int yyx; |
|
|
# if 0 | for (yyx = yyxbegin; yyx < yyxend; ++yyx) |
/* This is so xgettext sees the translatable formats that are | if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR |
constructed on the fly. */ | && !yytable_value_is_error (yytable[yyx + yyn])) |
YY_("syntax error, unexpected %s"); | { |
YY_("syntax error, unexpected %s, expecting %s"); | if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) |
YY_("syntax error, unexpected %s, expecting %s or %s"); | { |
YY_("syntax error, unexpected %s, expecting %s or %s or %s"); | yycount = 1; |
YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"); | yysize = yysize0; |
# endif | break; |
char *yyfmt; | } |
char const *yyf; | yyarg[yycount++] = yytname[yyx]; |
static char const yyunexpected[] = "syntax error, unexpected %s"; | { |
static char const yyexpecting[] = ", expecting %s"; | YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULL, yytname[yyx]); |
static char const yyor[] = " or %s"; | if (! (yysize <= yysize1 |
char yyformat[sizeof yyunexpected | && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) |
+ sizeof yyexpecting - 1 | return 2; |
+ ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2) | yysize = yysize1; |
* (sizeof yyor - 1))]; | } |
char const *yyprefix = yyexpecting; | } |
| } |
| } |
|
|
/* Start YYX at -YYN if negative to avoid negative indexes in | switch (yycount) |
YYCHECK. */ | { |
int yyxbegin = yyn < 0 ? -yyn : 0; | # define YYCASE_(N, S) \ |
| case N: \ |
| yyformat = S; \ |
| break |
| YYCASE_(0, YY_("syntax error")); |
| YYCASE_(1, YY_("syntax error, unexpected %s")); |
| YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s")); |
| YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s")); |
| YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s")); |
| YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s")); |
| # undef YYCASE_ |
| } |
|
|
/* Stay within bounds of both yycheck and yytname. */ | { |
int yychecklim = YYLAST - yyn + 1; | YYSIZE_T yysize1 = yysize + yystrlen (yyformat); |
int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; | if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) |
int yycount = 1; | return 2; |
| yysize = yysize1; |
| } |
|
|
yyarg[0] = yytname[yytype]; | if (*yymsg_alloc < yysize) |
yyfmt = yystpcpy (yyformat, yyunexpected); | { |
| *yymsg_alloc = 2 * yysize; |
for (yyx = yyxbegin; yyx < yyxend; ++yyx) | if (! (yysize <= *yymsg_alloc |
if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) | && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM)) |
{ | *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM; |
if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) | return 1; |
{ | |
yycount = 1; | |
yysize = yysize0; | |
yyformat[sizeof yyunexpected - 1] = '\0'; | |
break; | |
} | |
yyarg[yycount++] = yytname[yyx]; | |
yysize1 = yysize + yytnamerr (0, yytname[yyx]); | |
yysize_overflow |= (yysize1 < yysize); | |
yysize = yysize1; | |
yyfmt = yystpcpy (yyfmt, yyprefix); | |
yyprefix = yyor; | |
} | |
| |
yyf = YY_(yyformat); | |
yysize1 = yysize + yystrlen (yyf); | |
yysize_overflow |= (yysize1 < yysize); | |
yysize = yysize1; | |
| |
if (yysize_overflow) | |
return YYSIZE_MAXIMUM; | |
| |
if (yyresult) | |
{ | |
/* Avoid sprintf, as that infringes on the user's name space. | |
Don't have undefined behavior even if the translation | |
produced a string with the wrong number of "%s"s. */ | |
char *yyp = yyresult; | |
int yyi = 0; | |
while ((*yyp = *yyf) != '\0') | |
{ | |
if (*yyp == '%' && yyf[1] == 's' && yyi < yycount) | |
{ | |
yyp += yytnamerr (yyp, yyarg[yyi++]); | |
yyf += 2; | |
} | |
else | |
{ | |
yyp++; | |
yyf++; | |
} | |
} | |
} | |
return yysize; | |
} |
} |
|
|
|
/* Avoid sprintf, as that infringes on the user's name space. |
|
Don't have undefined behavior even if the translation |
|
produced a string with the wrong number of "%s"s. */ |
|
{ |
|
char *yyp = *yymsg; |
|
int yyi = 0; |
|
while ((*yyp = *yyformat) != '\0') |
|
if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount) |
|
{ |
|
yyp += yytnamerr (yyp, yyarg[yyi++]); |
|
yyformat += 2; |
|
} |
|
else |
|
{ |
|
yyp++; |
|
yyformat++; |
|
} |
|
} |
|
return 0; |
} |
} |
#endif /* YYERROR_VERBOSE */ |
#endif /* YYERROR_VERBOSE */ |
|
|
|
|
/*-----------------------------------------------. |
/*-----------------------------------------------. |
| Release the memory associated to this symbol. | |
| Release the memory associated to this symbol. | |
Line 3203 yydestruct (yymsg, yytype, yyvaluep)
|
Line 3249 yydestruct (yymsg, yytype, yyvaluep)
|
{ |
{ |
|
|
default: |
default: |
break; | break; |
} |
} |
} |
} |
|
|
|
|
/* Prevent warnings from -Wmissing-prototypes. */ |
|
|
|
#ifdef YYPARSE_PARAM |
|
#if defined __STDC__ || defined __cplusplus |
|
int yyparse (void *YYPARSE_PARAM); |
|
#else |
|
int yyparse (); |
|
#endif |
|
#else /* ! YYPARSE_PARAM */ |
|
#if defined __STDC__ || defined __cplusplus |
|
int yyparse (void); |
|
#else |
|
int yyparse (); |
|
#endif |
|
#endif /* ! YYPARSE_PARAM */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
/*----------. |
/*----------. |
| yyparse. | |
| yyparse. | |
`----------*/ |
`----------*/ |
Line 3255 yyparse ()
|
Line 3282 yyparse ()
|
#endif |
#endif |
#endif |
#endif |
{ |
{ |
/* The look-ahead symbol. */ | /* The lookahead symbol. */ |
int yychar; |
int yychar; |
|
|
/* The semantic value of the look-ahead symbol. */ |
|
YYSTYPE yylval; |
|
|
|
/* Number of syntax errors so far. */ | #if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__ |
int yynerrs; | /* Suppress an incorrect diagnostic about yylval being uninitialized. */ |
| # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ |
int yystate; | _Pragma ("GCC diagnostic push") \ |
int yyn; | _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\ |
int yyresult; | _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") |
/* Number of tokens to shift before error messages enabled. */ | # define YY_IGNORE_MAYBE_UNINITIALIZED_END \ |
int yyerrstatus; | _Pragma ("GCC diagnostic pop") |
/* Look-ahead token as an internal (translated) token number. */ | #else |
int yytoken = 0; | /* Default value used for initialization, for pacifying older GCCs |
#if YYERROR_VERBOSE | or non-GCC compilers. */ |
/* Buffer for error messages, and its allocated size. */ | static YYSTYPE yyval_default; |
char yymsgbuf[128]; | # define YY_INITIAL_VALUE(Value) = Value |
char *yymsg = yymsgbuf; | |
YYSIZE_T yymsg_alloc = sizeof yymsgbuf; | |
#endif |
#endif |
|
#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
|
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
|
# define YY_IGNORE_MAYBE_UNINITIALIZED_END |
|
#endif |
|
#ifndef YY_INITIAL_VALUE |
|
# define YY_INITIAL_VALUE(Value) /* Nothing. */ |
|
#endif |
|
|
/* Three stacks and their tools: | /* The semantic value of the lookahead symbol. */ |
`yyss': related to states, | YYSTYPE yylval YY_INITIAL_VALUE(yyval_default); |
`yyvs': related to semantic values, | |
`yyls': related to locations. | |
|
|
Refer to the stacks thru separate pointers, to allow yyoverflow | /* Number of syntax errors so far. */ |
to reallocate them elsewhere. */ | int yynerrs; |
|
|
/* The state stack. */ | int yystate; |
yytype_int16 yyssa[YYINITDEPTH]; | /* Number of tokens to shift before error messages enabled. */ |
yytype_int16 *yyss = yyssa; | int yyerrstatus; |
yytype_int16 *yyssp; | |
|
|
/* The semantic value stack. */ | /* The stacks and their tools: |
YYSTYPE yyvsa[YYINITDEPTH]; | `yyss': related to states. |
YYSTYPE *yyvs = yyvsa; | `yyvs': related to semantic values. |
YYSTYPE *yyvsp; | |
|
|
|
Refer to the stacks through separate pointers, to allow yyoverflow |
|
to reallocate them elsewhere. */ |
|
|
|
/* The state stack. */ |
|
yytype_int16 yyssa[YYINITDEPTH]; |
|
yytype_int16 *yyss; |
|
yytype_int16 *yyssp; |
|
|
#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) | /* The semantic value stack. */ |
| YYSTYPE yyvsa[YYINITDEPTH]; |
| YYSTYPE *yyvs; |
| YYSTYPE *yyvsp; |
|
|
YYSIZE_T yystacksize = YYINITDEPTH; | YYSIZE_T yystacksize; |
|
|
|
int yyn; |
|
int yyresult; |
|
/* Lookahead token as an internal (translated) token number. */ |
|
int yytoken = 0; |
/* The variables used to return semantic value and location from the |
/* The variables used to return semantic value and location from the |
action routines. */ |
action routines. */ |
YYSTYPE yyval; |
YYSTYPE yyval; |
|
|
|
#if YYERROR_VERBOSE |
|
/* Buffer for error messages, and its allocated size. */ |
|
char yymsgbuf[128]; |
|
char *yymsg = yymsgbuf; |
|
YYSIZE_T yymsg_alloc = sizeof yymsgbuf; |
|
#endif |
|
|
|
#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) |
|
|
/* The number of symbols on the RHS of the reduced rule. |
/* The number of symbols on the RHS of the reduced rule. |
Keep to zero when no symbol should be popped. */ |
Keep to zero when no symbol should be popped. */ |
int yylen = 0; |
int yylen = 0; |
|
|
|
yyssp = yyss = yyssa; |
|
yyvsp = yyvs = yyvsa; |
|
yystacksize = YYINITDEPTH; |
|
|
YYDPRINTF ((stderr, "Starting parse\n")); |
YYDPRINTF ((stderr, "Starting parse\n")); |
|
|
yystate = 0; |
yystate = 0; |
yyerrstatus = 0; |
yyerrstatus = 0; |
yynerrs = 0; |
yynerrs = 0; |
yychar = YYEMPTY; /* Cause a token to be read. */ | yychar = YYEMPTY; /* Cause a token to be read. */ |
| |
/* Initialize stack pointers. | |
Waste one element of value and location stack | |
so that they stay on the same level as the state stack. | |
The wasted elements are never initialized. */ | |
| |
yyssp = yyss; | |
yyvsp = yyvs; | |
| |
goto yysetstate; |
goto yysetstate; |
|
|
/*------------------------------------------------------------. |
/*------------------------------------------------------------. |
Line 3352 int yynerrs;
|
Line 3394 int yynerrs;
|
YYSTYPE *yyvs1 = yyvs; |
YYSTYPE *yyvs1 = yyvs; |
yytype_int16 *yyss1 = yyss; |
yytype_int16 *yyss1 = yyss; |
|
|
|
|
/* Each stack pointer address is followed by the size of the |
/* Each stack pointer address is followed by the size of the |
data in use in that stack, in bytes. This used to be a |
data in use in that stack, in bytes. This used to be a |
conditional around just the two extra args, but that might |
conditional around just the two extra args, but that might |
Line 3360 int yynerrs;
|
Line 3401 int yynerrs;
|
yyoverflow (YY_("memory exhausted"), |
yyoverflow (YY_("memory exhausted"), |
&yyss1, yysize * sizeof (*yyssp), |
&yyss1, yysize * sizeof (*yyssp), |
&yyvs1, yysize * sizeof (*yyvsp), |
&yyvs1, yysize * sizeof (*yyvsp), |
|
|
&yystacksize); |
&yystacksize); |
|
|
yyss = yyss1; |
yyss = yyss1; |
Line 3383 int yynerrs;
|
Line 3423 int yynerrs;
|
(union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); |
(union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); |
if (! yyptr) |
if (! yyptr) |
goto yyexhaustedlab; |
goto yyexhaustedlab; |
YYSTACK_RELOCATE (yyss); | YYSTACK_RELOCATE (yyss_alloc, yyss); |
YYSTACK_RELOCATE (yyvs); | YYSTACK_RELOCATE (yyvs_alloc, yyvs); |
| |
# undef YYSTACK_RELOCATE |
# undef YYSTACK_RELOCATE |
if (yyss1 != yyssa) |
if (yyss1 != yyssa) |
YYSTACK_FREE (yyss1); |
YYSTACK_FREE (yyss1); |
Line 3396 int yynerrs;
|
Line 3435 int yynerrs;
|
yyssp = yyss + yysize - 1; |
yyssp = yyss + yysize - 1; |
yyvsp = yyvs + yysize - 1; |
yyvsp = yyvs + yysize - 1; |
|
|
|
|
YYDPRINTF ((stderr, "Stack size increased to %lu\n", |
YYDPRINTF ((stderr, "Stack size increased to %lu\n", |
(unsigned long int) yystacksize)); |
(unsigned long int) yystacksize)); |
|
|
Line 3406 int yynerrs;
|
Line 3444 int yynerrs;
|
|
|
YYDPRINTF ((stderr, "Entering state %d\n", yystate)); |
YYDPRINTF ((stderr, "Entering state %d\n", yystate)); |
|
|
|
if (yystate == YYFINAL) |
|
YYACCEPT; |
|
|
goto yybackup; |
goto yybackup; |
|
|
/*-----------. |
/*-----------. |
Line 3414 int yynerrs;
|
Line 3455 int yynerrs;
|
yybackup: |
yybackup: |
|
|
/* Do appropriate processing given the current state. Read a |
/* Do appropriate processing given the current state. Read a |
look-ahead token if we need one and don't already have one. */ | lookahead token if we need one and don't already have one. */ |
|
|
/* First try to decide what to do without reference to look-ahead token. */ | /* First try to decide what to do without reference to lookahead token. */ |
yyn = yypact[yystate]; |
yyn = yypact[yystate]; |
if (yyn == YYPACT_NINF) | if (yypact_value_is_default (yyn)) |
goto yydefault; |
goto yydefault; |
|
|
/* Not known => get a look-ahead token if don't already have one. */ | /* Not known => get a lookahead token if don't already have one. */ |
|
|
/* YYCHAR is either YYEMPTY or YYEOF or a valid look-ahead symbol. */ | /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */ |
if (yychar == YYEMPTY) |
if (yychar == YYEMPTY) |
{ |
{ |
YYDPRINTF ((stderr, "Reading a token: ")); |
YYDPRINTF ((stderr, "Reading a token: ")); |
Line 3449 yybackup:
|
Line 3490 yybackup:
|
yyn = yytable[yyn]; |
yyn = yytable[yyn]; |
if (yyn <= 0) |
if (yyn <= 0) |
{ |
{ |
if (yyn == 0 || yyn == YYTABLE_NINF) | if (yytable_value_is_error (yyn)) |
goto yyerrlab; | goto yyerrlab; |
yyn = -yyn; |
yyn = -yyn; |
goto yyreduce; |
goto yyreduce; |
} |
} |
|
|
if (yyn == YYFINAL) |
|
YYACCEPT; |
|
|
|
/* Count tokens shifted since error; after three, turn off error |
/* Count tokens shifted since error; after three, turn off error |
status. */ |
status. */ |
if (yyerrstatus) |
if (yyerrstatus) |
yyerrstatus--; |
yyerrstatus--; |
|
|
/* Shift the look-ahead token. */ | /* Shift the lookahead token. */ |
YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); |
YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); |
|
|
/* Discard the shifted token unless it is eof. */ | /* Discard the shifted token. */ |
if (yychar != YYEOF) | yychar = YYEMPTY; |
yychar = YYEMPTY; | |
|
|
yystate = yyn; |
yystate = yyn; |
|
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
*++yyvsp = yylval; |
*++yyvsp = yylval; |
|
YY_IGNORE_MAYBE_UNINITIALIZED_END |
|
|
goto yynewstate; |
goto yynewstate; |
|
|
Line 5790 yyreduce:
|
Line 5829 yyreduce:
|
break; |
break; |
|
|
|
|
/* Line 1267 of yacc.c. */ |
|
|
|
default: break; |
default: break; |
} |
} |
|
/* User semantic actions sometimes alter yychar, and that requires |
|
that yytoken be updated with the new translation. We take the |
|
approach of translating immediately before every use of yytoken. |
|
One alternative is translating here after every semantic action, |
|
but that translation would be missed if the semantic action invokes |
|
YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or |
|
if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an |
|
incorrect destructor might then be invoked immediately. In the |
|
case of YYERROR or YYBACKUP, subsequent parser actions might lead |
|
to an incorrect destructor call or verbose syntax error message |
|
before the lookahead is translated. */ |
YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); |
YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); |
|
|
YYPOPSTACK (yylen); |
YYPOPSTACK (yylen); |
Line 5802 yyreduce:
|
Line 5851 yyreduce:
|
|
|
*++yyvsp = yyval; |
*++yyvsp = yyval; |
|
|
|
|
/* Now `shift' the result of the reduction. Determine what state |
/* Now `shift' the result of the reduction. Determine what state |
that goes to, based on the state we popped back to and the rule |
that goes to, based on the state we popped back to and the rule |
number reduced by. */ |
number reduced by. */ |
Line 5822 yyreduce:
|
Line 5870 yyreduce:
|
| yyerrlab -- here on detecting error | |
| yyerrlab -- here on detecting error | |
`------------------------------------*/ |
`------------------------------------*/ |
yyerrlab: |
yyerrlab: |
|
/* Make sure we have latest lookahead translation. See comments at |
|
user semantic actions for why this is necessary. */ |
|
yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar); |
|
|
/* If not already recovering from an error, report this error. */ |
/* If not already recovering from an error, report this error. */ |
if (!yyerrstatus) |
if (!yyerrstatus) |
{ |
{ |
Line 5829 yyerrlab:
|
Line 5881 yyerrlab:
|
#if ! YYERROR_VERBOSE |
#if ! YYERROR_VERBOSE |
yyerror (YY_("syntax error")); |
yyerror (YY_("syntax error")); |
#else |
#else |
|
# define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \ |
|
yyssp, yytoken) |
{ |
{ |
YYSIZE_T yysize = yysyntax_error (0, yystate, yychar); | char const *yymsgp = YY_("syntax error"); |
if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM) | int yysyntax_error_status; |
{ | yysyntax_error_status = YYSYNTAX_ERROR; |
YYSIZE_T yyalloc = 2 * yysize; | if (yysyntax_error_status == 0) |
if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM)) | yymsgp = yymsg; |
yyalloc = YYSTACK_ALLOC_MAXIMUM; | else if (yysyntax_error_status == 1) |
if (yymsg != yymsgbuf) | { |
YYSTACK_FREE (yymsg); | if (yymsg != yymsgbuf) |
yymsg = (char *) YYSTACK_ALLOC (yyalloc); | YYSTACK_FREE (yymsg); |
if (yymsg) | yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc); |
yymsg_alloc = yyalloc; | if (!yymsg) |
else | { |
{ | yymsg = yymsgbuf; |
yymsg = yymsgbuf; | yymsg_alloc = sizeof yymsgbuf; |
yymsg_alloc = sizeof yymsgbuf; | yysyntax_error_status = 2; |
} | } |
} | else |
| { |
if (0 < yysize && yysize <= yymsg_alloc) | yysyntax_error_status = YYSYNTAX_ERROR; |
{ | yymsgp = yymsg; |
(void) yysyntax_error (yymsg, yystate, yychar); | } |
yyerror (yymsg); | } |
} | yyerror (yymsgp); |
else | if (yysyntax_error_status == 2) |
{ | goto yyexhaustedlab; |
yyerror (YY_("syntax error")); | |
if (yysize != 0) | |
goto yyexhaustedlab; | |
} | |
} |
} |
|
# undef YYSYNTAX_ERROR |
#endif |
#endif |
} |
} |
|
|
Line 5867 yyerrlab:
|
Line 5918 yyerrlab:
|
|
|
if (yyerrstatus == 3) |
if (yyerrstatus == 3) |
{ |
{ |
/* If just tried and failed to reuse look-ahead token after an | /* If just tried and failed to reuse lookahead token after an |
error, discard it. */ |
error, discard it. */ |
|
|
if (yychar <= YYEOF) |
if (yychar <= YYEOF) |
Line 5884 yyerrlab:
|
Line 5935 yyerrlab:
|
} |
} |
} |
} |
|
|
/* Else will try to reuse look-ahead token after shifting the error | /* Else will try to reuse lookahead token after shifting the error |
token. */ |
token. */ |
goto yyerrlab1; |
goto yyerrlab1; |
|
|
Line 5918 yyerrlab1:
|
Line 5969 yyerrlab1:
|
for (;;) |
for (;;) |
{ |
{ |
yyn = yypact[yystate]; |
yyn = yypact[yystate]; |
if (yyn != YYPACT_NINF) | if (!yypact_value_is_default (yyn)) |
{ |
{ |
yyn += YYTERROR; |
yyn += YYTERROR; |
if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) |
if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) |
Line 5941 yyerrlab1:
|
Line 5992 yyerrlab1:
|
YY_STACK_PRINT (yyss, yyssp); |
YY_STACK_PRINT (yyss, yyssp); |
} |
} |
|
|
if (yyn == YYFINAL) | YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
YYACCEPT; | |
| |
*++yyvsp = yylval; |
*++yyvsp = yylval; |
|
YY_IGNORE_MAYBE_UNINITIALIZED_END |
|
|
|
|
/* Shift the error token. */ |
/* Shift the error token. */ |
Line 5968 yyabortlab:
|
Line 6018 yyabortlab:
|
yyresult = 1; |
yyresult = 1; |
goto yyreturn; |
goto yyreturn; |
|
|
#ifndef yyoverflow | #if !defined yyoverflow || YYERROR_VERBOSE |
/*-------------------------------------------------. |
/*-------------------------------------------------. |
| yyexhaustedlab -- memory exhaustion comes here. | |
| yyexhaustedlab -- memory exhaustion comes here. | |
`-------------------------------------------------*/ |
`-------------------------------------------------*/ |
Line 5979 yyexhaustedlab:
|
Line 6029 yyexhaustedlab:
|
#endif |
#endif |
|
|
yyreturn: |
yyreturn: |
if (yychar != YYEOF && yychar != YYEMPTY) | if (yychar != YYEMPTY) |
yydestruct ("Cleanup: discarding lookahead", | { |
yytoken, &yylval); | /* Make sure we have latest lookahead translation. See comments at |
| user semantic actions for why this is necessary. */ |
| yytoken = YYTRANSLATE (yychar); |
| yydestruct ("Cleanup: discarding lookahead", |
| yytoken, &yylval); |
| } |
/* Do not reclaim the symbols of the rule which action triggered |
/* Do not reclaim the symbols of the rule which action triggered |
this YYABORT or YYACCEPT. */ |
this YYABORT or YYACCEPT. */ |
YYPOPSTACK (yylen); |
YYPOPSTACK (yylen); |
Line 6083 static YYSIZE_T zend_yytnamerr(char *yyres, const char
|
Line 6138 static YYSIZE_T zend_yytnamerr(char *yyres, const char
|
* indent-tabs-mode: t |
* indent-tabs-mode: t |
* End: |
* End: |
*/ |
*/ |
|
|