| 1 |
/* A Bison parser, made by GNU Bison 3.0.2. */ |
| 2 |
|
| 3 |
/* Bison implementation for Yacc-like parsers in C |
| 4 |
|
| 5 |
Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc. |
| 6 |
|
| 7 |
This program is free software: you can redistribute it and/or modify |
| 8 |
it under the terms of the GNU General Public License as published by |
| 9 |
the Free Software Foundation, either version 3 of the License, or |
| 10 |
(at your option) any later version. |
| 11 |
|
| 12 |
This program is distributed in the hope that it will be useful, |
| 13 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 |
GNU General Public License for more details. |
| 16 |
|
| 17 |
You should have received a copy of the GNU General Public License |
| 18 |
along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
| 19 |
|
| 20 |
/* As a special exception, you may create a larger work that contains |
| 21 |
part or all of the Bison parser skeleton and distribute that work |
| 22 |
under terms of your choice, so long as that work isn't itself a |
| 23 |
parser generator using the skeleton or a modified version thereof |
| 24 |
as a parser skeleton. Alternatively, if you modify or redistribute |
| 25 |
the parser skeleton itself, you may (at your option) remove this |
| 26 |
special exception, which will cause the skeleton and the resulting |
| 27 |
Bison output files to be licensed under the GNU General Public |
| 28 |
License without this special exception. |
| 29 |
|
| 30 |
This special exception was added by the Free Software Foundation in |
| 31 |
version 2.2 of Bison. */ |
| 32 |
|
| 33 |
/* C LALR(1) parser skeleton written by Richard Stallman, by |
| 34 |
simplifying the original so-called "semantic" parser. */ |
| 35 |
|
| 36 |
/* All symbols defined below should begin with yy or YY, to avoid |
| 37 |
infringing on user name space. This should be done even for local |
| 38 |
variables, as they might otherwise be expanded by user macros. |
| 39 |
There are some unavoidable exceptions within include files to |
| 40 |
define necessary library symbols; they are noted "INFRINGES ON |
| 41 |
USER NAME SPACE" below. */ |
| 42 |
|
| 43 |
/* Identify Bison output. */ |
| 44 |
#define YYBISON 1 |
| 45 |
|
| 46 |
/* Bison version. */ |
| 47 |
#define YYBISON_VERSION "3.0.2" |
| 48 |
|
| 49 |
/* Skeleton name. */ |
| 50 |
#define YYSKELETON_NAME "yacc.c" |
| 51 |
|
| 52 |
/* Pure parsers. */ |
| 53 |
#define YYPURE 0 |
| 54 |
|
| 55 |
/* Push parsers. */ |
| 56 |
#define YYPUSH 0 |
| 57 |
|
| 58 |
/* Pull parsers. */ |
| 59 |
#define YYPULL 1 |
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
/* Copy the first part of user declarations. */ |
| 65 |
#line 28 "pars0grm.y" /* yacc.c:339 */ |
| 66 |
|
| 67 |
/* The value of the semantic attribute is a pointer to a query tree node |
| 68 |
que_node_t */ |
| 69 |
|
| 70 |
#include "univ.i" |
| 71 |
#include <math.h> |
| 72 |
|
| 73 |
#include "pars0pars.h" |
| 74 |
#include "mem0mem.h" |
| 75 |
#include "que0types.h" |
| 76 |
#include "que0que.h" |
| 77 |
#include "row0sel.h" |
| 78 |
|
| 79 |
#define YYSTYPE que_node_t* |
| 80 |
|
| 81 |
/* #define __STDC__ */ |
| 82 |
int |
| 83 |
yylex(void); |
| 84 |
|
| 85 |
#line 85 "pars0grm.cc" /* yacc.c:339 */ |
| 86 |
|
| 87 |
# ifndef YY_NULLPTR |
| 88 |
# if defined __cplusplus && 201103L <= __cplusplus |
| 89 |
# define YY_NULLPTR nullptr |
| 90 |
# else |
| 91 |
# define YY_NULLPTR 0 |
| 92 |
# endif |
| 93 |
# endif |
| 94 |
|
| 95 |
/* Enabling verbose error messages. */ |
| 96 |
#ifdef YYERROR_VERBOSE |
| 97 |
# undef YYERROR_VERBOSE |
| 98 |
# define YYERROR_VERBOSE 1 |
| 99 |
#else |
| 100 |
# define YYERROR_VERBOSE 0 |
| 101 |
#endif |
| 102 |
|
| 103 |
/* In a future release of Bison, this section will be replaced |
| 104 |
by #include "pars0grm.tab.h". */ |
| 105 |
#ifndef YY_YY_PARS0GRM_TAB_H_INCLUDED |
| 106 |
# define YY_YY_PARS0GRM_TAB_H_INCLUDED |
| 107 |
/* Debug traces. */ |
| 108 |
#ifndef YYDEBUG |
| 109 |
# define YYDEBUG 0 |
| 110 |
#endif |
| 111 |
#if YYDEBUG |
| 112 |
extern int yydebug; |
| 113 |
#endif |
| 114 |
|
| 115 |
/* Token type. */ |
| 116 |
#ifndef YYTOKENTYPE |
| 117 |
# define YYTOKENTYPE |
| 118 |
enum yytokentype |
| 119 |
{ |
| 120 |
PARS_INT_LIT = 258, |
| 121 |
PARS_FLOAT_LIT = 259, |
| 122 |
PARS_STR_LIT = 260, |
| 123 |
PARS_FIXBINARY_LIT = 261, |
| 124 |
PARS_BLOB_LIT = 262, |
| 125 |
PARS_NULL_LIT = 263, |
| 126 |
PARS_ID_TOKEN = 264, |
| 127 |
PARS_AND_TOKEN = 265, |
| 128 |
PARS_OR_TOKEN = 266, |
| 129 |
PARS_NOT_TOKEN = 267, |
| 130 |
PARS_GE_TOKEN = 268, |
| 131 |
PARS_LE_TOKEN = 269, |
| 132 |
PARS_NE_TOKEN = 270, |
| 133 |
PARS_PROCEDURE_TOKEN = 271, |
| 134 |
PARS_IN_TOKEN = 272, |
| 135 |
PARS_OUT_TOKEN = 273, |
| 136 |
PARS_BINARY_TOKEN = 274, |
| 137 |
PARS_BLOB_TOKEN = 275, |
| 138 |
PARS_INT_TOKEN = 276, |
| 139 |
PARS_INTEGER_TOKEN = 277, |
| 140 |
PARS_FLOAT_TOKEN = 278, |
| 141 |
PARS_CHAR_TOKEN = 279, |
| 142 |
PARS_IS_TOKEN = 280, |
| 143 |
PARS_BEGIN_TOKEN = 281, |
| 144 |
PARS_END_TOKEN = 282, |
| 145 |
PARS_IF_TOKEN = 283, |
| 146 |
PARS_THEN_TOKEN = 284, |
| 147 |
PARS_ELSE_TOKEN = 285, |
| 148 |
PARS_ELSIF_TOKEN = 286, |
| 149 |
PARS_LOOP_TOKEN = 287, |
| 150 |
PARS_WHILE_TOKEN = 288, |
| 151 |
PARS_RETURN_TOKEN = 289, |
| 152 |
PARS_SELECT_TOKEN = 290, |
| 153 |
PARS_SUM_TOKEN = 291, |
| 154 |
PARS_COUNT_TOKEN = 292, |
| 155 |
PARS_DISTINCT_TOKEN = 293, |
| 156 |
PARS_FROM_TOKEN = 294, |
| 157 |
PARS_WHERE_TOKEN = 295, |
| 158 |
PARS_FOR_TOKEN = 296, |
| 159 |
PARS_DDOT_TOKEN = 297, |
| 160 |
PARS_READ_TOKEN = 298, |
| 161 |
PARS_ORDER_TOKEN = 299, |
| 162 |
PARS_BY_TOKEN = 300, |
| 163 |
PARS_ASC_TOKEN = 301, |
| 164 |
PARS_DESC_TOKEN = 302, |
| 165 |
PARS_INSERT_TOKEN = 303, |
| 166 |
PARS_INTO_TOKEN = 304, |
| 167 |
PARS_VALUES_TOKEN = 305, |
| 168 |
PARS_UPDATE_TOKEN = 306, |
| 169 |
PARS_SET_TOKEN = 307, |
| 170 |
PARS_DELETE_TOKEN = 308, |
| 171 |
PARS_CURRENT_TOKEN = 309, |
| 172 |
PARS_OF_TOKEN = 310, |
| 173 |
PARS_CREATE_TOKEN = 311, |
| 174 |
PARS_TABLE_TOKEN = 312, |
| 175 |
PARS_INDEX_TOKEN = 313, |
| 176 |
PARS_UNIQUE_TOKEN = 314, |
| 177 |
PARS_CLUSTERED_TOKEN = 315, |
| 178 |
PARS_DOES_NOT_FIT_IN_MEM_TOKEN = 316, |
| 179 |
PARS_ON_TOKEN = 317, |
| 180 |
PARS_ASSIGN_TOKEN = 318, |
| 181 |
PARS_DECLARE_TOKEN = 319, |
| 182 |
PARS_CURSOR_TOKEN = 320, |
| 183 |
PARS_SQL_TOKEN = 321, |
| 184 |
PARS_OPEN_TOKEN = 322, |
| 185 |
PARS_FETCH_TOKEN = 323, |
| 186 |
PARS_CLOSE_TOKEN = 324, |
| 187 |
PARS_NOTFOUND_TOKEN = 325, |
| 188 |
PARS_TO_BINARY_TOKEN = 326, |
| 189 |
PARS_SUBSTR_TOKEN = 327, |
| 190 |
PARS_CONCAT_TOKEN = 328, |
| 191 |
PARS_INSTR_TOKEN = 329, |
| 192 |
PARS_LENGTH_TOKEN = 330, |
| 193 |
PARS_COMMIT_TOKEN = 331, |
| 194 |
PARS_ROLLBACK_TOKEN = 332, |
| 195 |
PARS_WORK_TOKEN = 333, |
| 196 |
PARS_UNSIGNED_TOKEN = 334, |
| 197 |
PARS_EXIT_TOKEN = 335, |
| 198 |
PARS_FUNCTION_TOKEN = 336, |
| 199 |
PARS_LOCK_TOKEN = 337, |
| 200 |
PARS_SHARE_TOKEN = 338, |
| 201 |
PARS_MODE_TOKEN = 339, |
| 202 |
PARS_LIKE_TOKEN = 340, |
| 203 |
PARS_LIKE_TOKEN_EXACT = 341, |
| 204 |
PARS_LIKE_TOKEN_PREFIX = 342, |
| 205 |
PARS_LIKE_TOKEN_SUFFIX = 343, |
| 206 |
PARS_LIKE_TOKEN_SUBSTR = 344, |
| 207 |
PARS_TABLE_NAME_TOKEN = 345, |
| 208 |
PARS_COMPACT_TOKEN = 346, |
| 209 |
PARS_BLOCK_SIZE_TOKEN = 347, |
| 210 |
PARS_BIGINT_TOKEN = 348, |
| 211 |
NEG = 349 |
| 212 |
}; |
| 213 |
#endif |
| 214 |
|
| 215 |
/* Value type. */ |
| 216 |
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED |
| 217 |
typedef int YYSTYPE; |
| 218 |
# define YYSTYPE_IS_TRIVIAL 1 |
| 219 |
# define YYSTYPE_IS_DECLARED 1 |
| 220 |
#endif |
| 221 |
|
| 222 |
|
| 223 |
extern YYSTYPE yylval; |
| 224 |
|
| 225 |
int yyparse (void); |
| 226 |
|
| 227 |
#endif /* !YY_YY_PARS0GRM_TAB_H_INCLUDED */ |
| 228 |
|
| 229 |
/* Copy the second part of user declarations. */ |
| 230 |
|
| 231 |
#line 231 "pars0grm.cc" /* yacc.c:358 */ |
| 232 |
|
| 233 |
#ifdef short |
| 234 |
# undef short |
| 235 |
#endif |
| 236 |
|
| 237 |
#ifdef YYTYPE_UINT8 |
| 238 |
typedef YYTYPE_UINT8 yytype_uint8; |
| 239 |
#else |
| 240 |
typedef unsigned char yytype_uint8; |
| 241 |
#endif |
| 242 |
|
| 243 |
#ifdef YYTYPE_INT8 |
| 244 |
typedef YYTYPE_INT8 yytype_int8; |
| 245 |
#else |
| 246 |
typedef signed char yytype_int8; |
| 247 |
#endif |
| 248 |
|
| 249 |
#ifdef YYTYPE_UINT16 |
| 250 |
typedef YYTYPE_UINT16 yytype_uint16; |
| 251 |
#else |
| 252 |
typedef unsigned short int yytype_uint16; |
| 253 |
#endif |
| 254 |
|
| 255 |
#ifdef YYTYPE_INT16 |
| 256 |
typedef YYTYPE_INT16 yytype_int16; |
| 257 |
#else |
| 258 |
typedef short int yytype_int16; |
| 259 |
#endif |
| 260 |
|
| 261 |
#ifndef YYSIZE_T |
| 262 |
# ifdef __SIZE_TYPE__ |
| 263 |
# define YYSIZE_T __SIZE_TYPE__ |
| 264 |
# elif defined size_t |
| 265 |
# define YYSIZE_T size_t |
| 266 |
# elif ! defined YYSIZE_T |
| 267 |
# include <stddef.h> /* INFRINGES ON USER NAME SPACE */ |
| 268 |
# define YYSIZE_T size_t |
| 269 |
# else |
| 270 |
# define YYSIZE_T unsigned int |
| 271 |
# endif |
| 272 |
#endif |
| 273 |
|
| 274 |
#define YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
| 275 |
|
| 276 |
#ifndef YY_ |
| 277 |
# if defined YYENABLE_NLS && YYENABLE_NLS |
| 278 |
# if ENABLE_NLS |
| 279 |
# include <libintl.h> /* INFRINGES ON USER NAME SPACE */ |
| 280 |
# define YY_(Msgid) dgettext ("bison-runtime", Msgid) |
| 281 |
# endif |
| 282 |
# endif |
| 283 |
# ifndef YY_ |
| 284 |
# define YY_(Msgid) Msgid |
| 285 |
# endif |
| 286 |
#endif |
| 287 |
|
| 288 |
#ifndef YY_ATTRIBUTE |
| 289 |
# if (defined __GNUC__ \ |
| 290 |
&& (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \ |
| 291 |
|| defined __SUNPRO_C && 0x5110 <= __SUNPRO_C |
| 292 |
# define YY_ATTRIBUTE(Spec) MY_ATTRIBUTE(Spec) |
| 293 |
# else |
| 294 |
# define YY_ATTRIBUTE(Spec) /* empty */ |
| 295 |
# endif |
| 296 |
#endif |
| 297 |
|
| 298 |
#ifndef YY_ATTRIBUTE_PURE |
| 299 |
# define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__)) |
| 300 |
#endif |
| 301 |
|
| 302 |
#ifndef YY_ATTRIBUTE_UNUSED |
| 303 |
# define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__)) |
| 304 |
#endif |
| 305 |
|
| 306 |
#if !defined _Noreturn \ |
| 307 |
&& (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112) |
| 308 |
# if defined _MSC_VER && 1200 <= _MSC_VER |
| 309 |
# define _Noreturn __declspec (noreturn) |
| 310 |
# else |
| 311 |
# define _Noreturn YY_ATTRIBUTE ((__noreturn__)) |
| 312 |
# endif |
| 313 |
#endif |
| 314 |
|
| 315 |
/* Suppress unused-variable warnings by "using" E. */ |
| 316 |
#if ! defined lint || defined __GNUC__ |
| 317 |
# define YYUSE(E) ((void) (E)) |
| 318 |
#else |
| 319 |
# define YYUSE(E) /* empty */ |
| 320 |
#endif |
| 321 |
|
| 322 |
#if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__ |
| 323 |
/* Suppress an incorrect diagnostic about yylval being uninitialized. */ |
| 324 |
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ |
| 325 |
_Pragma ("GCC diagnostic push") \ |
| 326 |
_Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\ |
| 327 |
_Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") |
| 328 |
# define YY_IGNORE_MAYBE_UNINITIALIZED_END \ |
| 329 |
_Pragma ("GCC diagnostic pop") |
| 330 |
#else |
| 331 |
# define YY_INITIAL_VALUE(Value) Value |
| 332 |
#endif |
| 333 |
#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
| 334 |
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
| 335 |
# define YY_IGNORE_MAYBE_UNINITIALIZED_END |
| 336 |
#endif |
| 337 |
#ifndef YY_INITIAL_VALUE |
| 338 |
# define YY_INITIAL_VALUE(Value) /* Nothing. */ |
| 339 |
#endif |
| 340 |
|
| 341 |
|
| 342 |
#if ! defined yyoverflow || YYERROR_VERBOSE |
| 343 |
|
| 344 |
/* The parser invokes alloca or malloc; define the necessary symbols. */ |
| 345 |
|
| 346 |
# ifdef YYSTACK_USE_ALLOCA |
| 347 |
# if YYSTACK_USE_ALLOCA |
| 348 |
# ifdef __GNUC__ |
| 349 |
# define YYSTACK_ALLOC __builtin_alloca |
| 350 |
# elif defined __BUILTIN_VA_ARG_INCR |
| 351 |
# include <alloca.h> /* INFRINGES ON USER NAME SPACE */ |
| 352 |
# elif defined _AIX |
| 353 |
# define YYSTACK_ALLOC __alloca |
| 354 |
# elif defined _MSC_VER |
| 355 |
# include <malloc.h> /* INFRINGES ON USER NAME SPACE */ |
| 356 |
# define alloca _alloca |
| 357 |
# else |
| 358 |
# define YYSTACK_ALLOC alloca |
| 359 |
# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS |
| 360 |
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ |
| 361 |
/* Use EXIT_SUCCESS as a witness for stdlib.h. */ |
| 362 |
# ifndef EXIT_SUCCESS |
| 363 |
# define EXIT_SUCCESS 0 |
| 364 |
# endif |
| 365 |
# endif |
| 366 |
# endif |
| 367 |
# endif |
| 368 |
# endif |
| 369 |
|
| 370 |
# ifdef YYSTACK_ALLOC |
| 371 |
/* Pacify GCC's 'empty if-body' warning. */ |
| 372 |
# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0) |
| 373 |
# ifndef YYSTACK_ALLOC_MAXIMUM |
| 374 |
/* The OS might guarantee only one guard page at the bottom of the stack, |
| 375 |
and a page size can be as small as 4096 bytes. So we cannot safely |
| 376 |
invoke alloca (N) if N exceeds 4096. Use a slightly smaller number |
| 377 |
to allow for a few compiler-allocated temporary stack slots. */ |
| 378 |
# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */ |
| 379 |
# endif |
| 380 |
# else |
| 381 |
# define YYSTACK_ALLOC YYMALLOC |
| 382 |
# define YYSTACK_FREE YYFREE |
| 383 |
# ifndef YYSTACK_ALLOC_MAXIMUM |
| 384 |
# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
| 385 |
# endif |
| 386 |
# if (defined __cplusplus && ! defined EXIT_SUCCESS \ |
| 387 |
&& ! ((defined YYMALLOC || defined malloc) \ |
| 388 |
&& (defined YYFREE || defined free))) |
| 389 |
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ |
| 390 |
# ifndef EXIT_SUCCESS |
| 391 |
# define EXIT_SUCCESS 0 |
| 392 |
# endif |
| 393 |
# endif |
| 394 |
# ifndef YYMALLOC |
| 395 |
# define YYMALLOC malloc |
| 396 |
# if ! defined malloc && ! defined EXIT_SUCCESS |
| 397 |
void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ |
| 398 |
# endif |
| 399 |
# endif |
| 400 |
# ifndef YYFREE |
| 401 |
# define YYFREE free |
| 402 |
# if ! defined free && ! defined EXIT_SUCCESS |
| 403 |
void free (void *); /* INFRINGES ON USER NAME SPACE */ |
| 404 |
# endif |
| 405 |
# endif |
| 406 |
# endif |
| 407 |
#endif /* ! defined yyoverflow || YYERROR_VERBOSE */ |
| 408 |
|
| 409 |
|
| 410 |
#if (! defined yyoverflow \ |
| 411 |
&& (! defined __cplusplus \ |
| 412 |
|| (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) |
| 413 |
|
| 414 |
/* A type that is properly aligned for any stack member. */ |
| 415 |
union yyalloc |
| 416 |
{ |
| 417 |
yytype_int16 yyss_alloc; |
| 418 |
YYSTYPE yyvs_alloc; |
| 419 |
}; |
| 420 |
|
| 421 |
/* The size of the maximum gap between one aligned stack and the next. */ |
| 422 |
# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) |
| 423 |
|
| 424 |
/* The size of an array large to enough to hold all stacks, each with |
| 425 |
N elements. */ |
| 426 |
# define YYSTACK_BYTES(N) \ |
| 427 |
((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ |
| 428 |
+ YYSTACK_GAP_MAXIMUM) |
| 429 |
|
| 430 |
# define YYCOPY_NEEDED 1 |
| 431 |
|
| 432 |
/* Relocate STACK from its old location to the new one. The |
| 433 |
local variables YYSIZE and YYSTACKSIZE give the old and new number of |
| 434 |
elements in the stack, and YYPTR gives the new location of the |
| 435 |
stack. Advance YYPTR to a properly aligned location for the next |
| 436 |
stack. */ |
| 437 |
# define YYSTACK_RELOCATE(Stack_alloc, Stack) \ |
| 438 |
do \ |
| 439 |
{ \ |
| 440 |
YYSIZE_T yynewbytes; \ |
| 441 |
YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ |
| 442 |
Stack = &yyptr->Stack_alloc; \ |
| 443 |
yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ |
| 444 |
yyptr += yynewbytes / sizeof (*yyptr); \ |
| 445 |
} \ |
| 446 |
while (0) |
| 447 |
|
| 448 |
#endif |
| 449 |
|
| 450 |
#if defined YYCOPY_NEEDED && YYCOPY_NEEDED |
| 451 |
/* Copy COUNT objects from SRC to DST. The source and destination do |
| 452 |
not overlap. */ |
| 453 |
# ifndef YYCOPY |
| 454 |
# if defined __GNUC__ && 1 < __GNUC__ |
| 455 |
# define YYCOPY(Dst, Src, Count) \ |
| 456 |
__builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src))) |
| 457 |
# else |
| 458 |
# define YYCOPY(Dst, Src, Count) \ |
| 459 |
do \ |
| 460 |
{ \ |
| 461 |
YYSIZE_T yyi; \ |
| 462 |
for (yyi = 0; yyi < (Count); yyi++) \ |
| 463 |
(Dst)[yyi] = (Src)[yyi]; \ |
| 464 |
} \ |
| 465 |
while (0) |
| 466 |
# endif |
| 467 |
# endif |
| 468 |
#endif /* !YYCOPY_NEEDED */ |
| 469 |
|
| 470 |
/* YYFINAL -- State number of the termination state. */ |
| 471 |
#define YYFINAL 5 |
| 472 |
/* YYLAST -- Last index in YYTABLE. */ |
| 473 |
#define YYLAST 626 |
| 474 |
|
| 475 |
/* YYNTOKENS -- Number of terminals. */ |
| 476 |
#define YYNTOKENS 107 |
| 477 |
/* YYNNTS -- Number of nonterminals. */ |
| 478 |
#define YYNNTS 68 |
| 479 |
/* YYNRULES -- Number of rules. */ |
| 480 |
#define YYNRULES 165 |
| 481 |
/* YYNSTATES -- Number of states. */ |
| 482 |
#define YYNSTATES 321 |
| 483 |
|
| 484 |
/* YYTRANSLATE[YYX] -- Symbol number corresponding to YYX as returned |
| 485 |
by yylex, with out-of-bounds checking. */ |
| 486 |
#define YYUNDEFTOK 2 |
| 487 |
#define YYMAXUTOK 349 |
| 488 |
|
| 489 |
#define YYTRANSLATE(YYX) \ |
| 490 |
((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
| 491 |
|
| 492 |
/* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM |
| 493 |
as returned by yylex, without out-of-bounds checking. */ |
| 494 |
static const yytype_uint8 yytranslate[] = |
| 495 |
{ |
| 496 |
0, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 497 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 498 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 499 |
2, 2, 2, 2, 2, 2, 2, 102, 2, 2, |
| 500 |
104, 105, 99, 98, 106, 97, 2, 100, 2, 2, |
| 501 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 103, |
| 502 |
95, 94, 96, 2, 2, 2, 2, 2, 2, 2, |
| 503 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 504 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 505 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 506 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 507 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 508 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 509 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 510 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 511 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 512 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 513 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 514 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 515 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 516 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 517 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 518 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 519 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 520 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 521 |
2, 2, 2, 2, 2, 2, 1, 2, 3, 4, |
| 522 |
5, 6, 7, 8, 9, 10, 11, 12, 13, 14, |
| 523 |
15, 16, 17, 18, 19, 20, 21, 22, 23, 24, |
| 524 |
25, 26, 27, 28, 29, 30, 31, 32, 33, 34, |
| 525 |
35, 36, 37, 38, 39, 40, 41, 42, 43, 44, |
| 526 |
45, 46, 47, 48, 49, 50, 51, 52, 53, 54, |
| 527 |
55, 56, 57, 58, 59, 60, 61, 62, 63, 64, |
| 528 |
65, 66, 67, 68, 69, 70, 71, 72, 73, 74, |
| 529 |
75, 76, 77, 78, 79, 80, 81, 82, 83, 84, |
| 530 |
85, 86, 87, 88, 89, 90, 91, 92, 93, 101 |
| 531 |
}; |
| 532 |
|
| 533 |
#if YYDEBUG |
| 534 |
/* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ |
| 535 |
static const yytype_uint16 yyrline[] = |
| 536 |
{ |
| 537 |
0, 151, 151, 154, 155, 156, 157, 158, 159, 160, |
| 538 |
161, 162, 163, 164, 165, 166, 167, 168, 169, 170, |
| 539 |
171, 172, 176, 177, 182, 183, 185, 186, 187, 188, |
| 540 |
189, 190, 191, 192, 193, 194, 195, 196, 197, 198, |
| 541 |
199, 201, 202, 203, 204, 205, 206, 207, 208, 209, |
| 542 |
211, 216, 217, 218, 220, 221, 225, 229, 230, 235, |
| 543 |
236, 237, 242, 243, 244, 248, 249, 254, 260, 267, |
| 544 |
268, 269, 274, 276, 279, 283, 284, 288, 289, 294, |
| 545 |
295, 300, 301, 302, 306, 307, 314, 329, 334, 337, |
| 546 |
345, 351, 352, 357, 363, 372, 380, 388, 395, 403, |
| 547 |
411, 418, 424, 425, 430, 431, 433, 437, 444, 450, |
| 548 |
460, 464, 468, 475, 482, 486, 494, 503, 504, 509, |
| 549 |
510, 515, 516, 522, 523, 529, 530, 536, 537, 542, |
| 550 |
543, 548, 559, 560, 565, 566, 570, 571, 575, 589, |
| 551 |
590, 594, 599, 604, 605, 606, 607, 608, 609, 613, |
| 552 |
618, 626, 627, 628, 633, 639, 641, 642, 646, 654, |
| 553 |
660, 661, 664, 666, 667, 671 |
| 554 |
}; |
| 555 |
#endif |
| 556 |
|
| 557 |
#if YYDEBUG || YYERROR_VERBOSE || 0 |
| 558 |
/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. |
| 559 |
First, the terminals, then, starting at YYNTOKENS, nonterminals. */ |
| 560 |
static const char *const yytname[] = |
| 561 |
{ |
| 562 |
"$end", "error", "$undefined", "PARS_INT_LIT", "PARS_FLOAT_LIT", |
| 563 |
"PARS_STR_LIT", "PARS_FIXBINARY_LIT", "PARS_BLOB_LIT", "PARS_NULL_LIT", |
| 564 |
"PARS_ID_TOKEN", "PARS_AND_TOKEN", "PARS_OR_TOKEN", "PARS_NOT_TOKEN", |
| 565 |
"PARS_GE_TOKEN", "PARS_LE_TOKEN", "PARS_NE_TOKEN", |
| 566 |
"PARS_PROCEDURE_TOKEN", "PARS_IN_TOKEN", "PARS_OUT_TOKEN", |
| 567 |
"PARS_BINARY_TOKEN", "PARS_BLOB_TOKEN", "PARS_INT_TOKEN", |
| 568 |
"PARS_INTEGER_TOKEN", "PARS_FLOAT_TOKEN", "PARS_CHAR_TOKEN", |
| 569 |
"PARS_IS_TOKEN", "PARS_BEGIN_TOKEN", "PARS_END_TOKEN", "PARS_IF_TOKEN", |
| 570 |
"PARS_THEN_TOKEN", "PARS_ELSE_TOKEN", "PARS_ELSIF_TOKEN", |
| 571 |
"PARS_LOOP_TOKEN", "PARS_WHILE_TOKEN", "PARS_RETURN_TOKEN", |
| 572 |
"PARS_SELECT_TOKEN", "PARS_SUM_TOKEN", "PARS_COUNT_TOKEN", |
| 573 |
"PARS_DISTINCT_TOKEN", "PARS_FROM_TOKEN", "PARS_WHERE_TOKEN", |
| 574 |
"PARS_FOR_TOKEN", "PARS_DDOT_TOKEN", "PARS_READ_TOKEN", |
| 575 |
"PARS_ORDER_TOKEN", "PARS_BY_TOKEN", "PARS_ASC_TOKEN", "PARS_DESC_TOKEN", |
| 576 |
"PARS_INSERT_TOKEN", "PARS_INTO_TOKEN", "PARS_VALUES_TOKEN", |
| 577 |
"PARS_UPDATE_TOKEN", "PARS_SET_TOKEN", "PARS_DELETE_TOKEN", |
| 578 |
"PARS_CURRENT_TOKEN", "PARS_OF_TOKEN", "PARS_CREATE_TOKEN", |
| 579 |
"PARS_TABLE_TOKEN", "PARS_INDEX_TOKEN", "PARS_UNIQUE_TOKEN", |
| 580 |
"PARS_CLUSTERED_TOKEN", "PARS_DOES_NOT_FIT_IN_MEM_TOKEN", |
| 581 |
"PARS_ON_TOKEN", "PARS_ASSIGN_TOKEN", "PARS_DECLARE_TOKEN", |
| 582 |
"PARS_CURSOR_TOKEN", "PARS_SQL_TOKEN", "PARS_OPEN_TOKEN", |
| 583 |
"PARS_FETCH_TOKEN", "PARS_CLOSE_TOKEN", "PARS_NOTFOUND_TOKEN", |
| 584 |
"PARS_TO_BINARY_TOKEN", "PARS_SUBSTR_TOKEN", "PARS_CONCAT_TOKEN", |
| 585 |
"PARS_INSTR_TOKEN", "PARS_LENGTH_TOKEN", "PARS_COMMIT_TOKEN", |
| 586 |
"PARS_ROLLBACK_TOKEN", "PARS_WORK_TOKEN", "PARS_UNSIGNED_TOKEN", |
| 587 |
"PARS_EXIT_TOKEN", "PARS_FUNCTION_TOKEN", "PARS_LOCK_TOKEN", |
| 588 |
"PARS_SHARE_TOKEN", "PARS_MODE_TOKEN", "PARS_LIKE_TOKEN", |
| 589 |
"PARS_LIKE_TOKEN_EXACT", "PARS_LIKE_TOKEN_PREFIX", |
| 590 |
"PARS_LIKE_TOKEN_SUFFIX", "PARS_LIKE_TOKEN_SUBSTR", |
| 591 |
"PARS_TABLE_NAME_TOKEN", "PARS_COMPACT_TOKEN", "PARS_BLOCK_SIZE_TOKEN", |
| 592 |
"PARS_BIGINT_TOKEN", "'='", "'<'", "'>'", "'-'", "'+'", "'*'", "'/'", |
| 593 |
"NEG", "'%'", "';'", "'('", "')'", "','", "$accept", "top_statement", |
| 594 |
"statement", "statement_list", "exp", "function_name", |
| 595 |
"user_function_call", "table_list", "variable_list", "exp_list", |
| 596 |
"select_item", "select_item_list", "select_list", "search_condition", |
| 597 |
"for_update_clause", "lock_shared_clause", "order_direction", |
| 598 |
"order_by_clause", "select_statement", "insert_statement_start", |
| 599 |
"insert_statement", "column_assignment", "column_assignment_list", |
| 600 |
"cursor_positioned", "update_statement_start", |
| 601 |
"update_statement_searched", "update_statement_positioned", |
| 602 |
"delete_statement_start", "delete_statement_searched", |
| 603 |
"delete_statement_positioned", "assignment_statement", "elsif_element", |
| 604 |
"elsif_list", "else_part", "if_statement", "while_statement", |
| 605 |
"for_statement", "exit_statement", "return_statement", |
| 606 |
"open_cursor_statement", "close_cursor_statement", "fetch_statement", |
| 607 |
"column_def", "column_def_list", "opt_column_len", "opt_unsigned", |
| 608 |
"opt_not_null", "not_fit_in_memory", "compact", "block_size", |
| 609 |
"create_table", "column_list", "unique_def", "clustered_def", |
| 610 |
"create_index", "table_name", "commit_statement", "rollback_statement", |
| 611 |
"type_name", "parameter_declaration", "parameter_declaration_list", |
| 612 |
"variable_declaration", "variable_declaration_list", |
| 613 |
"cursor_declaration", "function_declaration", "declaration", |
| 614 |
"declaration_list", "procedure_definition", YY_NULLPTR |
| 615 |
}; |
| 616 |
#endif |
| 617 |
|
| 618 |
# ifdef YYPRINT |
| 619 |
/* YYTOKNUM[NUM] -- (External) token number corresponding to the |
| 620 |
(internal) symbol number NUM (which must be that of a token). */ |
| 621 |
static const yytype_uint16 yytoknum[] = |
| 622 |
{ |
| 623 |
0, 256, 257, 258, 259, 260, 261, 262, 263, 264, |
| 624 |
265, 266, 267, 268, 269, 270, 271, 272, 273, 274, |
| 625 |
275, 276, 277, 278, 279, 280, 281, 282, 283, 284, |
| 626 |
285, 286, 287, 288, 289, 290, 291, 292, 293, 294, |
| 627 |
295, 296, 297, 298, 299, 300, 301, 302, 303, 304, |
| 628 |
305, 306, 307, 308, 309, 310, 311, 312, 313, 314, |
| 629 |
315, 316, 317, 318, 319, 320, 321, 322, 323, 324, |
| 630 |
325, 326, 327, 328, 329, 330, 331, 332, 333, 334, |
| 631 |
335, 336, 337, 338, 339, 340, 341, 342, 343, 344, |
| 632 |
345, 346, 347, 348, 61, 60, 62, 45, 43, 42, |
| 633 |
47, 349, 37, 59, 40, 41, 44 |
| 634 |
}; |
| 635 |
# endif |
| 636 |
|
| 637 |
#define YYPACT_NINF -141 |
| 638 |
|
| 639 |
#define yypact_value_is_default(Yystate) \ |
| 640 |
(!!((Yystate) == (-141))) |
| 641 |
|
| 642 |
#define YYTABLE_NINF -1 |
| 643 |
|
| 644 |
#define yytable_value_is_error(Yytable_value) \ |
| 645 |
0 |
| 646 |
|
| 647 |
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing |
| 648 |
STATE-NUM. */ |
| 649 |
static const yytype_int16 yypact[] = |
| 650 |
{ |
| 651 |
21, 30, 44, -46, -54, -141, -141, 60, 15, -141, |
| 652 |
-64, 7, 7, 45, 60, -141, -141, -141, -141, -141, |
| 653 |
-141, -141, -141, 62, -141, 7, -141, 3, -29, -35, |
| 654 |
-141, -141, -141, -141, -4, -141, 66, 67, 546, -141, |
| 655 |
53, -24, 18, 208, 208, -141, 11, 79, 40, -3, |
| 656 |
68, -21, 100, 102, 103, 35, 36, -141, -141, 454, |
| 657 |
13, -1, 14, 78, 22, 31, 78, 42, 43, 46, |
| 658 |
47, 48, 49, 50, 52, 54, 56, 57, 70, 71, |
| 659 |
72, 80, 107, -141, 208, -141, -141, -141, -141, -141, |
| 660 |
-141, 82, 208, 84, -141, -141, -141, -141, -141, 208, |
| 661 |
208, 258, 65, 278, 85, 86, -141, 351, -141, -38, |
| 662 |
108, 171, -3, -141, -141, 139, -3, -3, -141, 133, |
| 663 |
-141, 146, -141, -141, -141, -141, -141, -141, 92, -141, |
| 664 |
-141, 90, -141, -141, -141, -141, -141, -141, -141, -141, |
| 665 |
-141, -141, -141, -141, -141, -141, -141, -141, -141, -141, |
| 666 |
-141, -141, -141, 95, 351, 130, 311, 131, -5, 157, |
| 667 |
208, 208, 208, 208, 208, 546, 197, 208, 208, 208, |
| 668 |
208, 208, 208, 208, 208, 546, 208, 2, 195, 173, |
| 669 |
-3, 208, -141, 196, -141, 104, -141, 160, 210, 208, |
| 670 |
166, 351, -141, -141, -141, -141, 311, 311, 6, 6, |
| 671 |
351, 424, -141, 6, 6, 6, 39, 39, -5, -5, |
| 672 |
351, -53, 485, 222, 213, 118, -141, 119, -141, -33, |
| 673 |
-141, 286, 132, -141, 121, 215, 219, 125, -141, 119, |
| 674 |
-50, 231, 546, 208, -141, 200, 214, -141, 208, 211, |
| 675 |
-141, 144, -141, 241, 208, -3, 217, 208, 208, 196, |
| 676 |
7, -141, -44, 198, 154, -141, -141, 546, 319, -141, |
| 677 |
233, 351, -141, -141, -141, -141, 212, 182, 327, 351, |
| 678 |
-141, 161, 205, 215, -3, -141, 546, -141, -141, 250, |
| 679 |
232, 546, 272, 199, -141, 193, -141, 181, 546, 203, |
| 680 |
245, -141, 515, 189, -141, 283, -141, 206, 293, 220, |
| 681 |
294, 274, -141, 300, -141, 221, -141, -141, -42, -141, |
| 682 |
19, -141, -141, 306, -141, 302, -141, -141, -141, -141, |
| 683 |
-141 |
| 684 |
}; |
| 685 |
|
| 686 |
/* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM. |
| 687 |
Performed when YYTABLE does not specify something else to do. Zero |
| 688 |
means the default is an error. */ |
| 689 |
static const yytype_uint8 yydefact[] = |
| 690 |
{ |
| 691 |
0, 0, 0, 0, 0, 1, 2, 151, 0, 152, |
| 692 |
0, 0, 0, 0, 0, 147, 148, 143, 144, 146, |
| 693 |
145, 149, 150, 155, 153, 0, 156, 162, 0, 0, |
| 694 |
157, 160, 161, 163, 0, 154, 0, 0, 0, 164, |
| 695 |
0, 0, 0, 0, 0, 111, 69, 0, 0, 0, |
| 696 |
0, 134, 0, 0, 0, 0, 0, 110, 22, 0, |
| 697 |
0, 0, 0, 75, 0, 0, 75, 0, 0, 0, |
| 698 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 699 |
0, 0, 0, 159, 0, 26, 27, 28, 29, 30, |
| 700 |
31, 24, 0, 32, 54, 51, 52, 53, 55, 0, |
| 701 |
0, 0, 0, 0, 0, 0, 72, 65, 70, 74, |
| 702 |
0, 0, 0, 139, 140, 0, 0, 0, 135, 136, |
| 703 |
112, 0, 113, 141, 142, 165, 23, 9, 0, 89, |
| 704 |
10, 0, 95, 96, 13, 14, 98, 99, 11, 12, |
| 705 |
8, 6, 3, 4, 5, 7, 15, 17, 16, 20, |
| 706 |
21, 18, 19, 0, 100, 0, 48, 0, 37, 0, |
| 707 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 708 |
0, 0, 0, 0, 62, 0, 0, 0, 59, 0, |
| 709 |
0, 0, 87, 0, 97, 0, 137, 0, 59, 62, |
| 710 |
0, 76, 158, 49, 50, 38, 46, 47, 43, 44, |
| 711 |
45, 104, 40, 39, 41, 42, 34, 33, 35, 36, |
| 712 |
63, 0, 0, 0, 0, 0, 60, 73, 71, 75, |
| 713 |
57, 0, 0, 91, 94, 0, 0, 60, 115, 114, |
| 714 |
0, 0, 0, 0, 102, 106, 0, 25, 0, 0, |
| 715 |
68, 0, 66, 0, 0, 0, 77, 0, 0, 0, |
| 716 |
0, 117, 0, 0, 0, 88, 93, 105, 0, 103, |
| 717 |
0, 64, 108, 67, 61, 58, 0, 79, 0, 90, |
| 718 |
92, 119, 125, 0, 0, 56, 0, 107, 78, 0, |
| 719 |
84, 0, 0, 121, 126, 127, 118, 0, 101, 0, |
| 720 |
0, 86, 0, 0, 122, 123, 128, 129, 0, 0, |
| 721 |
0, 0, 120, 0, 116, 0, 131, 132, 0, 80, |
| 722 |
81, 109, 124, 0, 138, 0, 82, 83, 85, 130, |
| 723 |
133 |
| 724 |
}; |
| 725 |
|
| 726 |
/* YYPGOTO[NTERM-NUM]. */ |
| 727 |
static const yytype_int16 yypgoto[] = |
| 728 |
{ |
| 729 |
-141, -141, -58, -140, -41, -141, -141, -141, 126, 124, |
| 730 |
152, -141, -141, -61, -141, -141, -141, -141, -37, -141, |
| 731 |
-141, 74, -141, 269, -141, -141, -141, -141, -141, -141, |
| 732 |
-141, 101, -141, -141, -141, -141, -141, -141, -141, -141, |
| 733 |
-141, -141, 73, -141, -141, -141, -141, -141, -141, -141, |
| 734 |
-141, -141, -141, -141, -141, -108, -141, -141, -12, 325, |
| 735 |
-141, 317, -141, -141, -141, 313, -141, -141 |
| 736 |
}; |
| 737 |
|
| 738 |
/* YYDEFGOTO[NTERM-NUM]. */ |
| 739 |
static const yytype_int16 yydefgoto[] = |
| 740 |
{ |
| 741 |
-1, 2, 58, 59, 107, 102, 228, 219, 217, 211, |
| 742 |
108, 109, 110, 132, 267, 280, 318, 291, 60, 61, |
| 743 |
62, 223, 224, 133, 63, 64, 65, 66, 67, 68, |
| 744 |
69, 234, 235, 236, 70, 71, 72, 73, 74, 75, |
| 745 |
76, 77, 251, 252, 283, 295, 304, 285, 297, 306, |
| 746 |
78, 308, 119, 187, 79, 115, 80, 81, 21, 9, |
| 747 |
10, 26, 27, 31, 32, 33, 34, 3 |
| 748 |
}; |
| 749 |
|
| 750 |
/* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If |
| 751 |
positive, shift that token. If negative, reduce the rule whose |
| 752 |
number is the opposite. If YYTABLE_NINF, syntax error. */ |
| 753 |
static const yytype_uint16 yytable[] = |
| 754 |
{ |
| 755 |
22, 126, 101, 103, 182, 136, 113, 244, 184, 185, |
| 756 |
164, 178, 25, 28, 85, 86, 87, 88, 89, 90, |
| 757 |
91, 164, 38, 92, 129, 201, 15, 16, 17, 18, |
| 758 |
36, 19, 11, 12, 46, 212, 117, 1, 118, 4, |
| 759 |
214, 13, 14, 154, 5, 153, 37, 104, 105, 128, |
| 760 |
7, 156, 237, 238, 164, 255, 238, 6, 158, 159, |
| 761 |
29, 272, 273, 314, 315, 316, 317, 29, 179, 8, |
| 762 |
23, 25, 220, 245, 35, 40, 41, 93, 82, 83, |
| 763 |
166, 84, 94, 95, 96, 97, 98, 114, 111, 112, |
| 764 |
191, 166, 257, 85, 86, 87, 88, 89, 90, 91, |
| 765 |
20, 215, 92, 170, 171, 172, 173, 116, 99, 120, |
| 766 |
106, 121, 122, 123, 124, 100, 127, 130, 131, 196, |
| 767 |
197, 198, 199, 200, 166, 134, 203, 204, 205, 206, |
| 768 |
207, 208, 209, 210, 135, 213, 288, 265, 172, 173, |
| 769 |
221, 292, 46, 126, 190, 138, 139, 180, 210, 140, |
| 770 |
141, 142, 143, 144, 126, 145, 93, 146, 246, 147, |
| 771 |
148, 94, 95, 96, 97, 98, 287, 160, 161, 174, |
| 772 |
162, 163, 164, 149, 150, 151, 85, 86, 87, 88, |
| 773 |
89, 90, 91, 152, 155, 92, 157, 99, 181, 176, |
| 774 |
177, 183, 258, 186, 100, 188, 189, 261, 192, 126, |
| 775 |
193, 194, 202, 191, 216, 222, 268, 269, 225, 104, |
| 776 |
105, 85, 86, 87, 88, 89, 90, 91, 226, 227, |
| 777 |
92, 231, 241, 242, 250, 243, 248, 249, 253, 254, |
| 778 |
126, 233, 160, 161, 126, 162, 163, 164, 271, 93, |
| 779 |
256, 260, 166, 262, 94, 95, 96, 97, 98, 263, |
| 780 |
264, 167, 168, 169, 170, 171, 172, 173, 266, 275, |
| 781 |
274, 277, 195, 278, 279, 282, 284, 289, 160, 161, |
| 782 |
99, 162, 163, 164, 93, 293, 290, 100, 294, 94, |
| 783 |
95, 96, 97, 98, 296, 298, 299, 165, 160, 161, |
| 784 |
300, 162, 163, 164, 302, 303, 160, 161, 305, 162, |
| 785 |
163, 164, 307, 310, 309, 99, 311, 166, 312, 319, |
| 786 |
175, 320, 100, 230, 229, 313, 167, 168, 169, 170, |
| 787 |
171, 172, 173, 270, 162, 163, 164, 240, 247, 160, |
| 788 |
161, 218, 162, 163, 164, 137, 259, 160, 161, 24, |
| 789 |
162, 163, 164, 166, 30, 0, 286, 39, 276, 0, |
| 790 |
0, 0, 167, 168, 169, 170, 171, 172, 173, 281, |
| 791 |
0, 160, 161, 166, 162, 163, 164, 0, 0, 0, |
| 792 |
0, 166, 167, 168, 169, 170, 171, 172, 173, 0, |
| 793 |
167, 168, 169, 170, 171, 172, 173, 0, 0, 0, |
| 794 |
0, 0, 0, 0, 0, 0, 166, 0, 0, 0, |
| 795 |
0, 0, 0, 0, 166, 167, 168, 169, 170, 171, |
| 796 |
172, 173, 166, 167, 168, 169, 170, 171, 172, 173, |
| 797 |
0, 167, 168, 169, 170, 171, 172, 173, 0, 0, |
| 798 |
0, 0, 0, 42, 0, 0, 166, 0, 0, 0, |
| 799 |
0, 0, 0, 0, 0, 167, 168, 169, 170, 171, |
| 800 |
172, 173, 43, 0, 232, 233, 0, 44, 45, 46, |
| 801 |
0, 0, 0, 42, 0, 47, 0, 0, 0, 0, |
| 802 |
0, 0, 48, 0, 0, 49, 0, 50, 0, 0, |
| 803 |
51, 125, 43, 0, 0, 0, 0, 44, 45, 46, |
| 804 |
0, 52, 53, 54, 42, 47, 0, 0, 0, 0, |
| 805 |
55, 56, 48, 0, 57, 49, 0, 50, 0, 0, |
| 806 |
51, 0, 239, 43, 0, 0, 0, 0, 44, 45, |
| 807 |
46, 52, 53, 54, 42, 0, 47, 0, 0, 0, |
| 808 |
55, 56, 0, 48, 57, 0, 49, 0, 50, 0, |
| 809 |
0, 51, 301, 43, 0, 0, 0, 0, 44, 45, |
| 810 |
46, 0, 52, 53, 54, 42, 47, 0, 0, 0, |
| 811 |
0, 55, 56, 48, 0, 57, 49, 0, 50, 0, |
| 812 |
0, 51, 0, 0, 43, 0, 0, 0, 0, 44, |
| 813 |
45, 46, 52, 53, 54, 0, 0, 47, 0, 0, |
| 814 |
0, 55, 56, 0, 48, 57, 0, 49, 0, 50, |
| 815 |
0, 0, 51, 0, 0, 0, 0, 0, 0, 0, |
| 816 |
0, 0, 0, 52, 53, 54, 0, 0, 0, 0, |
| 817 |
0, 0, 55, 56, 0, 0, 57 |
| 818 |
}; |
| 819 |
|
| 820 |
static const yytype_int16 yycheck[] = |
| 821 |
{ |
| 822 |
12, 59, 43, 44, 112, 66, 9, 40, 116, 117, |
| 823 |
15, 49, 9, 25, 3, 4, 5, 6, 7, 8, |
| 824 |
9, 15, 26, 12, 61, 165, 19, 20, 21, 22, |
| 825 |
65, 24, 17, 18, 35, 175, 57, 16, 59, 9, |
| 826 |
38, 105, 106, 84, 0, 82, 81, 36, 37, 50, |
| 827 |
104, 92, 105, 106, 15, 105, 106, 103, 99, 100, |
| 828 |
64, 105, 106, 105, 106, 46, 47, 64, 106, 9, |
| 829 |
25, 9, 180, 106, 103, 9, 9, 66, 25, 103, |
| 830 |
85, 63, 71, 72, 73, 74, 75, 90, 9, 49, |
| 831 |
131, 85, 232, 3, 4, 5, 6, 7, 8, 9, |
| 832 |
93, 99, 12, 97, 98, 99, 100, 39, 97, 9, |
| 833 |
99, 9, 9, 78, 78, 104, 103, 103, 40, 160, |
| 834 |
161, 162, 163, 164, 85, 103, 167, 168, 169, 170, |
| 835 |
171, 172, 173, 174, 103, 176, 276, 245, 99, 100, |
| 836 |
181, 281, 35, 201, 54, 103, 103, 39, 189, 103, |
| 837 |
103, 103, 103, 103, 212, 103, 66, 103, 219, 103, |
| 838 |
103, 71, 72, 73, 74, 75, 274, 10, 11, 104, |
| 839 |
13, 14, 15, 103, 103, 103, 3, 4, 5, 6, |
| 840 |
7, 8, 9, 103, 102, 12, 102, 97, 17, 104, |
| 841 |
104, 52, 233, 60, 104, 49, 104, 238, 103, 257, |
| 842 |
70, 70, 5, 244, 9, 9, 247, 248, 104, 36, |
| 843 |
37, 3, 4, 5, 6, 7, 8, 9, 58, 9, |
| 844 |
12, 55, 9, 105, 9, 106, 94, 106, 9, 104, |
| 845 |
288, 31, 10, 11, 292, 13, 14, 15, 250, 66, |
| 846 |
9, 27, 85, 32, 71, 72, 73, 74, 75, 105, |
| 847 |
9, 94, 95, 96, 97, 98, 99, 100, 41, 105, |
| 848 |
62, 28, 105, 51, 82, 104, 61, 17, 10, 11, |
| 849 |
97, 13, 14, 15, 66, 3, 44, 104, 79, 71, |
| 850 |
72, 73, 74, 75, 91, 104, 83, 29, 10, 11, |
| 851 |
45, 13, 14, 15, 105, 12, 10, 11, 92, 13, |
| 852 |
14, 15, 9, 9, 84, 97, 32, 85, 8, 3, |
| 853 |
32, 9, 104, 189, 188, 94, 94, 95, 96, 97, |
| 854 |
98, 99, 100, 249, 13, 14, 15, 105, 42, 10, |
| 855 |
11, 179, 13, 14, 15, 66, 235, 10, 11, 14, |
| 856 |
13, 14, 15, 85, 27, -1, 273, 34, 29, -1, |
| 857 |
-1, -1, 94, 95, 96, 97, 98, 99, 100, 32, |
| 858 |
-1, 10, 11, 85, 13, 14, 15, -1, -1, -1, |
| 859 |
-1, 85, 94, 95, 96, 97, 98, 99, 100, -1, |
| 860 |
94, 95, 96, 97, 98, 99, 100, -1, -1, -1, |
| 861 |
-1, -1, -1, -1, -1, -1, 85, -1, -1, -1, |
| 862 |
-1, -1, -1, -1, 85, 94, 95, 96, 97, 98, |
| 863 |
99, 100, 85, 94, 95, 96, 97, 98, 99, 100, |
| 864 |
-1, 94, 95, 96, 97, 98, 99, 100, -1, -1, |
| 865 |
-1, -1, -1, 9, -1, -1, 85, -1, -1, -1, |
| 866 |
-1, -1, -1, -1, -1, 94, 95, 96, 97, 98, |
| 867 |
99, 100, 28, -1, 30, 31, -1, 33, 34, 35, |
| 868 |
-1, -1, -1, 9, -1, 41, -1, -1, -1, -1, |
| 869 |
-1, -1, 48, -1, -1, 51, -1, 53, -1, -1, |
| 870 |
56, 27, 28, -1, -1, -1, -1, 33, 34, 35, |
| 871 |
-1, 67, 68, 69, 9, 41, -1, -1, -1, -1, |
| 872 |
76, 77, 48, -1, 80, 51, -1, 53, -1, -1, |
| 873 |
56, -1, 27, 28, -1, -1, -1, -1, 33, 34, |
| 874 |
35, 67, 68, 69, 9, -1, 41, -1, -1, -1, |
| 875 |
76, 77, -1, 48, 80, -1, 51, -1, 53, -1, |
| 876 |
-1, 56, 27, 28, -1, -1, -1, -1, 33, 34, |
| 877 |
35, -1, 67, 68, 69, 9, 41, -1, -1, -1, |
| 878 |
-1, 76, 77, 48, -1, 80, 51, -1, 53, -1, |
| 879 |
-1, 56, -1, -1, 28, -1, -1, -1, -1, 33, |
| 880 |
34, 35, 67, 68, 69, -1, -1, 41, -1, -1, |
| 881 |
-1, 76, 77, -1, 48, 80, -1, 51, -1, 53, |
| 882 |
-1, -1, 56, -1, -1, -1, -1, -1, -1, -1, |
| 883 |
-1, -1, -1, 67, 68, 69, -1, -1, -1, -1, |
| 884 |
-1, -1, 76, 77, -1, -1, 80 |
| 885 |
}; |
| 886 |
|
| 887 |
/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing |
| 888 |
symbol of state STATE-NUM. */ |
| 889 |
static const yytype_uint8 yystos[] = |
| 890 |
{ |
| 891 |
0, 16, 108, 174, 9, 0, 103, 104, 9, 166, |
| 892 |
167, 17, 18, 105, 106, 19, 20, 21, 22, 24, |
| 893 |
93, 165, 165, 25, 166, 9, 168, 169, 165, 64, |
| 894 |
168, 170, 171, 172, 173, 103, 65, 81, 26, 172, |
| 895 |
9, 9, 9, 28, 33, 34, 35, 41, 48, 51, |
| 896 |
53, 56, 67, 68, 69, 76, 77, 80, 109, 110, |
| 897 |
125, 126, 127, 131, 132, 133, 134, 135, 136, 137, |
| 898 |
141, 142, 143, 144, 145, 146, 147, 148, 157, 161, |
| 899 |
163, 164, 25, 103, 63, 3, 4, 5, 6, 7, |
| 900 |
8, 9, 12, 66, 71, 72, 73, 74, 75, 97, |
| 901 |
104, 111, 112, 111, 36, 37, 99, 111, 117, 118, |
| 902 |
119, 9, 49, 9, 90, 162, 39, 57, 59, 159, |
| 903 |
9, 9, 9, 78, 78, 27, 109, 103, 50, 125, |
| 904 |
103, 40, 120, 130, 103, 103, 120, 130, 103, 103, |
| 905 |
103, 103, 103, 103, 103, 103, 103, 103, 103, 103, |
| 906 |
103, 103, 103, 125, 111, 102, 111, 102, 111, 111, |
| 907 |
10, 11, 13, 14, 15, 29, 85, 94, 95, 96, |
| 908 |
97, 98, 99, 100, 104, 32, 104, 104, 49, 106, |
| 909 |
39, 17, 162, 52, 162, 162, 60, 160, 49, 104, |
| 910 |
54, 111, 103, 70, 70, 105, 111, 111, 111, 111, |
| 911 |
111, 110, 5, 111, 111, 111, 111, 111, 111, 111, |
| 912 |
111, 116, 110, 111, 38, 99, 9, 115, 117, 114, |
| 913 |
162, 111, 9, 128, 129, 104, 58, 9, 113, 115, |
| 914 |
116, 55, 30, 31, 138, 139, 140, 105, 106, 27, |
| 915 |
105, 9, 105, 106, 40, 106, 120, 42, 94, 106, |
| 916 |
9, 149, 150, 9, 104, 105, 9, 110, 111, 138, |
| 917 |
27, 111, 32, 105, 9, 162, 41, 121, 111, 111, |
| 918 |
128, 165, 105, 106, 62, 105, 29, 28, 51, 82, |
| 919 |
122, 32, 104, 151, 61, 154, 149, 162, 110, 17, |
| 920 |
44, 124, 110, 3, 79, 152, 91, 155, 104, 83, |
| 921 |
45, 27, 105, 12, 153, 92, 156, 9, 158, 84, |
| 922 |
9, 32, 8, 94, 105, 106, 46, 47, 123, 3, |
| 923 |
9 |
| 924 |
}; |
| 925 |
|
| 926 |
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ |
| 927 |
static const yytype_uint8 yyr1[] = |
| 928 |
{ |
| 929 |
0, 107, 108, 109, 109, 109, 109, 109, 109, 109, |
| 930 |
109, 109, 109, 109, 109, 109, 109, 109, 109, 109, |
| 931 |
109, 109, 110, 110, 111, 111, 111, 111, 111, 111, |
| 932 |
111, 111, 111, 111, 111, 111, 111, 111, 111, 111, |
| 933 |
111, 111, 111, 111, 111, 111, 111, 111, 111, 111, |
| 934 |
111, 112, 112, 112, 112, 112, 113, 114, 114, 115, |
| 935 |
115, 115, 116, 116, 116, 117, 117, 117, 117, 118, |
| 936 |
118, 118, 119, 119, 119, 120, 120, 121, 121, 122, |
| 937 |
122, 123, 123, 123, 124, 124, 125, 126, 127, 127, |
| 938 |
128, 129, 129, 130, 131, 132, 133, 134, 135, 136, |
| 939 |
137, 138, 139, 139, 140, 140, 140, 141, 142, 143, |
| 940 |
144, 145, 146, 147, 148, 148, 149, 150, 150, 151, |
| 941 |
151, 152, 152, 153, 153, 154, 154, 155, 155, 156, |
| 942 |
156, 157, 158, 158, 159, 159, 160, 160, 161, 162, |
| 943 |
162, 163, 164, 165, 165, 165, 165, 165, 165, 166, |
| 944 |
166, 167, 167, 167, 168, 169, 169, 169, 170, 171, |
| 945 |
172, 172, 173, 173, 173, 174 |
| 946 |
}; |
| 947 |
|
| 948 |
/* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */ |
| 949 |
static const yytype_uint8 yyr2[] = |
| 950 |
{ |
| 951 |
0, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 952 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 953 |
2, 2, 1, 2, 1, 4, 1, 1, 1, 1, |
| 954 |
1, 1, 1, 3, 3, 3, 3, 2, 3, 3, |
| 955 |
3, 3, 3, 3, 3, 3, 3, 3, 2, 3, |
| 956 |
3, 1, 1, 1, 1, 1, 3, 1, 3, 0, |
| 957 |
1, 3, 0, 1, 3, 1, 4, 5, 4, 0, |
| 958 |
1, 3, 1, 3, 1, 0, 2, 0, 2, 0, |
| 959 |
4, 0, 1, 1, 0, 4, 8, 3, 5, 2, |
| 960 |
3, 1, 3, 4, 4, 2, 2, 3, 2, 2, |
| 961 |
3, 4, 1, 2, 0, 2, 1, 7, 6, 10, |
| 962 |
1, 1, 2, 2, 4, 4, 5, 1, 3, 0, |
| 963 |
3, 0, 1, 0, 2, 0, 1, 0, 1, 0, |
| 964 |
3, 9, 1, 3, 0, 1, 0, 1, 10, 1, |
| 965 |
1, 2, 2, 1, 1, 1, 1, 1, 1, 3, |
| 966 |
3, 0, 1, 3, 3, 0, 1, 2, 6, 4, |
| 967 |
1, 1, 0, 1, 2, 11 |
| 968 |
}; |
| 969 |
|
| 970 |
|
| 971 |
#define yyerrok (yyerrstatus = 0) |
| 972 |
#define yyclearin (yychar = YYEMPTY) |
| 973 |
#define YYEMPTY (-2) |
| 974 |
#define YYEOF 0 |
| 975 |
|
| 976 |
#define YYACCEPT goto yyacceptlab |
| 977 |
#define YYABORT goto yyabortlab |
| 978 |
#define YYERROR goto yyerrorlab |
| 979 |
|
| 980 |
|
| 981 |
#define YYRECOVERING() (!!yyerrstatus) |
| 982 |
|
| 983 |
#define YYBACKUP(Token, Value) \ |
| 984 |
do \ |
| 985 |
if (yychar == YYEMPTY) \ |
| 986 |
{ \ |
| 987 |
yychar = (Token); \ |
| 988 |
yylval = (Value); \ |
| 989 |
YYPOPSTACK (yylen); \ |
| 990 |
yystate = *yyssp; \ |
| 991 |
goto yybackup; \ |
| 992 |
} \ |
| 993 |
else \ |
| 994 |
{ \ |
| 995 |
yyerror (YY_("syntax error: cannot back up")); \ |
| 996 |
YYERROR; \ |
| 997 |
} \ |
| 998 |
while (0) |
| 999 |
|
| 1000 |
/* Error token number */ |
| 1001 |
#define YYTERROR 1 |
| 1002 |
#define YYERRCODE 256 |
| 1003 |
|
| 1004 |
|
| 1005 |
|
| 1006 |
/* Enable debugging if requested. */ |
| 1007 |
#if YYDEBUG |
| 1008 |
|
| 1009 |
# ifndef YYFPRINTF |
| 1010 |
# include <stdio.h> /* INFRINGES ON USER NAME SPACE */ |
| 1011 |
# define YYFPRINTF fprintf |
| 1012 |
# endif |
| 1013 |
|
| 1014 |
# define YYDPRINTF(Args) \ |
| 1015 |
do { \ |
| 1016 |
if (yydebug) \ |
| 1017 |
YYFPRINTF Args; \ |
| 1018 |
} while (0) |
| 1019 |
|
| 1020 |
/* This macro is provided for backward compatibility. */ |
| 1021 |
#ifndef YY_LOCATION_PRINT |
| 1022 |
# define YY_LOCATION_PRINT(File, Loc) ((void) 0) |
| 1023 |
#endif |
| 1024 |
|
| 1025 |
|
| 1026 |
# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ |
| 1027 |
do { \ |
| 1028 |
if (yydebug) \ |
| 1029 |
{ \ |
| 1030 |
YYFPRINTF (stderr, "%s ", Title); \ |
| 1031 |
yy_symbol_print (stderr, \ |
| 1032 |
Type, Value); \ |
| 1033 |
YYFPRINTF (stderr, "\n"); \ |
| 1034 |
} \ |
| 1035 |
} while (0) |
| 1036 |
|
| 1037 |
|
| 1038 |
/*----------------------------------------. |
| 1039 |
| Print this symbol's value on YYOUTPUT. | |
| 1040 |
`----------------------------------------*/ |
| 1041 |
|
| 1042 |
static void |
| 1043 |
yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) |
| 1044 |
{ |
| 1045 |
FILE *yyo = yyoutput; |
| 1046 |
YYUSE (yyo); |
| 1047 |
if (!yyvaluep) |
| 1048 |
return; |
| 1049 |
# ifdef YYPRINT |
| 1050 |
if (yytype < YYNTOKENS) |
| 1051 |
YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep); |
| 1052 |
# endif |
| 1053 |
YYUSE (yytype); |
| 1054 |
} |
| 1055 |
|
| 1056 |
|
| 1057 |
/*--------------------------------. |
| 1058 |
| Print this symbol on YYOUTPUT. | |
| 1059 |
`--------------------------------*/ |
| 1060 |
|
| 1061 |
static void |
| 1062 |
yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) |
| 1063 |
{ |
| 1064 |
YYFPRINTF (yyoutput, "%s %s (", |
| 1065 |
yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]); |
| 1066 |
|
| 1067 |
yy_symbol_value_print (yyoutput, yytype, yyvaluep); |
| 1068 |
YYFPRINTF (yyoutput, ")"); |
| 1069 |
} |
| 1070 |
|
| 1071 |
/*------------------------------------------------------------------. |
| 1072 |
| yy_stack_print -- Print the state stack from its BOTTOM up to its | |
| 1073 |
| TOP (included). | |
| 1074 |
`------------------------------------------------------------------*/ |
| 1075 |
|
| 1076 |
static void |
| 1077 |
yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop) |
| 1078 |
{ |
| 1079 |
YYFPRINTF (stderr, "Stack now"); |
| 1080 |
for (; yybottom <= yytop; yybottom++) |
| 1081 |
{ |
| 1082 |
int yybot = *yybottom; |
| 1083 |
YYFPRINTF (stderr, " %d", yybot); |
| 1084 |
} |
| 1085 |
YYFPRINTF (stderr, "\n"); |
| 1086 |
} |
| 1087 |
|
| 1088 |
# define YY_STACK_PRINT(Bottom, Top) \ |
| 1089 |
do { \ |
| 1090 |
if (yydebug) \ |
| 1091 |
yy_stack_print ((Bottom), (Top)); \ |
| 1092 |
} while (0) |
| 1093 |
|
| 1094 |
|
| 1095 |
/*------------------------------------------------. |
| 1096 |
| Report that the YYRULE is going to be reduced. | |
| 1097 |
`------------------------------------------------*/ |
| 1098 |
|
| 1099 |
static void |
| 1100 |
yy_reduce_print (yytype_int16 *yyssp, YYSTYPE *yyvsp, int yyrule) |
| 1101 |
{ |
| 1102 |
unsigned long int yylno = yyrline[yyrule]; |
| 1103 |
int yynrhs = yyr2[yyrule]; |
| 1104 |
int yyi; |
| 1105 |
YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n", |
| 1106 |
yyrule - 1, yylno); |
| 1107 |
/* The symbols being reduced. */ |
| 1108 |
for (yyi = 0; yyi < yynrhs; yyi++) |
| 1109 |
{ |
| 1110 |
YYFPRINTF (stderr, " $%d = ", yyi + 1); |
| 1111 |
yy_symbol_print (stderr, |
| 1112 |
yystos[yyssp[yyi + 1 - yynrhs]], |
| 1113 |
&(yyvsp[(yyi + 1) - (yynrhs)]) |
| 1114 |
); |
| 1115 |
YYFPRINTF (stderr, "\n"); |
| 1116 |
} |
| 1117 |
} |
| 1118 |
|
| 1119 |
# define YY_REDUCE_PRINT(Rule) \ |
| 1120 |
do { \ |
| 1121 |
if (yydebug) \ |
| 1122 |
yy_reduce_print (yyssp, yyvsp, Rule); \ |
| 1123 |
} while (0) |
| 1124 |
|
| 1125 |
/* Nonzero means print parse trace. It is left uninitialized so that |
| 1126 |
multiple parsers can coexist. */ |
| 1127 |
int yydebug; |
| 1128 |
#else /* !YYDEBUG */ |
| 1129 |
# define YYDPRINTF(Args) |
| 1130 |
# define YY_SYMBOL_PRINT(Title, Type, Value, Location) |
| 1131 |
# define YY_STACK_PRINT(Bottom, Top) |
| 1132 |
# define YY_REDUCE_PRINT(Rule) |
| 1133 |
#endif /* !YYDEBUG */ |
| 1134 |
|
| 1135 |
|
| 1136 |
/* YYINITDEPTH -- initial size of the parser's stacks. */ |
| 1137 |
#ifndef YYINITDEPTH |
| 1138 |
# define YYINITDEPTH 200 |
| 1139 |
#endif |
| 1140 |
|
| 1141 |
/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only |
| 1142 |
if the built-in stack extension method is used). |
| 1143 |
|
| 1144 |
Do not make this value too large; the results are undefined if |
| 1145 |
YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH) |
| 1146 |
evaluated with infinite-precision integer arithmetic. */ |
| 1147 |
|
| 1148 |
#ifndef YYMAXDEPTH |
| 1149 |
# define YYMAXDEPTH 10000 |
| 1150 |
#endif |
| 1151 |
|
| 1152 |
|
| 1153 |
#if YYERROR_VERBOSE |
| 1154 |
|
| 1155 |
# ifndef yystrlen |
| 1156 |
# if defined __GLIBC__ && defined _STRING_H |
| 1157 |
# define yystrlen strlen |
| 1158 |
# else |
| 1159 |
/* Return the length of YYSTR. */ |
| 1160 |
static YYSIZE_T |
| 1161 |
yystrlen (const char *yystr) |
| 1162 |
{ |
| 1163 |
YYSIZE_T yylen; |
| 1164 |
for (yylen = 0; yystr[yylen]; yylen++) |
| 1165 |
continue; |
| 1166 |
return yylen; |
| 1167 |
} |
| 1168 |
# endif |
| 1169 |
# endif |
| 1170 |
|
| 1171 |
# ifndef yystpcpy |
| 1172 |
# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE |
| 1173 |
# define yystpcpy stpcpy |
| 1174 |
# else |
| 1175 |
/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in |
| 1176 |
YYDEST. */ |
| 1177 |
static char * |
| 1178 |
yystpcpy (char *yydest, const char *yysrc) |
| 1179 |
{ |
| 1180 |
char *yyd = yydest; |
| 1181 |
const char *yys = yysrc; |
| 1182 |
|
| 1183 |
while ((*yyd++ = *yys++) != '\0') |
| 1184 |
continue; |
| 1185 |
|
| 1186 |
return yyd - 1; |
| 1187 |
} |
| 1188 |
# endif |
| 1189 |
# endif |
| 1190 |
|
| 1191 |
# ifndef yytnamerr |
| 1192 |
/* Copy to YYRES the contents of YYSTR after stripping away unnecessary |
| 1193 |
quotes and backslashes, so that it's suitable for yyerror. The |
| 1194 |
heuristic is that double-quoting is unnecessary unless the string |
| 1195 |
contains an apostrophe, a comma, or backslash (other than |
| 1196 |
backslash-backslash). YYSTR is taken from yytname. If YYRES is |
| 1197 |
null, do not copy; instead, return the length of what the result |
| 1198 |
would have been. */ |
| 1199 |
static YYSIZE_T |
| 1200 |
yytnamerr (char *yyres, const char *yystr) |
| 1201 |
{ |
| 1202 |
if (*yystr == '"') |
| 1203 |
{ |
| 1204 |
YYSIZE_T yyn = 0; |
| 1205 |
char const *yyp = yystr; |
| 1206 |
|
| 1207 |
for (;;) |
| 1208 |
switch (*++yyp) |
| 1209 |
{ |
| 1210 |
case '\'': |
| 1211 |
case ',': |
| 1212 |
goto do_not_strip_quotes; |
| 1213 |
|
| 1214 |
case '\\': |
| 1215 |
if (*++yyp != '\\') |
| 1216 |
goto do_not_strip_quotes; |
| 1217 |
/* Fall through. */ |
| 1218 |
default: |
| 1219 |
if (yyres) |
| 1220 |
yyres[yyn] = *yyp; |
| 1221 |
yyn++; |
| 1222 |
break; |
| 1223 |
|
| 1224 |
case '"': |
| 1225 |
if (yyres) |
| 1226 |
yyres[yyn] = '\0'; |
| 1227 |
return yyn; |
| 1228 |
} |
| 1229 |
do_not_strip_quotes: ; |
| 1230 |
} |
| 1231 |
|
| 1232 |
if (! yyres) |
| 1233 |
return yystrlen (yystr); |
| 1234 |
|
| 1235 |
return yystpcpy (yyres, yystr) - yyres; |
| 1236 |
} |
| 1237 |
# endif |
| 1238 |
|
| 1239 |
/* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message |
| 1240 |
about the unexpected token YYTOKEN for the state stack whose top is |
| 1241 |
YYSSP. |
| 1242 |
|
| 1243 |
Return 0 if *YYMSG was successfully written. Return 1 if *YYMSG is |
| 1244 |
not large enough to hold the message. In that case, also set |
| 1245 |
*YYMSG_ALLOC to the required number of bytes. Return 2 if the |
| 1246 |
required number of bytes is too large to store. */ |
| 1247 |
static int |
| 1248 |
yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, |
| 1249 |
yytype_int16 *yyssp, int yytoken) |
| 1250 |
{ |
| 1251 |
YYSIZE_T yysize0 = yytnamerr (YY_NULLPTR, yytname[yytoken]); |
| 1252 |
YYSIZE_T yysize = yysize0; |
| 1253 |
enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; |
| 1254 |
/* Internationalized format string. */ |
| 1255 |
const char *yyformat = YY_NULLPTR; |
| 1256 |
/* Arguments of yyformat. */ |
| 1257 |
char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; |
| 1258 |
/* Number of reported tokens (one for the "unexpected", one per |
| 1259 |
"expected"). */ |
| 1260 |
int yycount = 0; |
| 1261 |
|
| 1262 |
/* There are many possibilities here to consider: |
| 1263 |
- If this state is a consistent state with a default action, then |
| 1264 |
the only way this function was invoked is if the default action |
| 1265 |
is an error action. In that case, don't check for expected |
| 1266 |
tokens because there are none. |
| 1267 |
- The only way there can be no lookahead present (in yychar) is if |
| 1268 |
this state is a consistent state with a default action. Thus, |
| 1269 |
detecting the absence of a lookahead is sufficient to determine |
| 1270 |
that there is no unexpected or expected token to report. In that |
| 1271 |
case, just report a simple "syntax error". |
| 1272 |
- Don't assume there isn't a lookahead just because this state is a |
| 1273 |
consistent state with a default action. There might have been a |
| 1274 |
previous inconsistent state, consistent state with a non-default |
| 1275 |
action, or user semantic action that manipulated yychar. |
| 1276 |
- Of course, the expected token list depends on states to have |
| 1277 |
correct lookahead information, and it depends on the parser not |
| 1278 |
to perform extra reductions after fetching a lookahead from the |
| 1279 |
scanner and before detecting a syntax error. Thus, state merging |
| 1280 |
(from LALR or IELR) and default reductions corrupt the expected |
| 1281 |
token list. However, the list is correct for canonical LR with |
| 1282 |
one exception: it will still contain any token that will not be |
| 1283 |
accepted due to an error action in a later state. |
| 1284 |
*/ |
| 1285 |
if (yytoken != YYEMPTY) |
| 1286 |
{ |
| 1287 |
int yyn = yypact[*yyssp]; |
| 1288 |
yyarg[yycount++] = yytname[yytoken]; |
| 1289 |
if (!yypact_value_is_default (yyn)) |
| 1290 |
{ |
| 1291 |
/* Start YYX at -YYN if negative to avoid negative indexes in |
| 1292 |
YYCHECK. In other words, skip the first -YYN actions for |
| 1293 |
this state because they are default actions. */ |
| 1294 |
int yyxbegin = yyn < 0 ? -yyn : 0; |
| 1295 |
/* Stay within bounds of both yycheck and yytname. */ |
| 1296 |
int yychecklim = YYLAST - yyn + 1; |
| 1297 |
int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; |
| 1298 |
int yyx; |
| 1299 |
|
| 1300 |
for (yyx = yyxbegin; yyx < yyxend; ++yyx) |
| 1301 |
if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR |
| 1302 |
&& !yytable_value_is_error (yytable[yyx + yyn])) |
| 1303 |
{ |
| 1304 |
if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) |
| 1305 |
{ |
| 1306 |
yycount = 1; |
| 1307 |
yysize = yysize0; |
| 1308 |
break; |
| 1309 |
} |
| 1310 |
yyarg[yycount++] = yytname[yyx]; |
| 1311 |
{ |
| 1312 |
YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULLPTR, yytname[yyx]); |
| 1313 |
if (! (yysize <= yysize1 |
| 1314 |
&& yysize1 <= YYSTACK_ALLOC_MAXIMUM)) |
| 1315 |
return 2; |
| 1316 |
yysize = yysize1; |
| 1317 |
} |
| 1318 |
} |
| 1319 |
} |
| 1320 |
} |
| 1321 |
|
| 1322 |
switch (yycount) |
| 1323 |
{ |
| 1324 |
# define YYCASE_(N, S) \ |
| 1325 |
case N: \ |
| 1326 |
yyformat = S; \ |
| 1327 |
break |
| 1328 |
YYCASE_(0, YY_("syntax error")); |
| 1329 |
YYCASE_(1, YY_("syntax error, unexpected %s")); |
| 1330 |
YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s")); |
| 1331 |
YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s")); |
| 1332 |
YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s")); |
| 1333 |
YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s")); |
| 1334 |
# undef YYCASE_ |
| 1335 |
} |
| 1336 |
|
| 1337 |
{ |
| 1338 |
YYSIZE_T yysize1 = yysize + yystrlen (yyformat); |
| 1339 |
if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) |
| 1340 |
return 2; |
| 1341 |
yysize = yysize1; |
| 1342 |
} |
| 1343 |
|
| 1344 |
if (*yymsg_alloc < yysize) |
| 1345 |
{ |
| 1346 |
*yymsg_alloc = 2 * yysize; |
| 1347 |
if (! (yysize <= *yymsg_alloc |
| 1348 |
&& *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM)) |
| 1349 |
*yymsg_alloc = YYSTACK_ALLOC_MAXIMUM; |
| 1350 |
return 1; |
| 1351 |
} |
| 1352 |
|
| 1353 |
/* Avoid sprintf, as that infringes on the user's name space. |
| 1354 |
Don't have undefined behavior even if the translation |
| 1355 |
produced a string with the wrong number of "%s"s. */ |
| 1356 |
{ |
| 1357 |
char *yyp = *yymsg; |
| 1358 |
int yyi = 0; |
| 1359 |
while ((*yyp = *yyformat) != '\0') |
| 1360 |
if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount) |
| 1361 |
{ |
| 1362 |
yyp += yytnamerr (yyp, yyarg[yyi++]); |
| 1363 |
yyformat += 2; |
| 1364 |
} |
| 1365 |
else |
| 1366 |
{ |
| 1367 |
yyp++; |
| 1368 |
yyformat++; |
| 1369 |
} |
| 1370 |
} |
| 1371 |
return 0; |
| 1372 |
} |
| 1373 |
#endif /* YYERROR_VERBOSE */ |
| 1374 |
|
| 1375 |
/*-----------------------------------------------. |
| 1376 |
| Release the memory associated to this symbol. | |
| 1377 |
`-----------------------------------------------*/ |
| 1378 |
|
| 1379 |
static void |
| 1380 |
yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep) |
| 1381 |
{ |
| 1382 |
YYUSE (yyvaluep); |
| 1383 |
if (!yymsg) |
| 1384 |
yymsg = "Deleting"; |
| 1385 |
YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp); |
| 1386 |
|
| 1387 |
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
| 1388 |
YYUSE (yytype); |
| 1389 |
YY_IGNORE_MAYBE_UNINITIALIZED_END |
| 1390 |
} |
| 1391 |
|
| 1392 |
|
| 1393 |
|
| 1394 |
|
| 1395 |
/* The lookahead symbol. */ |
| 1396 |
static int yychar; |
| 1397 |
|
| 1398 |
/* The semantic value of the lookahead symbol. */ |
| 1399 |
YYSTYPE yylval; |
| 1400 |
/* Number of syntax errors so far. */ |
| 1401 |
static int yynerrs; |
| 1402 |
|
| 1403 |
|
| 1404 |
/*----------. |
| 1405 |
| yyparse. | |
| 1406 |
`----------*/ |
| 1407 |
|
| 1408 |
int |
| 1409 |
yyparse (void) |
| 1410 |
{ |
| 1411 |
int yystate; |
| 1412 |
/* Number of tokens to shift before error messages enabled. */ |
| 1413 |
int yyerrstatus; |
| 1414 |
|
| 1415 |
/* The stacks and their tools: |
| 1416 |
'yyss': related to states. |
| 1417 |
'yyvs': related to semantic values. |
| 1418 |
|
| 1419 |
Refer to the stacks through separate pointers, to allow yyoverflow |
| 1420 |
to reallocate them elsewhere. */ |
| 1421 |
|
| 1422 |
/* The state stack. */ |
| 1423 |
yytype_int16 yyssa[YYINITDEPTH]; |
| 1424 |
yytype_int16 *yyss; |
| 1425 |
yytype_int16 *yyssp; |
| 1426 |
|
| 1427 |
/* The semantic value stack. */ |
| 1428 |
YYSTYPE yyvsa[YYINITDEPTH]; |
| 1429 |
YYSTYPE *yyvs; |
| 1430 |
YYSTYPE *yyvsp; |
| 1431 |
|
| 1432 |
YYSIZE_T yystacksize; |
| 1433 |
|
| 1434 |
int yyn; |
| 1435 |
int yyresult; |
| 1436 |
/* Lookahead token as an internal (translated) token number. */ |
| 1437 |
int yytoken = 0; |
| 1438 |
/* The variables used to return semantic value and location from the |
| 1439 |
action routines. */ |
| 1440 |
YYSTYPE yyval; |
| 1441 |
|
| 1442 |
#if YYERROR_VERBOSE |
| 1443 |
/* Buffer for error messages, and its allocated size. */ |
| 1444 |
char yymsgbuf[128]; |
| 1445 |
char *yymsg = yymsgbuf; |
| 1446 |
YYSIZE_T yymsg_alloc = sizeof yymsgbuf; |
| 1447 |
#endif |
| 1448 |
|
| 1449 |
#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) |
| 1450 |
|
| 1451 |
/* The number of symbols on the RHS of the reduced rule. |
| 1452 |
Keep to zero when no symbol should be popped. */ |
| 1453 |
int yylen = 0; |
| 1454 |
|
| 1455 |
yyssp = yyss = yyssa; |
| 1456 |
yyvsp = yyvs = yyvsa; |
| 1457 |
yystacksize = YYINITDEPTH; |
| 1458 |
|
| 1459 |
YYDPRINTF ((stderr, "Starting parse\n")); |
| 1460 |
|
| 1461 |
yystate = 0; |
| 1462 |
yyerrstatus = 0; |
| 1463 |
yynerrs = 0; |
| 1464 |
yychar = YYEMPTY; /* Cause a token to be read. */ |
| 1465 |
goto yysetstate; |
| 1466 |
|
| 1467 |
/*------------------------------------------------------------. |
| 1468 |
| yynewstate -- Push a new state, which is found in yystate. | |
| 1469 |
`------------------------------------------------------------*/ |
| 1470 |
yynewstate: |
| 1471 |
/* In all cases, when you get here, the value and location stacks |
| 1472 |
have just been pushed. So pushing a state here evens the stacks. */ |
| 1473 |
yyssp++; |
| 1474 |
|
| 1475 |
yysetstate: |
| 1476 |
*yyssp = yystate; |
| 1477 |
|
| 1478 |
if (yyss + yystacksize - 1 <= yyssp) |
| 1479 |
{ |
| 1480 |
/* Get the current used size of the three stacks, in elements. */ |
| 1481 |
YYSIZE_T yysize = yyssp - yyss + 1; |
| 1482 |
|
| 1483 |
#ifdef yyoverflow |
| 1484 |
{ |
| 1485 |
/* Give user a chance to reallocate the stack. Use copies of |
| 1486 |
these so that the &'s don't force the real ones into |
| 1487 |
memory. */ |
| 1488 |
YYSTYPE *yyvs1 = yyvs; |
| 1489 |
yytype_int16 *yyss1 = yyss; |
| 1490 |
|
| 1491 |
/* Each stack pointer address is followed by the size of the |
| 1492 |
data in use in that stack, in bytes. This used to be a |
| 1493 |
conditional around just the two extra args, but that might |
| 1494 |
be undefined if yyoverflow is a macro. */ |
| 1495 |
yyoverflow (YY_("memory exhausted"), |
| 1496 |
&yyss1, yysize * sizeof (*yyssp), |
| 1497 |
&yyvs1, yysize * sizeof (*yyvsp), |
| 1498 |
&yystacksize); |
| 1499 |
|
| 1500 |
yyss = yyss1; |
| 1501 |
yyvs = yyvs1; |
| 1502 |
} |
| 1503 |
#else /* no yyoverflow */ |
| 1504 |
# ifndef YYSTACK_RELOCATE |
| 1505 |
goto yyexhaustedlab; |
| 1506 |
# else |
| 1507 |
/* Extend the stack our own way. */ |
| 1508 |
if (YYMAXDEPTH <= yystacksize) |
| 1509 |
goto yyexhaustedlab; |
| 1510 |
yystacksize *= 2; |
| 1511 |
if (YYMAXDEPTH < yystacksize) |
| 1512 |
yystacksize = YYMAXDEPTH; |
| 1513 |
|
| 1514 |
{ |
| 1515 |
yytype_int16 *yyss1 = yyss; |
| 1516 |
union yyalloc *yyptr = |
| 1517 |
(union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); |
| 1518 |
if (! yyptr) |
| 1519 |
goto yyexhaustedlab; |
| 1520 |
YYSTACK_RELOCATE (yyss_alloc, yyss); |
| 1521 |
YYSTACK_RELOCATE (yyvs_alloc, yyvs); |
| 1522 |
# undef YYSTACK_RELOCATE |
| 1523 |
if (yyss1 != yyssa) |
| 1524 |
YYSTACK_FREE (yyss1); |
| 1525 |
} |
| 1526 |
# endif |
| 1527 |
#endif /* no yyoverflow */ |
| 1528 |
|
| 1529 |
yyssp = yyss + yysize - 1; |
| 1530 |
yyvsp = yyvs + yysize - 1; |
| 1531 |
|
| 1532 |
YYDPRINTF ((stderr, "Stack size increased to %lu\n", |
| 1533 |
(unsigned long int) yystacksize)); |
| 1534 |
|
| 1535 |
if (yyss + yystacksize - 1 <= yyssp) |
| 1536 |
YYABORT; |
| 1537 |
} |
| 1538 |
|
| 1539 |
YYDPRINTF ((stderr, "Entering state %d\n", yystate)); |
| 1540 |
|
| 1541 |
if (yystate == YYFINAL) |
| 1542 |
YYACCEPT; |
| 1543 |
|
| 1544 |
goto yybackup; |
| 1545 |
|
| 1546 |
/*-----------. |
| 1547 |
| yybackup. | |
| 1548 |
`-----------*/ |
| 1549 |
yybackup: |
| 1550 |
|
| 1551 |
/* Do appropriate processing given the current state. Read a |
| 1552 |
lookahead token if we need one and don't already have one. */ |
| 1553 |
|
| 1554 |
/* First try to decide what to do without reference to lookahead token. */ |
| 1555 |
yyn = yypact[yystate]; |
| 1556 |
if (yypact_value_is_default (yyn)) |
| 1557 |
goto yydefault; |
| 1558 |
|
| 1559 |
/* Not known => get a lookahead token if don't already have one. */ |
| 1560 |
|
| 1561 |
/* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */ |
| 1562 |
if (yychar == YYEMPTY) |
| 1563 |
{ |
| 1564 |
YYDPRINTF ((stderr, "Reading a token: ")); |
| 1565 |
yychar = yylex (); |
| 1566 |
} |
| 1567 |
|
| 1568 |
if (yychar <= YYEOF) |
| 1569 |
{ |
| 1570 |
yychar = yytoken = YYEOF; |
| 1571 |
YYDPRINTF ((stderr, "Now at end of input.\n")); |
| 1572 |
} |
| 1573 |
else |
| 1574 |
{ |
| 1575 |
yytoken = YYTRANSLATE (yychar); |
| 1576 |
YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc); |
| 1577 |
} |
| 1578 |
|
| 1579 |
/* If the proper action on seeing token YYTOKEN is to reduce or to |
| 1580 |
detect an error, take that action. */ |
| 1581 |
yyn += yytoken; |
| 1582 |
if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) |
| 1583 |
goto yydefault; |
| 1584 |
yyn = yytable[yyn]; |
| 1585 |
if (yyn <= 0) |
| 1586 |
{ |
| 1587 |
if (yytable_value_is_error (yyn)) |
| 1588 |
goto yyerrlab; |
| 1589 |
yyn = -yyn; |
| 1590 |
goto yyreduce; |
| 1591 |
} |
| 1592 |
|
| 1593 |
/* Count tokens shifted since error; after three, turn off error |
| 1594 |
status. */ |
| 1595 |
if (yyerrstatus) |
| 1596 |
yyerrstatus--; |
| 1597 |
|
| 1598 |
/* Shift the lookahead token. */ |
| 1599 |
YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); |
| 1600 |
|
| 1601 |
/* Discard the shifted token. */ |
| 1602 |
yychar = YYEMPTY; |
| 1603 |
|
| 1604 |
yystate = yyn; |
| 1605 |
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
| 1606 |
*++yyvsp = yylval; |
| 1607 |
YY_IGNORE_MAYBE_UNINITIALIZED_END |
| 1608 |
|
| 1609 |
goto yynewstate; |
| 1610 |
|
| 1611 |
|
| 1612 |
/*-----------------------------------------------------------. |
| 1613 |
| yydefault -- do the default action for the current state. | |
| 1614 |
`-----------------------------------------------------------*/ |
| 1615 |
yydefault: |
| 1616 |
yyn = yydefact[yystate]; |
| 1617 |
if (yyn == 0) |
| 1618 |
goto yyerrlab; |
| 1619 |
goto yyreduce; |
| 1620 |
|
| 1621 |
|
| 1622 |
/*-----------------------------. |
| 1623 |
| yyreduce -- Do a reduction. | |
| 1624 |
`-----------------------------*/ |
| 1625 |
yyreduce: |
| 1626 |
/* yyn is the number of a rule to reduce with. */ |
| 1627 |
yylen = yyr2[yyn]; |
| 1628 |
|
| 1629 |
/* If YYLEN is nonzero, implement the default value of the action: |
| 1630 |
'$$ = $1'. |
| 1631 |
|
| 1632 |
Otherwise, the following line sets YYVAL to garbage. |
| 1633 |
This behavior is undocumented and Bison |
| 1634 |
users should not rely upon it. Assigning to YYVAL |
| 1635 |
unconditionally makes the parser a bit smaller, and it avoids a |
| 1636 |
GCC warning that YYVAL may be used uninitialized. */ |
| 1637 |
yyval = yyvsp[1-yylen]; |
| 1638 |
|
| 1639 |
|
| 1640 |
YY_REDUCE_PRINT (yyn); |
| 1641 |
switch (yyn) |
| 1642 |
{ |
| 1643 |
case 22: |
| 1644 |
#line 176 "pars0grm.y" /* yacc.c:1646 */ |
| 1645 |
{ |
| 1646 |
(yyval) = que_node_list_add_last(nullptr, (yyvsp[0])); |
| 1647 |
} |
| 1648 |
#line 1646 "pars0grm.cc" /* yacc.c:1646 */ |
| 1649 |
break; |
| 1650 |
|
| 1651 |
case 23: |
| 1652 |
#line 178 "pars0grm.y" /* yacc.c:1646 */ |
| 1653 |
{ (yyval) = que_node_list_add_last((yyvsp[-1]), (yyvsp[0])); } |
| 1654 |
#line 1652 "pars0grm.cc" /* yacc.c:1646 */ |
| 1655 |
break; |
| 1656 |
|
| 1657 |
case 24: |
| 1658 |
#line 182 "pars0grm.y" /* yacc.c:1646 */ |
| 1659 |
{ (yyval) = (yyvsp[0]);} |
| 1660 |
#line 1658 "pars0grm.cc" /* yacc.c:1646 */ |
| 1661 |
break; |
| 1662 |
|
| 1663 |
case 25: |
| 1664 |
#line 184 "pars0grm.y" /* yacc.c:1646 */ |
| 1665 |
{ (yyval) = pars_func((yyvsp[-3]), (yyvsp[-1])); } |
| 1666 |
#line 1664 "pars0grm.cc" /* yacc.c:1646 */ |
| 1667 |
break; |
| 1668 |
|
| 1669 |
case 26: |
| 1670 |
#line 185 "pars0grm.y" /* yacc.c:1646 */ |
| 1671 |
{ (yyval) = (yyvsp[0]);} |
| 1672 |
#line 1670 "pars0grm.cc" /* yacc.c:1646 */ |
| 1673 |
break; |
| 1674 |
|
| 1675 |
case 27: |
| 1676 |
#line 186 "pars0grm.y" /* yacc.c:1646 */ |
| 1677 |
{ (yyval) = (yyvsp[0]);} |
| 1678 |
#line 1676 "pars0grm.cc" /* yacc.c:1646 */ |
| 1679 |
break; |
| 1680 |
|
| 1681 |
case 28: |
| 1682 |
#line 187 "pars0grm.y" /* yacc.c:1646 */ |
| 1683 |
{ (yyval) = (yyvsp[0]);} |
| 1684 |
#line 1682 "pars0grm.cc" /* yacc.c:1646 */ |
| 1685 |
break; |
| 1686 |
|
| 1687 |
case 29: |
| 1688 |
#line 188 "pars0grm.y" /* yacc.c:1646 */ |
| 1689 |
{ (yyval) = (yyvsp[0]);} |
| 1690 |
#line 1688 "pars0grm.cc" /* yacc.c:1646 */ |
| 1691 |
break; |
| 1692 |
|
| 1693 |
case 30: |
| 1694 |
#line 189 "pars0grm.y" /* yacc.c:1646 */ |
| 1695 |
{ (yyval) = (yyvsp[0]);} |
| 1696 |
#line 1694 "pars0grm.cc" /* yacc.c:1646 */ |
| 1697 |
break; |
| 1698 |
|
| 1699 |
case 31: |
| 1700 |
#line 190 "pars0grm.y" /* yacc.c:1646 */ |
| 1701 |
{ (yyval) = (yyvsp[0]);} |
| 1702 |
#line 1700 "pars0grm.cc" /* yacc.c:1646 */ |
| 1703 |
break; |
| 1704 |
|
| 1705 |
case 32: |
| 1706 |
#line 191 "pars0grm.y" /* yacc.c:1646 */ |
| 1707 |
{ (yyval) = (yyvsp[0]);} |
| 1708 |
#line 1706 "pars0grm.cc" /* yacc.c:1646 */ |
| 1709 |
break; |
| 1710 |
|
| 1711 |
case 33: |
| 1712 |
#line 192 "pars0grm.y" /* yacc.c:1646 */ |
| 1713 |
{ (yyval) = pars_op('+', (yyvsp[-2]), (yyvsp[0])); } |
| 1714 |
#line 1712 "pars0grm.cc" /* yacc.c:1646 */ |
| 1715 |
break; |
| 1716 |
|
| 1717 |
case 34: |
| 1718 |
#line 193 "pars0grm.y" /* yacc.c:1646 */ |
| 1719 |
{ (yyval) = pars_op('-', (yyvsp[-2]), (yyvsp[0])); } |
| 1720 |
#line 1718 "pars0grm.cc" /* yacc.c:1646 */ |
| 1721 |
break; |
| 1722 |
|
| 1723 |
case 35: |
| 1724 |
#line 194 "pars0grm.y" /* yacc.c:1646 */ |
| 1725 |
{ (yyval) = pars_op('*', (yyvsp[-2]), (yyvsp[0])); } |
| 1726 |
#line 1724 "pars0grm.cc" /* yacc.c:1646 */ |
| 1727 |
break; |
| 1728 |
|
| 1729 |
case 36: |
| 1730 |
#line 195 "pars0grm.y" /* yacc.c:1646 */ |
| 1731 |
{ (yyval) = pars_op('/', (yyvsp[-2]), (yyvsp[0])); } |
| 1732 |
#line 1730 "pars0grm.cc" /* yacc.c:1646 */ |
| 1733 |
break; |
| 1734 |
|
| 1735 |
case 37: |
| 1736 |
#line 196 "pars0grm.y" /* yacc.c:1646 */ |
| 1737 |
{ |
| 1738 |
(yyval) = pars_op('-', (yyvsp[0]), nullptr); |
| 1739 |
} |
| 1740 |
#line 1736 "pars0grm.cc" /* yacc.c:1646 */ |
| 1741 |
break; |
| 1742 |
|
| 1743 |
case 38: |
| 1744 |
#line 197 "pars0grm.y" /* yacc.c:1646 */ |
| 1745 |
{ (yyval) = (yyvsp[-1]); } |
| 1746 |
#line 1742 "pars0grm.cc" /* yacc.c:1646 */ |
| 1747 |
break; |
| 1748 |
|
| 1749 |
case 39: |
| 1750 |
#line 198 "pars0grm.y" /* yacc.c:1646 */ |
| 1751 |
{ (yyval) = pars_op('=', (yyvsp[-2]), (yyvsp[0])); } |
| 1752 |
#line 1748 "pars0grm.cc" /* yacc.c:1646 */ |
| 1753 |
break; |
| 1754 |
|
| 1755 |
case 40: |
| 1756 |
#line 200 "pars0grm.y" /* yacc.c:1646 */ |
| 1757 |
{ (yyval) = pars_op(PARS_LIKE_TOKEN, (yyvsp[-2]), (yyvsp[0])); } |
| 1758 |
#line 1754 "pars0grm.cc" /* yacc.c:1646 */ |
| 1759 |
break; |
| 1760 |
|
| 1761 |
case 41: |
| 1762 |
#line 201 "pars0grm.y" /* yacc.c:1646 */ |
| 1763 |
{ (yyval) = pars_op('<', (yyvsp[-2]), (yyvsp[0])); } |
| 1764 |
#line 1760 "pars0grm.cc" /* yacc.c:1646 */ |
| 1765 |
break; |
| 1766 |
|
| 1767 |
case 42: |
| 1768 |
#line 202 "pars0grm.y" /* yacc.c:1646 */ |
| 1769 |
{ (yyval) = pars_op('>', (yyvsp[-2]), (yyvsp[0])); } |
| 1770 |
#line 1766 "pars0grm.cc" /* yacc.c:1646 */ |
| 1771 |
break; |
| 1772 |
|
| 1773 |
case 43: |
| 1774 |
#line 203 "pars0grm.y" /* yacc.c:1646 */ |
| 1775 |
{ (yyval) = pars_op(PARS_GE_TOKEN, (yyvsp[-2]), (yyvsp[0])); } |
| 1776 |
#line 1772 "pars0grm.cc" /* yacc.c:1646 */ |
| 1777 |
break; |
| 1778 |
|
| 1779 |
case 44: |
| 1780 |
#line 204 "pars0grm.y" /* yacc.c:1646 */ |
| 1781 |
{ (yyval) = pars_op(PARS_LE_TOKEN, (yyvsp[-2]), (yyvsp[0])); } |
| 1782 |
#line 1778 "pars0grm.cc" /* yacc.c:1646 */ |
| 1783 |
break; |
| 1784 |
|
| 1785 |
case 45: |
| 1786 |
#line 205 "pars0grm.y" /* yacc.c:1646 */ |
| 1787 |
{ (yyval) = pars_op(PARS_NE_TOKEN, (yyvsp[-2]), (yyvsp[0])); } |
| 1788 |
#line 1784 "pars0grm.cc" /* yacc.c:1646 */ |
| 1789 |
break; |
| 1790 |
|
| 1791 |
case 46: |
| 1792 |
#line 206 "pars0grm.y" /* yacc.c:1646 */ |
| 1793 |
{ (yyval) = pars_op(PARS_AND_TOKEN, (yyvsp[-2]), (yyvsp[0])); } |
| 1794 |
#line 1790 "pars0grm.cc" /* yacc.c:1646 */ |
| 1795 |
break; |
| 1796 |
|
| 1797 |
case 47: |
| 1798 |
#line 207 "pars0grm.y" /* yacc.c:1646 */ |
| 1799 |
{ (yyval) = pars_op(PARS_OR_TOKEN, (yyvsp[-2]), (yyvsp[0])); } |
| 1800 |
#line 1796 "pars0grm.cc" /* yacc.c:1646 */ |
| 1801 |
break; |
| 1802 |
|
| 1803 |
case 48: |
| 1804 |
#line 208 "pars0grm.y" /* yacc.c:1646 */ |
| 1805 |
{ |
| 1806 |
(yyval) = pars_op(PARS_NOT_TOKEN, (yyvsp[0]), nullptr); |
| 1807 |
} |
| 1808 |
#line 1802 "pars0grm.cc" /* yacc.c:1646 */ |
| 1809 |
break; |
| 1810 |
|
| 1811 |
case 49: |
| 1812 |
#line 210 "pars0grm.y" /* yacc.c:1646 */ |
| 1813 |
{ |
| 1814 |
(yyval) = pars_op(PARS_NOTFOUND_TOKEN, (yyvsp[-2]), nullptr); |
| 1815 |
} |
| 1816 |
#line 1808 "pars0grm.cc" /* yacc.c:1646 */ |
| 1817 |
break; |
| 1818 |
|
| 1819 |
case 50: |
| 1820 |
#line 212 "pars0grm.y" /* yacc.c:1646 */ |
| 1821 |
{ |
| 1822 |
(yyval) = pars_op(PARS_NOTFOUND_TOKEN, (yyvsp[-2]), nullptr); |
| 1823 |
} |
| 1824 |
#line 1814 "pars0grm.cc" /* yacc.c:1646 */ |
| 1825 |
break; |
| 1826 |
|
| 1827 |
case 51: |
| 1828 |
#line 216 "pars0grm.y" /* yacc.c:1646 */ |
| 1829 |
{ (yyval) = &pars_substr_token; } |
| 1830 |
#line 1820 "pars0grm.cc" /* yacc.c:1646 */ |
| 1831 |
break; |
| 1832 |
|
| 1833 |
case 52: |
| 1834 |
#line 217 "pars0grm.y" /* yacc.c:1646 */ |
| 1835 |
{ (yyval) = &pars_concat_token; } |
| 1836 |
#line 1826 "pars0grm.cc" /* yacc.c:1646 */ |
| 1837 |
break; |
| 1838 |
|
| 1839 |
case 53: |
| 1840 |
#line 218 "pars0grm.y" /* yacc.c:1646 */ |
| 1841 |
{ (yyval) = &pars_instr_token; } |
| 1842 |
#line 1832 "pars0grm.cc" /* yacc.c:1646 */ |
| 1843 |
break; |
| 1844 |
|
| 1845 |
case 54: |
| 1846 |
#line 220 "pars0grm.y" /* yacc.c:1646 */ |
| 1847 |
{ (yyval) = &pars_to_binary_token; } |
| 1848 |
#line 1838 "pars0grm.cc" /* yacc.c:1646 */ |
| 1849 |
break; |
| 1850 |
|
| 1851 |
case 55: |
| 1852 |
#line 221 "pars0grm.y" /* yacc.c:1646 */ |
| 1853 |
{ (yyval) = &pars_length_token; } |
| 1854 |
#line 1844 "pars0grm.cc" /* yacc.c:1646 */ |
| 1855 |
break; |
| 1856 |
|
| 1857 |
case 56: |
| 1858 |
#line 225 "pars0grm.y" /* yacc.c:1646 */ |
| 1859 |
{ (yyval) = (yyvsp[-2]); } |
| 1860 |
#line 1850 "pars0grm.cc" /* yacc.c:1646 */ |
| 1861 |
break; |
| 1862 |
|
| 1863 |
case 57: |
| 1864 |
#line 229 "pars0grm.y" /* yacc.c:1646 */ |
| 1865 |
{ |
| 1866 |
(yyval) = que_node_list_add_last(nullptr, (yyvsp[0])); |
| 1867 |
} |
| 1868 |
#line 1856 "pars0grm.cc" /* yacc.c:1646 */ |
| 1869 |
break; |
| 1870 |
|
| 1871 |
case 58: |
| 1872 |
#line 231 "pars0grm.y" /* yacc.c:1646 */ |
| 1873 |
{ (yyval) = que_node_list_add_last((yyvsp[-2]), (yyvsp[0])); } |
| 1874 |
#line 1862 "pars0grm.cc" /* yacc.c:1646 */ |
| 1875 |
break; |
| 1876 |
|
| 1877 |
case 59: |
| 1878 |
#line 235 "pars0grm.y" /* yacc.c:1646 */ |
| 1879 |
{ |
| 1880 |
(yyval) = nullptr; |
| 1881 |
} |
| 1882 |
#line 1868 "pars0grm.cc" /* yacc.c:1646 */ |
| 1883 |
break; |
| 1884 |
|
| 1885 |
case 60: |
| 1886 |
#line 236 "pars0grm.y" /* yacc.c:1646 */ |
| 1887 |
{ |
| 1888 |
(yyval) = que_node_list_add_last(nullptr, (yyvsp[0])); |
| 1889 |
} |
| 1890 |
#line 1874 "pars0grm.cc" /* yacc.c:1646 */ |
| 1891 |
break; |
| 1892 |
|
| 1893 |
case 61: |
| 1894 |
#line 238 "pars0grm.y" /* yacc.c:1646 */ |
| 1895 |
{ (yyval) = que_node_list_add_last((yyvsp[-2]), (yyvsp[0])); } |
| 1896 |
#line 1880 "pars0grm.cc" /* yacc.c:1646 */ |
| 1897 |
break; |
| 1898 |
|
| 1899 |
case 62: |
| 1900 |
#line 242 "pars0grm.y" /* yacc.c:1646 */ |
| 1901 |
{ |
| 1902 |
(yyval) = nullptr; |
| 1903 |
} |
| 1904 |
#line 1886 "pars0grm.cc" /* yacc.c:1646 */ |
| 1905 |
break; |
| 1906 |
|
| 1907 |
case 63: |
| 1908 |
#line 243 "pars0grm.y" /* yacc.c:1646 */ |
| 1909 |
{ |
| 1910 |
(yyval) = que_node_list_add_last(nullptr, (yyvsp[0])); |
| 1911 |
} |
| 1912 |
#line 1892 "pars0grm.cc" /* yacc.c:1646 */ |
| 1913 |
break; |
| 1914 |
|
| 1915 |
case 64: |
| 1916 |
#line 244 "pars0grm.y" /* yacc.c:1646 */ |
| 1917 |
{ (yyval) = que_node_list_add_last((yyvsp[-2]), (yyvsp[0])); } |
| 1918 |
#line 1898 "pars0grm.cc" /* yacc.c:1646 */ |
| 1919 |
break; |
| 1920 |
|
| 1921 |
case 65: |
| 1922 |
#line 248 "pars0grm.y" /* yacc.c:1646 */ |
| 1923 |
{ (yyval) = (yyvsp[0]); } |
| 1924 |
#line 1904 "pars0grm.cc" /* yacc.c:1646 */ |
| 1925 |
break; |
| 1926 |
|
| 1927 |
case 66: |
| 1928 |
#line 250 "pars0grm.y" /* yacc.c:1646 */ |
| 1929 |
{ |
| 1930 |
(yyval) = |
| 1931 |
pars_func(&pars_count_token, |
| 1932 |
que_node_list_add_last( |
| 1933 |
nullptr, sym_tab_add_int_lit(pars_sym_tab_global, 1))); |
| 1934 |
} |
| 1935 |
#line 1913 "pars0grm.cc" /* yacc.c:1646 */ |
| 1936 |
break; |
| 1937 |
|
| 1938 |
case 67: |
| 1939 |
#line 255 "pars0grm.y" /* yacc.c:1646 */ |
| 1940 |
{ |
| 1941 |
(yyval) = pars_func( |
| 1942 |
&pars_count_token, |
| 1943 |
que_node_list_add_last( |
| 1944 |
nullptr, pars_func(&pars_distinct_token, |
| 1945 |
que_node_list_add_last(nullptr, (yyvsp[-1]))))); |
| 1946 |
} |
| 1947 |
#line 1923 "pars0grm.cc" /* yacc.c:1646 */ |
| 1948 |
break; |
| 1949 |
|
| 1950 |
case 68: |
| 1951 |
#line 261 "pars0grm.y" /* yacc.c:1646 */ |
| 1952 |
{ |
| 1953 |
(yyval) = pars_func(&pars_sum_token, |
| 1954 |
que_node_list_add_last(nullptr, (yyvsp[-1]))); |
| 1955 |
} |
| 1956 |
#line 1931 "pars0grm.cc" /* yacc.c:1646 */ |
| 1957 |
break; |
| 1958 |
|
| 1959 |
case 69: |
| 1960 |
#line 267 "pars0grm.y" /* yacc.c:1646 */ |
| 1961 |
{ |
| 1962 |
(yyval) = nullptr; |
| 1963 |
} |
| 1964 |
#line 1937 "pars0grm.cc" /* yacc.c:1646 */ |
| 1965 |
break; |
| 1966 |
|
| 1967 |
case 70: |
| 1968 |
#line 268 "pars0grm.y" /* yacc.c:1646 */ |
| 1969 |
{ |
| 1970 |
(yyval) = que_node_list_add_last(nullptr, (yyvsp[0])); |
| 1971 |
} |
| 1972 |
#line 1943 "pars0grm.cc" /* yacc.c:1646 */ |
| 1973 |
break; |
| 1974 |
|
| 1975 |
case 71: |
| 1976 |
#line 270 "pars0grm.y" /* yacc.c:1646 */ |
| 1977 |
{ (yyval) = que_node_list_add_last((yyvsp[-2]), (yyvsp[0])); } |
| 1978 |
#line 1949 "pars0grm.cc" /* yacc.c:1646 */ |
| 1979 |
break; |
| 1980 |
|
| 1981 |
case 72: |
| 1982 |
#line 274 "pars0grm.y" /* yacc.c:1646 */ |
| 1983 |
{ |
| 1984 |
(yyval) = pars_select_list(&pars_star_denoter, nullptr); |
| 1985 |
} |
| 1986 |
#line 1956 "pars0grm.cc" /* yacc.c:1646 */ |
| 1987 |
break; |
| 1988 |
|
| 1989 |
case 73: |
| 1990 |
#line 277 "pars0grm.y" /* yacc.c:1646 */ |
| 1991 |
{ (yyval) = pars_select_list( |
| 1992 |
(yyvsp[-2]), static_cast<sym_node_t*>((yyvsp[0]))); } |
| 1993 |
#line 1963 "pars0grm.cc" /* yacc.c:1646 */ |
| 1994 |
break; |
| 1995 |
|
| 1996 |
case 74: |
| 1997 |
#line 279 "pars0grm.y" /* yacc.c:1646 */ |
| 1998 |
{ |
| 1999 |
(yyval) = pars_select_list((yyvsp[0]), nullptr); |
| 2000 |
} |
| 2001 |
#line 1969 "pars0grm.cc" /* yacc.c:1646 */ |
| 2002 |
break; |
| 2003 |
|
| 2004 |
case 75: |
| 2005 |
#line 283 "pars0grm.y" /* yacc.c:1646 */ |
| 2006 |
{ |
| 2007 |
(yyval) = nullptr; |
| 2008 |
} |
| 2009 |
#line 1975 "pars0grm.cc" /* yacc.c:1646 */ |
| 2010 |
break; |
| 2011 |
|
| 2012 |
case 76: |
| 2013 |
#line 284 "pars0grm.y" /* yacc.c:1646 */ |
| 2014 |
{ (yyval) = (yyvsp[0]); } |
| 2015 |
#line 1981 "pars0grm.cc" /* yacc.c:1646 */ |
| 2016 |
break; |
| 2017 |
|
| 2018 |
case 77: |
| 2019 |
#line 288 "pars0grm.y" /* yacc.c:1646 */ |
| 2020 |
{ |
| 2021 |
(yyval) = nullptr; |
| 2022 |
} |
| 2023 |
#line 1987 "pars0grm.cc" /* yacc.c:1646 */ |
| 2024 |
break; |
| 2025 |
|
| 2026 |
case 78: |
| 2027 |
#line 290 "pars0grm.y" /* yacc.c:1646 */ |
| 2028 |
{ (yyval) = &pars_update_token; } |
| 2029 |
#line 1993 "pars0grm.cc" /* yacc.c:1646 */ |
| 2030 |
break; |
| 2031 |
|
| 2032 |
case 79: |
| 2033 |
#line 294 "pars0grm.y" /* yacc.c:1646 */ |
| 2034 |
{ |
| 2035 |
(yyval) = nullptr; |
| 2036 |
} |
| 2037 |
#line 1999 "pars0grm.cc" /* yacc.c:1646 */ |
| 2038 |
break; |
| 2039 |
|
| 2040 |
case 80: |
| 2041 |
#line 296 "pars0grm.y" /* yacc.c:1646 */ |
| 2042 |
{ (yyval) = &pars_share_token; } |
| 2043 |
#line 2005 "pars0grm.cc" /* yacc.c:1646 */ |
| 2044 |
break; |
| 2045 |
|
| 2046 |
case 81: |
| 2047 |
#line 300 "pars0grm.y" /* yacc.c:1646 */ |
| 2048 |
{ (yyval) = &pars_asc_token; } |
| 2049 |
#line 2011 "pars0grm.cc" /* yacc.c:1646 */ |
| 2050 |
break; |
| 2051 |
|
| 2052 |
case 82: |
| 2053 |
#line 301 "pars0grm.y" /* yacc.c:1646 */ |
| 2054 |
{ (yyval) = &pars_asc_token; } |
| 2055 |
#line 2017 "pars0grm.cc" /* yacc.c:1646 */ |
| 2056 |
break; |
| 2057 |
|
| 2058 |
case 83: |
| 2059 |
#line 302 "pars0grm.y" /* yacc.c:1646 */ |
| 2060 |
{ (yyval) = &pars_desc_token; } |
| 2061 |
#line 2023 "pars0grm.cc" /* yacc.c:1646 */ |
| 2062 |
break; |
| 2063 |
|
| 2064 |
case 84: |
| 2065 |
#line 306 "pars0grm.y" /* yacc.c:1646 */ |
| 2066 |
{ |
| 2067 |
(yyval) = nullptr; |
| 2068 |
} |
| 2069 |
#line 2029 "pars0grm.cc" /* yacc.c:1646 */ |
| 2070 |
break; |
| 2071 |
|
| 2072 |
case 85: |
| 2073 |
#line 308 "pars0grm.y" /* yacc.c:1646 */ |
| 2074 |
{ (yyval) = pars_order_by( |
| 2075 |
static_cast<sym_node_t*>((yyvsp[-1])), |
| 2076 |
static_cast<pars_res_word_t*>((yyvsp[0]))); } |
| 2077 |
#line 2037 "pars0grm.cc" /* yacc.c:1646 */ |
| 2078 |
break; |
| 2079 |
|
| 2080 |
case 86: |
| 2081 |
#line 319 "pars0grm.y" /* yacc.c:1646 */ |
| 2082 |
{ (yyval) = pars_select_statement( |
| 2083 |
static_cast<sel_node_t*>((yyvsp[-6])), |
| 2084 |
static_cast<sym_node_t*>((yyvsp[-4])), |
| 2085 |
static_cast<que_node_t*>((yyvsp[-3])), |
| 2086 |
static_cast<pars_res_word_t*>((yyvsp[-2])), |
| 2087 |
static_cast<pars_res_word_t*>((yyvsp[-1])), |
| 2088 |
static_cast<order_node_t*>((yyvsp[0]))); } |
| 2089 |
#line 2049 "pars0grm.cc" /* yacc.c:1646 */ |
| 2090 |
break; |
| 2091 |
|
| 2092 |
case 87: |
| 2093 |
#line 330 "pars0grm.y" /* yacc.c:1646 */ |
| 2094 |
{ (yyval) = (yyvsp[0]); } |
| 2095 |
#line 2055 "pars0grm.cc" /* yacc.c:1646 */ |
| 2096 |
break; |
| 2097 |
|
| 2098 |
case 88: |
| 2099 |
#line 335 "pars0grm.y" /* yacc.c:1646 */ |
| 2100 |
{ |
| 2101 |
(yyval) = pars_insert_statement(static_cast<sym_node_t *>((yyvsp[-4])), |
| 2102 |
(yyvsp[-1]), nullptr); |
| 2103 |
} |
| 2104 |
#line 2062 "pars0grm.cc" /* yacc.c:1646 */ |
| 2105 |
break; |
| 2106 |
|
| 2107 |
case 89: |
| 2108 |
#line 338 "pars0grm.y" /* yacc.c:1646 */ |
| 2109 |
{ |
| 2110 |
(yyval) = |
| 2111 |
pars_insert_statement(static_cast<sym_node_t *>((yyvsp[-1])), nullptr, |
| 2112 |
static_cast<sel_node_t *>((yyvsp[0]))); |
| 2113 |
} |
| 2114 |
#line 2071 "pars0grm.cc" /* yacc.c:1646 */ |
| 2115 |
break; |
| 2116 |
|
| 2117 |
case 90: |
| 2118 |
#line 345 "pars0grm.y" /* yacc.c:1646 */ |
| 2119 |
{ (yyval) = pars_column_assignment( |
| 2120 |
static_cast<sym_node_t*>((yyvsp[-2])), |
| 2121 |
static_cast<que_node_t*>((yyvsp[0]))); } |
| 2122 |
#line 2079 "pars0grm.cc" /* yacc.c:1646 */ |
| 2123 |
break; |
| 2124 |
|
| 2125 |
case 91: |
| 2126 |
#line 351 "pars0grm.y" /* yacc.c:1646 */ |
| 2127 |
{ |
| 2128 |
(yyval) = que_node_list_add_last(nullptr, (yyvsp[0])); |
| 2129 |
} |
| 2130 |
#line 2085 "pars0grm.cc" /* yacc.c:1646 */ |
| 2131 |
break; |
| 2132 |
|
| 2133 |
case 92: |
| 2134 |
#line 353 "pars0grm.y" /* yacc.c:1646 */ |
| 2135 |
{ (yyval) = que_node_list_add_last((yyvsp[-2]), (yyvsp[0])); } |
| 2136 |
#line 2091 "pars0grm.cc" /* yacc.c:1646 */ |
| 2137 |
break; |
| 2138 |
|
| 2139 |
case 93: |
| 2140 |
#line 359 "pars0grm.y" /* yacc.c:1646 */ |
| 2141 |
{ (yyval) = (yyvsp[0]); } |
| 2142 |
#line 2097 "pars0grm.cc" /* yacc.c:1646 */ |
| 2143 |
break; |
| 2144 |
|
| 2145 |
case 94: |
| 2146 |
#line 365 "pars0grm.y" /* yacc.c:1646 */ |
| 2147 |
{ (yyval) = pars_update_statement_start( |
| 2148 |
false, |
| 2149 |
static_cast<sym_node_t*>((yyvsp[-2])), |
| 2150 |
static_cast<col_assign_node_t*>((yyvsp[0]))); } |
| 2151 |
#line 2106 "pars0grm.cc" /* yacc.c:1646 */ |
| 2152 |
break; |
| 2153 |
|
| 2154 |
case 95: |
| 2155 |
#line 373 "pars0grm.y" /* yacc.c:1646 */ |
| 2156 |
{ |
| 2157 |
(yyval) = |
| 2158 |
pars_update_statement(static_cast<upd_node_t *>((yyvsp[-1])), nullptr, |
| 2159 |
static_cast<que_node_t *>((yyvsp[0]))); |
| 2160 |
} |
| 2161 |
#line 2115 "pars0grm.cc" /* yacc.c:1646 */ |
| 2162 |
break; |
| 2163 |
|
| 2164 |
case 96: |
| 2165 |
#line 381 "pars0grm.y" /* yacc.c:1646 */ |
| 2166 |
{ |
| 2167 |
(yyval) = |
| 2168 |
pars_update_statement(static_cast<upd_node_t *>((yyvsp[-1])), |
| 2169 |
static_cast<sym_node_t *>((yyvsp[0])), nullptr); |
| 2170 |
} |
| 2171 |
#line 2124 "pars0grm.cc" /* yacc.c:1646 */ |
| 2172 |
break; |
| 2173 |
|
| 2174 |
case 97: |
| 2175 |
#line 389 "pars0grm.y" /* yacc.c:1646 */ |
| 2176 |
{ |
| 2177 |
(yyval) = pars_update_statement_start( |
| 2178 |
true, static_cast<sym_node_t *>((yyvsp[0])), nullptr); |
| 2179 |
} |
| 2180 |
#line 2132 "pars0grm.cc" /* yacc.c:1646 */ |
| 2181 |
break; |
| 2182 |
|
| 2183 |
case 98: |
| 2184 |
#line 396 "pars0grm.y" /* yacc.c:1646 */ |
| 2185 |
{ |
| 2186 |
(yyval) = |
| 2187 |
pars_update_statement(static_cast<upd_node_t *>((yyvsp[-1])), nullptr, |
| 2188 |
static_cast<que_node_t *>((yyvsp[0]))); |
| 2189 |
} |
| 2190 |
#line 2141 "pars0grm.cc" /* yacc.c:1646 */ |
| 2191 |
break; |
| 2192 |
|
| 2193 |
case 99: |
| 2194 |
#line 404 "pars0grm.y" /* yacc.c:1646 */ |
| 2195 |
{ |
| 2196 |
(yyval) = |
| 2197 |
pars_update_statement(static_cast<upd_node_t *>((yyvsp[-1])), |
| 2198 |
static_cast<sym_node_t *>((yyvsp[0])), nullptr); |
| 2199 |
} |
| 2200 |
#line 2150 "pars0grm.cc" /* yacc.c:1646 */ |
| 2201 |
break; |
| 2202 |
|
| 2203 |
case 100: |
| 2204 |
#line 412 "pars0grm.y" /* yacc.c:1646 */ |
| 2205 |
{ (yyval) = pars_assignment_statement( |
| 2206 |
static_cast<sym_node_t*>((yyvsp[-2])), |
| 2207 |
static_cast<que_node_t*>((yyvsp[0]))); } |
| 2208 |
#line 2158 "pars0grm.cc" /* yacc.c:1646 */ |
| 2209 |
break; |
| 2210 |
|
| 2211 |
case 101: |
| 2212 |
#line 420 "pars0grm.y" /* yacc.c:1646 */ |
| 2213 |
{ (yyval) = pars_elsif_element((yyvsp[-2]), (yyvsp[0])); } |
| 2214 |
#line 2164 "pars0grm.cc" /* yacc.c:1646 */ |
| 2215 |
break; |
| 2216 |
|
| 2217 |
case 102: |
| 2218 |
#line 424 "pars0grm.y" /* yacc.c:1646 */ |
| 2219 |
{ |
| 2220 |
(yyval) = que_node_list_add_last(nullptr, (yyvsp[0])); |
| 2221 |
} |
| 2222 |
#line 2170 "pars0grm.cc" /* yacc.c:1646 */ |
| 2223 |
break; |
| 2224 |
|
| 2225 |
case 103: |
| 2226 |
#line 426 "pars0grm.y" /* yacc.c:1646 */ |
| 2227 |
{ (yyval) = que_node_list_add_last((yyvsp[-1]), (yyvsp[0])); } |
| 2228 |
#line 2176 "pars0grm.cc" /* yacc.c:1646 */ |
| 2229 |
break; |
| 2230 |
|
| 2231 |
case 104: |
| 2232 |
#line 430 "pars0grm.y" /* yacc.c:1646 */ |
| 2233 |
{ |
| 2234 |
(yyval) = nullptr; |
| 2235 |
} |
| 2236 |
#line 2182 "pars0grm.cc" /* yacc.c:1646 */ |
| 2237 |
break; |
| 2238 |
|
| 2239 |
case 105: |
| 2240 |
#line 432 "pars0grm.y" /* yacc.c:1646 */ |
| 2241 |
{ (yyval) = (yyvsp[0]); } |
| 2242 |
#line 2188 "pars0grm.cc" /* yacc.c:1646 */ |
| 2243 |
break; |
| 2244 |
|
| 2245 |
case 106: |
| 2246 |
#line 433 "pars0grm.y" /* yacc.c:1646 */ |
| 2247 |
{ (yyval) = (yyvsp[0]); } |
| 2248 |
#line 2194 "pars0grm.cc" /* yacc.c:1646 */ |
| 2249 |
break; |
| 2250 |
|
| 2251 |
case 107: |
| 2252 |
#line 440 "pars0grm.y" /* yacc.c:1646 */ |
| 2253 |
{ (yyval) = pars_if_statement((yyvsp[-5]), (yyvsp[-3]), (yyvsp[-2])); } |
| 2254 |
#line 2200 "pars0grm.cc" /* yacc.c:1646 */ |
| 2255 |
break; |
| 2256 |
|
| 2257 |
case 108: |
| 2258 |
#line 446 "pars0grm.y" /* yacc.c:1646 */ |
| 2259 |
{ (yyval) = pars_while_statement((yyvsp[-4]), (yyvsp[-2])); } |
| 2260 |
#line 2206 "pars0grm.cc" /* yacc.c:1646 */ |
| 2261 |
break; |
| 2262 |
|
| 2263 |
case 109: |
| 2264 |
#line 454 "pars0grm.y" /* yacc.c:1646 */ |
| 2265 |
{ (yyval) = pars_for_statement( |
| 2266 |
static_cast<sym_node_t*>((yyvsp[-8])), |
| 2267 |
(yyvsp[-6]), (yyvsp[-4]), (yyvsp[-2])); } |
| 2268 |
#line 2214 "pars0grm.cc" /* yacc.c:1646 */ |
| 2269 |
break; |
| 2270 |
|
| 2271 |
case 110: |
| 2272 |
#line 460 "pars0grm.y" /* yacc.c:1646 */ |
| 2273 |
{ (yyval) = pars_exit_statement(); } |
| 2274 |
#line 2220 "pars0grm.cc" /* yacc.c:1646 */ |
| 2275 |
break; |
| 2276 |
|
| 2277 |
case 111: |
| 2278 |
#line 464 "pars0grm.y" /* yacc.c:1646 */ |
| 2279 |
{ (yyval) = pars_return_statement(); } |
| 2280 |
#line 2226 "pars0grm.cc" /* yacc.c:1646 */ |
| 2281 |
break; |
| 2282 |
|
| 2283 |
case 112: |
| 2284 |
#line 469 "pars0grm.y" /* yacc.c:1646 */ |
| 2285 |
{ (yyval) = pars_open_statement( |
| 2286 |
ROW_SEL_OPEN_CURSOR, |
| 2287 |
static_cast<sym_node_t*>((yyvsp[0]))); } |
| 2288 |
#line 2234 "pars0grm.cc" /* yacc.c:1646 */ |
| 2289 |
break; |
| 2290 |
|
| 2291 |
case 113: |
| 2292 |
#line 476 "pars0grm.y" /* yacc.c:1646 */ |
| 2293 |
{ (yyval) = pars_open_statement( |
| 2294 |
ROW_SEL_CLOSE_CURSOR, |
| 2295 |
static_cast<sym_node_t*>((yyvsp[0]))); } |
| 2296 |
#line 2242 "pars0grm.cc" /* yacc.c:1646 */ |
| 2297 |
break; |
| 2298 |
|
| 2299 |
case 114: |
| 2300 |
#line 483 "pars0grm.y" /* yacc.c:1646 */ |
| 2301 |
{ |
| 2302 |
(yyval) = |
| 2303 |
pars_fetch_statement(static_cast<sym_node_t *>((yyvsp[-2])), |
| 2304 |
static_cast<sym_node_t *>((yyvsp[0])), nullptr); |
| 2305 |
} |
| 2306 |
#line 2250 "pars0grm.cc" /* yacc.c:1646 */ |
| 2307 |
break; |
| 2308 |
|
| 2309 |
case 115: |
| 2310 |
#line 487 "pars0grm.y" /* yacc.c:1646 */ |
| 2311 |
{ |
| 2312 |
(yyval) = |
| 2313 |
pars_fetch_statement(static_cast<sym_node_t *>((yyvsp[-2])), nullptr, |
| 2314 |
static_cast<sym_node_t *>((yyvsp[0]))); |
| 2315 |
} |
| 2316 |
#line 2259 "pars0grm.cc" /* yacc.c:1646 */ |
| 2317 |
break; |
| 2318 |
|
| 2319 |
case 116: |
| 2320 |
#line 495 "pars0grm.y" /* yacc.c:1646 */ |
| 2321 |
{ (yyval) = pars_column_def( |
| 2322 |
static_cast<sym_node_t*>((yyvsp[-4])), |
| 2323 |
static_cast<pars_res_word_t*>((yyvsp[-3])), |
| 2324 |
static_cast<sym_node_t*>((yyvsp[-2])), |
| 2325 |
(yyvsp[-1]), (yyvsp[0])); } |
| 2326 |
#line 2269 "pars0grm.cc" /* yacc.c:1646 */ |
| 2327 |
break; |
| 2328 |
|
| 2329 |
case 117: |
| 2330 |
#line 503 "pars0grm.y" /* yacc.c:1646 */ |
| 2331 |
{ |
| 2332 |
(yyval) = que_node_list_add_last(nullptr, (yyvsp[0])); |
| 2333 |
} |
| 2334 |
#line 2275 "pars0grm.cc" /* yacc.c:1646 */ |
| 2335 |
break; |
| 2336 |
|
| 2337 |
case 118: |
| 2338 |
#line 505 "pars0grm.y" /* yacc.c:1646 */ |
| 2339 |
{ (yyval) = que_node_list_add_last((yyvsp[-2]), (yyvsp[0])); } |
| 2340 |
#line 2281 "pars0grm.cc" /* yacc.c:1646 */ |
| 2341 |
break; |
| 2342 |
|
| 2343 |
case 119: |
| 2344 |
#line 509 "pars0grm.y" /* yacc.c:1646 */ |
| 2345 |
{ |
| 2346 |
(yyval) = nullptr; |
| 2347 |
} |
| 2348 |
#line 2287 "pars0grm.cc" /* yacc.c:1646 */ |
| 2349 |
break; |
| 2350 |
|
| 2351 |
case 120: |
| 2352 |
#line 511 "pars0grm.y" /* yacc.c:1646 */ |
| 2353 |
{ (yyval) = (yyvsp[-1]); } |
| 2354 |
#line 2293 "pars0grm.cc" /* yacc.c:1646 */ |
| 2355 |
break; |
| 2356 |
|
| 2357 |
case 121: |
| 2358 |
#line 515 "pars0grm.y" /* yacc.c:1646 */ |
| 2359 |
{ |
| 2360 |
(yyval) = nullptr; |
| 2361 |
} |
| 2362 |
#line 2299 "pars0grm.cc" /* yacc.c:1646 */ |
| 2363 |
break; |
| 2364 |
|
| 2365 |
case 122: |
| 2366 |
#line 517 "pars0grm.y" /* yacc.c:1646 */ |
| 2367 |
{ (yyval) = &pars_int_token; |
| 2368 |
/* pass any non-NULL pointer */ } |
| 2369 |
#line 2306 "pars0grm.cc" /* yacc.c:1646 */ |
| 2370 |
break; |
| 2371 |
|
| 2372 |
case 123: |
| 2373 |
#line 522 "pars0grm.y" /* yacc.c:1646 */ |
| 2374 |
{ |
| 2375 |
(yyval) = nullptr; |
| 2376 |
} |
| 2377 |
#line 2312 "pars0grm.cc" /* yacc.c:1646 */ |
| 2378 |
break; |
| 2379 |
|
| 2380 |
case 124: |
| 2381 |
#line 524 "pars0grm.y" /* yacc.c:1646 */ |
| 2382 |
{ (yyval) = &pars_int_token; |
| 2383 |
/* pass any non-NULL pointer */ } |
| 2384 |
#line 2319 "pars0grm.cc" /* yacc.c:1646 */ |
| 2385 |
break; |
| 2386 |
|
| 2387 |
case 125: |
| 2388 |
#line 529 "pars0grm.y" /* yacc.c:1646 */ |
| 2389 |
{ |
| 2390 |
(yyval) = nullptr; |
| 2391 |
} |
| 2392 |
#line 2325 "pars0grm.cc" /* yacc.c:1646 */ |
| 2393 |
break; |
| 2394 |
|
| 2395 |
case 126: |
| 2396 |
#line 531 "pars0grm.y" /* yacc.c:1646 */ |
| 2397 |
{ (yyval) = &pars_int_token; |
| 2398 |
/* pass any non-NULL pointer */ } |
| 2399 |
#line 2332 "pars0grm.cc" /* yacc.c:1646 */ |
| 2400 |
break; |
| 2401 |
|
| 2402 |
case 127: |
| 2403 |
#line 536 "pars0grm.y" /* yacc.c:1646 */ |
| 2404 |
{ |
| 2405 |
(yyval) = nullptr; |
| 2406 |
} |
| 2407 |
#line 2338 "pars0grm.cc" /* yacc.c:1646 */ |
| 2408 |
break; |
| 2409 |
|
| 2410 |
case 128: |
| 2411 |
#line 537 "pars0grm.y" /* yacc.c:1646 */ |
| 2412 |
{ (yyval) = &pars_int_token; |
| 2413 |
/* pass any non-NULL pointer */ } |
| 2414 |
#line 2345 "pars0grm.cc" /* yacc.c:1646 */ |
| 2415 |
break; |
| 2416 |
|
| 2417 |
case 129: |
| 2418 |
#line 542 "pars0grm.y" /* yacc.c:1646 */ |
| 2419 |
{ |
| 2420 |
(yyval) = nullptr; |
| 2421 |
} |
| 2422 |
#line 2351 "pars0grm.cc" /* yacc.c:1646 */ |
| 2423 |
break; |
| 2424 |
|
| 2425 |
case 130: |
| 2426 |
#line 544 "pars0grm.y" /* yacc.c:1646 */ |
| 2427 |
{ (yyval) = (yyvsp[0]); } |
| 2428 |
#line 2357 "pars0grm.cc" /* yacc.c:1646 */ |
| 2429 |
break; |
| 2430 |
|
| 2431 |
case 131: |
| 2432 |
#line 551 "pars0grm.y" /* yacc.c:1646 */ |
| 2433 |
{ (yyval) = pars_create_table( |
| 2434 |
static_cast<sym_node_t*>((yyvsp[-6])), |
| 2435 |
static_cast<sym_node_t*>((yyvsp[-4])), |
| 2436 |
static_cast<sym_node_t*>((yyvsp[-1])), |
| 2437 |
static_cast<sym_node_t*>((yyvsp[0])), (yyvsp[-2])); } |
| 2438 |
#line 2367 "pars0grm.cc" /* yacc.c:1646 */ |
| 2439 |
break; |
| 2440 |
|
| 2441 |
case 132: |
| 2442 |
#line 559 "pars0grm.y" /* yacc.c:1646 */ |
| 2443 |
{ |
| 2444 |
(yyval) = que_node_list_add_last(nullptr, (yyvsp[0])); |
| 2445 |
} |
| 2446 |
#line 2373 "pars0grm.cc" /* yacc.c:1646 */ |
| 2447 |
break; |
| 2448 |
|
| 2449 |
case 133: |
| 2450 |
#line 561 "pars0grm.y" /* yacc.c:1646 */ |
| 2451 |
{ (yyval) = que_node_list_add_last((yyvsp[-2]), (yyvsp[0])); } |
| 2452 |
#line 2379 "pars0grm.cc" /* yacc.c:1646 */ |
| 2453 |
break; |
| 2454 |
|
| 2455 |
case 134: |
| 2456 |
#line 565 "pars0grm.y" /* yacc.c:1646 */ |
| 2457 |
{ |
| 2458 |
(yyval) = nullptr; |
| 2459 |
} |
| 2460 |
#line 2385 "pars0grm.cc" /* yacc.c:1646 */ |
| 2461 |
break; |
| 2462 |
|
| 2463 |
case 135: |
| 2464 |
#line 566 "pars0grm.y" /* yacc.c:1646 */ |
| 2465 |
{ (yyval) = &pars_unique_token; } |
| 2466 |
#line 2391 "pars0grm.cc" /* yacc.c:1646 */ |
| 2467 |
break; |
| 2468 |
|
| 2469 |
case 136: |
| 2470 |
#line 570 "pars0grm.y" /* yacc.c:1646 */ |
| 2471 |
{ |
| 2472 |
(yyval) = nullptr; |
| 2473 |
} |
| 2474 |
#line 2397 "pars0grm.cc" /* yacc.c:1646 */ |
| 2475 |
break; |
| 2476 |
|
| 2477 |
case 137: |
| 2478 |
#line 571 "pars0grm.y" /* yacc.c:1646 */ |
| 2479 |
{ (yyval) = &pars_clustered_token; } |
| 2480 |
#line 2403 "pars0grm.cc" /* yacc.c:1646 */ |
| 2481 |
break; |
| 2482 |
|
| 2483 |
case 138: |
| 2484 |
#line 580 "pars0grm.y" /* yacc.c:1646 */ |
| 2485 |
{ (yyval) = pars_create_index( |
| 2486 |
static_cast<pars_res_word_t*>((yyvsp[-8])), |
| 2487 |
static_cast<pars_res_word_t*>((yyvsp[-7])), |
| 2488 |
static_cast<sym_node_t*>((yyvsp[-5])), |
| 2489 |
static_cast<sym_node_t*>((yyvsp[-3])), |
| 2490 |
static_cast<sym_node_t*>((yyvsp[-1]))); } |
| 2491 |
#line 2414 "pars0grm.cc" /* yacc.c:1646 */ |
| 2492 |
break; |
| 2493 |
|
| 2494 |
case 139: |
| 2495 |
#line 589 "pars0grm.y" /* yacc.c:1646 */ |
| 2496 |
{ (yyval) = (yyvsp[0]); } |
| 2497 |
#line 2420 "pars0grm.cc" /* yacc.c:1646 */ |
| 2498 |
break; |
| 2499 |
|
| 2500 |
case 140: |
| 2501 |
#line 590 "pars0grm.y" /* yacc.c:1646 */ |
| 2502 |
{ (yyval) = (yyvsp[0]); } |
| 2503 |
#line 2426 "pars0grm.cc" /* yacc.c:1646 */ |
| 2504 |
break; |
| 2505 |
|
| 2506 |
case 141: |
| 2507 |
#line 595 "pars0grm.y" /* yacc.c:1646 */ |
| 2508 |
{ (yyval) = pars_commit_statement(); } |
| 2509 |
#line 2432 "pars0grm.cc" /* yacc.c:1646 */ |
| 2510 |
break; |
| 2511 |
|
| 2512 |
case 142: |
| 2513 |
#line 600 "pars0grm.y" /* yacc.c:1646 */ |
| 2514 |
{ (yyval) = pars_rollback_statement(); } |
| 2515 |
#line 2438 "pars0grm.cc" /* yacc.c:1646 */ |
| 2516 |
break; |
| 2517 |
|
| 2518 |
case 143: |
| 2519 |
#line 604 "pars0grm.y" /* yacc.c:1646 */ |
| 2520 |
{ (yyval) = &pars_int_token; } |
| 2521 |
#line 2444 "pars0grm.cc" /* yacc.c:1646 */ |
| 2522 |
break; |
| 2523 |
|
| 2524 |
case 144: |
| 2525 |
#line 605 "pars0grm.y" /* yacc.c:1646 */ |
| 2526 |
{ (yyval) = &pars_int_token; } |
| 2527 |
#line 2450 "pars0grm.cc" /* yacc.c:1646 */ |
| 2528 |
break; |
| 2529 |
|
| 2530 |
case 145: |
| 2531 |
#line 606 "pars0grm.y" /* yacc.c:1646 */ |
| 2532 |
{ (yyval) = &pars_bigint_token; } |
| 2533 |
#line 2456 "pars0grm.cc" /* yacc.c:1646 */ |
| 2534 |
break; |
| 2535 |
|
| 2536 |
case 146: |
| 2537 |
#line 607 "pars0grm.y" /* yacc.c:1646 */ |
| 2538 |
{ (yyval) = &pars_char_token; } |
| 2539 |
#line 2462 "pars0grm.cc" /* yacc.c:1646 */ |
| 2540 |
break; |
| 2541 |
|
| 2542 |
case 147: |
| 2543 |
#line 608 "pars0grm.y" /* yacc.c:1646 */ |
| 2544 |
{ (yyval) = &pars_binary_token; } |
| 2545 |
#line 2468 "pars0grm.cc" /* yacc.c:1646 */ |
| 2546 |
break; |
| 2547 |
|
| 2548 |
case 148: |
| 2549 |
#line 609 "pars0grm.y" /* yacc.c:1646 */ |
| 2550 |
{ (yyval) = &pars_blob_token; } |
| 2551 |
#line 2474 "pars0grm.cc" /* yacc.c:1646 */ |
| 2552 |
break; |
| 2553 |
|
| 2554 |
case 149: |
| 2555 |
#line 614 "pars0grm.y" /* yacc.c:1646 */ |
| 2556 |
{ (yyval) = pars_parameter_declaration( |
| 2557 |
static_cast<sym_node_t*>((yyvsp[-2])), |
| 2558 |
PARS_INPUT, |
| 2559 |
static_cast<pars_res_word_t*>((yyvsp[0]))); } |
| 2560 |
#line 2483 "pars0grm.cc" /* yacc.c:1646 */ |
| 2561 |
break; |
| 2562 |
|
| 2563 |
case 150: |
| 2564 |
#line 619 "pars0grm.y" /* yacc.c:1646 */ |
| 2565 |
{ (yyval) = pars_parameter_declaration( |
| 2566 |
static_cast<sym_node_t*>((yyvsp[-2])), |
| 2567 |
PARS_OUTPUT, |
| 2568 |
static_cast<pars_res_word_t*>((yyvsp[0]))); } |
| 2569 |
#line 2492 "pars0grm.cc" /* yacc.c:1646 */ |
| 2570 |
break; |
| 2571 |
|
| 2572 |
case 151: |
| 2573 |
#line 626 "pars0grm.y" /* yacc.c:1646 */ |
| 2574 |
{ |
| 2575 |
(yyval) = nullptr; |
| 2576 |
} |
| 2577 |
#line 2498 "pars0grm.cc" /* yacc.c:1646 */ |
| 2578 |
break; |
| 2579 |
|
| 2580 |
case 152: |
| 2581 |
#line 627 "pars0grm.y" /* yacc.c:1646 */ |
| 2582 |
{ |
| 2583 |
(yyval) = que_node_list_add_last(nullptr, (yyvsp[0])); |
| 2584 |
} |
| 2585 |
#line 2504 "pars0grm.cc" /* yacc.c:1646 */ |
| 2586 |
break; |
| 2587 |
|
| 2588 |
case 153: |
| 2589 |
#line 629 "pars0grm.y" /* yacc.c:1646 */ |
| 2590 |
{ (yyval) = que_node_list_add_last((yyvsp[-2]), (yyvsp[0])); } |
| 2591 |
#line 2510 "pars0grm.cc" /* yacc.c:1646 */ |
| 2592 |
break; |
| 2593 |
|
| 2594 |
case 154: |
| 2595 |
#line 634 "pars0grm.y" /* yacc.c:1646 */ |
| 2596 |
{ (yyval) = pars_variable_declaration( |
| 2597 |
static_cast<sym_node_t*>((yyvsp[-2])), |
| 2598 |
static_cast<pars_res_word_t*>((yyvsp[-1]))); } |
| 2599 |
#line 2518 "pars0grm.cc" /* yacc.c:1646 */ |
| 2600 |
break; |
| 2601 |
|
| 2602 |
case 158: |
| 2603 |
#line 648 "pars0grm.y" /* yacc.c:1646 */ |
| 2604 |
{ (yyval) = pars_cursor_declaration( |
| 2605 |
static_cast<sym_node_t*>((yyvsp[-3])), |
| 2606 |
static_cast<sel_node_t*>((yyvsp[-1]))); } |
| 2607 |
#line 2526 "pars0grm.cc" /* yacc.c:1646 */ |
| 2608 |
break; |
| 2609 |
|
| 2610 |
case 159: |
| 2611 |
#line 655 "pars0grm.y" /* yacc.c:1646 */ |
| 2612 |
{ (yyval) = pars_function_declaration( |
| 2613 |
static_cast<sym_node_t*>((yyvsp[-1]))); } |
| 2614 |
#line 2533 "pars0grm.cc" /* yacc.c:1646 */ |
| 2615 |
break; |
| 2616 |
|
| 2617 |
case 165: |
| 2618 |
#line 677 "pars0grm.y" /* yacc.c:1646 */ |
| 2619 |
{ (yyval) = pars_procedure_definition( |
| 2620 |
static_cast<sym_node_t*>((yyvsp[-9])), |
| 2621 |
static_cast<sym_node_t*>((yyvsp[-7])), |
| 2622 |
(yyvsp[-1])); } |
| 2623 |
#line 2542 "pars0grm.cc" /* yacc.c:1646 */ |
| 2624 |
break; |
| 2625 |
|
| 2626 |
|
| 2627 |
#line 2546 "pars0grm.cc" /* yacc.c:1646 */ |
| 2628 |
default: break; |
| 2629 |
} |
| 2630 |
/* User semantic actions sometimes alter yychar, and that requires |
| 2631 |
that yytoken be updated with the new translation. We take the |
| 2632 |
approach of translating immediately before every use of yytoken. |
| 2633 |
One alternative is translating here after every semantic action, |
| 2634 |
but that translation would be missed if the semantic action invokes |
| 2635 |
YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or |
| 2636 |
if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an |
| 2637 |
incorrect destructor might then be invoked immediately. In the |
| 2638 |
case of YYERROR or YYBACKUP, subsequent parser actions might lead |
| 2639 |
to an incorrect destructor call or verbose syntax error message |
| 2640 |
before the lookahead is translated. */ |
| 2641 |
YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); |
| 2642 |
|
| 2643 |
YYPOPSTACK (yylen); |
| 2644 |
yylen = 0; |
| 2645 |
YY_STACK_PRINT (yyss, yyssp); |
| 2646 |
|
| 2647 |
*++yyvsp = yyval; |
| 2648 |
|
| 2649 |
/* Now 'shift' the result of the reduction. Determine what state |
| 2650 |
that goes to, based on the state we popped back to and the rule |
| 2651 |
number reduced by. */ |
| 2652 |
|
| 2653 |
yyn = yyr1[yyn]; |
| 2654 |
|
| 2655 |
yystate = yypgoto[yyn - YYNTOKENS] + *yyssp; |
| 2656 |
if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp) |
| 2657 |
yystate = yytable[yystate]; |
| 2658 |
else |
| 2659 |
yystate = yydefgoto[yyn - YYNTOKENS]; |
| 2660 |
|
| 2661 |
goto yynewstate; |
| 2662 |
|
| 2663 |
|
| 2664 |
/*--------------------------------------. |
| 2665 |
| yyerrlab -- here on detecting error. | |
| 2666 |
`--------------------------------------*/ |
| 2667 |
yyerrlab: |
| 2668 |
/* Make sure we have latest lookahead translation. See comments at |
| 2669 |
user semantic actions for why this is necessary. */ |
| 2670 |
yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar); |
| 2671 |
|
| 2672 |
/* If not already recovering from an error, report this error. */ |
| 2673 |
if (!yyerrstatus) |
| 2674 |
{ |
| 2675 |
++yynerrs; |
| 2676 |
#if ! YYERROR_VERBOSE |
| 2677 |
yyerror (YY_("syntax error")); |
| 2678 |
#else |
| 2679 |
# define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \ |
| 2680 |
yyssp, yytoken) |
| 2681 |
{ |
| 2682 |
char const *yymsgp = YY_("syntax error"); |
| 2683 |
int yysyntax_error_status; |
| 2684 |
yysyntax_error_status = YYSYNTAX_ERROR; |
| 2685 |
if (yysyntax_error_status == 0) |
| 2686 |
yymsgp = yymsg; |
| 2687 |
else if (yysyntax_error_status == 1) |
| 2688 |
{ |
| 2689 |
if (yymsg != yymsgbuf) |
| 2690 |
YYSTACK_FREE (yymsg); |
| 2691 |
yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc); |
| 2692 |
if (!yymsg) |
| 2693 |
{ |
| 2694 |
yymsg = yymsgbuf; |
| 2695 |
yymsg_alloc = sizeof yymsgbuf; |
| 2696 |
yysyntax_error_status = 2; |
| 2697 |
} |
| 2698 |
else |
| 2699 |
{ |
| 2700 |
yysyntax_error_status = YYSYNTAX_ERROR; |
| 2701 |
yymsgp = yymsg; |
| 2702 |
} |
| 2703 |
} |
| 2704 |
yyerror (yymsgp); |
| 2705 |
if (yysyntax_error_status == 2) |
| 2706 |
goto yyexhaustedlab; |
| 2707 |
} |
| 2708 |
# undef YYSYNTAX_ERROR |
| 2709 |
#endif |
| 2710 |
} |
| 2711 |
|
| 2712 |
|
| 2713 |
|
| 2714 |
if (yyerrstatus == 3) |
| 2715 |
{ |
| 2716 |
/* If just tried and failed to reuse lookahead token after an |
| 2717 |
error, discard it. */ |
| 2718 |
|
| 2719 |
if (yychar <= YYEOF) |
| 2720 |
{ |
| 2721 |
/* Return failure if at end of input. */ |
| 2722 |
if (yychar == YYEOF) |
| 2723 |
YYABORT; |
| 2724 |
} |
| 2725 |
else |
| 2726 |
{ |
| 2727 |
yydestruct ("Error: discarding", |
| 2728 |
yytoken, &yylval); |
| 2729 |
yychar = YYEMPTY; |
| 2730 |
} |
| 2731 |
} |
| 2732 |
|
| 2733 |
/* Else will try to reuse lookahead token after shifting the error |
| 2734 |
token. */ |
| 2735 |
goto yyerrlab1; |
| 2736 |
|
| 2737 |
|
| 2738 |
/*---------------------------------------------------. |
| 2739 |
| yyerrorlab -- error raised explicitly by YYERROR. | |
| 2740 |
`---------------------------------------------------*/ |
| 2741 |
yyerrorlab: |
| 2742 |
|
| 2743 |
/* Pacify compilers like GCC when the user code never invokes |
| 2744 |
YYERROR and the label yyerrorlab therefore never appears in user |
| 2745 |
code. */ |
| 2746 |
if (/*CONSTCOND*/ false) |
| 2747 |
goto yyerrorlab; |
| 2748 |
|
| 2749 |
/* Do not reclaim the symbols of the rule whose action triggered |
| 2750 |
this YYERROR. */ |
| 2751 |
YYPOPSTACK (yylen); |
| 2752 |
yylen = 0; |
| 2753 |
YY_STACK_PRINT (yyss, yyssp); |
| 2754 |
yystate = *yyssp; |
| 2755 |
goto yyerrlab1; |
| 2756 |
|
| 2757 |
|
| 2758 |
/*-------------------------------------------------------------. |
| 2759 |
| yyerrlab1 -- common code for both syntax error and YYERROR. | |
| 2760 |
`-------------------------------------------------------------*/ |
| 2761 |
yyerrlab1: |
| 2762 |
yyerrstatus = 3; /* Each real token shifted decrements this. */ |
| 2763 |
|
| 2764 |
for (;;) |
| 2765 |
{ |
| 2766 |
yyn = yypact[yystate]; |
| 2767 |
if (!yypact_value_is_default (yyn)) |
| 2768 |
{ |
| 2769 |
yyn += YYTERROR; |
| 2770 |
if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) |
| 2771 |
{ |
| 2772 |
yyn = yytable[yyn]; |
| 2773 |
if (0 < yyn) |
| 2774 |
break; |
| 2775 |
} |
| 2776 |
} |
| 2777 |
|
| 2778 |
/* Pop the current state because it cannot handle the error token. */ |
| 2779 |
if (yyssp == yyss) |
| 2780 |
YYABORT; |
| 2781 |
|
| 2782 |
|
| 2783 |
yydestruct ("Error: popping", |
| 2784 |
yystos[yystate], yyvsp); |
| 2785 |
YYPOPSTACK (1); |
| 2786 |
yystate = *yyssp; |
| 2787 |
YY_STACK_PRINT (yyss, yyssp); |
| 2788 |
} |
| 2789 |
|
| 2790 |
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
| 2791 |
*++yyvsp = yylval; |
| 2792 |
YY_IGNORE_MAYBE_UNINITIALIZED_END |
| 2793 |
|
| 2794 |
|
| 2795 |
/* Shift the error token. */ |
| 2796 |
YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp); |
| 2797 |
|
| 2798 |
yystate = yyn; |
| 2799 |
goto yynewstate; |
| 2800 |
|
| 2801 |
|
| 2802 |
/*-------------------------------------. |
| 2803 |
| yyacceptlab -- YYACCEPT comes here. | |
| 2804 |
`-------------------------------------*/ |
| 2805 |
yyacceptlab: |
| 2806 |
yyresult = 0; |
| 2807 |
goto yyreturn; |
| 2808 |
|
| 2809 |
/*-----------------------------------. |
| 2810 |
| yyabortlab -- YYABORT comes here. | |
| 2811 |
`-----------------------------------*/ |
| 2812 |
yyabortlab: |
| 2813 |
yyresult = 1; |
| 2814 |
goto yyreturn; |
| 2815 |
|
| 2816 |
#if !defined yyoverflow || YYERROR_VERBOSE |
| 2817 |
/*-------------------------------------------------. |
| 2818 |
| yyexhaustedlab -- memory exhaustion comes here. | |
| 2819 |
`-------------------------------------------------*/ |
| 2820 |
yyexhaustedlab: |
| 2821 |
yyerror (YY_("memory exhausted")); |
| 2822 |
yyresult = 2; |
| 2823 |
/* Fall through. */ |
| 2824 |
#endif |
| 2825 |
|
| 2826 |
yyreturn: |
| 2827 |
if (yychar != YYEMPTY) |
| 2828 |
{ |
| 2829 |
/* Make sure we have latest lookahead translation. See comments at |
| 2830 |
user semantic actions for why this is necessary. */ |
| 2831 |
yytoken = YYTRANSLATE (yychar); |
| 2832 |
yydestruct ("Cleanup: discarding lookahead", |
| 2833 |
yytoken, &yylval); |
| 2834 |
} |
| 2835 |
/* Do not reclaim the symbols of the rule whose action triggered |
| 2836 |
this YYABORT or YYACCEPT. */ |
| 2837 |
YYPOPSTACK (yylen); |
| 2838 |
YY_STACK_PRINT (yyss, yyssp); |
| 2839 |
while (yyssp != yyss) |
| 2840 |
{ |
| 2841 |
yydestruct ("Cleanup: popping", |
| 2842 |
yystos[*yyssp], yyvsp); |
| 2843 |
YYPOPSTACK (1); |
| 2844 |
} |
| 2845 |
#ifndef yyoverflow |
| 2846 |
if (yyss != yyssa) |
| 2847 |
YYSTACK_FREE (yyss); |
| 2848 |
#endif |
| 2849 |
#if YYERROR_VERBOSE |
| 2850 |
if (yymsg != yymsgbuf) |
| 2851 |
YYSTACK_FREE (yymsg); |
| 2852 |
#endif |
| 2853 |
return yyresult; |
| 2854 |
} |
| 2855 |
#line 683 "pars0grm.y" /* yacc.c:1906 */ |
| 2856 |
|