| 1 |
// SPDX-License-Identifier: LGPL-2.1-or-later |
| 2 |
/* A Bison parser, made by GNU Bison 2.4.2. */ |
| 3 |
|
| 4 |
/* Skeleton implementation for Bison's Yacc-like parsers in C |
| 5 |
|
| 6 |
Copyright (C) 1984, 1989-1990, 2000-2006, 2009-2010 Free Software |
| 7 |
Foundation, Inc. |
| 8 |
|
| 9 |
This program is free software: you can redistribute it and/or modify |
| 10 |
it under the terms of the GNU General Public License as published by |
| 11 |
the Free Software Foundation, either version 3 of the License, or |
| 12 |
(at your option) any later version. |
| 13 |
|
| 14 |
This program is distributed in the hope that it will be useful, |
| 15 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 |
GNU General Public License for more details. |
| 18 |
|
| 19 |
You should have received a copy of the GNU General Public License |
| 20 |
along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
| 21 |
|
| 22 |
/* As a special exception, you may create a larger work that contains |
| 23 |
part or all of the Bison parser skeleton and distribute that work |
| 24 |
under terms of your choice, so long as that work isn't itself a |
| 25 |
parser generator using the skeleton or a modified version thereof |
| 26 |
as a parser skeleton. Alternatively, if you modify or redistribute |
| 27 |
the parser skeleton itself, you may (at your option) remove this |
| 28 |
special exception, which will cause the skeleton and the resulting |
| 29 |
Bison output files to be licensed under the GNU General Public |
| 30 |
License without this special exception. |
| 31 |
|
| 32 |
This special exception was added by the Free Software Foundation in |
| 33 |
version 2.2 of Bison. */ |
| 34 |
|
| 35 |
/* C LALR(1) parser skeleton written by Richard Stallman, by |
| 36 |
simplifying the original so-called "semantic" parser. */ |
| 37 |
|
| 38 |
/* All symbols defined below should begin with yy or YY, to avoid |
| 39 |
infringing on user name space. This should be done even for local |
| 40 |
variables, as they might otherwise be expanded by user macros. |
| 41 |
There are some unavoidable exceptions within include files to |
| 42 |
define necessary library symbols; they are noted "INFRINGES ON |
| 43 |
USER NAME SPACE" below. */ |
| 44 |
|
| 45 |
/* Identify Bison output. */ |
| 46 |
#define YYBISON 1 |
| 47 |
|
| 48 |
/* Bison version. */ |
| 49 |
#define YYBISON_VERSION "2.4.2" |
| 50 |
|
| 51 |
/* Skeleton name. */ |
| 52 |
#define YYSKELETON_NAME "yacc.c" |
| 53 |
|
| 54 |
/* Pure parsers. */ |
| 55 |
#define YYPURE 0 |
| 56 |
|
| 57 |
/* Push parsers. */ |
| 58 |
#define YYPUSH 0 |
| 59 |
|
| 60 |
/* Pull parsers. */ |
| 61 |
#define YYPULL 1 |
| 62 |
|
| 63 |
/* Using locations. */ |
| 64 |
#define YYLSP_NEEDED 0 |
| 65 |
|
| 66 |
|
| 67 |
/* Copy the first part of user declarations. */ |
| 68 |
|
| 69 |
|
| 70 |
/* Line 189 of yacc.c */ |
| 71 |
#line 72 "SelectionFilter.tab.c" |
| 72 |
|
| 73 |
/* Enabling traces. */ |
| 74 |
#ifndef YYDEBUG |
| 75 |
# define YYDEBUG 0 |
| 76 |
#endif |
| 77 |
|
| 78 |
/* Enabling verbose error messages. */ |
| 79 |
#ifdef YYERROR_VERBOSE |
| 80 |
# undef YYERROR_VERBOSE |
| 81 |
# define YYERROR_VERBOSE 1 |
| 82 |
#else |
| 83 |
# define YYERROR_VERBOSE 0 |
| 84 |
#endif |
| 85 |
|
| 86 |
/* Enabling the token table. */ |
| 87 |
#ifndef YYTOKEN_TABLE |
| 88 |
# define YYTOKEN_TABLE 0 |
| 89 |
#endif |
| 90 |
|
| 91 |
|
| 92 |
/* Tokens. */ |
| 93 |
#ifndef YYTOKENTYPE |
| 94 |
# define YYTOKENTYPE |
| 95 |
/* Put the tokens into the symbol table, so that GDB and other debuggers |
| 96 |
know about them. */ |
| 97 |
enum yytokentype |
| 98 |
{ |
| 99 |
TIDENTIFIER = 258, |
| 100 |
TSUB = 259, |
| 101 |
TSELECT = 260, |
| 102 |
TCOUNT = 261, |
| 103 |
TSLICE = 262, |
| 104 |
TNAMESPACE = 263, |
| 105 |
TNUMBER = 264 |
| 106 |
}; |
| 107 |
#endif |
| 108 |
|
| 109 |
|
| 110 |
#if !defined YYSTYPE && !defined YYSTYPE_IS_DECLARED |
| 111 |
typedef union YYSTYPE |
| 112 |
{ |
| 113 |
|
| 114 |
/* Line 214 of yacc.c */ |
| 115 |
# line 8 "SelectionFilter.y" |
| 116 |
|
| 117 |
std::string* string; |
| 118 |
Node_Object* object; |
| 119 |
Node_Slice* slice; |
| 120 |
Node_Block* block; |
| 121 |
int token; |
| 122 |
int number; |
| 123 |
|
| 124 |
|
| 125 |
/* Line 214 of yacc.c */ |
| 126 |
# line 128 "SelectionFilter.tab.c" |
| 127 |
} YYSTYPE; |
| 128 |
# define YYSTYPE_IS_TRIVIAL 1 |
| 129 |
# define yystype YYSTYPE /* obsolescent; will be withdrawn */ |
| 130 |
# define YYSTYPE_IS_DECLARED 1 |
| 131 |
#endif |
| 132 |
|
| 133 |
|
| 134 |
/* Copy the second part of user declarations. */ |
| 135 |
|
| 136 |
|
| 137 |
/* Line 264 of yacc.c */ |
| 138 |
#line 140 "SelectionFilter.tab.c" |
| 139 |
|
| 140 |
#ifdef short |
| 141 |
# undef short |
| 142 |
#endif |
| 143 |
|
| 144 |
#ifdef YYTYPE_UINT8 |
| 145 |
typedef YYTYPE_UINT8 yytype_uint8; |
| 146 |
#else |
| 147 |
typedef unsigned char yytype_uint8; |
| 148 |
#endif |
| 149 |
|
| 150 |
#ifdef YYTYPE_INT8 |
| 151 |
typedef YYTYPE_INT8 yytype_int8; |
| 152 |
#elif (defined __STDC__ || defined __C99__FUNC__ || defined __cplusplus || defined _MSC_VER) |
| 153 |
typedef signed char yytype_int8; |
| 154 |
#else |
| 155 |
typedef short int yytype_int8; |
| 156 |
#endif |
| 157 |
|
| 158 |
#ifdef YYTYPE_UINT16 |
| 159 |
typedef YYTYPE_UINT16 yytype_uint16; |
| 160 |
#else |
| 161 |
typedef unsigned short int yytype_uint16; |
| 162 |
#endif |
| 163 |
|
| 164 |
#ifdef YYTYPE_INT16 |
| 165 |
typedef YYTYPE_INT16 yytype_int16; |
| 166 |
#else |
| 167 |
typedef short int yytype_int16; |
| 168 |
#endif |
| 169 |
|
| 170 |
#ifndef YYSIZE_T |
| 171 |
# ifdef __SIZE_TYPE__ |
| 172 |
# define YYSIZE_T __SIZE_TYPE__ |
| 173 |
# elif defined size_t |
| 174 |
# define YYSIZE_T size_t |
| 175 |
# elif !defined YYSIZE_T \ |
| 176 |
&& (defined __STDC__ || defined __C99__FUNC__ || defined __cplusplus || defined _MSC_VER) |
| 177 |
# include <stddef.h> /* INFRINGES ON USER NAME SPACE */ |
| 178 |
# define YYSIZE_T size_t |
| 179 |
# else |
| 180 |
# define YYSIZE_T unsigned int |
| 181 |
# endif |
| 182 |
#endif |
| 183 |
|
| 184 |
#define YYSIZE_MAXIMUM ((YYSIZE_T) - 1) |
| 185 |
|
| 186 |
#ifndef YY_ |
| 187 |
# if defined YYENABLE_NLS && YYENABLE_NLS |
| 188 |
# if ENABLE_NLS |
| 189 |
# include <libintl.h> /* INFRINGES ON USER NAME SPACE */ |
| 190 |
# define YY_(msgid) dgettext("bison-runtime", msgid) |
| 191 |
# endif |
| 192 |
# endif |
| 193 |
# ifndef YY_ |
| 194 |
# define YY_(msgid) msgid |
| 195 |
# endif |
| 196 |
#endif |
| 197 |
|
| 198 |
/* Suppress unused-variable warnings by "using" E. */ |
| 199 |
#if !defined lint || defined __GNUC__ |
| 200 |
# define YYUSE(e) ((void)(e)) |
| 201 |
#else |
| 202 |
# define YYUSE(e) /* empty */ |
| 203 |
#endif |
| 204 |
|
| 205 |
/* Identity function, used to suppress warnings about constant conditions. */ |
| 206 |
#ifndef lint |
| 207 |
# define YYID(n) (n) |
| 208 |
#else |
| 209 |
# if (defined __STDC__ || defined __C99__FUNC__ || defined __cplusplus || defined _MSC_VER) |
| 210 |
static int YYID(int yyi) |
| 211 |
# else |
| 212 |
static int YYID(yyi) |
| 213 |
int yyi; |
| 214 |
# endif |
| 215 |
{ |
| 216 |
return yyi; |
| 217 |
} |
| 218 |
#endif |
| 219 |
|
| 220 |
#if !defined yyoverflow || YYERROR_VERBOSE |
| 221 |
|
| 222 |
/* The parser invokes alloca or malloc; define the necessary symbols. */ |
| 223 |
|
| 224 |
# ifdef YYSTACK_USE_ALLOCA |
| 225 |
# if YYSTACK_USE_ALLOCA |
| 226 |
# ifdef __GNUC__ |
| 227 |
# define YYSTACK_ALLOC __builtin_alloca |
| 228 |
# elif defined __BUILTIN_VA_ARG_INCR |
| 229 |
# include <alloca.h> /* INFRINGES ON USER NAME SPACE */ |
| 230 |
# elif defined _AIX |
| 231 |
# define YYSTACK_ALLOC __alloca |
| 232 |
# elif defined _MSC_VER |
| 233 |
# include <malloc.h> /* INFRINGES ON USER NAME SPACE */ |
| 234 |
# define alloca _alloca |
| 235 |
# else |
| 236 |
# define YYSTACK_ALLOC alloca |
| 237 |
# if !defined _ALLOCA_H && !defined _STDLIB_H \ |
| 238 |
&& (defined __STDC__ || defined __C99__FUNC__ || defined __cplusplus || defined _MSC_VER) |
| 239 |
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ |
| 240 |
# ifndef _STDLIB_H |
| 241 |
# define _STDLIB_H 1 |
| 242 |
# endif |
| 243 |
# endif |
| 244 |
# endif |
| 245 |
# endif |
| 246 |
# endif |
| 247 |
|
| 248 |
# ifdef YYSTACK_ALLOC |
| 249 |
/* Pacify GCC's `empty if-body' warning. */ |
| 250 |
# define YYSTACK_FREE(Ptr) \ |
| 251 |
do { /* empty */ \ |
| 252 |
; \ |
| 253 |
} while (YYID(0)) |
| 254 |
# ifndef YYSTACK_ALLOC_MAXIMUM |
| 255 |
/* The OS might guarantee only one guard page at the bottom of the stack, |
| 256 |
and a page size can be as small as 4096 bytes. So we cannot safely |
| 257 |
invoke alloca (N) if N exceeds 4096. Use a slightly smaller number |
| 258 |
to allow for a few compiler-allocated temporary stack slots. */ |
| 259 |
# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */ |
| 260 |
# endif |
| 261 |
# else |
| 262 |
# define YYSTACK_ALLOC YYMALLOC |
| 263 |
# define YYSTACK_FREE YYFREE |
| 264 |
# ifndef YYSTACK_ALLOC_MAXIMUM |
| 265 |
# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
| 266 |
# endif |
| 267 |
# if (defined __cplusplus && !defined _STDLIB_H \ |
| 268 |
&& !((defined YYMALLOC || defined malloc) && (defined YYFREE || defined free))) |
| 269 |
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ |
| 270 |
# ifndef _STDLIB_H |
| 271 |
# define _STDLIB_H 1 |
| 272 |
# endif |
| 273 |
# endif |
| 274 |
# ifndef YYMALLOC |
| 275 |
# define YYMALLOC malloc |
| 276 |
# if !defined malloc && !defined _STDLIB_H \ |
| 277 |
&& (defined __STDC__ || defined __C99__FUNC__ || defined __cplusplus || defined _MSC_VER) |
| 278 |
void* malloc(YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ |
| 279 |
# endif |
| 280 |
# endif |
| 281 |
# ifndef YYFREE |
| 282 |
# define YYFREE free |
| 283 |
# if !defined free && !defined _STDLIB_H \ |
| 284 |
&& (defined __STDC__ || defined __C99__FUNC__ || defined __cplusplus || defined _MSC_VER) |
| 285 |
void free(void*); /* INFRINGES ON USER NAME SPACE */ |
| 286 |
# endif |
| 287 |
# endif |
| 288 |
# endif |
| 289 |
#endif /* ! defined yyoverflow || YYERROR_VERBOSE */ |
| 290 |
|
| 291 |
|
| 292 |
#if (!defined yyoverflow \ |
| 293 |
&& (!defined __cplusplus || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) |
| 294 |
|
| 295 |
/* A type that is properly aligned for any stack member. */ |
| 296 |
union yyalloc |
| 297 |
{ |
| 298 |
yytype_int16 yyss_alloc; |
| 299 |
YYSTYPE yyvs_alloc; |
| 300 |
}; |
| 301 |
|
| 302 |
/* The size of the maximum gap between one aligned stack and the next. */ |
| 303 |
# define YYSTACK_GAP_MAXIMUM (sizeof(union yyalloc) - 1) |
| 304 |
|
| 305 |
/* The size of an array large to enough to hold all stacks, each with |
| 306 |
N elements. */ |
| 307 |
# define YYSTACK_BYTES(N) ((N) * (sizeof(yytype_int16) + sizeof(YYSTYPE)) + YYSTACK_GAP_MAXIMUM) |
| 308 |
|
| 309 |
/* Copy COUNT objects from FROM to TO. The source and destination do |
| 310 |
not overlap. */ |
| 311 |
# ifndef YYCOPY |
| 312 |
# if defined __GNUC__ && 1 < __GNUC__ |
| 313 |
# define YYCOPY(To, From, Count) __builtin_memcpy(To, From, (Count) * sizeof(*(From))) |
| 314 |
# else |
| 315 |
# define YYCOPY(To, From, Count) \ |
| 316 |
do { \ |
| 317 |
YYSIZE_T yyi; \ |
| 318 |
for (yyi = 0; yyi < (Count); yyi++) \ |
| 319 |
(To)[yyi] = (From)[yyi]; \ |
| 320 |
} while (YYID(0)) |
| 321 |
# endif |
| 322 |
# endif |
| 323 |
|
| 324 |
/* Relocate STACK from its old location to the new one. The |
| 325 |
local variables YYSIZE and YYSTACKSIZE give the old and new number of |
| 326 |
elements in the stack, and YYPTR gives the new location of the |
| 327 |
stack. Advance YYPTR to a properly aligned location for the next |
| 328 |
stack. */ |
| 329 |
# define YYSTACK_RELOCATE(Stack_alloc, Stack) \ |
| 330 |
do { \ |
| 331 |
YYSIZE_T yynewbytes; \ |
| 332 |
YYCOPY(&yyptr->Stack_alloc, Stack, yysize); \ |
| 333 |
Stack = &yyptr->Stack_alloc; \ |
| 334 |
yynewbytes = yystacksize * sizeof(*Stack) + YYSTACK_GAP_MAXIMUM; \ |
| 335 |
yyptr += yynewbytes / sizeof(*yyptr); \ |
| 336 |
} while (YYID(0)) |
| 337 |
|
| 338 |
#endif |
| 339 |
|
| 340 |
/* YYFINAL -- State number of the termination state. */ |
| 341 |
#define YYFINAL 11 |
| 342 |
/* YYLAST -- Last index in YYTABLE. */ |
| 343 |
#define YYLAST 15 |
| 344 |
|
| 345 |
/* YYNTOKENS -- Number of terminals. */ |
| 346 |
#define YYNTOKENS 10 |
| 347 |
/* YYNNTS -- Number of nonterminals. */ |
| 348 |
#define YYNNTS 8 |
| 349 |
/* YYNRULES -- Number of rules. */ |
| 350 |
#define YYNRULES 14 |
| 351 |
/* YYNRULES -- Number of states. */ |
| 352 |
#define YYNSTATES 20 |
| 353 |
|
| 354 |
/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ |
| 355 |
#define YYUNDEFTOK 2 |
| 356 |
#define YYMAXUTOK 264 |
| 357 |
|
| 358 |
#define YYTRANSLATE(YYX) ((unsigned int)(YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
| 359 |
|
| 360 |
/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */ |
| 361 |
static const yytype_uint8 yytranslate[] = { |
| 362 |
0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 363 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 364 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 365 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 366 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 367 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 368 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 369 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 370 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9 |
| 371 |
}; |
| 372 |
|
| 373 |
#if YYDEBUG |
| 374 |
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in |
| 375 |
YYRHS. */ |
| 376 |
static const yytype_uint8 yyprhs[] = {0, 0, 3, 6, 11, 12, 15, 16, 21, 25, 28, 32, 34, 37, 39}; |
| 377 |
|
| 378 |
/* YYRHS -- A `-1'-separated list of the rules' RHS. */ |
| 379 |
static const yytype_int8 yyrhs[] = {17, 0, -1, 5, 3, -1, 5, 3, 8, 3, -1, -1, 4, 3, |
| 380 |
-1, -1, 6, 9, 7, 9, -1, 6, 9, 7, -1, 6, 9, -1, |
| 381 |
11, 12, 13, -1, 14, -1, 15, 14, -1, 15, -1, 16, -1}; |
| 382 |
|
| 383 |
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */ |
| 384 |
static const yytype_uint8 yyrline[] = {0, 39, 39, 40, 42, 43, 45, 46, 47, 48, 50, 52, 53, 55, 57}; |
| 385 |
#endif |
| 386 |
|
| 387 |
#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE |
| 388 |
/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. |
| 389 |
First, the terminals, then, starting at YYNTOKENS, nonterminals. */ |
| 390 |
static const char* const yytname[] = { |
| 391 |
"$end", |
| 392 |
"error", |
| 393 |
"$undefined", |
| 394 |
"TIDENTIFIER", |
| 395 |
"TSUB", |
| 396 |
"TSELECT", |
| 397 |
"TCOUNT", |
| 398 |
"TSLICE", |
| 399 |
"TNAMESPACE", |
| 400 |
"TNUMBER", |
| 401 |
"$accept", |
| 402 |
"type", |
| 403 |
"subname", |
| 404 |
"count", |
| 405 |
"matchline", |
| 406 |
"matchlines", |
| 407 |
"block", |
| 408 |
"filter", |
| 409 |
0 |
| 410 |
}; |
| 411 |
#endif |
| 412 |
|
| 413 |
#ifdef YYPRINT |
| 414 |
/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to |
| 415 |
token YYLEX-NUM. */ |
| 416 |
static const yytype_uint16 yytoknum[] = {0, 256, 257, 258, 259, 260, 261, 262, 263, 264}; |
| 417 |
#endif |
| 418 |
|
| 419 |
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ |
| 420 |
static const yytype_uint8 yyr1[] = {0, 10, 11, 11, 12, 12, 13, 13, 13, 13, 14, 15, 15, 16, 17}; |
| 421 |
|
| 422 |
/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ |
| 423 |
static const yytype_uint8 yyr2[] = {0, 2, 2, 4, 0, 2, 0, 4, 3, 2, 3, 1, 2, 1, 1}; |
| 424 |
|
| 425 |
/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state |
| 426 |
STATE-NUM when YYTABLE doesn't specify something else to do. Zero |
| 427 |
means the default is an error. */ |
| 428 |
static const yytype_uint8 yydefact[] = {0, 0, 4, 11, 13, 14, 0, 2, 0, 6, |
| 429 |
12, 1, 0, 5, 0, 10, 3, 9, 8, 7}; |
| 430 |
|
| 431 |
/* YYDEFGOTO[NTERM-NUM]. */ |
| 432 |
static const yytype_int8 yydefgoto[] = {-1, 2, 9, 15, 3, 4, 5, 6}; |
| 433 |
|
| 434 |
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing |
| 435 |
STATE-NUM. */ |
| 436 |
#define YYPACT_NINF -6 |
| 437 |
static const yytype_int8 yypact[] = {-5, -2, -1, -6, -5, -6, 2, -4, 3, 1, |
| 438 |
-6, -6, 5, -6, 0, -6, -6, 4, 6, -6}; |
| 439 |
|
| 440 |
/* YYPGOTO[NTERM-NUM]. */ |
| 441 |
static const yytype_int8 yypgoto[] = {-6, -6, -6, -6, 8, -6, -6, -6}; |
| 442 |
|
| 443 |
/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If |
| 444 |
positive, shift that token. If negative, reduce the rule which |
| 445 |
number is the opposite. If zero, do what YYDEFACT says. |
| 446 |
If YYTABLE_NINF, syntax error. */ |
| 447 |
#define YYTABLE_NINF -1 |
| 448 |
static const yytype_uint8 yytable[] = {1, 7, 11, 8, 12, 0, 13, 14, 16, 17, 0, 18, 10, 0, 0, 19}; |
| 449 |
|
| 450 |
static const yytype_int8 yycheck[] = {5, 3, 0, 4, 8, -1, 3, 6, 3, 9, -1, 7, 4, -1, -1, 9}; |
| 451 |
|
| 452 |
/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing |
| 453 |
symbol of state STATE-NUM. */ |
| 454 |
static const yytype_uint8 yystos[] = {0, 5, 11, 14, 15, 16, 17, 3, 4, 12, |
| 455 |
14, 0, 8, 3, 6, 13, 3, 9, 7, 9}; |
| 456 |
|
| 457 |
#define yyerrok (yyerrstatus = 0) |
| 458 |
#define yyclearin (yychar = YYEMPTY) |
| 459 |
#define YYEMPTY (-2) |
| 460 |
#define YYEOF 0 |
| 461 |
|
| 462 |
#define YYACCEPT goto yyacceptlab |
| 463 |
#define YYABORT goto yyabortlab |
| 464 |
#define YYERROR goto yyerrorlab |
| 465 |
|
| 466 |
|
| 467 |
/* Like YYERROR except do call yyerror. This remains here temporarily |
| 468 |
to ease the transition to the new meaning of YYERROR, for GCC. |
| 469 |
Once GCC version 2 has supplanted version 1, this can go. However, |
| 470 |
YYFAIL appears to be in use. Nevertheless, it is formally deprecated |
| 471 |
in Bison 2.4.2's NEWS entry, where a plan to phase it out is |
| 472 |
discussed. */ |
| 473 |
|
| 474 |
#define YYFAIL goto yyerrlab |
| 475 |
#if defined YYFAIL |
| 476 |
/* This is here to suppress warnings from the GCC cpp's |
| 477 |
-Wunused-macros. Normally we don't worry about that warning, but |
| 478 |
some users do, and we want to make it easy for users to remove |
| 479 |
YYFAIL uses, which will produce warnings from Bison 2.5. */ |
| 480 |
#endif |
| 481 |
|
| 482 |
#define YYRECOVERING() (!!yyerrstatus) |
| 483 |
|
| 484 |
#define YYBACKUP(Token, Value) \ |
| 485 |
do \ |
| 486 |
if (yychar == YYEMPTY && yylen == 1) { \ |
| 487 |
yychar = (Token); \ |
| 488 |
yylval = (Value); \ |
| 489 |
yytoken = YYTRANSLATE(yychar); \ |
| 490 |
YYPOPSTACK(1); \ |
| 491 |
goto yybackup; \ |
| 492 |
} \ |
| 493 |
else { \ |
| 494 |
yyerror(YY_("syntax error: cannot back up")); \ |
| 495 |
YYERROR; \ |
| 496 |
} \ |
| 497 |
while (YYID(0)) |
| 498 |
|
| 499 |
|
| 500 |
#define YYTERROR 1 |
| 501 |
#define YYERRCODE 256 |
| 502 |
|
| 503 |
|
| 504 |
/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N]. |
| 505 |
If N is 0, then set CURRENT to the empty location which ends |
| 506 |
the previous symbol: RHS[0] (always defined). */ |
| 507 |
|
| 508 |
#define YYRHSLOC(Rhs, K) ((Rhs)[K]) |
| 509 |
#ifndef YYLLOC_DEFAULT |
| 510 |
# define YYLLOC_DEFAULT(Current, Rhs, N) \ |
| 511 |
do \ |
| 512 |
if (YYID(N)) { \ |
| 513 |
(Current).first_line = YYRHSLOC(Rhs, 1).first_line; \ |
| 514 |
(Current).first_column = YYRHSLOC(Rhs, 1).first_column; \ |
| 515 |
(Current).last_line = YYRHSLOC(Rhs, N).last_line; \ |
| 516 |
(Current).last_column = YYRHSLOC(Rhs, N).last_column; \ |
| 517 |
} \ |
| 518 |
else { \ |
| 519 |
(Current).first_line = (Current).last_line = YYRHSLOC(Rhs, 0).last_line; \ |
| 520 |
(Current).first_column = (Current).last_column = YYRHSLOC(Rhs, 0).last_column; \ |
| 521 |
} \ |
| 522 |
while (YYID(0)) |
| 523 |
#endif |
| 524 |
|
| 525 |
|
| 526 |
/* YY_LOCATION_PRINT -- Print the location on the stream. |
| 527 |
This macro was not mandated originally: define only if we know |
| 528 |
we won't break user code: when these are the locations we know. */ |
| 529 |
|
| 530 |
#ifndef YY_LOCATION_PRINT |
| 531 |
# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL |
| 532 |
# define YY_LOCATION_PRINT(File, Loc) \ |
| 533 |
fprintf(File, "%d.%d-%d.%d", (Loc).first_line, (Loc).first_column, (Loc).last_line, (Loc).last_column) |
| 534 |
# else |
| 535 |
# define YY_LOCATION_PRINT(File, Loc) ((void)0) |
| 536 |
# endif |
| 537 |
#endif |
| 538 |
|
| 539 |
|
| 540 |
/* YYLEX -- calling `yylex' with the right arguments. */ |
| 541 |
|
| 542 |
#ifdef YYLEX_PARAM |
| 543 |
# define YYLEX yylex(YYLEX_PARAM) |
| 544 |
#else |
| 545 |
# define YYLEX yylex() |
| 546 |
#endif |
| 547 |
|
| 548 |
/* Enable debugging if requested. */ |
| 549 |
#if YYDEBUG |
| 550 |
|
| 551 |
# ifndef YYFPRINTF |
| 552 |
# include <stdio.h> /* INFRINGES ON USER NAME SPACE */ |
| 553 |
# define YYFPRINTF fprintf |
| 554 |
# endif |
| 555 |
|
| 556 |
# define YYDPRINTF(Args) \ |
| 557 |
do { \ |
| 558 |
if (yydebug) \ |
| 559 |
YYFPRINTF Args; \ |
| 560 |
} while (YYID(0)) |
| 561 |
|
| 562 |
# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ |
| 563 |
do { \ |
| 564 |
if (yydebug) { \ |
| 565 |
YYFPRINTF(stderr, "%s ", Title); \ |
| 566 |
yy_symbol_print(stderr, Type, Value); \ |
| 567 |
YYFPRINTF(stderr, "\n"); \ |
| 568 |
} \ |
| 569 |
} while (YYID(0)) |
| 570 |
|
| 571 |
|
| 572 |
/*--------------------------------. |
| 573 |
| Print this symbol on YYOUTPUT. | |
| 574 |
`--------------------------------*/ |
| 575 |
|
| 576 |
/*ARGSUSED*/ |
| 577 |
# if (defined __STDC__ || defined __C99__FUNC__ || defined __cplusplus || defined _MSC_VER) |
| 578 |
static void yy_symbol_value_print(FILE* yyoutput, int yytype, YYSTYPE const* const yyvaluep) |
| 579 |
# else |
| 580 |
static void yy_symbol_value_print(yyoutput, yytype, yyvaluep) FILE* yyoutput; |
| 581 |
int yytype; |
| 582 |
YYSTYPE const* const yyvaluep; |
| 583 |
# endif |
| 584 |
{ |
| 585 |
if (!yyvaluep) { |
| 586 |
return; |
| 587 |
} |
| 588 |
# ifdef YYPRINT |
| 589 |
if (yytype < YYNTOKENS) { |
| 590 |
YYPRINT(yyoutput, yytoknum[yytype], *yyvaluep); |
| 591 |
} |
| 592 |
# else |
| 593 |
YYUSE(yyoutput); |
| 594 |
# endif |
| 595 |
switch (yytype) { |
| 596 |
default: |
| 597 |
break; |
| 598 |
} |
| 599 |
} |
| 600 |
|
| 601 |
|
| 602 |
/*--------------------------------. |
| 603 |
| Print this symbol on YYOUTPUT. | |
| 604 |
`--------------------------------*/ |
| 605 |
|
| 606 |
# if (defined __STDC__ || defined __C99__FUNC__ || defined __cplusplus || defined _MSC_VER) |
| 607 |
static void yy_symbol_print(FILE* yyoutput, int yytype, YYSTYPE const* const yyvaluep) |
| 608 |
# else |
| 609 |
static void yy_symbol_print(yyoutput, yytype, yyvaluep) FILE* yyoutput; |
| 610 |
int yytype; |
| 611 |
YYSTYPE const* const yyvaluep; |
| 612 |
# endif |
| 613 |
{ |
| 614 |
if (yytype < YYNTOKENS) { |
| 615 |
YYFPRINTF(yyoutput, "token %s (", yytname[yytype]); |
| 616 |
} |
| 617 |
else { |
| 618 |
YYFPRINTF(yyoutput, "nterm %s (", yytname[yytype]); |
| 619 |
} |
| 620 |
|
| 621 |
yy_symbol_value_print(yyoutput, yytype, yyvaluep); |
| 622 |
YYFPRINTF(yyoutput, ")"); |
| 623 |
} |
| 624 |
|
| 625 |
/*------------------------------------------------------------------. |
| 626 |
| yy_stack_print -- Print the state stack from its BOTTOM up to its | |
| 627 |
| TOP (included). | |
| 628 |
`------------------------------------------------------------------*/ |
| 629 |
|
| 630 |
# if (defined __STDC__ || defined __C99__FUNC__ || defined __cplusplus || defined _MSC_VER) |
| 631 |
static void yy_stack_print(yytype_int16* yybottom, yytype_int16* yytop) |
| 632 |
# else |
| 633 |
static void yy_stack_print(yybottom, yytop) yytype_int16* yybottom; |
| 634 |
yytype_int16* yytop; |
| 635 |
# endif |
| 636 |
{ |
| 637 |
YYFPRINTF(stderr, "Stack now"); |
| 638 |
for (; yybottom <= yytop; yybottom++) { |
| 639 |
int yybot = *yybottom; |
| 640 |
YYFPRINTF(stderr, " %d", yybot); |
| 641 |
} |
| 642 |
YYFPRINTF(stderr, "\n"); |
| 643 |
} |
| 644 |
|
| 645 |
# define YY_STACK_PRINT(Bottom, Top) \ |
| 646 |
do { \ |
| 647 |
if (yydebug) \ |
| 648 |
yy_stack_print((Bottom), (Top)); \ |
| 649 |
} while (YYID(0)) |
| 650 |
|
| 651 |
|
| 652 |
/*------------------------------------------------. |
| 653 |
| Report that the YYRULE is going to be reduced. | |
| 654 |
`------------------------------------------------*/ |
| 655 |
|
| 656 |
# if (defined __STDC__ || defined __C99__FUNC__ || defined __cplusplus || defined _MSC_VER) |
| 657 |
static void yy_reduce_print(YYSTYPE* yyvsp, int yyrule) |
| 658 |
# else |
| 659 |
static void yy_reduce_print(yyvsp, yyrule) YYSTYPE* yyvsp; |
| 660 |
int yyrule; |
| 661 |
# endif |
| 662 |
{ |
| 663 |
int yynrhs = yyr2[yyrule]; |
| 664 |
int yyi; |
| 665 |
unsigned long int yylno = yyrline[yyrule]; |
| 666 |
YYFPRINTF(stderr, "Reducing stack by rule %d (line %lu):\n", yyrule - 1, yylno); |
| 667 |
/* The symbols being reduced. */ |
| 668 |
for (yyi = 0; yyi < yynrhs; yyi++) { |
| 669 |
YYFPRINTF(stderr, " $%d = ", yyi + 1); |
| 670 |
yy_symbol_print(stderr, yyrhs[yyprhs[yyrule] + yyi], &(yyvsp[(yyi + 1) - (yynrhs)])); |
| 671 |
YYFPRINTF(stderr, "\n"); |
| 672 |
} |
| 673 |
} |
| 674 |
|
| 675 |
# define YY_REDUCE_PRINT(Rule) \ |
| 676 |
do { \ |
| 677 |
if (yydebug) \ |
| 678 |
yy_reduce_print(yyvsp, Rule); \ |
| 679 |
} while (YYID(0)) |
| 680 |
|
| 681 |
/* Nonzero means print parse trace. It is left uninitialized so that |
| 682 |
multiple parsers can coexist. */ |
| 683 |
int yydebug; |
| 684 |
#else /* !YYDEBUG */ |
| 685 |
# define YYDPRINTF(Args) |
| 686 |
# define YY_SYMBOL_PRINT(Title, Type, Value, Location) |
| 687 |
# define YY_STACK_PRINT(Bottom, Top) |
| 688 |
# define YY_REDUCE_PRINT(Rule) |
| 689 |
#endif /* !YYDEBUG */ |
| 690 |
|
| 691 |
|
| 692 |
/* YYINITDEPTH -- initial size of the parser's stacks. */ |
| 693 |
#ifndef YYINITDEPTH |
| 694 |
# define YYINITDEPTH 200 |
| 695 |
#endif |
| 696 |
|
| 697 |
/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only |
| 698 |
if the built-in stack extension method is used). |
| 699 |
|
| 700 |
Do not make this value too large; the results are undefined if |
| 701 |
YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH) |
| 702 |
evaluated with infinite-precision integer arithmetic. */ |
| 703 |
|
| 704 |
#ifndef YYMAXDEPTH |
| 705 |
# define YYMAXDEPTH 10000 |
| 706 |
#endif |
| 707 |
|
| 708 |
|
| 709 |
#if YYERROR_VERBOSE |
| 710 |
|
| 711 |
# ifndef yystrlen |
| 712 |
# if defined __GLIBC__ && defined _STRING_H |
| 713 |
# define yystrlen strlen |
| 714 |
# else |
| 715 |
/* Return the length of YYSTR. */ |
| 716 |
# if (defined __STDC__ || defined __C99__FUNC__ || defined __cplusplus || defined _MSC_VER) |
| 717 |
static YYSIZE_T yystrlen(const char* yystr) |
| 718 |
# else |
| 719 |
static YYSIZE_T yystrlen(yystr) const char* yystr; |
| 720 |
# endif |
| 721 |
{ |
| 722 |
YYSIZE_T yylen; |
| 723 |
for (yylen = 0; yystr[yylen]; yylen++) { |
| 724 |
continue; |
| 725 |
} |
| 726 |
return yylen; |
| 727 |
} |
| 728 |
# endif |
| 729 |
# endif |
| 730 |
|
| 731 |
# ifndef yystpcpy |
| 732 |
# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE |
| 733 |
# define yystpcpy stpcpy |
| 734 |
# else |
| 735 |
/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in |
| 736 |
YYDEST. */ |
| 737 |
# if (defined __STDC__ || defined __C99__FUNC__ || defined __cplusplus || defined _MSC_VER) |
| 738 |
static char* yystpcpy(char* yydest, const char* yysrc) |
| 739 |
# else |
| 740 |
static char* yystpcpy(yydest, yysrc) |
| 741 |
char* yydest; |
| 742 |
const char* yysrc; |
| 743 |
# endif |
| 744 |
{ |
| 745 |
char* yyd = yydest; |
| 746 |
const char* yys = yysrc; |
| 747 |
|
| 748 |
while ((*yyd++ = *yys++) != '\0') { |
| 749 |
continue; |
| 750 |
} |
| 751 |
|
| 752 |
return yyd - 1; |
| 753 |
} |
| 754 |
# endif |
| 755 |
# endif |
| 756 |
|
| 757 |
# ifndef yytnamerr |
| 758 |
/* Copy to YYRES the contents of YYSTR after stripping away unnecessary |
| 759 |
quotes and backslashes, so that it's suitable for yyerror. The |
| 760 |
heuristic is that double-quoting is unnecessary unless the string |
| 761 |
contains an apostrophe, a comma, or backslash (other than |
| 762 |
backslash-backslash). YYSTR is taken from yytname. If YYRES is |
| 763 |
null, do not copy; instead, return the length of what the result |
| 764 |
would have been. */ |
| 765 |
static YYSIZE_T yytnamerr(char* yyres, const char* yystr) |
| 766 |
{ |
| 767 |
if (*yystr == '"') { |
| 768 |
YYSIZE_T yyn = 0; |
| 769 |
char const* yyp = yystr; |
| 770 |
|
| 771 |
for (;;) { |
| 772 |
switch (*++yyp) { |
| 773 |
case '\'': |
| 774 |
case ',': |
| 775 |
goto do_not_strip_quotes; |
| 776 |
|
| 777 |
case '\\': |
| 778 |
if (*++yyp != '\\') { |
| 779 |
goto do_not_strip_quotes; |
| 780 |
} |
| 781 |
/* Fall through. */ |
| 782 |
default: |
| 783 |
if (yyres) { |
| 784 |
yyres[yyn] = *yyp; |
| 785 |
} |
| 786 |
yyn++; |
| 787 |
break; |
| 788 |
|
| 789 |
case '"': |
| 790 |
if (yyres) { |
| 791 |
yyres[yyn] = '\0'; |
| 792 |
} |
| 793 |
return yyn; |
| 794 |
} |
| 795 |
} |
| 796 |
do_not_strip_quotes:; |
| 797 |
} |
| 798 |
|
| 799 |
if (!yyres) { |
| 800 |
return yystrlen(yystr); |
| 801 |
} |
| 802 |
|
| 803 |
return yystpcpy(yyres, yystr) - yyres; |
| 804 |
} |
| 805 |
# endif |
| 806 |
|
| 807 |
/* Copy into YYRESULT an error message about the unexpected token |
| 808 |
YYCHAR while in state YYSTATE. Return the number of bytes copied, |
| 809 |
including the terminating null byte. If YYRESULT is null, do not |
| 810 |
copy anything; just return the number of bytes that would be |
| 811 |
copied. As a special case, return 0 if an ordinary "syntax error" |
| 812 |
message will do. Return YYSIZE_MAXIMUM if overflow occurs during |
| 813 |
size calculation. */ |
| 814 |
static YYSIZE_T yysyntax_error(char* yyresult, int yystate, int yychar) |
| 815 |
{ |
| 816 |
int yyn = yypact[yystate]; |
| 817 |
|
| 818 |
if (!(YYPACT_NINF < yyn && yyn <= YYLAST)) { |
| 819 |
return 0; |
| 820 |
} |
| 821 |
else { |
| 822 |
int yytype = YYTRANSLATE(yychar); |
| 823 |
YYSIZE_T yysize0 = yytnamerr(0, yytname[yytype]); |
| 824 |
YYSIZE_T yysize = yysize0; |
| 825 |
YYSIZE_T yysize1; |
| 826 |
int yysize_overflow = 0; |
| 827 |
enum |
| 828 |
{ |
| 829 |
YYERROR_VERBOSE_ARGS_MAXIMUM = 5 |
| 830 |
}; |
| 831 |
char const* yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; |
| 832 |
int yyx; |
| 833 |
|
| 834 |
# if 0 |
| 835 |
/* This is so xgettext sees the translatable formats that are |
| 836 |
constructed on the fly. */ |
| 837 |
YY_("syntax error, unexpected %s"); |
| 838 |
YY_("syntax error, unexpected %s, expecting %s"); |
| 839 |
YY_("syntax error, unexpected %s, expecting %s or %s"); |
| 840 |
YY_("syntax error, unexpected %s, expecting %s or %s or %s"); |
| 841 |
YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"); |
| 842 |
# endif |
| 843 |
char* yyfmt; |
| 844 |
char const* yyf; |
| 845 |
static char const yyunexpected[] = "Selection Filter: syntax error, unexpected %s"; |
| 846 |
static char const yyexpecting[] = ", expecting %s"; |
| 847 |
static char const yyor[] = " or %s"; |
| 848 |
char yyformat |
| 849 |
[sizeof yyunexpected + sizeof yyexpecting - 1 |
| 850 |
+ ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2) * (sizeof yyor - 1))]; |
| 851 |
char const* yyprefix = yyexpecting; |
| 852 |
|
| 853 |
/* Start YYX at -YYN if negative to avoid negative indexes in |
| 854 |
YYCHECK. */ |
| 855 |
int yyxbegin = yyn < 0 ? -yyn : 0; |
| 856 |
|
| 857 |
/* Stay within bounds of both yycheck and yytname. */ |
| 858 |
int yychecklim = YYLAST - yyn + 1; |
| 859 |
int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; |
| 860 |
int yycount = 1; |
| 861 |
|
| 862 |
yyarg[0] = yytname[yytype]; |
| 863 |
yyfmt = yystpcpy(yyformat, yyunexpected); |
| 864 |
|
| 865 |
for (yyx = yyxbegin; yyx < yyxend; ++yyx) { |
| 866 |
if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) { |
| 867 |
if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) { |
| 868 |
yycount = 1; |
| 869 |
yysize = yysize0; |
| 870 |
yyformat[sizeof yyunexpected - 1] = '\0'; |
| 871 |
break; |
| 872 |
} |
| 873 |
yyarg[yycount++] = yytname[yyx]; |
| 874 |
yysize1 = yysize + yytnamerr(0, yytname[yyx]); |
| 875 |
yysize_overflow |= (yysize1 < yysize); |
| 876 |
yysize = yysize1; |
| 877 |
yyfmt = yystpcpy(yyfmt, yyprefix); |
| 878 |
yyprefix = yyor; |
| 879 |
} |
| 880 |
} |
| 881 |
|
| 882 |
yyf = YY_(yyformat); |
| 883 |
yysize1 = yysize + yystrlen(yyf); |
| 884 |
yysize_overflow |= (yysize1 < yysize); |
| 885 |
yysize = yysize1; |
| 886 |
|
| 887 |
if (yysize_overflow) { |
| 888 |
return YYSIZE_MAXIMUM; |
| 889 |
} |
| 890 |
|
| 891 |
if (yyresult) { |
| 892 |
/* Avoid sprintf, as that infringes on the user's name space. |
| 893 |
Don't have undefined behavior even if the translation |
| 894 |
produced a string with the wrong number of "%s"s. */ |
| 895 |
char* yyp = yyresult; |
| 896 |
int yyi = 0; |
| 897 |
while ((*yyp = *yyf) != '\0') { |
| 898 |
if (*yyp == '%' && yyf[1] == 's' && yyi < yycount) { |
| 899 |
yyp += yytnamerr(yyp, yyarg[yyi++]); |
| 900 |
yyf += 2; |
| 901 |
} |
| 902 |
else { |
| 903 |
yyp++; |
| 904 |
yyf++; |
| 905 |
} |
| 906 |
} |
| 907 |
} |
| 908 |
return yysize; |
| 909 |
} |
| 910 |
} |
| 911 |
#endif /* YYERROR_VERBOSE */ |
| 912 |
|
| 913 |
|
| 914 |
/*-----------------------------------------------. |
| 915 |
| Release the memory associated to this symbol. | |
| 916 |
`-----------------------------------------------*/ |
| 917 |
|
| 918 |
/*ARGSUSED*/ |
| 919 |
#if (defined __STDC__ || defined __C99__FUNC__ || defined __cplusplus || defined _MSC_VER) |
| 920 |
static void yydestruct(const char* yymsg, int yytype, YYSTYPE* yyvaluep) |
| 921 |
#else |
| 922 |
static void yydestruct(yymsg, yytype, yyvaluep) const char* yymsg; |
| 923 |
int yytype; |
| 924 |
YYSTYPE* yyvaluep; |
| 925 |
#endif |
| 926 |
{ |
| 927 |
YYUSE(yyvaluep); |
| 928 |
|
| 929 |
if (!yymsg) { |
| 930 |
yymsg = "Deleting"; |
| 931 |
} |
| 932 |
YY_SYMBOL_PRINT(yymsg, yytype, yyvaluep, yylocationp); |
| 933 |
|
| 934 |
switch (yytype) { |
| 935 |
|
| 936 |
default: |
| 937 |
break; |
| 938 |
} |
| 939 |
} |
| 940 |
|
| 941 |
/* Prevent warnings from -Wmissing-prototypes. */ |
| 942 |
#ifdef YYPARSE_PARAM |
| 943 |
# if defined __STDC__ || defined __cplusplus |
| 944 |
int yyparse(void* YYPARSE_PARAM); |
| 945 |
# else |
| 946 |
int yyparse(); |
| 947 |
# endif |
| 948 |
#else /* ! YYPARSE_PARAM */ |
| 949 |
# if defined __STDC__ || defined __cplusplus |
| 950 |
int yyparse(void); |
| 951 |
# else |
| 952 |
int yyparse(); |
| 953 |
# endif |
| 954 |
#endif /* ! YYPARSE_PARAM */ |
| 955 |
|
| 956 |
|
| 957 |
/* The lookahead symbol. */ |
| 958 |
int yychar; |
| 959 |
|
| 960 |
/* The semantic value of the lookahead symbol. */ |
| 961 |
YYSTYPE yylval; |
| 962 |
|
| 963 |
/* Number of syntax errors so far. */ |
| 964 |
int yynerrs; |
| 965 |
|
| 966 |
|
| 967 |
/*-------------------------. |
| 968 |
| yyparse or yypush_parse. | |
| 969 |
`-------------------------*/ |
| 970 |
|
| 971 |
#ifdef YYPARSE_PARAM |
| 972 |
# if (defined __STDC__ || defined __C99__FUNC__ || defined __cplusplus || defined _MSC_VER) |
| 973 |
int yyparse(void* YYPARSE_PARAM) |
| 974 |
# else |
| 975 |
int yyparse(YYPARSE_PARAM) void* YYPARSE_PARAM; |
| 976 |
# endif |
| 977 |
#else /* ! YYPARSE_PARAM */ |
| 978 |
# if (defined __STDC__ || defined __C99__FUNC__ || defined __cplusplus || defined _MSC_VER) |
| 979 |
int yyparse(void) |
| 980 |
# else |
| 981 |
int yyparse() |
| 982 |
|
| 983 |
# endif |
| 984 |
#endif |
| 985 |
{ |
| 986 |
|
| 987 |
|
| 988 |
int yystate; |
| 989 |
/* Number of tokens to shift before error messages enabled. */ |
| 990 |
int yyerrstatus; |
| 991 |
|
| 992 |
/* The stacks and their tools: |
| 993 |
`yyss': related to states. |
| 994 |
`yyvs': related to semantic values. |
| 995 |
|
| 996 |
Refer to the stacks through separate pointers, to allow yyoverflow |
| 997 |
to reallocate them elsewhere. */ |
| 998 |
|
| 999 |
/* The state stack. */ |
| 1000 |
yytype_int16 yyssa[YYINITDEPTH]; |
| 1001 |
yytype_int16* yyss; |
| 1002 |
yytype_int16* yyssp; |
| 1003 |
|
| 1004 |
/* The semantic value stack. */ |
| 1005 |
YYSTYPE yyvsa[YYINITDEPTH]; |
| 1006 |
YYSTYPE* yyvs; |
| 1007 |
YYSTYPE* yyvsp; |
| 1008 |
|
| 1009 |
YYSIZE_T yystacksize; |
| 1010 |
|
| 1011 |
int yyn; |
| 1012 |
int yyresult; |
| 1013 |
/* Lookahead token as an internal (translated) token number. */ |
| 1014 |
int yytoken; |
| 1015 |
/* The variables used to return semantic value and location from the |
| 1016 |
action routines. */ |
| 1017 |
YYSTYPE yyval; |
| 1018 |
|
| 1019 |
#if YYERROR_VERBOSE |
| 1020 |
/* Buffer for error messages, and its allocated size. */ |
| 1021 |
char yymsgbuf[128]; |
| 1022 |
char* yymsg = yymsgbuf; |
| 1023 |
YYSIZE_T yymsg_alloc = sizeof yymsgbuf; |
| 1024 |
#endif |
| 1025 |
|
| 1026 |
#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) |
| 1027 |
|
| 1028 |
/* The number of symbols on the RHS of the reduced rule. |
| 1029 |
Keep to zero when no symbol should be popped. */ |
| 1030 |
int yylen = 0; |
| 1031 |
|
| 1032 |
yytoken = 0; |
| 1033 |
yyss = yyssa; |
| 1034 |
yyvs = yyvsa; |
| 1035 |
yystacksize = YYINITDEPTH; |
| 1036 |
|
| 1037 |
YYDPRINTF((stderr, "Starting parse\n")); |
| 1038 |
|
| 1039 |
yystate = 0; |
| 1040 |
yyerrstatus = 0; |
| 1041 |
yynerrs = 0; |
| 1042 |
yychar = YYEMPTY; /* Cause a token to be read. */ |
| 1043 |
|
| 1044 |
/* Initialize stack pointers. |
| 1045 |
Waste one element of value and location stack |
| 1046 |
so that they stay on the same level as the state stack. |
| 1047 |
The wasted elements are never initialized. */ |
| 1048 |
yyssp = yyss; |
| 1049 |
yyvsp = yyvs; |
| 1050 |
|
| 1051 |
goto yysetstate; |
| 1052 |
|
| 1053 |
/*------------------------------------------------------------. |
| 1054 |
| yynewstate -- Push a new state, which is found in yystate. | |
| 1055 |
`------------------------------------------------------------*/ |
| 1056 |
yynewstate: |
| 1057 |
/* In all cases, when you get here, the value and location stacks |
| 1058 |
have just been pushed. So pushing a state here evens the stacks. */ |
| 1059 |
yyssp++; |
| 1060 |
|
| 1061 |
yysetstate: |
| 1062 |
*yyssp = yystate; |
| 1063 |
|
| 1064 |
if (yyss + yystacksize - 1 <= yyssp) { |
| 1065 |
/* Get the current used size of the three stacks, in elements. */ |
| 1066 |
YYSIZE_T yysize = yyssp - yyss + 1; |
| 1067 |
|
| 1068 |
#ifdef yyoverflow |
| 1069 |
{ |
| 1070 |
/* Give user a chance to reallocate the stack. Use copies of |
| 1071 |
these so that the &'s don't force the real ones into |
| 1072 |
memory. */ |
| 1073 |
YYSTYPE* yyvs1 = yyvs; |
| 1074 |
yytype_int16* yyss1 = yyss; |
| 1075 |
|
| 1076 |
/* Each stack pointer address is followed by the size of the |
| 1077 |
data in use in that stack, in bytes. This used to be a |
| 1078 |
conditional around just the two extra args, but that might |
| 1079 |
be undefined if yyoverflow is a macro. */ |
| 1080 |
yyoverflow( |
| 1081 |
YY_("memory exhausted"), |
| 1082 |
&yyss1, |
| 1083 |
yysize * sizeof(*yyssp), |
| 1084 |
&yyvs1, |
| 1085 |
yysize * sizeof(*yyvsp), |
| 1086 |
&yystacksize |
| 1087 |
); |
| 1088 |
|
| 1089 |
yyss = yyss1; |
| 1090 |
yyvs = yyvs1; |
| 1091 |
} |
| 1092 |
#else /* no yyoverflow */ |
| 1093 |
# ifndef YYSTACK_RELOCATE |
| 1094 |
goto yyexhaustedlab; |
| 1095 |
# else |
| 1096 |
/* Extend the stack our own way. */ |
| 1097 |
if (YYMAXDEPTH <= yystacksize) { |
| 1098 |
goto yyexhaustedlab; |
| 1099 |
} |
| 1100 |
yystacksize *= 2; |
| 1101 |
if (YYMAXDEPTH < yystacksize) { |
| 1102 |
yystacksize = YYMAXDEPTH; |
| 1103 |
} |
| 1104 |
|
| 1105 |
{ |
| 1106 |
yytype_int16* yyss1 = yyss; |
| 1107 |
union yyalloc* yyptr = (union yyalloc*)YYSTACK_ALLOC(YYSTACK_BYTES(yystacksize)); |
| 1108 |
if (!yyptr) { |
| 1109 |
goto yyexhaustedlab; |
| 1110 |
} |
| 1111 |
YYSTACK_RELOCATE(yyss_alloc, yyss); |
| 1112 |
YYSTACK_RELOCATE(yyvs_alloc, yyvs); |
| 1113 |
# undef YYSTACK_RELOCATE |
| 1114 |
if (yyss1 != yyssa) { |
| 1115 |
YYSTACK_FREE(yyss1); |
| 1116 |
} |
| 1117 |
} |
| 1118 |
# endif |
| 1119 |
#endif /* no yyoverflow */ |
| 1120 |
|
| 1121 |
yyssp = yyss + yysize - 1; |
| 1122 |
yyvsp = yyvs + yysize - 1; |
| 1123 |
|
| 1124 |
YYDPRINTF((stderr, "Stack size increased to %lu\n", (unsigned long int)yystacksize)); |
| 1125 |
|
| 1126 |
if (yyss + yystacksize - 1 <= yyssp) { |
| 1127 |
YYABORT; |
| 1128 |
} |
| 1129 |
} |
| 1130 |
|
| 1131 |
YYDPRINTF((stderr, "Entering state %d\n", yystate)); |
| 1132 |
|
| 1133 |
if (yystate == YYFINAL) { |
| 1134 |
YYACCEPT; |
| 1135 |
} |
| 1136 |
|
| 1137 |
goto yybackup; |
| 1138 |
|
| 1139 |
/*-----------. |
| 1140 |
| yybackup. | |
| 1141 |
`-----------*/ |
| 1142 |
yybackup: |
| 1143 |
|
| 1144 |
/* Do appropriate processing given the current state. Read a |
| 1145 |
lookahead token if we need one and don't already have one. */ |
| 1146 |
|
| 1147 |
/* First try to decide what to do without reference to lookahead token. */ |
| 1148 |
yyn = yypact[yystate]; |
| 1149 |
if (yyn == YYPACT_NINF) { |
| 1150 |
goto yydefault; |
| 1151 |
} |
| 1152 |
|
| 1153 |
/* Not known => get a lookahead token if don't already have one. */ |
| 1154 |
|
| 1155 |
/* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */ |
| 1156 |
if (yychar == YYEMPTY) { |
| 1157 |
YYDPRINTF((stderr, "Reading a token: ")); |
| 1158 |
yychar = YYLEX; |
| 1159 |
} |
| 1160 |
|
| 1161 |
if (yychar <= YYEOF) { |
| 1162 |
yychar = yytoken = YYEOF; |
| 1163 |
YYDPRINTF((stderr, "Now at end of input.\n")); |
| 1164 |
} |
| 1165 |
else { |
| 1166 |
yytoken = YYTRANSLATE(yychar); |
| 1167 |
YY_SYMBOL_PRINT("Next token is", yytoken, &yylval, &yylloc); |
| 1168 |
} |
| 1169 |
|
| 1170 |
/* If the proper action on seeing token YYTOKEN is to reduce or to |
| 1171 |
detect an error, take that action. */ |
| 1172 |
yyn += yytoken; |
| 1173 |
if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) { |
| 1174 |
goto yydefault; |
| 1175 |
} |
| 1176 |
yyn = yytable[yyn]; |
| 1177 |
if (yyn <= 0) { |
| 1178 |
if (yyn == 0 || yyn == YYTABLE_NINF) { |
| 1179 |
goto yyerrlab; |
| 1180 |
} |
| 1181 |
yyn = -yyn; |
| 1182 |
goto yyreduce; |
| 1183 |
} |
| 1184 |
|
| 1185 |
/* Count tokens shifted since error; after three, turn off error |
| 1186 |
status. */ |
| 1187 |
if (yyerrstatus) { |
| 1188 |
yyerrstatus--; |
| 1189 |
} |
| 1190 |
|
| 1191 |
/* Shift the lookahead token. */ |
| 1192 |
YY_SYMBOL_PRINT("Shifting", yytoken, &yylval, &yylloc); |
| 1193 |
|
| 1194 |
/* Discard the shifted token. */ |
| 1195 |
yychar = YYEMPTY; |
| 1196 |
|
| 1197 |
yystate = yyn; |
| 1198 |
*++yyvsp = yylval; |
| 1199 |
|
| 1200 |
goto yynewstate; |
| 1201 |
|
| 1202 |
|
| 1203 |
/*-----------------------------------------------------------. |
| 1204 |
| yydefault -- do the default action for the current state. | |
| 1205 |
`-----------------------------------------------------------*/ |
| 1206 |
yydefault: |
| 1207 |
yyn = yydefact[yystate]; |
| 1208 |
if (yyn == 0) { |
| 1209 |
goto yyerrlab; |
| 1210 |
} |
| 1211 |
goto yyreduce; |
| 1212 |
|
| 1213 |
|
| 1214 |
/*-----------------------------. |
| 1215 |
| yyreduce -- Do a reduction. | |
| 1216 |
`-----------------------------*/ |
| 1217 |
yyreduce: |
| 1218 |
/* yyn is the number of a rule to reduce with. */ |
| 1219 |
yylen = yyr2[yyn]; |
| 1220 |
|
| 1221 |
/* If YYLEN is nonzero, implement the default value of the action: |
| 1222 |
`$$ = $1'. |
| 1223 |
|
| 1224 |
Otherwise, the following line sets YYVAL to garbage. |
| 1225 |
This behavior is undocumented and Bison |
| 1226 |
users should not rely upon it. Assigning to YYVAL |
| 1227 |
unconditionally makes the parser a bit smaller, and it avoids a |
| 1228 |
GCC warning that YYVAL may be used uninitialized. */ |
| 1229 |
yyval = yyvsp[1 - yylen]; |
| 1230 |
|
| 1231 |
|
| 1232 |
YY_REDUCE_PRINT(yyn); |
| 1233 |
switch (yyn) { |
| 1234 |
case 2: |
| 1235 |
|
| 1236 |
/* Line 1464 of yacc.c */ |
| 1237 |
#line 39 "SelectionFilter.y" |
| 1238 |
{ |
| 1239 |
(yyval.string) = (yyvsp[(2) - (2)].string); |
| 1240 |
} break; |
| 1241 |
|
| 1242 |
case 3: |
| 1243 |
|
| 1244 |
/* Line 1464 of yacc.c */ |
| 1245 |
#line 40 "SelectionFilter.y" |
| 1246 |
{ |
| 1247 |
(yyval.string) = StringFactory::New( |
| 1248 |
*(yyvsp[(2) - (4)].string) + "::" + *(yyvsp[(4) - (4)].string) |
| 1249 |
); |
| 1250 |
} break; |
| 1251 |
|
| 1252 |
case 4: |
| 1253 |
|
| 1254 |
/* Line 1464 of yacc.c */ |
| 1255 |
#line 42 "SelectionFilter.y" |
| 1256 |
{ |
| 1257 |
(yyval.string) = 0; |
| 1258 |
} break; |
| 1259 |
|
| 1260 |
case 5: |
| 1261 |
|
| 1262 |
/* Line 1464 of yacc.c */ |
| 1263 |
#line 43 "SelectionFilter.y" |
| 1264 |
{ |
| 1265 |
(yyval.string) = (yyvsp[(2) - (2)].string); |
| 1266 |
} break; |
| 1267 |
|
| 1268 |
case 6: |
| 1269 |
|
| 1270 |
/* Line 1464 of yacc.c */ |
| 1271 |
#line 45 "SelectionFilter.y" |
| 1272 |
{ |
| 1273 |
(yyval.slice) = 0; |
| 1274 |
} break; |
| 1275 |
|
| 1276 |
case 7: |
| 1277 |
|
| 1278 |
/* Line 1464 of yacc.c */ |
| 1279 |
#line 46 "SelectionFilter.y" |
| 1280 |
{ |
| 1281 |
(yyval.slice) = new Node_Slice((yyvsp[(2) - (4)].number), (yyvsp[(4) - (4)].number)); |
| 1282 |
} break; |
| 1283 |
|
| 1284 |
case 8: |
| 1285 |
|
| 1286 |
/* Line 1464 of yacc.c */ |
| 1287 |
#line 47 "SelectionFilter.y" |
| 1288 |
{ |
| 1289 |
(yyval.slice) = new Node_Slice((yyvsp[(2) - (3)].number)); |
| 1290 |
} break; |
| 1291 |
|
| 1292 |
case 9: |
| 1293 |
|
| 1294 |
/* Line 1464 of yacc.c */ |
| 1295 |
#line 48 "SelectionFilter.y" |
| 1296 |
{ |
| 1297 |
(yyval.slice) = new Node_Slice((yyvsp[(2) - (2)].number), (yyvsp[(2) - (2)].number)); |
| 1298 |
} break; |
| 1299 |
|
| 1300 |
case 10: |
| 1301 |
|
| 1302 |
/* Line 1464 of yacc.c */ |
| 1303 |
#line 50 "SelectionFilter.y" |
| 1304 |
{ |
| 1305 |
(yyval.object) = new Node_Object( |
| 1306 |
(yyvsp[(1) - (3)].string), |
| 1307 |
(yyvsp[(2) - (3)].string), |
| 1308 |
(yyvsp[(3) - (3)].slice) |
| 1309 |
); |
| 1310 |
} break; |
| 1311 |
|
| 1312 |
case 11: |
| 1313 |
|
| 1314 |
/* Line 1464 of yacc.c */ |
| 1315 |
#line 52 "SelectionFilter.y" |
| 1316 |
{ |
| 1317 |
(yyval.block) = new Node_Block((yyvsp[(1) - (1)].object)); |
| 1318 |
; |
| 1319 |
} break; |
| 1320 |
|
| 1321 |
case 12: |
| 1322 |
|
| 1323 |
/* Line 1464 of yacc.c */ |
| 1324 |
#line 53 "SelectionFilter.y" |
| 1325 |
{ |
| 1326 |
(yyval.block) = (yyvsp[(1) - (2)].block); |
| 1327 |
(yyval.block)->Objects.emplace_back((yyvsp[(2) - (2)].object)); |
| 1328 |
; |
| 1329 |
} break; |
| 1330 |
|
| 1331 |
case 13: |
| 1332 |
|
| 1333 |
/* Line 1464 of yacc.c */ |
| 1334 |
#line 55 "SelectionFilter.y" |
| 1335 |
{ |
| 1336 |
(yyval.block) = (yyvsp[(1) - (1)].block); |
| 1337 |
} break; |
| 1338 |
|
| 1339 |
case 14: |
| 1340 |
|
| 1341 |
/* Line 1464 of yacc.c */ |
| 1342 |
#line 57 "SelectionFilter.y" |
| 1343 |
{ |
| 1344 |
TopBlock = (yyvsp[(1) - (1)].block); |
| 1345 |
} break; |
| 1346 |
|
| 1347 |
|
| 1348 |
/* Line 1464 of yacc.c */ |
| 1349 |
#line 1432 "SelectionFilter.tab.c" |
| 1350 |
default: |
| 1351 |
break; |
| 1352 |
} |
| 1353 |
YY_SYMBOL_PRINT("-> $$ =", yyr1[yyn], &yyval, &yyloc); |
| 1354 |
|
| 1355 |
YYPOPSTACK(yylen); |
| 1356 |
yylen = 0; |
| 1357 |
YY_STACK_PRINT(yyss, yyssp); |
| 1358 |
|
| 1359 |
*++yyvsp = yyval; |
| 1360 |
|
| 1361 |
/* Now `shift' the result of the reduction. Determine what state |
| 1362 |
that goes to, based on the state we popped back to and the rule |
| 1363 |
number reduced by. */ |
| 1364 |
|
| 1365 |
yyn = yyr1[yyn]; |
| 1366 |
|
| 1367 |
yystate = yypgoto[yyn - YYNTOKENS] + *yyssp; |
| 1368 |
if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp) { |
| 1369 |
yystate = yytable[yystate]; |
| 1370 |
} |
| 1371 |
else { |
| 1372 |
yystate = yydefgoto[yyn - YYNTOKENS]; |
| 1373 |
} |
| 1374 |
|
| 1375 |
goto yynewstate; |
| 1376 |
|
| 1377 |
|
| 1378 |
/*------------------------------------. |
| 1379 |
| yyerrlab -- here on detecting error | |
| 1380 |
`------------------------------------*/ |
| 1381 |
yyerrlab: |
| 1382 |
/* If not already recovering from an error, report this error. */ |
| 1383 |
if (!yyerrstatus) { |
| 1384 |
++yynerrs; |
| 1385 |
#if !YYERROR_VERBOSE |
| 1386 |
yyerror(YY_("Selection Filter: syntax error")); |
| 1387 |
#else |
| 1388 |
{ |
| 1389 |
YYSIZE_T yysize = yysyntax_error(0, yystate, yychar); |
| 1390 |
if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM) { |
| 1391 |
YYSIZE_T yyalloc = 2 * yysize; |
| 1392 |
if (!(yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM)) { |
| 1393 |
yyalloc = YYSTACK_ALLOC_MAXIMUM; |
| 1394 |
} |
| 1395 |
if (yymsg != yymsgbuf) { |
| 1396 |
YYSTACK_FREE(yymsg); |
| 1397 |
} |
| 1398 |
yymsg = (char*)YYSTACK_ALLOC(yyalloc); |
| 1399 |
if (yymsg) { |
| 1400 |
yymsg_alloc = yyalloc; |
| 1401 |
} |
| 1402 |
else { |
| 1403 |
yymsg = yymsgbuf; |
| 1404 |
yymsg_alloc = sizeof yymsgbuf; |
| 1405 |
} |
| 1406 |
} |
| 1407 |
|
| 1408 |
if (0 < yysize && yysize <= yymsg_alloc) { |
| 1409 |
(void)yysyntax_error(yymsg, yystate, yychar); |
| 1410 |
yyerror(yymsg); |
| 1411 |
} |
| 1412 |
else { |
| 1413 |
yyerror(YY_("Selection Filter: syntax error")); |
| 1414 |
if (yysize != 0) { |
| 1415 |
goto yyexhaustedlab; |
| 1416 |
} |
| 1417 |
} |
| 1418 |
} |
| 1419 |
#endif |
| 1420 |
} |
| 1421 |
|
| 1422 |
|
| 1423 |
if (yyerrstatus == 3) { |
| 1424 |
/* If just tried and failed to reuse lookahead token after an |
| 1425 |
error, discard it. */ |
| 1426 |
|
| 1427 |
if (yychar <= YYEOF) { |
| 1428 |
/* Return failure if at end of input. */ |
| 1429 |
if (yychar == YYEOF) { |
| 1430 |
YYABORT; |
| 1431 |
} |
| 1432 |
} |
| 1433 |
else { |
| 1434 |
yydestruct("Error: discarding", yytoken, &yylval); |
| 1435 |
yychar = YYEMPTY; |
| 1436 |
} |
| 1437 |
} |
| 1438 |
|
| 1439 |
/* Else will try to reuse lookahead token after shifting the error |
| 1440 |
token. */ |
| 1441 |
goto yyerrlab1; |
| 1442 |
|
| 1443 |
|
| 1444 |
/*---------------------------------------------------. |
| 1445 |
| yyerrorlab -- error raised explicitly by YYERROR. | |
| 1446 |
`---------------------------------------------------*/ |
| 1447 |
yyerrorlab: |
| 1448 |
|
| 1449 |
/* Pacify compilers like GCC when the user code never invokes |
| 1450 |
YYERROR and the label yyerrorlab therefore never appears in user |
| 1451 |
code. */ |
| 1452 |
if (/*CONSTCOND*/ 0) { |
| 1453 |
goto yyerrorlab; |
| 1454 |
} |
| 1455 |
|
| 1456 |
/* Do not reclaim the symbols of the rule which action triggered |
| 1457 |
this YYERROR. */ |
| 1458 |
YYPOPSTACK(yylen); |
| 1459 |
yylen = 0; |
| 1460 |
YY_STACK_PRINT(yyss, yyssp); |
| 1461 |
yystate = *yyssp; |
| 1462 |
goto yyerrlab1; |
| 1463 |
|
| 1464 |
|
| 1465 |
/*-------------------------------------------------------------. |
| 1466 |
| yyerrlab1 -- common code for both syntax error and YYERROR. | |
| 1467 |
`-------------------------------------------------------------*/ |
| 1468 |
yyerrlab1: |
| 1469 |
yyerrstatus = 3; /* Each real token shifted decrements this. */ |
| 1470 |
|
| 1471 |
for (;;) { |
| 1472 |
yyn = yypact[yystate]; |
| 1473 |
if (yyn != YYPACT_NINF) { |
| 1474 |
yyn += YYTERROR; |
| 1475 |
if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) { |
| 1476 |
yyn = yytable[yyn]; |
| 1477 |
if (0 < yyn) { |
| 1478 |
break; |
| 1479 |
} |
| 1480 |
} |
| 1481 |
} |
| 1482 |
|
| 1483 |
/* Pop the current state because it cannot handle the error token. */ |
| 1484 |
if (yyssp == yyss) { |
| 1485 |
YYABORT; |
| 1486 |
} |
| 1487 |
|
| 1488 |
|
| 1489 |
yydestruct("Error: popping", yystos[yystate], yyvsp); |
| 1490 |
YYPOPSTACK(1); |
| 1491 |
yystate = *yyssp; |
| 1492 |
YY_STACK_PRINT(yyss, yyssp); |
| 1493 |
} |
| 1494 |
|
| 1495 |
*++yyvsp = yylval; |
| 1496 |
|
| 1497 |
|
| 1498 |
/* Shift the error token. */ |
| 1499 |
YY_SYMBOL_PRINT("Shifting", yystos[yyn], yyvsp, yylsp); |
| 1500 |
|
| 1501 |
yystate = yyn; |
| 1502 |
goto yynewstate; |
| 1503 |
|
| 1504 |
|
| 1505 |
/*-------------------------------------. |
| 1506 |
| yyacceptlab -- YYACCEPT comes here. | |
| 1507 |
`-------------------------------------*/ |
| 1508 |
yyacceptlab: |
| 1509 |
yyresult = 0; |
| 1510 |
goto yyreturn; |
| 1511 |
|
| 1512 |
/*-----------------------------------. |
| 1513 |
| yyabortlab -- YYABORT comes here. | |
| 1514 |
`-----------------------------------*/ |
| 1515 |
yyabortlab: |
| 1516 |
yyresult = 1; |
| 1517 |
goto yyreturn; |
| 1518 |
|
| 1519 |
#if !defined(yyoverflow) || YYERROR_VERBOSE |
| 1520 |
/*-------------------------------------------------. |
| 1521 |
| yyexhaustedlab -- memory exhaustion comes here. | |
| 1522 |
`-------------------------------------------------*/ |
| 1523 |
yyexhaustedlab: |
| 1524 |
yyerror(YY_("memory exhausted")); |
| 1525 |
yyresult = 2; |
| 1526 |
/* Fall through. */ |
| 1527 |
#endif |
| 1528 |
|
| 1529 |
yyreturn: |
| 1530 |
if (yychar != YYEMPTY) { |
| 1531 |
yydestruct("Cleanup: discarding lookahead", yytoken, &yylval); |
| 1532 |
} |
| 1533 |
/* Do not reclaim the symbols of the rule which action triggered |
| 1534 |
this YYABORT or YYACCEPT. */ |
| 1535 |
YYPOPSTACK(yylen); |
| 1536 |
YY_STACK_PRINT(yyss, yyssp); |
| 1537 |
while (yyssp != yyss) { |
| 1538 |
yydestruct("Cleanup: popping", yystos[*yyssp], yyvsp); |
| 1539 |
YYPOPSTACK(1); |
| 1540 |
} |
| 1541 |
#ifndef yyoverflow |
| 1542 |
if (yyss != yyssa) { |
| 1543 |
YYSTACK_FREE(yyss); |
| 1544 |
} |
| 1545 |
#endif |
| 1546 |
#if YYERROR_VERBOSE |
| 1547 |
if (yymsg != yymsgbuf) { |
| 1548 |
YYSTACK_FREE(yymsg); |
| 1549 |
} |
| 1550 |
#endif |
| 1551 |
/* Make sure YYID is used. */ |
| 1552 |
return YYID(yyresult); |
| 1553 |
} |
| 1554 |
|
| 1555 |
|
| 1556 |
/* Line 1684 of yacc.c */ |
| 1557 |
#line 61 "SelectionFilter.y" |