-/* A Bison parser, made by GNU Bison 2.3. */\r
-\r
-/* Skeleton implementation for Bison's Yacc-like parsers in C\r
-\r
- Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006\r
- Free Software Foundation, Inc.\r
-\r
- This program is free software; you can redistribute it and/or modify\r
- it under the terms of the GNU General Public License as published by\r
- the Free Software Foundation; either version 2, or (at your option)\r
- any later version.\r
-\r
- This program is distributed in the hope that it will be useful,\r
- but WITHOUT ANY WARRANTY; without even the implied warranty of\r
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
- GNU General Public License for more details.\r
-\r
- You should have received a copy of the GNU General Public License\r
- along with this program; if not, write to the Free Software\r
- Foundation, Inc., 51 Franklin Street, Fifth Floor,\r
- Boston, MA 02110-1301, USA. */\r
-\r
-/* As a special exception, you may create a larger work that contains\r
- part or all of the Bison parser skeleton and distribute that work\r
- under terms of your choice, so long as that work isn't itself a\r
- parser generator using the skeleton or a modified version thereof\r
- as a parser skeleton. Alternatively, if you modify or redistribute\r
- the parser skeleton itself, you may (at your option) remove this\r
- special exception, which will cause the skeleton and the resulting\r
- Bison output files to be licensed under the GNU General Public\r
- License without this special exception.\r
-\r
- This special exception was added by the Free Software Foundation in\r
- version 2.2 of Bison. */\r
-\r
-/* C LALR(1) parser skeleton written by Richard Stallman, by\r
- simplifying the original so-called "semantic" parser. */\r
-\r
-/* All symbols defined below should begin with yy or YY, to avoid\r
- infringing on user name space. This should be done even for local\r
- variables, as they might otherwise be expanded by user macros.\r
- There are some unavoidable exceptions within include files to\r
- define necessary library symbols; they are noted "INFRINGES ON\r
- USER NAME SPACE" below. */\r
-\r
-/* Identify Bison output. */\r
-#define YYBISON 1\r
-\r
-/* Bison version. */\r
-#define YYBISON_VERSION "2.3"\r
-\r
-/* Skeleton name. */\r
-#define YYSKELETON_NAME "yacc.c"\r
-\r
-/* Pure parsers. */\r
-#define YYPURE 0\r
-\r
-/* Using locations. */\r
-#define YYLSP_NEEDED 0\r
-\r
-/* Substitute the variable and function names. */\r
-#define yyparse FtaParserparse\r
-#define yylex FtaParserlex\r
-#define yyerror FtaParsererror\r
-#define yylval FtaParserlval\r
-#define yychar FtaParserchar\r
-#define yydebug FtaParserdebug\r
-#define yynerrs FtaParsernerrs\r
-\r
-\r
-/* Tokens. */\r
-#ifndef YYTOKENTYPE\r
-# define YYTOKENTYPE\r
- /* Put the tokens into the symbol table, so that GDB and other debuggers\r
- know about them. */\r
- enum yytokentype {\r
- NAME = 258,\r
- STRING_TOKEN = 259,\r
- INTNUM = 260,\r
- LONGINTNUM = 261,\r
- APPROXNUM = 262,\r
- OR = 263,\r
- AND = 264,\r
- NOT = 265,\r
- COMPARISON = 266,\r
- SHIFT_OP = 267,\r
- UMINUS = 268,\r
- SEMICOLON = 269,\r
- LEFTBRACE = 270,\r
- RIGHTBRACE = 271,\r
- BY = 272,\r
- AS = 273,\r
- AGGR = 274,\r
- FROM = 275,\r
- INNER_JOIN = 276,\r
- FILTER_JOIN = 277,\r
- OUTER_JOIN = 278,\r
- LEFT_OUTER_JOIN = 279,\r
- RIGHT_OUTER_JOIN = 280,\r
- GROUP = 281,\r
- HAVING = 282,\r
- IN = 283,\r
- SELECT = 284,\r
- WHERE = 285,\r
- SUPERGROUP = 286,\r
- CLEANING_WHEN = 287,\r
- CLEANING_BY = 288,\r
- CLOSING_WHEN = 289,\r
- SUCH = 290,\r
- THAT = 291,\r
- CUBE = 292,\r
- ROLLUP = 293,\r
- GROUPING_SETS = 294,\r
- TRUE_V = 295,\r
- FALSE_V = 296,\r
- TIMEVAL_L = 297,\r
- HEX_L = 298,\r
- LHEX_L = 299,\r
- IP_L = 300,\r
- IPV6_L = 301,\r
- MERGE = 302,\r
- SLACK = 303,\r
- DEFINE_SEC = 304,\r
- PARAM_SEC = 305,\r
- PROTOCOL = 306,\r
- TABLE = 307,\r
- STREAM = 308,\r
- FTA = 309,\r
- UNPACK_FCNS = 310,\r
- OPERATOR = 311,\r
- OPERATOR_VIEW = 312,\r
- FIELDS = 313,\r
- SUBQUERIES = 314,\r
- SELECTION_PUSHDOWN = 315\r
- };\r
-#endif\r
-/* Tokens. */\r
-#define NAME 258\r
-#define STRING_TOKEN 259\r
-#define INTNUM 260\r
-#define LONGINTNUM 261\r
-#define APPROXNUM 262\r
-#define OR 263\r
-#define AND 264\r
-#define NOT 265\r
-#define COMPARISON 266\r
-#define SHIFT_OP 267\r
-#define UMINUS 268\r
-#define SEMICOLON 269\r
-#define LEFTBRACE 270\r
-#define RIGHTBRACE 271\r
-#define BY 272\r
-#define AS 273\r
-#define AGGR 274\r
-#define FROM 275\r
-#define INNER_JOIN 276\r
-#define FILTER_JOIN 277\r
-#define OUTER_JOIN 278\r
-#define LEFT_OUTER_JOIN 279\r
-#define RIGHT_OUTER_JOIN 280\r
-#define GROUP 281\r
-#define HAVING 282\r
-#define IN 283\r
-#define SELECT 284\r
-#define WHERE 285\r
-#define SUPERGROUP 286\r
-#define CLEANING_WHEN 287\r
-#define CLEANING_BY 288\r
-#define CLOSING_WHEN 289\r
-#define SUCH 290\r
-#define THAT 291\r
-#define CUBE 292\r
-#define ROLLUP 293\r
-#define GROUPING_SETS 294\r
-#define TRUE_V 295\r
-#define FALSE_V 296\r
-#define TIMEVAL_L 297\r
-#define HEX_L 298\r
-#define LHEX_L 299\r
-#define IP_L 300\r
-#define IPV6_L 301\r
-#define MERGE 302\r
-#define SLACK 303\r
-#define DEFINE_SEC 304\r
-#define PARAM_SEC 305\r
-#define PROTOCOL 306\r
-#define TABLE 307\r
-#define STREAM 308\r
-#define FTA 309\r
-#define UNPACK_FCNS 310\r
-#define OPERATOR 311\r
-#define OPERATOR_VIEW 312\r
-#define FIELDS 313\r
-#define SUBQUERIES 314\r
-#define SELECTION_PUSHDOWN 315\r
-\r
-\r
-\r
-\r
-/* Copy the first part of user declarations. */\r
-#line 8 "fta.y"\r
-\r
-\r
-\r
-#include <stdio.h>\r
-\r
-/* Some addn'l includes, necessary but not included by the\r
- bison generated code.\r
-*/\r
-\r
-#include <stdlib.h>\r
-\r
-/* prototypes for the parser callbacks.\r
-*/\r
-\r
-#include "parse_fta.h"\r
-#include "parse_schema.h"\r
-\r
-\r
-extern fta_parse_t *fta_parse_result;\r
-extern var_defs_t *fta_parse_defines;\r
-\r
-\r
-#define YYDEBUG 1\r
-\r
-\r
-\r
-/* Enabling traces. */\r
-#ifndef YYDEBUG\r
-# define YYDEBUG 0\r
-#endif\r
-\r
-/* Enabling verbose error messages. */\r
-#ifdef YYERROR_VERBOSE\r
-# undef YYERROR_VERBOSE\r
-# define YYERROR_VERBOSE 1\r
-#else\r
-# define YYERROR_VERBOSE 0\r
-#endif\r
-\r
-/* Enabling the token table. */\r
-#ifndef YYTOKEN_TABLE\r
-# define YYTOKEN_TABLE 0\r
-#endif\r
-\r
-#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED\r
-typedef union YYSTYPE\r
-#line 37 "fta.y"\r
-{\r
- int intval;\r
- double floatval;\r
- char *strval;\r
- int subtok;\r
-\r
- string_t *stringval;\r
-\r
-/* for FTA definition. */\r
- literal_t *litval;\r
- scalarexp_t *scalarval;\r
- se_list_t *se_listval;\r
- select_list_t *select_listval;\r
- table_exp_t *tblp;\r
- predicate_t *predp;\r
- literal_list_t *lit_l;\r
- tablevar_t *table;\r
- tablevar_list_t *tbl_list;\r
- colref_t *colref;\r
- ifpref_t *ifpref;\r
- colref_list_t *clist;\r
- var_defs_t *var_defs;\r
- var_pair_t *var_pair;\r
- gb_t *gb_val;\r
- gb_list_t *gb_list;\r
- list_of_gb_list_t *list_of_gb_list;\r
- extended_gb_t *extended_gb;\r
- extended_gb_list_t *extended_gb_list;\r
-\r
- query_list_t *q_list;\r
-\r
-/* For table definition */\r
- field_entry *field_t;\r
- field_entry_list *field_list_t;\r
- table_def *table_def_t;\r
- table_list *table_list_schema;\r
- param_list *plist_t;\r
- name_vec *namevec_t;\r
- subquery_spec *subq_spec_t;\r
- subqueryspec_list *subqueryspec_list_t;\r
- unpack_fcn *ufcn;\r
- unpack_fcn_list *ufcnl;\r
-\r
-}\r
-/* Line 193 of yacc.c. */\r
-#line 295 "fta.tab.cc"\r
- YYSTYPE;\r
-# define yystype YYSTYPE /* obsolescent; will be withdrawn */\r
-# define YYSTYPE_IS_DECLARED 1\r
-# define YYSTYPE_IS_TRIVIAL 1\r
-#endif\r
-\r
-\r
-\r
-/* Copy the second part of user declarations. */\r
-\r
-\r
-/* Line 216 of yacc.c. */\r
-#line 308 "fta.tab.cc"\r
-\r
-#ifdef short\r
-# undef short\r
-#endif\r
-\r
-#ifdef YYTYPE_UINT8\r
-typedef YYTYPE_UINT8 yytype_uint8;\r
-#else\r
-typedef unsigned char yytype_uint8;\r
-#endif\r
-\r
-#ifdef YYTYPE_INT8\r
-typedef YYTYPE_INT8 yytype_int8;\r
-#elif (defined __STDC__ || defined __C99__FUNC__ \\r
- || defined __cplusplus || defined _MSC_VER)\r
-typedef signed char yytype_int8;\r
-#else\r
-typedef short int yytype_int8;\r
-#endif\r
-\r
-#ifdef YYTYPE_UINT16\r
-typedef YYTYPE_UINT16 yytype_uint16;\r
-#else\r
-typedef unsigned short int yytype_uint16;\r
-#endif\r
-\r
-#ifdef YYTYPE_INT16\r
-typedef YYTYPE_INT16 yytype_int16;\r
-#else\r
-typedef short int yytype_int16;\r
-#endif\r
-\r
-#ifndef YYSIZE_T\r
-# ifdef __SIZE_TYPE__\r
-# define YYSIZE_T __SIZE_TYPE__\r
-# elif defined size_t\r
-# define YYSIZE_T size_t\r
-# elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \\r
- || defined __cplusplus || defined _MSC_VER)\r
-# include <stddef.h> /* INFRINGES ON USER NAME SPACE */\r
-# define YYSIZE_T size_t\r
-# else\r
-# define YYSIZE_T unsigned int\r
-# endif\r
-#endif\r
-\r
-#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)\r
-\r
-#ifndef YY_\r
-# if YYENABLE_NLS\r
-# if ENABLE_NLS\r
-# include <libintl.h> /* INFRINGES ON USER NAME SPACE */\r
-# define YY_(msgid) dgettext ("bison-runtime", msgid)\r
-# endif\r
-# endif\r
-# ifndef YY_\r
-# define YY_(msgid) msgid\r
-# endif\r
-#endif\r
-\r
-/* Suppress unused-variable warnings by "using" E. */\r
-#if ! defined lint || defined __GNUC__\r
-# define YYUSE(e) ((void) (e))\r
-#else\r
-# define YYUSE(e) /* empty */\r
-#endif\r
-\r
-/* Identity function, used to suppress warnings about constant conditions. */\r
-#ifndef lint\r
-# define YYID(n) (n)\r
-#else\r
-#if (defined __STDC__ || defined __C99__FUNC__ \\r
- || defined __cplusplus || defined _MSC_VER)\r
-static int\r
-YYID (int i)\r
-#else\r
-static int\r
-YYID (i)\r
- int i;\r
-#endif\r
-{\r
- return i;\r
-}\r
-#endif\r
-\r
-#if ! defined yyoverflow || YYERROR_VERBOSE\r
-\r
-/* The parser invokes alloca or malloc; define the necessary symbols. */\r
-\r
-# ifdef YYSTACK_USE_ALLOCA\r
-# if YYSTACK_USE_ALLOCA\r
-# ifdef __GNUC__\r
-# define YYSTACK_ALLOC __builtin_alloca\r
-# elif defined __BUILTIN_VA_ARG_INCR\r
-# include <alloca.h> /* INFRINGES ON USER NAME SPACE */\r
-# elif defined _AIX\r
-# define YYSTACK_ALLOC __alloca\r
-# elif defined _MSC_VER\r
-# include <malloc.h> /* INFRINGES ON USER NAME SPACE */\r
-# define alloca _alloca\r
-# else\r
-# define YYSTACK_ALLOC alloca\r
-# if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \\r
- || defined __cplusplus || defined _MSC_VER)\r
-# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */\r
-# ifndef _STDLIB_H\r
-# define _STDLIB_H 1\r
-# endif\r
-# endif\r
-# endif\r
-# endif\r
-# endif\r
-\r
-# ifdef YYSTACK_ALLOC\r
- /* Pacify GCC's `empty if-body' warning. */\r
-# define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))\r
-# ifndef YYSTACK_ALLOC_MAXIMUM\r
- /* The OS might guarantee only one guard page at the bottom of the stack,\r
- and a page size can be as small as 4096 bytes. So we cannot safely\r
- invoke alloca (N) if N exceeds 4096. Use a slightly smaller number\r
- to allow for a few compiler-allocated temporary stack slots. */\r
-# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */\r
-# endif\r
-# else\r
-# define YYSTACK_ALLOC YYMALLOC\r
-# define YYSTACK_FREE YYFREE\r
-# ifndef YYSTACK_ALLOC_MAXIMUM\r
-# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM\r
-# endif\r
-# if (defined __cplusplus && ! defined _STDLIB_H \\r
- && ! ((defined YYMALLOC || defined malloc) \\r
- && (defined YYFREE || defined free)))\r
-# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */\r
-# ifndef _STDLIB_H\r
-# define _STDLIB_H 1\r
-# endif\r
-# endif\r
-# ifndef YYMALLOC\r
-# define YYMALLOC malloc\r
-# if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \\r
- || defined __cplusplus || defined _MSC_VER)\r
-void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */\r
-# endif\r
-# endif\r
-# ifndef YYFREE\r
-# define YYFREE free\r
-# if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \\r
- || defined __cplusplus || defined _MSC_VER)\r
-void free (void *); /* INFRINGES ON USER NAME SPACE */\r
-# endif\r
-# endif\r
-# endif\r
-#endif /* ! defined yyoverflow || YYERROR_VERBOSE */\r
-\r
-\r
-#if (! defined yyoverflow \\r
- && (! defined __cplusplus \\r
- || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))\r
-\r
-/* A type that is properly aligned for any stack member. */\r
-union yyalloc\r
-{\r
- yytype_int16 yyss;\r
- YYSTYPE yyvs;\r
- };\r
-\r
-/* The size of the maximum gap between one aligned stack and the next. */\r
-# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)\r
-\r
-/* The size of an array large to enough to hold all stacks, each with\r
- N elements. */\r
-# define YYSTACK_BYTES(N) \\r
- ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \\r
- + YYSTACK_GAP_MAXIMUM)\r
-\r
-/* Copy COUNT objects from FROM to TO. The source and destination do\r
- not overlap. */\r
-# ifndef YYCOPY\r
-# if defined __GNUC__ && 1 < __GNUC__\r
-# define YYCOPY(To, From, Count) \\r
- __builtin_memcpy (To, From, (Count) * sizeof (*(From)))\r
-# else\r
-# define YYCOPY(To, From, Count) \\r
- do \\r
- { \\r
- YYSIZE_T yyi; \\r
- for (yyi = 0; yyi < (Count); yyi++) \\r
- (To)[yyi] = (From)[yyi]; \\r
- } \\r
- while (YYID (0))\r
-# endif\r
-# endif\r
-\r
-/* Relocate STACK from its old location to the new one. The\r
- local variables YYSIZE and YYSTACKSIZE give the old and new number of\r
- elements in the stack, and YYPTR gives the new location of the\r
- stack. Advance YYPTR to a properly aligned location for the next\r
- stack. */\r
-# define YYSTACK_RELOCATE(Stack) \\r
- do \\r
- { \\r
- YYSIZE_T yynewbytes; \\r
- YYCOPY (&yyptr->Stack, Stack, yysize); \\r
- Stack = &yyptr->Stack; \\r
- yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \\r
- yyptr += yynewbytes / sizeof (*yyptr); \\r
- } \\r
- while (YYID (0))\r
-\r
-#endif\r
-\r
-/* YYFINAL -- State number of the termination state. */\r
-#define YYFINAL 57\r
-/* YYLAST -- Last index in YYTABLE. */\r
-#define YYLAST 708\r
-\r
-/* YYNTOKENS -- Number of terminals. */\r
-#define YYNTOKENS 80\r
-/* YYNNTS -- Number of nonterminals. */\r
-#define YYNNTS 59\r
-/* YYNRULES -- Number of rules. */\r
-#define YYNRULES 176\r
-/* YYNRULES -- Number of states. */\r
-#define YYNSTATES 377\r
-\r
-/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */\r
-#define YYUNDEFTOK 2\r
-#define YYMAXUTOK 315\r
-\r
-#define YYTRANSLATE(YYX) \\r
- ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)\r
-\r
-/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */\r
-static const yytype_uint8 yytranslate[] =\r
-{\r
- 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,\r
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,\r
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,\r
- 2, 2, 2, 74, 2, 77, 76, 19, 13, 2,\r
- 68, 70, 17, 15, 69, 16, 71, 18, 2, 2,\r
- 2, 2, 2, 2, 2, 2, 2, 2, 79, 2,\r
- 2, 2, 2, 2, 78, 2, 2, 2, 2, 2,\r
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,\r
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,\r
- 2, 72, 2, 73, 2, 2, 2, 2, 2, 2,\r
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,\r
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,\r
- 2, 2, 2, 2, 12, 2, 75, 2, 2, 2,\r
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,\r
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,\r
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,\r
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,\r
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,\r
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,\r
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,\r
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,\r
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,\r
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,\r
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,\r
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,\r
- 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,\r
- 5, 6, 7, 8, 9, 10, 11, 14, 20, 21,\r
- 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,\r
- 32, 33, 34, 35, 36, 37, 38, 39, 40, 41,\r
- 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,\r
- 52, 53, 54, 55, 56, 57, 58, 59, 60, 61,\r
- 62, 63, 64, 65, 66, 67\r
-};\r
-\r
-#if YYDEBUG\r
-/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in\r
- YYRHS. */\r
-static const yytype_uint16 yyprhs[] =\r
-{\r
- 0, 0, 3, 5, 7, 13, 17, 21, 24, 27,\r
- 29, 33, 37, 40, 43, 45, 47, 51, 56, 60,\r
- 65, 69, 71, 74, 78, 82, 86, 90, 96, 98,\r
- 107, 110, 114, 118, 122, 126, 135, 137, 141, 143,\r
- 146, 148, 152, 158, 164, 170, 172, 176, 177, 179,\r
- 182, 183, 186, 187, 190, 191, 194, 195, 197, 200,\r
- 204, 208, 211, 215, 217, 219, 221, 225, 230, 234,\r
- 240, 242, 246, 250, 254, 258, 262, 266, 270, 274,\r
- 278, 281, 284, 287, 290, 292, 295, 297, 299, 303,\r
- 308, 313, 318, 322, 328, 334, 340, 345, 347, 351,\r
- 355, 361, 363, 367, 369, 371, 373, 375, 377, 379,\r
- 382, 385, 388, 391, 394, 397, 398, 402, 403, 406,\r
- 410, 416, 418, 423, 428, 433, 435, 439, 441, 445,\r
- 447, 451, 457, 461, 464, 469, 471, 475, 481, 485,\r
- 489, 491, 495, 499, 501, 504, 512, 519, 536, 541,\r
- 543, 547, 551, 553, 557, 562, 564, 567, 574, 579,\r
- 580, 584, 586, 589, 592, 595, 599, 604, 609, 614,\r
- 615, 619, 620, 624, 626, 630, 634\r
-};\r
-\r
-/* YYRHS -- A `-1'-separated list of the rules' RHS. */\r
-static const yytype_int16 yyrhs[] =\r
-{\r
- 81, 0, -1, 83, -1, 125, -1, 61, 22, 125,\r
- 82, 23, -1, 85, 84, 88, -1, 84, 85, 88,\r
- -1, 84, 88, -1, 85, 88, -1, 88, -1, 85,\r
- 84, 89, -1, 84, 85, 89, -1, 84, 89, -1,\r
- 85, 89, -1, 89, -1, 82, -1, 83, 21, 82,\r
- -1, 57, 22, 86, 23, -1, 57, 22, 23, -1,\r
- 56, 22, 86, 23, -1, 56, 22, 23, -1, 87,\r
- -1, 86, 87, -1, 3, 4, 21, -1, 3, 3,\r
- 21, -1, 36, 90, 91, -1, 54, 122, 92, -1,\r
- 54, 122, 55, 109, 92, -1, 110, -1, 92, 97,\r
- 113, 114, 102, 99, 100, 101, -1, 27, 93, -1,\r
- 28, 27, 93, -1, 30, 27, 93, -1, 32, 27,\r
- 93, -1, 31, 27, 93, -1, 29, 68, 121, 69,\r
- 5, 70, 27, 93, -1, 94, -1, 93, 69, 94,\r
- -1, 95, -1, 95, 3, -1, 96, -1, 3, 71,\r
- 96, -1, 3, 71, 3, 71, 96, -1, 4, 71,\r
- 3, 71, 96, -1, 72, 3, 73, 71, 96, -1,\r
- 3, -1, 96, 18, 3, -1, -1, 98, -1, 37,\r
- 104, -1, -1, 39, 104, -1, -1, 40, 104, -1,\r
- -1, 41, 104, -1, -1, 103, -1, 34, 104, -1,\r
- 104, 8, 104, -1, 104, 9, 104, -1, 10, 104,\r
- -1, 68, 104, 70, -1, 105, -1, 106, -1, 107,\r
- -1, 3, 72, 73, -1, 3, 72, 111, 73, -1,\r
- 109, 11, 109, -1, 109, 35, 72, 108, 73, -1,\r
- 112, -1, 108, 69, 112, -1, 109, 15, 109, -1,\r
- 109, 16, 109, -1, 109, 12, 109, -1, 109, 17,\r
- 109, -1, 109, 18, 109, -1, 109, 13, 109, -1,\r
- 109, 19, 109, -1, 109, 14, 109, -1, 15, 109,\r
- -1, 16, 109, -1, 74, 109, -1, 75, 109, -1,\r
- 112, -1, 76, 3, -1, 120, -1, 121, -1, 68,\r
- 109, 70, -1, 26, 68, 17, 70, -1, 26, 68,\r
- 109, 70, -1, 3, 68, 111, 70, -1, 3, 68,\r
- 70, -1, 26, 76, 68, 17, 70, -1, 26, 76,\r
- 68, 109, 70, -1, 3, 76, 68, 111, 70, -1,\r
- 3, 76, 68, 70, -1, 109, -1, 109, 25, 3,\r
- -1, 110, 69, 109, -1, 110, 69, 109, 25, 3,\r
- -1, 109, -1, 111, 69, 109, -1, 4, -1, 5,\r
- -1, 6, -1, 7, -1, 47, -1, 48, -1, 49,\r
- 4, -1, 50, 4, -1, 51, 4, -1, 52, 4,\r
- -1, 53, 4, -1, 77, 3, -1, -1, 33, 24,\r
- 117, -1, -1, 38, 124, -1, 68, 118, 70, -1,\r
- 115, 69, 68, 118, 70, -1, 119, -1, 45, 68,\r
- 118, 70, -1, 44, 68, 118, 70, -1, 46, 68,\r
- 115, 70, -1, 116, -1, 117, 69, 116, -1, 119,\r
- -1, 118, 69, 119, -1, 3, -1, 3, 71, 3,\r
- -1, 3, 71, 3, 71, 3, -1, 109, 25, 3,\r
- -1, 78, 3, -1, 3, 71, 78, 3, -1, 3,\r
- -1, 3, 71, 3, -1, 3, 71, 3, 71, 3,\r
- -1, 121, 79, 121, -1, 122, 79, 121, -1, 3,\r
- -1, 123, 69, 123, -1, 124, 69, 123, -1, 126,\r
- -1, 125, 126, -1, 58, 3, 136, 135, 22, 131,\r
- 23, -1, 60, 96, 136, 22, 131, 23, -1, 64,\r
- 3, 22, 63, 133, 65, 22, 131, 23, 66, 22,\r
- 129, 23, 67, 133, 23, -1, 62, 22, 127, 23,\r
- -1, 128, -1, 127, 21, 128, -1, 3, 3, 5,\r
- -1, 130, -1, 129, 21, 130, -1, 3, 68, 138,\r
- 70, -1, 132, -1, 131, 132, -1, 3, 3, 3,\r
- 133, 135, 21, -1, 3, 3, 133, 21, -1, -1,\r
- 68, 134, 70, -1, 3, -1, 3, 3, -1, 3,\r
- 4, -1, 3, 5, -1, 134, 69, 3, -1, 134,\r
- 69, 3, 3, -1, 134, 69, 3, 4, -1, 134,\r
- 69, 3, 5, -1, -1, 72, 137, 73, -1, -1,\r
- 68, 137, 70, -1, 3, -1, 137, 69, 3, -1,\r
- 3, 3, 133, -1, 138, 69, 3, 3, 133, -1\r
-};\r
-\r
-/* YYRLINE[YYN] -- source line where rule number YYN was defined. */\r
-static const yytype_uint16 yyrline[] =\r
-{\r
- 0, 189, 189, 194, 201, 215, 220, 225, 230, 234,\r
- 237, 242, 247, 251, 255, 260, 261, 265, 266, 270,\r
- 271, 275, 276, 280, 281, 285, 289, 291, 299, 303,\r
- 315, 316, 317, 318, 319, 320, 324, 325, 329, 330,\r
- 334, 335, 336, 337, 338, 342, 343, 348, 349, 353,\r
- 357, 358, 362, 363, 367, 368, 372, 373, 377, 384,\r
- 385, 386, 387, 388, 392, 393, 394, 395, 399, 403,\r
- 407, 408, 414, 415, 416, 417, 418, 419, 420, 421,\r
- 422, 423, 424, 425, 426, 427, 428, 429, 430, 431,\r
- 432, 433, 434, 435, 436, 437, 438, 443, 444, 445,\r
- 446, 450, 451, 455, 456, 457, 458, 459, 460, 461,\r
- 462, 463, 464, 465, 466, 472, 473, 477, 478, 482,\r
- 483, 487, 488, 489, 490, 494, 495, 499, 500, 504,\r
- 505, 506, 507, 518, 519, 523, 524, 525, 529, 530,\r
- 534, 538, 539, 554, 555, 558, 560, 562, 564, 568,\r
- 569, 573, 577, 578, 582, 585, 586, 590, 591, 595,\r
- 596, 600, 601, 602, 603, 604, 605, 606, 607, 611,\r
- 612, 616, 617, 621, 622, 626, 627\r
-};\r
-#endif\r
-\r
-#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE\r
-/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.\r
- First, the terminals, then, starting at YYNTOKENS, nonterminals. */\r
-static const char *const yytname[] =\r
-{\r
- "$end", "error", "$undefined", "NAME", "STRING_TOKEN", "INTNUM",\r
- "LONGINTNUM", "APPROXNUM", "OR", "AND", "NOT", "COMPARISON", "'|'",\r
- "'&'", "SHIFT_OP", "'+'", "'-'", "'*'", "'/'", "'%'", "UMINUS",\r
- "SEMICOLON", "LEFTBRACE", "RIGHTBRACE", "BY", "AS", "AGGR", "FROM",\r
- "INNER_JOIN", "FILTER_JOIN", "OUTER_JOIN", "LEFT_OUTER_JOIN",\r
- "RIGHT_OUTER_JOIN", "GROUP", "HAVING", "IN", "SELECT", "WHERE",\r
- "SUPERGROUP", "CLEANING_WHEN", "CLEANING_BY", "CLOSING_WHEN", "SUCH",\r
- "THAT", "CUBE", "ROLLUP", "GROUPING_SETS", "TRUE_V", "FALSE_V",\r
- "TIMEVAL_L", "HEX_L", "LHEX_L", "IP_L", "IPV6_L", "MERGE", "SLACK",\r
- "DEFINE_SEC", "PARAM_SEC", "PROTOCOL", "TABLE", "STREAM", "FTA",\r
- "UNPACK_FCNS", "OPERATOR", "OPERATOR_VIEW", "FIELDS", "SUBQUERIES",\r
- "SELECTION_PUSHDOWN", "'('", "','", "')'", "'.'", "'['", "']'", "'!'",\r
- "'~'", "'$'", "'#'", "'@'", "':'", "$accept", "parse_result", "gsql",\r
- "query_list", "params_def", "variable_def", "variable_list",\r
- "variable_assign", "select_statement", "merge_statement", "selection",\r
- "table_exp", "from_clause", "table_ref_commalist", "table_ref", "table",\r
- "qname", "opt_where_clause", "where_clause", "opt_cleaning_when_clause",\r
- "opt_cleaning_by_clause", "opt_closing_when_clause", "opt_having_clause",\r
- "having_clause", "search_condition", "predicate", "comparison_predicate",\r
- "in_predicate", "literal_commalist", "scalar_exp", "select_commalist",\r
- "scalar_exp_commalist", "literal", "opt_group_by_clause",\r
- "opt_supergroup_clause", "list_of_gb_commalist", "extended_gb",\r
- "extended_gb_commalist", "gb_commalist", "gb", "ifparam", "column_ref",\r
- "column_ref_list", "gb_ref", "gb_ref_list", "table_list", "table_def",\r
- "unpack_func_list", "unpack_func", "subqueryspec_list", "subq_spec",\r
- "field_list", "field", "opt_param_commalist", "param_commalist",\r
- "opt_singleparam_commalist_bkt", "opt_singleparam_commalist",\r
- "singleparam_commalist", "namevec_commalist", 0\r
-};\r
-#endif\r
-\r
-# ifdef YYPRINT\r
-/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to\r
- token YYLEX-NUM. */\r
-static const yytype_uint16 yytoknum[] =\r
-{\r
- 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,\r
- 265, 266, 124, 38, 267, 43, 45, 42, 47, 37,\r
- 268, 269, 270, 271, 272, 273, 274, 275, 276, 277,\r
- 278, 279, 280, 281, 282, 283, 284, 285, 286, 287,\r
- 288, 289, 290, 291, 292, 293, 294, 295, 296, 297,\r
- 298, 299, 300, 301, 302, 303, 304, 305, 306, 307,\r
- 308, 309, 310, 311, 312, 313, 314, 315, 40, 44,\r
- 41, 46, 91, 93, 33, 126, 36, 35, 64, 58\r
-};\r
-# endif\r
-\r
-/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */\r
-static const yytype_uint8 yyr1[] =\r
-{\r
- 0, 80, 81, 81, 81, 82, 82, 82, 82, 82,\r
- 82, 82, 82, 82, 82, 83, 83, 84, 84, 85,\r
- 85, 86, 86, 87, 87, 88, 89, 89, 90, 91,\r
- 92, 92, 92, 92, 92, 92, 93, 93, 94, 94,\r
- 95, 95, 95, 95, 95, 96, 96, 97, 97, 98,\r
- 99, 99, 100, 100, 101, 101, 102, 102, 103, 104,\r
- 104, 104, 104, 104, 105, 105, 105, 105, 106, 107,\r
- 108, 108, 109, 109, 109, 109, 109, 109, 109, 109,\r
- 109, 109, 109, 109, 109, 109, 109, 109, 109, 109,\r
- 109, 109, 109, 109, 109, 109, 109, 110, 110, 110,\r
- 110, 111, 111, 112, 112, 112, 112, 112, 112, 112,\r
- 112, 112, 112, 112, 112, 113, 113, 114, 114, 115,\r
- 115, 116, 116, 116, 116, 117, 117, 118, 118, 119,\r
- 119, 119, 119, 120, 120, 121, 121, 121, 122, 122,\r
- 123, 124, 124, 125, 125, 126, 126, 126, 126, 127,\r
- 127, 128, 129, 129, 130, 131, 131, 132, 132, 133,\r
- 133, 134, 134, 134, 134, 134, 134, 134, 134, 135,\r
- 135, 136, 136, 137, 137, 138, 138\r
-};\r
-\r
-/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */\r
-static const yytype_uint8 yyr2[] =\r
-{\r
- 0, 2, 1, 1, 5, 3, 3, 2, 2, 1,\r
- 3, 3, 2, 2, 1, 1, 3, 4, 3, 4,\r
- 3, 1, 2, 3, 3, 3, 3, 5, 1, 8,\r
- 2, 3, 3, 3, 3, 8, 1, 3, 1, 2,\r
- 1, 3, 5, 5, 5, 1, 3, 0, 1, 2,\r
- 0, 2, 0, 2, 0, 2, 0, 1, 2, 3,\r
- 3, 2, 3, 1, 1, 1, 3, 4, 3, 5,\r
- 1, 3, 3, 3, 3, 3, 3, 3, 3, 3,\r
- 2, 2, 2, 2, 1, 2, 1, 1, 3, 4,\r
- 4, 4, 3, 5, 5, 5, 4, 1, 3, 3,\r
- 5, 1, 3, 1, 1, 1, 1, 1, 1, 2,\r
- 2, 2, 2, 2, 2, 0, 3, 0, 2, 3,\r
- 5, 1, 4, 4, 4, 1, 3, 1, 3, 1,\r
- 3, 5, 3, 2, 4, 1, 3, 5, 3, 3,\r
- 1, 3, 3, 1, 2, 7, 6, 16, 4, 1,\r
- 3, 3, 1, 3, 4, 1, 2, 6, 4, 0,\r
- 3, 1, 2, 2, 2, 3, 4, 4, 4, 0,\r
- 3, 0, 3, 1, 3, 3, 5\r
-};\r
-\r
-/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state\r
- STATE-NUM when YYTABLE doesn't specify something else to do. Zero\r
- means the default is an error. */\r
-static const yytype_uint8 yydefact[] =\r
-{\r
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\r
- 0, 15, 2, 0, 0, 9, 14, 3, 143, 135,\r
- 103, 104, 105, 106, 0, 0, 0, 107, 108, 0,\r
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\r
- 0, 97, 28, 84, 86, 87, 135, 0, 0, 0,\r
- 0, 171, 45, 171, 0, 0, 0, 1, 0, 0,\r
- 7, 12, 0, 8, 13, 144, 0, 0, 0, 80,\r
- 81, 0, 0, 109, 110, 111, 112, 113, 0, 82,\r
- 83, 85, 114, 133, 0, 0, 0, 0, 0, 0,\r
- 25, 47, 0, 0, 0, 0, 0, 0, 0, 0,\r
- 0, 0, 0, 0, 0, 0, 26, 0, 20, 0,\r
- 21, 18, 0, 0, 169, 0, 0, 0, 0, 0,\r
- 149, 0, 16, 6, 11, 5, 10, 92, 101, 0,\r
- 136, 0, 0, 0, 0, 0, 88, 45, 0, 0,\r
- 30, 36, 38, 40, 0, 0, 0, 0, 0, 0,\r
- 115, 48, 74, 77, 79, 72, 73, 75, 76, 78,\r
- 98, 99, 138, 0, 139, 0, 0, 19, 22, 17,\r
- 173, 0, 0, 0, 46, 0, 0, 0, 0, 148,\r
- 159, 0, 91, 0, 134, 96, 0, 89, 90, 0,\r
- 0, 0, 0, 0, 0, 39, 31, 0, 32, 34,\r
- 33, 135, 0, 0, 49, 63, 64, 65, 0, 0,\r
- 117, 0, 27, 24, 23, 0, 172, 0, 0, 0,\r
- 0, 155, 4, 151, 150, 0, 0, 102, 137, 95,\r
- 93, 94, 45, 41, 0, 0, 37, 0, 0, 61,\r
- 0, 0, 0, 0, 0, 0, 0, 0, 56, 100,\r
- 174, 170, 0, 159, 146, 156, 161, 0, 0, 0,\r
- 0, 0, 0, 66, 0, 62, 59, 60, 68, 0,\r
- 129, 0, 0, 0, 0, 125, 116, 121, 140, 0,\r
- 118, 0, 50, 57, 145, 159, 0, 162, 163, 164,\r
- 0, 160, 0, 42, 43, 44, 0, 67, 0, 70,\r
- 0, 0, 0, 0, 0, 0, 0, 0, 58, 0,\r
- 52, 169, 158, 165, 0, 0, 0, 69, 130, 0,\r
- 127, 0, 0, 0, 132, 126, 141, 142, 51, 0,\r
- 54, 0, 166, 167, 168, 0, 35, 71, 0, 0,\r
- 123, 122, 0, 0, 124, 53, 0, 29, 157, 0,\r
- 131, 128, 119, 0, 55, 0, 0, 0, 0, 152,\r
- 120, 0, 0, 0, 0, 0, 153, 159, 159, 0,\r
- 154, 0, 175, 0, 147, 159, 176\r
-};\r
-\r
-/* YYDEFGOTO[NTERM-NUM]. */\r
-static const yytype_int16 yydefgoto[] =\r
-{\r
- -1, 10, 11, 12, 13, 14, 109, 110, 15, 16,\r
- 40, 90, 91, 140, 141, 142, 143, 150, 151, 310,\r
- 330, 347, 282, 283, 204, 205, 206, 207, 298, 208,\r
- 42, 129, 43, 210, 248, 323, 275, 276, 319, 320,\r
- 44, 45, 48, 279, 280, 17, 18, 119, 120, 358,\r
- 359, 220, 221, 226, 257, 173, 114, 171, 365\r
-};\r
-\r
-/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing\r
- STATE-NUM. */\r
-#define YYPACT_NINF -247\r
-static const yytype_int16 yypact[] =\r
-{\r
- 121, 535, 76, 6, 60, 85, 115, 111, 132, 123,\r
- 165, -247, 147, -9, 117, -247, -247, 178, -247, 87,\r
- -247, -247, -247, -247, 535, 535, -24, -247, -247, 207,\r
- 219, 223, 235, 242, 535, 535, 535, 198, 222, 266,\r
- 261, 554, 230, -247, -247, -247, 243, 238, 360, 104,\r
- 107, 252, -247, 18, 178, 319, 329, -247, -14, 163,\r
- -247, -247, 163, -247, -247, -247, 200, 12, 295, -247,\r
- -247, 279, 301, -247, -247, -247, -247, -247, 294, -247,\r
- -247, -247, -247, -247, 13, 366, 326, 373, 374, 397,\r
- -247, 359, 535, 535, 535, 535, 535, 535, 535, 535,\r
- 423, 535, 424, 76, 535, 76, -247, 63, -247, 113,\r
- -247, -247, 153, 425, 362, 432, 414, 422, 435, 30,\r
- -247, 377, -247, -247, -247, -247, -247, -247, 689, 197,\r
- 370, 439, 355, 383, 327, 369, -247, 385, 386, 451,\r
- 390, -247, 464, 450, 13, 76, 13, 13, 13, 445,\r
- 436, -247, 486, 395, 318, 191, 191, -247, -247, -247,\r
- -247, 645, -247, 624, -247, 449, 452, -247, -247, -247,\r
- -247, 210, 425, 455, -247, 469, 458, 478, 319, -247,\r
- 419, 535, -247, 485, -247, -247, 228, -247, -247, 420,\r
- 616, 488, 511, 416, 13, -247, 390, 446, 390, 390,\r
- 390, 247, 445, 445, 205, -247, -247, -247, 126, 492,\r
- 479, 515, -247, -247, -247, 521, -247, -19, 469, 522,\r
- 161, -247, -247, -247, -247, 523, 463, 689, -247, -247,\r
- -247, -247, 460, 450, 472, 473, -247, 524, 459, -247,\r
- 11, 246, 445, 445, 535, 474, 144, 527, 513, -247,\r
- -247, -247, 164, 15, -247, -247, 268, 233, 526, 115,\r
- 115, 115, 475, -247, 59, -247, 540, -247, 689, 25,\r
- 43, 489, 490, 491, 659, -247, 493, -247, -247, 494,\r
- 505, 445, 537, -247, -247, 419, 539, -247, -247, -247,\r
- 574, -247, 469, 450, 450, 450, 551, -247, 93, -247,\r
- 23, 549, 549, 512, 578, 144, 527, 527, 205, 445,\r
- 550, 362, -247, 345, 221, 13, 25, -247, 216, 255,\r
- -247, 296, 549, 298, -247, -247, -247, -247, 205, 445,\r
- 548, 570, -247, -247, -247, 528, 390, -247, 589, 549,\r
- -247, -247, 308, 525, -247, 205, 445, -247, -247, 573,\r
- 675, -247, -247, 549, 205, 601, 310, 538, 177, -247,\r
- -247, 602, 601, 541, 604, 313, -247, 419, 419, 611,\r
- -247, 592, -247, 613, -247, 419, -247\r
-};\r
-\r
-/* YYPGOTO[NTERM-NUM]. */\r
-static const yytype_int16 yypgoto[] =\r
-{\r
- -247, -247, -37, -247, 605, 607, 568, -71, 50, 110,\r
- -247, -247, -38, -142, 427, -247, -5, -247, -247, -247,\r
- -247, -247, -247, -247, -194, -247, -247, -247, -247, -1,\r
- -247, -121, -232, -247, -247, -247, 317, -247, -233, -234,\r
- -247, 1, -247, 92, -247, 590, -4, -247, 467, -247,\r
- 284, -193, -206, -246, -247, 336, 595, 477, -247\r
-};\r
-\r
-/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If\r
- positive, shift that token. If negative, reduce the rule which\r
- number is the opposite. If zero, do what YYDEFACT says.\r
- If YYTABLE_NINF, syntax error. */\r
-#define YYTABLE_NINF -138\r
-static const yytype_int16 yytable[] =\r
-{\r
- 41, 53, 196, 47, 198, 199, 200, 286, 239, 240,\r
- 106, 186, 277, 65, 255, 130, 137, 138, 285, 242,\r
- 243, 122, 1, 69, 70, 252, 318, 1, 49, 20,\r
- 21, 22, 23, 78, 79, 80, 115, 299, 168, 311,\r
- 2, 168, 3, 4, 71, 2, 255, 3, 266, 267,\r
- 215, 178, 72, 179, 251, -135, -135, -135, -135, -135,\r
- -135, -135, -135, 60, 63, 128, 165, 166, -135, 321,\r
- 134, 277, 27, 28, 29, 30, 31, 32, 33, 46,\r
- 176, 265, 50, 225, 337, 139, 113, 308, 51, 342,\r
- 131, 152, 153, 154, 155, 156, 157, 158, 159, 314,\r
- 161, 131, 38, 163, 162, 351, 164, 107, 255, 123,\r
- 107, 66, 125, 65, 300, 328, 107, 264, 52, 68,\r
- 356, 371, 372, 61, 64, 212, 56, 108, 181, 376,\r
- 111, 128, 297, 54, 190, 345, 167, 244, 92, 93,\r
- 94, 95, 96, 97, 98, 99, 197, 270, 20, 21,\r
- 22, 23, 354, 1, 55, 66, 107, 1, 67, 24,\r
- 25, 245, 316, 68, 219, 57, 317, 219, 58, 124,\r
- 26, 2, 126, 336, 4, 2, 169, 3, 4, 5,\r
- 227, 6, 7, 8, 254, 9, 233, 284, 271, 272,\r
- 273, 27, 28, 29, 30, 31, 32, 33, 362, 1,\r
- 363, 81, 241, 19, 20, 21, 22, 23, 97, 98,\r
- 99, 73, 34, 242, 243, 24, 25, 2, 35, 36,\r
- 37, 38, 39, 74, 219, 82, 26, 75, -136, -136,\r
- -136, -136, -136, -136, -136, -136, 5, 128, 6, 76,\r
- 8, -136, 9, 268, 335, 274, 77, 27, 28, 29,\r
- 30, 31, 32, 33, 293, 294, 295, 244, 92, 93,\r
- 94, 95, 96, 97, 98, 99, 181, 182, 34, 83,\r
- 127, 287, 288, 289, 35, 36, 37, 38, 39, 215,\r
- 216, 245, 19, 20, 21, 22, 23, 338, 84, 85,\r
- 86, 87, 88, 89, 24, 25, 133, 181, 229, 101,\r
- 274, 274, 290, 291, 274, 26, 92, 93, 94, 95,\r
- 96, 97, 98, 99, 102, 66, 136, 103, 67, 238,\r
- 113, 274, 118, 68, 339, 340, 27, 28, 29, 30,\r
- 31, 32, 33, 95, 96, 97, 98, 99, 274, 92,\r
- 93, 94, 95, 96, 97, 98, 99, 34, 332, 333,\r
- 334, 121, 274, 35, 36, 37, 38, 39, 19, 20,\r
- 21, 22, 23, 132, 136, 339, 341, 343, 344, 135,\r
- 24, 25, 19, 20, 21, 22, 23, 339, 352, 339,\r
- 360, 26, 369, 370, 24, 25, 189, 84, 85, 86,\r
- 87, 88, 89, 144, 145, 26, 149, 188, 326, 327,\r
- 146, 147, 27, 28, 29, 30, 31, 32, 33, 94,\r
- 95, 96, 97, 98, 99, 104, 27, 28, 29, 30,\r
- 31, 32, 33, 34, 148, 185, 160, 130, 170, 35,\r
- 36, 37, 38, 39, 172, 174, 175, 34, 177, 105,\r
- 180, 183, 184, 35, 36, 37, 38, 39, 201, 20,\r
- 21, 22, 23, 187, 193, 202, 191, 192, 1, 194,\r
- 24, 25, 19, 20, 21, 22, 23, 195, 115, 209,\r
- 213, 26, 219, 214, 24, 25, 2, 218, 3, 4,\r
- 5, 222, 6, 223, 8, 26, 9, 225, 228, 235,\r
- 230, 232, 27, 28, 29, 30, 31, 32, 33, 93,\r
- 94, 95, 96, 97, 98, 99, 27, 28, 29, 30,\r
- 31, 32, 33, 203, 234, 237, 246, 247, 249, 35,\r
- 36, 37, 38, 39, 250, 253, 256, 34, 258, 262,\r
- 278, 259, 263, 35, 36, 37, 38, 39, 19, 20,\r
- 21, 22, 23, 260, 261, 296, 269, 281, 292, 243,\r
- 24, 25, 270, 20, 21, 22, 23, 301, 302, 303,\r
- 312, 26, 305, 306, 24, 25, 92, 93, 94, 95,\r
- 96, 97, 98, 99, 307, 26, 309, 313, 315, 100,\r
- 322, 324, 27, 28, 29, 30, 31, 32, 33, 346,\r
- 329, 348, 350, 353, 349, 355, 27, 28, 29, 30,\r
- 31, 32, 33, 34, 357, 364, 361, 368, 367, 35,\r
- 36, 37, 38, 39, 373, 374, 375, 34, 112, 62,\r
- 59, 236, 325, 35, 36, 37, 38, 39, 92, 93,\r
- 94, 95, 96, 97, 98, 99, 92, 93, 94, 95,\r
- 96, 97, 98, 99, 117, 224, 366, 331, 116, 217,\r
- 0, 84, 85, 86, 87, 88, 89, 92, 93, 94,\r
- 95, 96, 97, 98, 99, 0, 0, 0, 0, 0,\r
- 211, 92, 93, 94, 95, 96, 97, 98, 99, 0,\r
- 0, 0, 0, 0, 304, 0, 231, -137, -137, -137,\r
- -137, -137, -137, -137, -137, 0, 0, 0, 0, 0,\r
- -137, 92, 93, 94, 95, 96, 97, 98, 99\r
-};\r
-\r
-static const yytype_int16 yycheck[] =\r
-{\r
- 1, 6, 144, 2, 146, 147, 148, 253, 202, 203,\r
- 48, 132, 246, 17, 220, 3, 3, 4, 3, 8,\r
- 9, 58, 36, 24, 25, 218, 3, 36, 22, 4,\r
- 5, 6, 7, 34, 35, 36, 18, 269, 109, 285,\r
- 54, 112, 56, 57, 68, 54, 252, 56, 242, 243,\r
- 69, 21, 76, 23, 73, 12, 13, 14, 15, 16,\r
- 17, 18, 19, 13, 14, 66, 3, 4, 25, 302,\r
- 71, 305, 47, 48, 49, 50, 51, 52, 53, 3,\r
- 117, 70, 22, 68, 316, 72, 68, 281, 3, 322,\r
- 78, 92, 93, 94, 95, 96, 97, 98, 99, 292,\r
- 101, 78, 77, 104, 103, 339, 105, 3, 314, 59,\r
- 3, 68, 62, 117, 71, 309, 3, 238, 3, 76,\r
- 353, 367, 368, 13, 14, 163, 3, 23, 69, 375,\r
- 23, 132, 73, 22, 135, 329, 23, 11, 12, 13,\r
- 14, 15, 16, 17, 18, 19, 145, 3, 4, 5,\r
- 6, 7, 346, 36, 22, 68, 3, 36, 71, 15,\r
- 16, 35, 69, 76, 3, 0, 73, 3, 21, 59,\r
- 26, 54, 62, 315, 57, 54, 23, 56, 57, 58,\r
- 181, 60, 61, 62, 23, 64, 191, 23, 44, 45,\r
- 46, 47, 48, 49, 50, 51, 52, 53, 21, 36,\r
- 23, 3, 203, 3, 4, 5, 6, 7, 17, 18,\r
- 19, 4, 68, 8, 9, 15, 16, 54, 74, 75,\r
- 76, 77, 78, 4, 3, 3, 26, 4, 12, 13,\r
- 14, 15, 16, 17, 18, 19, 58, 238, 60, 4,\r
- 62, 25, 64, 244, 23, 246, 4, 47, 48, 49,\r
- 50, 51, 52, 53, 259, 260, 261, 11, 12, 13,\r
- 14, 15, 16, 17, 18, 19, 69, 70, 68, 3,\r
- 70, 3, 4, 5, 74, 75, 76, 77, 78, 69,\r
- 70, 35, 3, 4, 5, 6, 7, 71, 27, 28,\r
- 29, 30, 31, 32, 15, 16, 17, 69, 70, 69,\r
- 301, 302, 69, 70, 305, 26, 12, 13, 14, 15,\r
- 16, 17, 18, 19, 71, 68, 70, 79, 71, 72,\r
- 68, 322, 3, 76, 69, 70, 47, 48, 49, 50,\r
- 51, 52, 53, 15, 16, 17, 18, 19, 339, 12,\r
- 13, 14, 15, 16, 17, 18, 19, 68, 3, 4,\r
- 5, 22, 353, 74, 75, 76, 77, 78, 3, 4,\r
- 5, 6, 7, 68, 70, 69, 70, 69, 70, 68,\r
- 15, 16, 3, 4, 5, 6, 7, 69, 70, 69,\r
- 70, 26, 69, 70, 15, 16, 17, 27, 28, 29,\r
- 30, 31, 32, 27, 68, 26, 37, 70, 306, 307,\r
- 27, 27, 47, 48, 49, 50, 51, 52, 53, 14,\r
- 15, 16, 17, 18, 19, 55, 47, 48, 49, 50,\r
- 51, 52, 53, 68, 27, 70, 3, 3, 3, 74,\r
- 75, 76, 77, 78, 72, 3, 22, 68, 3, 79,\r
- 63, 71, 3, 74, 75, 76, 77, 78, 3, 4,\r
- 5, 6, 7, 70, 3, 10, 71, 71, 36, 69,\r
- 15, 16, 3, 4, 5, 6, 7, 3, 18, 33,\r
- 21, 26, 3, 21, 15, 16, 54, 22, 56, 57,\r
- 58, 23, 60, 5, 62, 26, 64, 68, 3, 73,\r
- 70, 3, 47, 48, 49, 50, 51, 52, 53, 13,\r
- 14, 15, 16, 17, 18, 19, 47, 48, 49, 50,\r
- 51, 52, 53, 68, 3, 69, 24, 38, 3, 74,\r
- 75, 76, 77, 78, 3, 3, 3, 68, 65, 5,\r
- 3, 71, 73, 74, 75, 76, 77, 78, 3, 4,\r
- 5, 6, 7, 71, 71, 70, 72, 34, 22, 9,\r
- 15, 16, 3, 4, 5, 6, 7, 68, 68, 68,\r
- 21, 26, 69, 69, 15, 16, 12, 13, 14, 15,\r
- 16, 17, 18, 19, 69, 26, 39, 3, 27, 25,\r
- 68, 3, 47, 48, 49, 50, 51, 52, 53, 41,\r
- 40, 21, 3, 68, 66, 22, 47, 48, 49, 50,\r
- 51, 52, 53, 68, 3, 3, 68, 3, 67, 74,\r
- 75, 76, 77, 78, 3, 23, 3, 68, 50, 14,\r
- 13, 194, 305, 74, 75, 76, 77, 78, 12, 13,\r
- 14, 15, 16, 17, 18, 19, 12, 13, 14, 15,\r
- 16, 17, 18, 19, 54, 178, 362, 311, 53, 172,\r
- -1, 27, 28, 29, 30, 31, 32, 12, 13, 14,\r
- 15, 16, 17, 18, 19, -1, -1, -1, -1, -1,\r
- 25, 12, 13, 14, 15, 16, 17, 18, 19, -1,\r
- -1, -1, -1, -1, 25, -1, 70, 12, 13, 14,\r
- 15, 16, 17, 18, 19, -1, -1, -1, -1, -1,\r
- 25, 12, 13, 14, 15, 16, 17, 18, 19\r
-};\r
-\r
-/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing\r
- symbol of state STATE-NUM. */\r
-static const yytype_uint8 yystos[] =\r
-{\r
- 0, 36, 54, 56, 57, 58, 60, 61, 62, 64,\r
- 81, 82, 83, 84, 85, 88, 89, 125, 126, 3,\r
- 4, 5, 6, 7, 15, 16, 26, 47, 48, 49,\r
- 50, 51, 52, 53, 68, 74, 75, 76, 77, 78,\r
- 90, 109, 110, 112, 120, 121, 3, 121, 122, 22,\r
- 22, 3, 3, 96, 22, 22, 3, 0, 21, 85,\r
- 88, 89, 84, 88, 89, 126, 68, 71, 76, 109,\r
- 109, 68, 76, 4, 4, 4, 4, 4, 109, 109,\r
- 109, 3, 3, 3, 27, 28, 29, 30, 31, 32,\r
- 91, 92, 12, 13, 14, 15, 16, 17, 18, 19,\r
- 25, 69, 71, 79, 55, 79, 92, 3, 23, 86,\r
- 87, 23, 86, 68, 136, 18, 136, 125, 3, 127,\r
- 128, 22, 82, 88, 89, 88, 89, 70, 109, 111,\r
- 3, 78, 68, 17, 109, 68, 70, 3, 4, 72,\r
- 93, 94, 95, 96, 27, 68, 27, 27, 27, 37,\r
- 97, 98, 109, 109, 109, 109, 109, 109, 109, 109,\r
- 3, 109, 121, 109, 121, 3, 4, 23, 87, 23,\r
- 3, 137, 72, 135, 3, 22, 82, 3, 21, 23,\r
- 63, 69, 70, 71, 3, 70, 111, 70, 70, 17,\r
- 109, 71, 71, 3, 69, 3, 93, 121, 93, 93,\r
- 93, 3, 10, 68, 104, 105, 106, 107, 109, 33,\r
- 113, 25, 92, 21, 21, 69, 70, 137, 22, 3,\r
- 131, 132, 23, 5, 128, 68, 133, 109, 3, 70,\r
- 70, 70, 3, 96, 3, 73, 94, 69, 72, 104,\r
- 104, 109, 8, 9, 11, 35, 24, 38, 114, 3,\r
- 3, 73, 131, 3, 23, 132, 3, 134, 65, 71,\r
- 71, 71, 5, 73, 111, 70, 104, 104, 109, 72,\r
- 3, 44, 45, 46, 109, 116, 117, 119, 3, 123,\r
- 124, 34, 102, 103, 23, 3, 133, 3, 4, 5,\r
- 69, 70, 22, 96, 96, 96, 70, 73, 108, 112,\r
- 71, 68, 68, 68, 25, 69, 69, 69, 104, 39,\r
- 99, 133, 21, 3, 131, 27, 69, 73, 3, 118,\r
- 119, 118, 68, 115, 3, 116, 123, 123, 104, 40,\r
- 100, 135, 3, 4, 5, 23, 93, 112, 71, 69,\r
- 70, 70, 118, 69, 70, 104, 41, 101, 21, 66,\r
- 3, 119, 70, 68, 104, 22, 118, 3, 129, 130,\r
- 70, 68, 21, 23, 3, 138, 130, 67, 3, 69,\r
- 70, 133, 133, 3, 23, 3, 133\r
-};\r
-\r
-#define yyerrok (yyerrstatus = 0)\r
-#define yyclearin (yychar = YYEMPTY)\r
-#define YYEMPTY (-2)\r
-#define YYEOF 0\r
-\r
-#define YYACCEPT goto yyacceptlab\r
-#define YYABORT goto yyabortlab\r
-#define YYERROR goto yyerrorlab\r
-\r
-\r
-/* Like YYERROR except do call yyerror. This remains here temporarily\r
- to ease the transition to the new meaning of YYERROR, for GCC.\r
- Once GCC version 2 has supplanted version 1, this can go. */\r
-\r
-#define YYFAIL goto yyerrlab\r
-\r
-#define YYRECOVERING() (!!yyerrstatus)\r
-\r
-#define YYBACKUP(Token, Value) \\r
-do \\r
- if (yychar == YYEMPTY && yylen == 1) \\r
- { \\r
- yychar = (Token); \\r
- yylval = (Value); \\r
- yytoken = YYTRANSLATE (yychar); \\r
- YYPOPSTACK (1); \\r
- goto yybackup; \\r
- } \\r
- else \\r
- { \\r
- yyerror (YY_("syntax error: cannot back up")); \\r
- YYERROR; \\r
- } \\r
-while (YYID (0))\r
-\r
-\r
-#define YYTERROR 1\r
-#define YYERRCODE 256\r
-\r
-\r
-/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].\r
- If N is 0, then set CURRENT to the empty location which ends\r
- the previous symbol: RHS[0] (always defined). */\r
-\r
-#define YYRHSLOC(Rhs, K) ((Rhs)[K])\r
-#ifndef YYLLOC_DEFAULT\r
-# define YYLLOC_DEFAULT(Current, Rhs, N) \\r
- do \\r
- if (YYID (N)) \\r
- { \\r
- (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \\r
- (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \\r
- (Current).last_line = YYRHSLOC (Rhs, N).last_line; \\r
- (Current).last_column = YYRHSLOC (Rhs, N).last_column; \\r
- } \\r
- else \\r
- { \\r
- (Current).first_line = (Current).last_line = \\r
- YYRHSLOC (Rhs, 0).last_line; \\r
- (Current).first_column = (Current).last_column = \\r
- YYRHSLOC (Rhs, 0).last_column; \\r
- } \\r
- while (YYID (0))\r
-#endif\r
-\r
-\r
-/* YY_LOCATION_PRINT -- Print the location on the stream.\r
- This macro was not mandated originally: define only if we know\r
- we won't break user code: when these are the locations we know. */\r
-\r
-#ifndef YY_LOCATION_PRINT\r
-# if YYLTYPE_IS_TRIVIAL\r
-# define YY_LOCATION_PRINT(File, Loc) \\r
- fprintf (File, "%d.%d-%d.%d", \\r
- (Loc).first_line, (Loc).first_column, \\r
- (Loc).last_line, (Loc).last_column)\r
-# else\r
-# define YY_LOCATION_PRINT(File, Loc) ((void) 0)\r
-# endif\r
-#endif\r
-\r
-\r
-/* YYLEX -- calling `yylex' with the right arguments. */\r
-\r
-#ifdef YYLEX_PARAM\r
-# define YYLEX yylex (YYLEX_PARAM)\r
-#else\r
-# define YYLEX yylex ()\r
-#endif\r
-\r
-/* Enable debugging if requested. */\r
-#if YYDEBUG\r
-\r
-# ifndef YYFPRINTF\r
-# include <stdio.h> /* INFRINGES ON USER NAME SPACE */\r
-# define YYFPRINTF fprintf\r
-# endif\r
-\r
-# define YYDPRINTF(Args) \\r
-do { \\r
- if (yydebug) \\r
- YYFPRINTF Args; \\r
-} while (YYID (0))\r
-\r
-# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \\r
-do { \\r
- if (yydebug) \\r
- { \\r
- YYFPRINTF (stderr, "%s ", Title); \\r
- yy_symbol_print (stderr, \\r
- Type, Value); \\r
- YYFPRINTF (stderr, "\n"); \\r
- } \\r
-} while (YYID (0))\r
-\r
-\r
-/*--------------------------------.\r
-| Print this symbol on YYOUTPUT. |\r
-`--------------------------------*/\r
-\r
-/*ARGSUSED*/\r
-#if (defined __STDC__ || defined __C99__FUNC__ \\r
- || defined __cplusplus || defined _MSC_VER)\r
-static void\r
-yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)\r
-#else\r
-static void\r
-yy_symbol_value_print (yyoutput, yytype, yyvaluep)\r
- FILE *yyoutput;\r
- int yytype;\r
- YYSTYPE const * const yyvaluep;\r
-#endif\r
-{\r
- if (!yyvaluep)\r
- return;\r
-# ifdef YYPRINT\r
- if (yytype < YYNTOKENS)\r
- YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);\r
-# else\r
- YYUSE (yyoutput);\r
-# endif\r
- switch (yytype)\r
- {\r
- default:\r
- break;\r
- }\r
-}\r
-\r
-\r
-/*--------------------------------.\r
-| Print this symbol on YYOUTPUT. |\r
-`--------------------------------*/\r
-\r
-#if (defined __STDC__ || defined __C99__FUNC__ \\r
- || defined __cplusplus || defined _MSC_VER)\r
-static void\r
-yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)\r
-#else\r
-static void\r
-yy_symbol_print (yyoutput, yytype, yyvaluep)\r
- FILE *yyoutput;\r
- int yytype;\r
- YYSTYPE const * const yyvaluep;\r
-#endif\r
-{\r
- if (yytype < YYNTOKENS)\r
- YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);\r
- else\r
- YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);\r
-\r
- yy_symbol_value_print (yyoutput, yytype, yyvaluep);\r
- YYFPRINTF (yyoutput, ")");\r
-}\r
-\r
-/*------------------------------------------------------------------.\r
-| yy_stack_print -- Print the state stack from its BOTTOM up to its |\r
-| TOP (included). |\r
-`------------------------------------------------------------------*/\r
-\r
-#if (defined __STDC__ || defined __C99__FUNC__ \\r
- || defined __cplusplus || defined _MSC_VER)\r
-static void\r
-yy_stack_print (yytype_int16 *bottom, yytype_int16 *top)\r
-#else\r
-static void\r
-yy_stack_print (bottom, top)\r
- yytype_int16 *bottom;\r
- yytype_int16 *top;\r
-#endif\r
-{\r
- YYFPRINTF (stderr, "Stack now");\r
- for (; bottom <= top; ++bottom)\r
- YYFPRINTF (stderr, " %d", *bottom);\r
- YYFPRINTF (stderr, "\n");\r
-}\r
-\r
-# define YY_STACK_PRINT(Bottom, Top) \\r
-do { \\r
- if (yydebug) \\r
- yy_stack_print ((Bottom), (Top)); \\r
-} while (YYID (0))\r
-\r
-\r
-/*------------------------------------------------.\r
-| Report that the YYRULE is going to be reduced. |\r
-`------------------------------------------------*/\r
-\r
-#if (defined __STDC__ || defined __C99__FUNC__ \\r
- || defined __cplusplus || defined _MSC_VER)\r
-static void\r
-yy_reduce_print (YYSTYPE *yyvsp, int yyrule)\r
-#else\r
-static void\r
-yy_reduce_print (yyvsp, yyrule)\r
- YYSTYPE *yyvsp;\r
- int yyrule;\r
-#endif\r
-{\r
- int yynrhs = yyr2[yyrule];\r
- int yyi;\r
- unsigned long int yylno = yyrline[yyrule];\r
- YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",\r
- yyrule - 1, yylno);\r
- /* The symbols being reduced. */\r
- for (yyi = 0; yyi < yynrhs; yyi++)\r
- {\r
- fprintf (stderr, " $%d = ", yyi + 1);\r
- yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],\r
- &(yyvsp[(yyi + 1) - (yynrhs)])\r
- );\r
- fprintf (stderr, "\n");\r
- }\r
-}\r
-\r
-# define YY_REDUCE_PRINT(Rule) \\r
-do { \\r
- if (yydebug) \\r
- yy_reduce_print (yyvsp, Rule); \\r
-} while (YYID (0))\r
-\r
-/* Nonzero means print parse trace. It is left uninitialized so that\r
- multiple parsers can coexist. */\r
-int yydebug;\r
-#else /* !YYDEBUG */\r
-# define YYDPRINTF(Args)\r
-# define YY_SYMBOL_PRINT(Title, Type, Value, Location)\r
-# define YY_STACK_PRINT(Bottom, Top)\r
-# define YY_REDUCE_PRINT(Rule)\r
-#endif /* !YYDEBUG */\r
-\r
-\r
-/* YYINITDEPTH -- initial size of the parser's stacks. */\r
-#ifndef YYINITDEPTH\r
-# define YYINITDEPTH 200\r
-#endif\r
-\r
-/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only\r
- if the built-in stack extension method is used).\r
-\r
- Do not make this value too large; the results are undefined if\r
- YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)\r
- evaluated with infinite-precision integer arithmetic. */\r
-\r
-#ifndef YYMAXDEPTH\r
-# define YYMAXDEPTH 10000\r
-#endif\r
-\r
-\f\r
-\r
-#if YYERROR_VERBOSE\r
-\r
-# ifndef yystrlen\r
-# if defined __GLIBC__ && defined _STRING_H\r
-# define yystrlen strlen\r
-# else\r
-/* Return the length of YYSTR. */\r
-#if (defined __STDC__ || defined __C99__FUNC__ \\r
- || defined __cplusplus || defined _MSC_VER)\r
-static YYSIZE_T\r
-yystrlen (const char *yystr)\r
-#else\r
-static YYSIZE_T\r
-yystrlen (yystr)\r
- const char *yystr;\r
-#endif\r
-{\r
- YYSIZE_T yylen;\r
- for (yylen = 0; yystr[yylen]; yylen++)\r
- continue;\r
- return yylen;\r
-}\r
-# endif\r
-# endif\r
-\r
-# ifndef yystpcpy\r
-# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE\r
-# define yystpcpy stpcpy\r
-# else\r
-/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in\r
- YYDEST. */\r
-#if (defined __STDC__ || defined __C99__FUNC__ \\r
- || defined __cplusplus || defined _MSC_VER)\r
-static char *\r
-yystpcpy (char *yydest, const char *yysrc)\r
-#else\r
-static char *\r
-yystpcpy (yydest, yysrc)\r
- char *yydest;\r
- const char *yysrc;\r
-#endif\r
-{\r
- char *yyd = yydest;\r
- const char *yys = yysrc;\r
-\r
- while ((*yyd++ = *yys++) != '\0')\r
- continue;\r
-\r
- return yyd - 1;\r
-}\r
-# endif\r
-# endif\r
-\r
-# ifndef yytnamerr\r
-/* Copy to YYRES the contents of YYSTR after stripping away unnecessary\r
- quotes and backslashes, so that it's suitable for yyerror. The\r
- heuristic is that double-quoting is unnecessary unless the string\r
- contains an apostrophe, a comma, or backslash (other than\r
- backslash-backslash). YYSTR is taken from yytname. If YYRES is\r
- null, do not copy; instead, return the length of what the result\r
- would have been. */\r
-static YYSIZE_T\r
-yytnamerr (char *yyres, const char *yystr)\r
-{\r
- if (*yystr == '"')\r
- {\r
- YYSIZE_T yyn = 0;\r
- char const *yyp = yystr;\r
-\r
- for (;;)\r
- switch (*++yyp)\r
- {\r
- case '\'':\r
- case ',':\r
- goto do_not_strip_quotes;\r
-\r
- case '\\':\r
- if (*++yyp != '\\')\r
- goto do_not_strip_quotes;\r
- /* Fall through. */\r
- default:\r
- if (yyres)\r
- yyres[yyn] = *yyp;\r
- yyn++;\r
- break;\r
-\r
- case '"':\r
- if (yyres)\r
- yyres[yyn] = '\0';\r
- return yyn;\r
- }\r
- do_not_strip_quotes: ;\r
- }\r
-\r
- if (! yyres)\r
- return yystrlen (yystr);\r
-\r
- return yystpcpy (yyres, yystr) - yyres;\r
-}\r
-# endif\r
-\r
-/* Copy into YYRESULT an error message about the unexpected token\r
- YYCHAR while in state YYSTATE. Return the number of bytes copied,\r
- including the terminating null byte. If YYRESULT is null, do not\r
- copy anything; just return the number of bytes that would be\r
- copied. As a special case, return 0 if an ordinary "syntax error"\r
- message will do. Return YYSIZE_MAXIMUM if overflow occurs during\r
- size calculation. */\r
-static YYSIZE_T\r
-yysyntax_error (char *yyresult, int yystate, int yychar)\r
-{\r
- int yyn = yypact[yystate];\r
-\r
- if (! (YYPACT_NINF < yyn && yyn <= YYLAST))\r
- return 0;\r
- else\r
- {\r
- int yytype = YYTRANSLATE (yychar);\r
- YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]);\r
- YYSIZE_T yysize = yysize0;\r
- YYSIZE_T yysize1;\r
- int yysize_overflow = 0;\r
- enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };\r
- char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];\r
- int yyx;\r
-\r
-# if 0\r
- /* This is so xgettext sees the translatable formats that are\r
- constructed on the fly. */\r
- YY_("syntax error, unexpected %s");\r
- YY_("syntax error, unexpected %s, expecting %s");\r
- YY_("syntax error, unexpected %s, expecting %s or %s");\r
- YY_("syntax error, unexpected %s, expecting %s or %s or %s");\r
- YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s");\r
-# endif\r
- char *yyfmt;\r
- char const *yyf;\r
- static char const yyunexpected[] = "syntax error, unexpected %s";\r
- static char const yyexpecting[] = ", expecting %s";\r
- static char const yyor[] = " or %s";\r
- char yyformat[sizeof yyunexpected\r
- + sizeof yyexpecting - 1\r
- + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2)\r
- * (sizeof yyor - 1))];\r
- char const *yyprefix = yyexpecting;\r
-\r
- /* Start YYX at -YYN if negative to avoid negative indexes in\r
- YYCHECK. */\r
- int yyxbegin = yyn < 0 ? -yyn : 0;\r
-\r
- /* Stay within bounds of both yycheck and yytname. */\r
- int yychecklim = YYLAST - yyn + 1;\r
- int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;\r
- int yycount = 1;\r
-\r
- yyarg[0] = yytname[yytype];\r
- yyfmt = yystpcpy (yyformat, yyunexpected);\r
-\r
- for (yyx = yyxbegin; yyx < yyxend; ++yyx)\r
- if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)\r
- {\r
- if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)\r
- {\r
- yycount = 1;\r
- yysize = yysize0;\r
- yyformat[sizeof yyunexpected - 1] = '\0';\r
- break;\r
- }\r
- yyarg[yycount++] = yytname[yyx];\r
- yysize1 = yysize + yytnamerr (0, yytname[yyx]);\r
- yysize_overflow |= (yysize1 < yysize);\r
- yysize = yysize1;\r
- yyfmt = yystpcpy (yyfmt, yyprefix);\r
- yyprefix = yyor;\r
- }\r
-\r
- yyf = YY_(yyformat);\r
- yysize1 = yysize + yystrlen (yyf);\r
- yysize_overflow |= (yysize1 < yysize);\r
- yysize = yysize1;\r
-\r
- if (yysize_overflow)\r
- return YYSIZE_MAXIMUM;\r
-\r
- if (yyresult)\r
- {\r
- /* Avoid sprintf, as that infringes on the user's name space.\r
- Don't have undefined behavior even if the translation\r
- produced a string with the wrong number of "%s"s. */\r
- char *yyp = yyresult;\r
- int yyi = 0;\r
- while ((*yyp = *yyf) != '\0')\r
- {\r
- if (*yyp == '%' && yyf[1] == 's' && yyi < yycount)\r
- {\r
- yyp += yytnamerr (yyp, yyarg[yyi++]);\r
- yyf += 2;\r
- }\r
- else\r
- {\r
- yyp++;\r
- yyf++;\r
- }\r
- }\r
- }\r
- return yysize;\r
- }\r
-}\r
-#endif /* YYERROR_VERBOSE */\r
-\f\r
-\r
-/*-----------------------------------------------.\r
-| Release the memory associated to this symbol. |\r
-`-----------------------------------------------*/\r
-\r
-/*ARGSUSED*/\r
-#if (defined __STDC__ || defined __C99__FUNC__ \\r
- || defined __cplusplus || defined _MSC_VER)\r
-static void\r
-yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)\r
-#else\r
-static void\r
-yydestruct (yymsg, yytype, yyvaluep)\r
- const char *yymsg;\r
- int yytype;\r
- YYSTYPE *yyvaluep;\r
-#endif\r
-{\r
- YYUSE (yyvaluep);\r
-\r
- if (!yymsg)\r
- yymsg = "Deleting";\r
- YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);\r
-\r
- switch (yytype)\r
- {\r
-\r
- default:\r
- break;\r
- }\r
-}\r
-\f\r
-\r
-/* Prevent warnings from -Wmissing-prototypes. */\r
-\r
-#ifdef YYPARSE_PARAM\r
-#if defined __STDC__ || defined __cplusplus\r
-int yyparse (void *YYPARSE_PARAM);\r
-#else\r
-int yyparse ();\r
-#endif\r
-#else /* ! YYPARSE_PARAM */\r
-#if defined __STDC__ || defined __cplusplus\r
-int yyparse (void);\r
-#else\r
-int yyparse ();\r
-#endif\r
-#endif /* ! YYPARSE_PARAM */\r
-\r
-\r
-\r
-/* The look-ahead symbol. */\r
-int yychar;\r
-\r
-/* The semantic value of the look-ahead symbol. */\r
-YYSTYPE yylval;\r
-\r
-/* Number of syntax errors so far. */\r
-int yynerrs;\r
-\r
-\r
-\r
-/*----------.\r
-| yyparse. |\r
-`----------*/\r
-\r
-#ifdef YYPARSE_PARAM\r
-#if (defined __STDC__ || defined __C99__FUNC__ \\r
- || defined __cplusplus || defined _MSC_VER)\r
-int\r
-yyparse (void *YYPARSE_PARAM)\r
-#else\r
-int\r
-yyparse (YYPARSE_PARAM)\r
- void *YYPARSE_PARAM;\r
-#endif\r
-#else /* ! YYPARSE_PARAM */\r
-#if (defined __STDC__ || defined __C99__FUNC__ \\r
- || defined __cplusplus || defined _MSC_VER)\r
-int\r
-yyparse (void)\r
-#else\r
-int\r
-yyparse ()\r
-\r
-#endif\r
-#endif\r
-{\r
- \r
- int yystate;\r
- int yyn;\r
- int yyresult;\r
- /* Number of tokens to shift before error messages enabled. */\r
- int yyerrstatus;\r
- /* Look-ahead token as an internal (translated) token number. */\r
- int yytoken = 0;\r
-#if YYERROR_VERBOSE\r
- /* Buffer for error messages, and its allocated size. */\r
- char yymsgbuf[128];\r
- char *yymsg = yymsgbuf;\r
- YYSIZE_T yymsg_alloc = sizeof yymsgbuf;\r
-#endif\r
-\r
- /* Three stacks and their tools:\r
- `yyss': related to states,\r
- `yyvs': related to semantic values,\r
- `yyls': related to locations.\r
-\r
- Refer to the stacks thru separate pointers, to allow yyoverflow\r
- to reallocate them elsewhere. */\r
-\r
- /* The state stack. */\r
- yytype_int16 yyssa[YYINITDEPTH];\r
- yytype_int16 *yyss = yyssa;\r
- yytype_int16 *yyssp;\r
-\r
- /* The semantic value stack. */\r
- YYSTYPE yyvsa[YYINITDEPTH];\r
- YYSTYPE *yyvs = yyvsa;\r
- YYSTYPE *yyvsp;\r
-\r
-\r
-\r
-#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))\r
-\r
- YYSIZE_T yystacksize = YYINITDEPTH;\r
-\r
- /* The variables used to return semantic value and location from the\r
- action routines. */\r
- YYSTYPE yyval;\r
-\r
-\r
- /* The number of symbols on the RHS of the reduced rule.\r
- Keep to zero when no symbol should be popped. */\r
- int yylen = 0;\r
-\r
- YYDPRINTF ((stderr, "Starting parse\n"));\r
-\r
- yystate = 0;\r
- yyerrstatus = 0;\r
- yynerrs = 0;\r
- yychar = YYEMPTY; /* Cause a token to be read. */\r
-\r
- /* Initialize stack pointers.\r
- Waste one element of value and location stack\r
- so that they stay on the same level as the state stack.\r
- The wasted elements are never initialized. */\r
-\r
- yyssp = yyss;\r
- yyvsp = yyvs;\r
-\r
- goto yysetstate;\r
-\r
-/*------------------------------------------------------------.\r
-| yynewstate -- Push a new state, which is found in yystate. |\r
-`------------------------------------------------------------*/\r
- yynewstate:\r
- /* In all cases, when you get here, the value and location stacks\r
- have just been pushed. So pushing a state here evens the stacks. */\r
- yyssp++;\r
-\r
- yysetstate:\r
- *yyssp = yystate;\r
-\r
- if (yyss + yystacksize - 1 <= yyssp)\r
- {\r
- /* Get the current used size of the three stacks, in elements. */\r
- YYSIZE_T yysize = yyssp - yyss + 1;\r
-\r
-#ifdef yyoverflow\r
- {\r
- /* Give user a chance to reallocate the stack. Use copies of\r
- these so that the &'s don't force the real ones into\r
- memory. */\r
- YYSTYPE *yyvs1 = yyvs;\r
- yytype_int16 *yyss1 = yyss;\r
-\r
-\r
- /* Each stack pointer address is followed by the size of the\r
- data in use in that stack, in bytes. This used to be a\r
- conditional around just the two extra args, but that might\r
- be undefined if yyoverflow is a macro. */\r
- yyoverflow (YY_("memory exhausted"),\r
- &yyss1, yysize * sizeof (*yyssp),\r
- &yyvs1, yysize * sizeof (*yyvsp),\r
-\r
- &yystacksize);\r
-\r
- yyss = yyss1;\r
- yyvs = yyvs1;\r
- }\r
-#else /* no yyoverflow */\r
-# ifndef YYSTACK_RELOCATE\r
- goto yyexhaustedlab;\r
-# else\r
- /* Extend the stack our own way. */\r
- if (YYMAXDEPTH <= yystacksize)\r
- goto yyexhaustedlab;\r
- yystacksize *= 2;\r
- if (YYMAXDEPTH < yystacksize)\r
- yystacksize = YYMAXDEPTH;\r
-\r
- {\r
- yytype_int16 *yyss1 = yyss;\r
- union yyalloc *yyptr =\r
- (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));\r
- if (! yyptr)\r
- goto yyexhaustedlab;\r
- YYSTACK_RELOCATE (yyss);\r
- YYSTACK_RELOCATE (yyvs);\r
-\r
-# undef YYSTACK_RELOCATE\r
- if (yyss1 != yyssa)\r
- YYSTACK_FREE (yyss1);\r
- }\r
-# endif\r
-#endif /* no yyoverflow */\r
-\r
- yyssp = yyss + yysize - 1;\r
- yyvsp = yyvs + yysize - 1;\r
-\r
-\r
- YYDPRINTF ((stderr, "Stack size increased to %lu\n",\r
- (unsigned long int) yystacksize));\r
-\r
- if (yyss + yystacksize - 1 <= yyssp)\r
- YYABORT;\r
- }\r
-\r
- YYDPRINTF ((stderr, "Entering state %d\n", yystate));\r
-\r
- goto yybackup;\r
-\r
-/*-----------.\r
-| yybackup. |\r
-`-----------*/\r
-yybackup:\r
-\r
- /* Do appropriate processing given the current state. Read a\r
- look-ahead token if we need one and don't already have one. */\r
-\r
- /* First try to decide what to do without reference to look-ahead token. */\r
- yyn = yypact[yystate];\r
- if (yyn == YYPACT_NINF)\r
- goto yydefault;\r
-\r
- /* Not known => get a look-ahead token if don't already have one. */\r
-\r
- /* YYCHAR is either YYEMPTY or YYEOF or a valid look-ahead symbol. */\r
- if (yychar == YYEMPTY)\r
- {\r
- YYDPRINTF ((stderr, "Reading a token: "));\r
- yychar = YYLEX;\r
- }\r
-\r
- if (yychar <= YYEOF)\r
- {\r
- yychar = yytoken = YYEOF;\r
- YYDPRINTF ((stderr, "Now at end of input.\n"));\r
- }\r
- else\r
- {\r
- yytoken = YYTRANSLATE (yychar);\r
- YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);\r
- }\r
-\r
- /* If the proper action on seeing token YYTOKEN is to reduce or to\r
- detect an error, take that action. */\r
- yyn += yytoken;\r
- if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)\r
- goto yydefault;\r
- yyn = yytable[yyn];\r
- if (yyn <= 0)\r
- {\r
- if (yyn == 0 || yyn == YYTABLE_NINF)\r
- goto yyerrlab;\r
- yyn = -yyn;\r
- goto yyreduce;\r
- }\r
-\r
- if (yyn == YYFINAL)\r
- YYACCEPT;\r
-\r
- /* Count tokens shifted since error; after three, turn off error\r
- status. */\r
- if (yyerrstatus)\r
- yyerrstatus--;\r
-\r
- /* Shift the look-ahead token. */\r
- YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);\r
-\r
- /* Discard the shifted token unless it is eof. */\r
- if (yychar != YYEOF)\r
- yychar = YYEMPTY;\r
-\r
- yystate = yyn;\r
- *++yyvsp = yylval;\r
-\r
- goto yynewstate;\r
-\r
-\r
-/*-----------------------------------------------------------.\r
-| yydefault -- do the default action for the current state. |\r
-`-----------------------------------------------------------*/\r
-yydefault:\r
- yyn = yydefact[yystate];\r
- if (yyn == 0)\r
- goto yyerrlab;\r
- goto yyreduce;\r
-\r
-\r
-/*-----------------------------.\r
-| yyreduce -- Do a reduction. |\r
-`-----------------------------*/\r
-yyreduce:\r
- /* yyn is the number of a rule to reduce with. */\r
- yylen = yyr2[yyn];\r
-\r
- /* If YYLEN is nonzero, implement the default value of the action:\r
- `$$ = $1'.\r
-\r
- Otherwise, the following line sets YYVAL to garbage.\r
- This behavior is undocumented and Bison\r
- users should not rely upon it. Assigning to YYVAL\r
- unconditionally makes the parser a bit smaller, and it avoids a\r
- GCC warning that YYVAL may be used uninitialized. */\r
- yyval = yyvsp[1-yylen];\r
-\r
-\r
- YY_REDUCE_PRINT (yyn);\r
- switch (yyn)\r
- {\r
- case 2:\r
-#line 189 "fta.y"\r
- {\r
- fta_parse_result->parse_tree_list = (yyvsp[(1) - (1)].q_list);\r
- fta_parse_result->tables = NULL;\r
- fta_parse_result->parse_type = QUERY_PARSE;\r
- ;}\r
- break;\r
-\r
- case 3:\r
-#line 194 "fta.y"\r
- {\r
- fta_parse_result->parse_tree_list = NULL;\r
- fta_parse_result->fta_parse_tree = NULL;\r
- fta_parse_result->tables = (yyvsp[(1) - (1)].table_list_schema);\r
- fta_parse_result->parse_type = TABLE_PARSE;\r
- ;}\r
- break;\r
-\r
- case 4:\r
-#line 201 "fta.y"\r
- {\r
- fta_parse_result->parse_tree_list = NULL;\r
- fta_parse_result->fta_parse_tree = (yyvsp[(4) - (5)].tblp);\r
- fta_parse_result->tables = (yyvsp[(3) - (5)].table_list_schema);\r
- fta_parse_result->parse_type = STREAM_PARSE;\r
- ;}\r
- break;\r
-\r
- case 5:\r
-#line 215 "fta.y"\r
- {\r
- (yyvsp[(3) - (3)].tblp)->add_nmap((yyvsp[(1) - (3)].var_defs)); // Memory leak : plug it.\r
- (yyvsp[(3) - (3)].tblp)->add_param_list((yyvsp[(2) - (3)].var_defs)); // Memory leak : plug it.\r
- (yyval.tblp) = (yyvsp[(3) - (3)].tblp);\r
- ;}\r
- break;\r
-\r
- case 6:\r
-#line 220 "fta.y"\r
- {\r
- (yyvsp[(3) - (3)].tblp)->add_nmap((yyvsp[(2) - (3)].var_defs)); // Memory leak : plug it.\r
- (yyvsp[(3) - (3)].tblp)->add_param_list((yyvsp[(1) - (3)].var_defs)); // Memory leak : plug it.\r
- (yyval.tblp) = (yyvsp[(3) - (3)].tblp);\r
- ;}\r
- break;\r
-\r
- case 7:\r
-#line 225 "fta.y"\r
- {\r
- (yyvsp[(2) - (2)].tblp)->add_nmap(NULL); // Memory leak : plug it.\r
- (yyvsp[(2) - (2)].tblp)->add_param_list((yyvsp[(1) - (2)].var_defs)); // Memory leak : plug it.\r
- (yyval.tblp) = (yyvsp[(2) - (2)].tblp);\r
- ;}\r
- break;\r
-\r
- case 8:\r
-#line 230 "fta.y"\r
- {\r
- (yyvsp[(2) - (2)].tblp)->add_nmap((yyvsp[(1) - (2)].var_defs)); // Memory leak : plug it.\r
- (yyval.tblp) = (yyvsp[(2) - (2)].tblp);\r
- ;}\r
- break;\r
-\r
- case 9:\r
-#line 234 "fta.y"\r
- {\r
- (yyval.tblp) = (yyvsp[(1) - (1)].tblp);\r
- ;}\r
- break;\r
-\r
- case 10:\r
-#line 237 "fta.y"\r
- {\r
- (yyvsp[(3) - (3)].tblp)->add_nmap((yyvsp[(1) - (3)].var_defs)); // Memory leak : plug it.\r
- (yyvsp[(3) - (3)].tblp)->add_param_list((yyvsp[(2) - (3)].var_defs)); // Memory leak : plug it.\r
- (yyval.tblp) = (yyvsp[(3) - (3)].tblp);\r
- ;}\r
- break;\r
-\r
- case 11:\r
-#line 242 "fta.y"\r
- {\r
- (yyvsp[(3) - (3)].tblp)->add_nmap((yyvsp[(2) - (3)].var_defs)); // Memory leak : plug it.\r
- (yyvsp[(3) - (3)].tblp)->add_param_list((yyvsp[(1) - (3)].var_defs)); // Memory leak : plug it.\r
- (yyval.tblp) = (yyvsp[(3) - (3)].tblp);\r
- ;}\r
- break;\r
-\r
- case 12:\r
-#line 247 "fta.y"\r
- {\r
- (yyvsp[(2) - (2)].tblp)->add_param_list((yyvsp[(1) - (2)].var_defs)); // Memory leak : plug it.\r
- (yyval.tblp) = (yyvsp[(2) - (2)].tblp);\r
- ;}\r
- break;\r
-\r
- case 13:\r
-#line 251 "fta.y"\r
- {\r
- (yyvsp[(2) - (2)].tblp)->add_nmap((yyvsp[(1) - (2)].var_defs)); // Memory leak : plug it.\r
- (yyval.tblp) = (yyvsp[(2) - (2)].tblp);\r
- ;}\r
- break;\r
-\r
- case 14:\r
-#line 255 "fta.y"\r
- {\r
- (yyval.tblp) = (yyvsp[(1) - (1)].tblp);\r
- ;}\r
- break;\r
-\r
- case 15:\r
-#line 260 "fta.y"\r
- {(yyval.q_list) = new query_list_t((yyvsp[(1) - (1)].tblp));;}\r
- break;\r
-\r
- case 16:\r
-#line 261 "fta.y"\r
- {(yyval.q_list) = (yyvsp[(1) - (3)].q_list)->append((yyvsp[(3) - (3)].tblp));;}\r
- break;\r
-\r
- case 17:\r
-#line 265 "fta.y"\r
- {(yyval.var_defs)=(yyvsp[(3) - (4)].var_defs);;}\r
- break;\r
-\r
- case 18:\r
-#line 266 "fta.y"\r
- {(yyval.var_defs)=NULL;;}\r
- break;\r
-\r
- case 19:\r
-#line 270 "fta.y"\r
- {(yyval.var_defs)=(yyvsp[(3) - (4)].var_defs);fta_parse_defines=(yyvsp[(3) - (4)].var_defs);;}\r
- break;\r
-\r
- case 20:\r
-#line 271 "fta.y"\r
- {(yyval.var_defs)=NULL;fta_parse_defines = NULL;;}\r
- break;\r
-\r
- case 21:\r
-#line 275 "fta.y"\r
- {(yyval.var_defs) = new var_defs_t((yyvsp[(1) - (1)].var_pair));;}\r
- break;\r
-\r
- case 22:\r
-#line 276 "fta.y"\r
- {(yyval.var_defs) = (yyvsp[(1) - (2)].var_defs)->add_var_pair((yyvsp[(2) - (2)].var_pair));;}\r
- break;\r
-\r
- case 23:\r
-#line 280 "fta.y"\r
- {(yyval.var_pair) = new var_pair_t((yyvsp[(1) - (3)].strval),(yyvsp[(2) - (3)].strval));;}\r
- break;\r
-\r
- case 24:\r
-#line 281 "fta.y"\r
- {(yyval.var_pair) = new var_pair_t((yyvsp[(1) - (3)].strval),(yyvsp[(2) - (3)].strval));;}\r
- break;\r
-\r
- case 25:\r
-#line 285 "fta.y"\r
- {(yyval.tblp) = (yyvsp[(3) - (3)].tblp)->add_selection((yyvsp[(2) - (3)].select_listval));;}\r
- break;\r
-\r
- case 26:\r
-#line 290 "fta.y"\r
- {(yyval.tblp) = new table_exp_t((yyvsp[(2) - (3)].clist),(yyvsp[(3) - (3)].tbl_list));;}\r
- break;\r
-\r
- case 27:\r
-#line 292 "fta.y"\r
- {(yyval.tblp) = new table_exp_t((yyvsp[(2) - (5)].clist),(yyvsp[(4) - (5)].scalarval),(yyvsp[(5) - (5)].tbl_list));;}\r
- break;\r
-\r
- case 28:\r
-#line 299 "fta.y"\r
- { (yyval.select_listval) = (yyvsp[(1) - (1)].select_listval);;}\r
- break;\r
-\r
- case 29:\r
-#line 311 "fta.y"\r
- {(yyval.tblp)=new table_exp_t((yyvsp[(1) - (8)].tbl_list),(yyvsp[(2) - (8)].predp),(yyvsp[(3) - (8)].extended_gb_list),(yyvsp[(4) - (8)].clist),(yyvsp[(5) - (8)].predp),(yyvsp[(6) - (8)].predp),(yyvsp[(7) - (8)].predp), (yyvsp[(8) - (8)].predp));;}\r
- break;\r
-\r
- case 30:\r
-#line 315 "fta.y"\r
- {(yyval.tbl_list) = (yyvsp[(2) - (2)].tbl_list); (yyval.tbl_list)->set_properties(-1);;}\r
- break;\r
-\r
- case 31:\r
-#line 316 "fta.y"\r
- {(yyval.tbl_list) = (yyvsp[(3) - (3)].tbl_list); (yyval.tbl_list)->set_properties(INNER_JOIN_PROPERTY);;}\r
- break;\r
-\r
- case 32:\r
-#line 317 "fta.y"\r
- {(yyval.tbl_list) = (yyvsp[(3) - (3)].tbl_list); (yyval.tbl_list)->set_properties(OUTER_JOIN_PROPERTY);;}\r
- break;\r
-\r
- case 33:\r
-#line 318 "fta.y"\r
- {(yyval.tbl_list) = (yyvsp[(3) - (3)].tbl_list); (yyval.tbl_list)->set_properties(RIGHT_OUTER_JOIN_PROPERTY);;}\r
- break;\r
-\r
- case 34:\r
-#line 319 "fta.y"\r
- {(yyval.tbl_list) = (yyvsp[(3) - (3)].tbl_list); (yyval.tbl_list)->set_properties(LEFT_OUTER_JOIN_PROPERTY);;}\r
- break;\r
-\r
- case 35:\r
-#line 320 "fta.y"\r
- {(yyval.tbl_list) = (yyvsp[(8) - (8)].tbl_list); (yyval.tbl_list)->set_properties(FILTER_JOIN_PROPERTY); (yyval.tbl_list)->set_colref((yyvsp[(3) - (8)].colref)); (yyval.tbl_list)->set_temporal_range((yyvsp[(5) - (8)].strval));;}\r
- break;\r
-\r
- case 36:\r
-#line 324 "fta.y"\r
- {(yyval.tbl_list) = new tablevar_list_t((yyvsp[(1) - (1)].table));;}\r
- break;\r
-\r
- case 37:\r
-#line 325 "fta.y"\r
- {(yyval.tbl_list)= (yyvsp[(1) - (3)].tbl_list)->append_table((yyvsp[(3) - (3)].table));;}\r
- break;\r
-\r
- case 38:\r
-#line 329 "fta.y"\r
- { (yyval.table) = (yyvsp[(1) - (1)].table);;}\r
- break;\r
-\r
- case 39:\r
-#line 330 "fta.y"\r
- { (yyval.table)= (yyvsp[(1) - (2)].table)->set_range_var((yyvsp[(2) - (2)].strval));;}\r
- break;\r
-\r
- case 40:\r
-#line 334 "fta.y"\r
- {(yyval.table) = new tablevar_t((yyvsp[(1) - (1)].stringval)->c_str());;}\r
- break;\r
-\r
- case 41:\r
-#line 335 "fta.y"\r
- {(yyval.table) = new tablevar_t((yyvsp[(1) - (3)].strval),(yyvsp[(3) - (3)].stringval)->c_str(),0);;}\r
- break;\r
-\r
- case 42:\r
-#line 336 "fta.y"\r
- {(yyval.table) = new tablevar_t((yyvsp[(1) - (5)].strval),(yyvsp[(3) - (5)].strval),(yyvsp[(5) - (5)].stringval)->c_str());;}\r
- break;\r
-\r
- case 43:\r
-#line 337 "fta.y"\r
- {(yyval.table) = new tablevar_t((yyvsp[(1) - (5)].strval),(yyvsp[(3) - (5)].strval),(yyvsp[(5) - (5)].stringval)->c_str());;}\r
- break;\r
-\r
- case 44:\r
-#line 338 "fta.y"\r
- {(yyval.table) = new tablevar_t((yyvsp[(2) - (5)].strval),(yyvsp[(5) - (5)].stringval)->c_str(),1);;}\r
- break;\r
-\r
- case 45:\r
-#line 342 "fta.y"\r
- {(yyval.stringval) = new string_t((yyvsp[(1) - (1)].strval));;}\r
- break;\r
-\r
- case 46:\r
-#line 343 "fta.y"\r
- {(yyval.stringval) = (yyval.stringval)->append("/",(yyvsp[(3) - (3)].strval));;}\r
- break;\r
-\r
- case 47:\r
-#line 348 "fta.y"\r
- {(yyval.predp)=NULL;;}\r
- break;\r
-\r
- case 48:\r
-#line 349 "fta.y"\r
- {(yyval.predp)=(yyvsp[(1) - (1)].predp);;}\r
- break;\r
-\r
- case 49:\r
-#line 353 "fta.y"\r
- {(yyval.predp) = (yyvsp[(2) - (2)].predp);;}\r
- break;\r
-\r
- case 50:\r
-#line 357 "fta.y"\r
- {(yyval.predp)=NULL;;}\r
- break;\r
-\r
- case 51:\r
-#line 358 "fta.y"\r
- {(yyval.predp)=(yyvsp[(2) - (2)].predp); ;}\r
- break;\r
-\r
- case 52:\r
-#line 362 "fta.y"\r
- {(yyval.predp)=NULL;;}\r
- break;\r
-\r
- case 53:\r
-#line 363 "fta.y"\r
- {(yyval.predp)=(yyvsp[(2) - (2)].predp); ;}\r
- break;\r
-\r
- case 54:\r
-#line 367 "fta.y"\r
- {(yyval.predp)=NULL;;}\r
- break;\r
-\r
- case 55:\r
-#line 368 "fta.y"\r
- {(yyval.predp)=(yyvsp[(2) - (2)].predp); ;}\r
- break;\r
-\r
- case 56:\r
-#line 372 "fta.y"\r
- {(yyval.predp)=NULL;;}\r
- break;\r
-\r
- case 57:\r
-#line 373 "fta.y"\r
- {(yyval.predp)=(yyvsp[(1) - (1)].predp);;}\r
- break;\r
-\r
- case 58:\r
-#line 377 "fta.y"\r
- {(yyval.predp) = (yyvsp[(2) - (2)].predp);;}\r
- break;\r
-\r
- case 59:\r
-#line 384 "fta.y"\r
- {(yyval.predp)=new predicate_t("OR",(yyvsp[(1) - (3)].predp),(yyvsp[(3) - (3)].predp));;}\r
- break;\r
-\r
- case 60:\r
-#line 385 "fta.y"\r
- {(yyval.predp)=new predicate_t("AND",(yyvsp[(1) - (3)].predp),(yyvsp[(3) - (3)].predp));;}\r
- break;\r
-\r
- case 61:\r
-#line 386 "fta.y"\r
- {(yyval.predp) = new predicate_t("NOT", (yyvsp[(2) - (2)].predp) );;}\r
- break;\r
-\r
- case 62:\r
-#line 387 "fta.y"\r
- {(yyval.predp) = (yyvsp[(2) - (3)].predp);;}\r
- break;\r
-\r
- case 63:\r
-#line 388 "fta.y"\r
- {(yyval.predp) = (yyvsp[(1) - (1)].predp);;}\r
- break;\r
-\r
- case 64:\r
-#line 392 "fta.y"\r
- { (yyval.predp)=(yyvsp[(1) - (1)].predp);;}\r
- break;\r
-\r
- case 65:\r
-#line 393 "fta.y"\r
- { (yyval.predp) = (yyvsp[(1) - (1)].predp);;}\r
- break;\r
-\r
- case 66:\r
-#line 394 "fta.y"\r
- {(yyval.predp) = predicate_t::make_paramless_fcn_predicate((yyvsp[(1) - (3)].strval)); ;}\r
- break;\r
-\r
- case 67:\r
-#line 395 "fta.y"\r
- {(yyval.predp) = new predicate_t((yyvsp[(1) - (4)].strval), (yyvsp[(3) - (4)].se_listval)->get_se_list()); ;}\r
- break;\r
-\r
- case 68:\r
-#line 399 "fta.y"\r
- {(yyval.predp) = new predicate_t((yyvsp[(1) - (3)].scalarval),(yyvsp[(2) - (3)].strval),(yyvsp[(3) - (3)].scalarval));;}\r
- break;\r
-\r
- case 69:\r
-#line 403 "fta.y"\r
- { (yyval.predp) = new predicate_t((yyvsp[(1) - (5)].scalarval),(yyvsp[(4) - (5)].lit_l)); ;}\r
- break;\r
-\r
- case 70:\r
-#line 407 "fta.y"\r
- {(yyval.lit_l) = new literal_list_t((yyvsp[(1) - (1)].litval));;}\r
- break;\r
-\r
- case 71:\r
-#line 408 "fta.y"\r
- {(yyval.lit_l) = (yyvsp[(1) - (3)].lit_l)->append_literal((yyvsp[(3) - (3)].litval));;}\r
- break;\r
-\r
- case 72:\r
-#line 414 "fta.y"\r
- { (yyval.scalarval)=new scalarexp_t("+",(yyvsp[(1) - (3)].scalarval),(yyvsp[(3) - (3)].scalarval));;}\r
- break;\r
-\r
- case 73:\r
-#line 415 "fta.y"\r
- { (yyval.scalarval)=new scalarexp_t("-",(yyvsp[(1) - (3)].scalarval),(yyvsp[(3) - (3)].scalarval));;}\r
- break;\r
-\r
- case 74:\r
-#line 416 "fta.y"\r
- { (yyval.scalarval)=new scalarexp_t("|",(yyvsp[(1) - (3)].scalarval),(yyvsp[(3) - (3)].scalarval));;}\r
- break;\r
-\r
- case 75:\r
-#line 417 "fta.y"\r
- { (yyval.scalarval)=new scalarexp_t("*",(yyvsp[(1) - (3)].scalarval),(yyvsp[(3) - (3)].scalarval));;}\r
- break;\r
-\r
- case 76:\r
-#line 418 "fta.y"\r
- { (yyval.scalarval)=new scalarexp_t("/",(yyvsp[(1) - (3)].scalarval),(yyvsp[(3) - (3)].scalarval));;}\r
- break;\r
-\r
- case 77:\r
-#line 419 "fta.y"\r
- { (yyval.scalarval)=new scalarexp_t("&",(yyvsp[(1) - (3)].scalarval),(yyvsp[(3) - (3)].scalarval));;}\r
- break;\r
-\r
- case 78:\r
-#line 420 "fta.y"\r
- { (yyval.scalarval)=new scalarexp_t("%",(yyvsp[(1) - (3)].scalarval),(yyvsp[(3) - (3)].scalarval));;}\r
- break;\r
-\r
- case 79:\r
-#line 421 "fta.y"\r
- { (yyval.scalarval)=new scalarexp_t((yyvsp[(2) - (3)].strval),(yyvsp[(1) - (3)].scalarval),(yyvsp[(3) - (3)].scalarval));;}\r
- break;\r
-\r
- case 80:\r
-#line 422 "fta.y"\r
- { (yyval.scalarval) = new scalarexp_t("+",(yyvsp[(2) - (2)].scalarval));;}\r
- break;\r
-\r
- case 81:\r
-#line 423 "fta.y"\r
- { (yyval.scalarval) = new scalarexp_t("-",(yyvsp[(2) - (2)].scalarval));;}\r
- break;\r
-\r
- case 82:\r
-#line 424 "fta.y"\r
- { (yyval.scalarval) = new scalarexp_t("!",(yyvsp[(2) - (2)].scalarval));;}\r
- break;\r
-\r
- case 83:\r
-#line 425 "fta.y"\r
- { (yyval.scalarval) = new scalarexp_t("~",(yyvsp[(2) - (2)].scalarval));;}\r
- break;\r
-\r
- case 84:\r
-#line 426 "fta.y"\r
- { (yyval.scalarval)= new scalarexp_t((yyvsp[(1) - (1)].litval));;}\r
- break;\r
-\r
- case 85:\r
-#line 427 "fta.y"\r
- {(yyval.scalarval) = scalarexp_t::make_param_reference((yyvsp[(2) - (2)].strval));;}\r
- break;\r
-\r
- case 86:\r
-#line 428 "fta.y"\r
- {(yyval.scalarval) = scalarexp_t::make_iface_param_reference((yyvsp[(1) - (1)].ifpref));;}\r
- break;\r
-\r
- case 87:\r
-#line 429 "fta.y"\r
- { (yyval.scalarval) = new scalarexp_t((yyvsp[(1) - (1)].colref));;}\r
- break;\r
-\r
- case 88:\r
-#line 430 "fta.y"\r
- {(yyval.scalarval) = (yyvsp[(2) - (3)].scalarval);;}\r
- break;\r
-\r
- case 89:\r
-#line 431 "fta.y"\r
- { (yyval.scalarval) = scalarexp_t::make_star_aggr((yyvsp[(1) - (4)].strval)); ;}\r
- break;\r
-\r
- case 90:\r
-#line 432 "fta.y"\r
- { (yyval.scalarval) = scalarexp_t::make_se_aggr((yyvsp[(1) - (4)].strval),(yyvsp[(3) - (4)].scalarval)); ;}\r
- break;\r
-\r
- case 91:\r
-#line 433 "fta.y"\r
- {(yyval.scalarval) = new scalarexp_t((yyvsp[(1) - (4)].strval), (yyvsp[(3) - (4)].se_listval)->get_se_list()); ;}\r
- break;\r
-\r
- case 92:\r
-#line 434 "fta.y"\r
- {(yyval.scalarval) = scalarexp_t::make_paramless_fcn((yyvsp[(1) - (3)].strval)); ;}\r
- break;\r
-\r
- case 93:\r
-#line 435 "fta.y"\r
- { (yyval.scalarval) = scalarexp_t::make_star_aggr((yyvsp[(1) - (5)].strval)); (yyval.scalarval)->set_superaggr(true); ;}\r
- break;\r
-\r
- case 94:\r
-#line 436 "fta.y"\r
- { (yyval.scalarval) = scalarexp_t::make_se_aggr((yyvsp[(1) - (5)].strval),(yyvsp[(4) - (5)].scalarval)); (yyval.scalarval)->set_superaggr(true); ;}\r
- break;\r
-\r
- case 95:\r
-#line 437 "fta.y"\r
- {(yyval.scalarval) = new scalarexp_t((yyvsp[(1) - (5)].strval), (yyvsp[(4) - (5)].se_listval)->get_se_list()); (yyval.scalarval)->set_superaggr(true); ;}\r
- break;\r
-\r
- case 96:\r
-#line 438 "fta.y"\r
- {(yyval.scalarval) = scalarexp_t::make_paramless_fcn((yyvsp[(1) - (4)].strval)); (yyval.scalarval)->set_superaggr(true); ;}\r
- break;\r
-\r
- case 97:\r
-#line 443 "fta.y"\r
- { (yyval.select_listval)= new select_list_t((yyvsp[(1) - (1)].scalarval)); ;}\r
- break;\r
-\r
- case 98:\r
-#line 444 "fta.y"\r
- { (yyval.select_listval)= new select_list_t((yyvsp[(1) - (3)].scalarval),(yyvsp[(3) - (3)].strval)); ;}\r
- break;\r
-\r
- case 99:\r
-#line 445 "fta.y"\r
- { (yyval.select_listval)=(yyvsp[(1) - (3)].select_listval)->append((yyvsp[(3) - (3)].scalarval)); ;}\r
- break;\r
-\r
- case 100:\r
-#line 446 "fta.y"\r
- { (yyval.select_listval)=(yyvsp[(1) - (5)].select_listval)->append((yyvsp[(3) - (5)].scalarval),(yyvsp[(5) - (5)].strval)); ;}\r
- break;\r
-\r
- case 101:\r
-#line 450 "fta.y"\r
- { (yyval.se_listval)= new se_list_t((yyvsp[(1) - (1)].scalarval)); ;}\r
- break;\r
-\r
- case 102:\r
-#line 451 "fta.y"\r
- { (yyval.se_listval)=(yyvsp[(1) - (3)].se_listval)->append((yyvsp[(3) - (3)].scalarval)); ;}\r
- break;\r
-\r
- case 103:\r
-#line 455 "fta.y"\r
- {(yyval.litval) = new literal_t((yyvsp[(1) - (1)].strval),LITERAL_STRING);;}\r
- break;\r
-\r
- case 104:\r
-#line 456 "fta.y"\r
- {(yyval.litval) = new literal_t((yyvsp[(1) - (1)].strval),LITERAL_INT);;}\r
- break;\r
-\r
- case 105:\r
-#line 457 "fta.y"\r
- {(yyval.litval) = new literal_t((yyvsp[(1) - (1)].strval),LITERAL_LONGINT);;}\r
- break;\r
-\r
- case 106:\r
-#line 458 "fta.y"\r
- {(yyval.litval) = new literal_t((yyvsp[(1) - (1)].strval),LITERAL_FLOAT);;}\r
- break;\r
-\r
- case 107:\r
-#line 459 "fta.y"\r
- {(yyval.litval) = new literal_t("TRUE",LITERAL_BOOL);;}\r
- break;\r
-\r
- case 108:\r
-#line 460 "fta.y"\r
- {(yyval.litval) = new literal_t("FALSE",LITERAL_BOOL);;}\r
- break;\r
-\r
- case 109:\r
-#line 461 "fta.y"\r
- {(yyval.litval) = new literal_t((yyvsp[(2) - (2)].strval),LITERAL_TIMEVAL);;}\r
- break;\r
-\r
- case 110:\r
-#line 462 "fta.y"\r
- {(yyval.litval) = new literal_t((yyvsp[(2) - (2)].strval),LITERAL_HEX);;}\r
- break;\r
-\r
- case 111:\r
-#line 463 "fta.y"\r
- {(yyval.litval) = new literal_t((yyvsp[(2) - (2)].strval),LITERAL_LONGHEX);;}\r
- break;\r
-\r
- case 112:\r
-#line 464 "fta.y"\r
- {(yyval.litval) = new literal_t((yyvsp[(2) - (2)].strval),LITERAL_IP);;}\r
- break;\r
-\r
- case 113:\r
-#line 465 "fta.y"\r
- {(yyval.litval) = new literal_t((yyvsp[(2) - (2)].strval),LITERAL_IPV6);;}\r
- break;\r
-\r
- case 114:\r
-#line 466 "fta.y"\r
- {(yyval.litval) = literal_t::make_define_literal((yyvsp[(2) - (2)].strval),fta_parse_defines);;}\r
- break;\r
-\r
- case 115:\r
-#line 472 "fta.y"\r
- {(yyval.extended_gb_list) = NULL;;}\r
- break;\r
-\r
- case 116:\r
-#line 473 "fta.y"\r
- {(yyval.extended_gb_list) = (yyvsp[(3) - (3)].extended_gb_list);;}\r
- break;\r
-\r
- case 117:\r
-#line 477 "fta.y"\r
- {(yyval.clist) = NULL;;}\r
- break;\r
-\r
- case 118:\r
-#line 478 "fta.y"\r
- {(yyval.clist) = (yyvsp[(2) - (2)].clist);;}\r
- break;\r
-\r
- case 119:\r
-#line 482 "fta.y"\r
- { (yyval.list_of_gb_list) = new list_of_gb_list_t((yyvsp[(2) - (3)].gb_list));;}\r
- break;\r
-\r
- case 120:\r
-#line 483 "fta.y"\r
- {(yyval.list_of_gb_list) = (yyvsp[(1) - (5)].list_of_gb_list)->append((yyvsp[(4) - (5)].gb_list));;}\r
- break;\r
-\r
- case 121:\r
-#line 487 "fta.y"\r
- {(yyval.extended_gb) = extended_gb_t::create_from_gb((yyvsp[(1) - (1)].gb_val));;}\r
- break;\r
-\r
- case 122:\r
-#line 488 "fta.y"\r
- {(yyval.extended_gb) = extended_gb_t::extended_create_from_rollup((yyvsp[(3) - (4)].gb_list));;}\r
- break;\r
-\r
- case 123:\r
-#line 489 "fta.y"\r
- {(yyval.extended_gb) = extended_gb_t::extended_create_from_cube((yyvsp[(3) - (4)].gb_list));;}\r
- break;\r
-\r
- case 124:\r
-#line 490 "fta.y"\r
- {(yyval.extended_gb) = extended_gb_t::extended_create_from_gsets((yyvsp[(3) - (4)].list_of_gb_list));;}\r
- break;\r
-\r
- case 125:\r
-#line 494 "fta.y"\r
- { (yyval.extended_gb_list) = new extended_gb_list_t((yyvsp[(1) - (1)].extended_gb));;}\r
- break;\r
-\r
- case 126:\r
-#line 495 "fta.y"\r
- { (yyval.extended_gb_list)=(yyvsp[(1) - (3)].extended_gb_list)->append((yyvsp[(3) - (3)].extended_gb));;}\r
- break;\r
-\r
- case 127:\r
-#line 499 "fta.y"\r
- { (yyval.gb_list) = new gb_list_t((yyvsp[(1) - (1)].gb_val));;}\r
- break;\r
-\r
- case 128:\r
-#line 500 "fta.y"\r
- { (yyval.gb_list)=(yyvsp[(1) - (3)].gb_list)->append((yyvsp[(3) - (3)].gb_val));;}\r
- break;\r
-\r
- case 129:\r
-#line 504 "fta.y"\r
- {(yyval.gb_val) = new gb_t((yyvsp[(1) - (1)].strval)); ;}\r
- break;\r
-\r
- case 130:\r
-#line 505 "fta.y"\r
- {(yyval.gb_val) = new gb_t((yyvsp[(1) - (3)].strval),(yyvsp[(3) - (3)].strval)); ;}\r
- break;\r
-\r
- case 131:\r
-#line 506 "fta.y"\r
- {(yyval.gb_val) = new gb_t((yyvsp[(1) - (5)].strval),(yyvsp[(3) - (5)].strval),(yyvsp[(5) - (5)].strval)); ;}\r
- break;\r
-\r
- case 132:\r
-#line 507 "fta.y"\r
- {(yyval.gb_val) = new gb_t((yyvsp[(1) - (3)].scalarval),(yyvsp[(3) - (3)].strval)); ;}\r
- break;\r
-\r
- case 133:\r
-#line 518 "fta.y"\r
- {(yyval.ifpref) = new ifpref_t((yyvsp[(2) - (2)].strval));;}\r
- break;\r
-\r
- case 134:\r
-#line 519 "fta.y"\r
- {(yyval.ifpref) = new ifpref_t((yyvsp[(1) - (4)].strval), (yyvsp[(4) - (4)].strval));;}\r
- break;\r
-\r
- case 135:\r
-#line 523 "fta.y"\r
- {(yyval.colref) = new colref_t((yyvsp[(1) - (1)].strval)); ;}\r
- break;\r
-\r
- case 136:\r
-#line 524 "fta.y"\r
- {(yyval.colref) = new colref_t((yyvsp[(1) - (3)].strval),(yyvsp[(3) - (3)].strval)); ;}\r
- break;\r
-\r
- case 137:\r
-#line 525 "fta.y"\r
- {(yyval.colref) = new colref_t((yyvsp[(1) - (5)].strval),(yyvsp[(3) - (5)].strval),(yyvsp[(5) - (5)].strval)); ;}\r
- break;\r
-\r
- case 138:\r
-#line 529 "fta.y"\r
- {(yyval.clist)=new colref_list_t((yyvsp[(1) - (3)].colref)); (yyval.clist)->append((yyvsp[(3) - (3)].colref));;}\r
- break;\r
-\r
- case 139:\r
-#line 530 "fta.y"\r
- {(yyval.clist) = (yyvsp[(1) - (3)].clist)->append((yyvsp[(3) - (3)].colref));;}\r
- break;\r
-\r
- case 140:\r
-#line 534 "fta.y"\r
- {(yyval.colref) = new colref_t((yyvsp[(1) - (1)].strval)); ;}\r
- break;\r
-\r
- case 141:\r
-#line 538 "fta.y"\r
- {(yyval.clist)=new colref_list_t((yyvsp[(1) - (3)].colref)); (yyval.clist)->append((yyvsp[(3) - (3)].colref));;}\r
- break;\r
-\r
- case 142:\r
-#line 539 "fta.y"\r
- {(yyval.clist) = (yyvsp[(1) - (3)].clist)->append((yyvsp[(3) - (3)].colref));;}\r
- break;\r
-\r
- case 143:\r
-#line 554 "fta.y"\r
- {(yyval.table_list_schema) = new table_list((yyvsp[(1) - (1)].table_def_t));;}\r
- break;\r
-\r
- case 144:\r
-#line 555 "fta.y"\r
- {(yyval.table_list_schema) = (yyvsp[(1) - (2)].table_list_schema)->append_table((yyvsp[(2) - (2)].table_def_t));;}\r
- break;\r
-\r
- case 145:\r
-#line 558 "fta.y"\r
- {\r
- (yyval.table_def_t)=new table_def((yyvsp[(2) - (7)].strval),(yyvsp[(3) - (7)].plist_t),(yyvsp[(4) - (7)].plist_t), (yyvsp[(6) - (7)].field_list_t), PROTOCOL_SCHEMA); delete (yyvsp[(6) - (7)].field_list_t);;}\r
- break;\r
-\r
- case 146:\r
-#line 560 "fta.y"\r
- {\r
- (yyval.table_def_t)=new table_def((yyvsp[(2) - (6)].stringval)->c_str(),(yyvsp[(3) - (6)].plist_t),NULL,(yyvsp[(5) - (6)].field_list_t), STREAM_SCHEMA); delete (yyvsp[(5) - (6)].field_list_t);;}\r
- break;\r
-\r
- case 147:\r
-#line 562 "fta.y"\r
- {\r
- (yyval.table_def_t) = new table_def((yyvsp[(2) - (16)].strval), (yyvsp[(5) - (16)].plist_t), (yyvsp[(8) - (16)].field_list_t), (yyvsp[(12) - (16)].subqueryspec_list_t), (yyvsp[(15) - (16)].plist_t)); ;}\r
- break;\r
-\r
- case 148:\r
-#line 564 "fta.y"\r
- { (yyval.table_def_t) = new table_def((yyvsp[(3) - (4)].ufcnl)); ;}\r
- break;\r
-\r
- case 149:\r
-#line 568 "fta.y"\r
- {(yyval.ufcnl) = new unpack_fcn_list((yyvsp[(1) - (1)].ufcn));;}\r
- break;\r
-\r
- case 150:\r
-#line 569 "fta.y"\r
- {(yyval.ufcnl) = (yyvsp[(1) - (3)].ufcnl) -> append((yyvsp[(3) - (3)].ufcn));;}\r
- break;\r
-\r
- case 151:\r
-#line 573 "fta.y"\r
- {(yyval.ufcn) = new unpack_fcn((yyvsp[(1) - (3)].strval),(yyvsp[(2) - (3)].strval),(yyvsp[(3) - (3)].strval));;}\r
- break;\r
-\r
- case 152:\r
-#line 577 "fta.y"\r
- {(yyval.subqueryspec_list_t) = new subqueryspec_list((yyvsp[(1) - (1)].subq_spec_t));;}\r
- break;\r
-\r
- case 153:\r
-#line 578 "fta.y"\r
- {(yyval.subqueryspec_list_t) = (yyvsp[(1) - (3)].subqueryspec_list_t)->append((yyvsp[(3) - (3)].subq_spec_t));;}\r
- break;\r
-\r
- case 154:\r
-#line 582 "fta.y"\r
- {(yyval.subq_spec_t)=new subquery_spec((yyvsp[(1) - (4)].strval), (yyvsp[(3) - (4)].namevec_t)); delete (yyvsp[(3) - (4)].namevec_t);;}\r
- break;\r
-\r
- case 155:\r
-#line 585 "fta.y"\r
- {(yyval.field_list_t) = new field_entry_list((yyvsp[(1) - (1)].field_t));;}\r
- break;\r
-\r
- case 156:\r
-#line 586 "fta.y"\r
- {(yyval.field_list_t) = (yyvsp[(1) - (2)].field_list_t)->append_field((yyvsp[(2) - (2)].field_t));;}\r
- break;\r
-\r
- case 157:\r
-#line 590 "fta.y"\r
- {(yyval.field_t) = new field_entry((yyvsp[(1) - (6)].strval),(yyvsp[(2) - (6)].strval),(yyvsp[(3) - (6)].strval),(yyvsp[(4) - (6)].plist_t),(yyvsp[(5) - (6)].plist_t));;}\r
- break;\r
-\r
- case 158:\r
-#line 591 "fta.y"\r
- {(yyval.field_t) = new field_entry((yyvsp[(1) - (4)].strval),(yyvsp[(2) - (4)].strval),"",(yyvsp[(3) - (4)].plist_t),NULL);;}\r
- break;\r
-\r
- case 159:\r
-#line 595 "fta.y"\r
- {(yyval.plist_t) = NULL;;}\r
- break;\r
-\r
- case 160:\r
-#line 596 "fta.y"\r
- {(yyval.plist_t) = (yyvsp[(2) - (3)].plist_t);;}\r
- break;\r
-\r
- case 161:\r
-#line 600 "fta.y"\r
- {(yyval.plist_t) = new param_list((yyvsp[(1) - (1)].strval));;}\r
- break;\r
-\r
- case 162:\r
-#line 601 "fta.y"\r
- {(yyval.plist_t) = new param_list((yyvsp[(1) - (2)].strval),(yyvsp[(2) - (2)].strval));;}\r
- break;\r
-\r
- case 163:\r
-#line 602 "fta.y"\r
- {(yyval.plist_t) = new param_list((yyvsp[(1) - (2)].strval),(yyvsp[(2) - (2)].strval));;}\r
- break;\r
-\r
- case 164:\r
-#line 603 "fta.y"\r
- {(yyval.plist_t) = new param_list((yyvsp[(1) - (2)].strval),(yyvsp[(2) - (2)].strval));;}\r
- break;\r
-\r
- case 165:\r
-#line 604 "fta.y"\r
- {(yyval.plist_t) = (yyvsp[(1) - (3)].plist_t)->append((yyvsp[(3) - (3)].strval));;}\r
- break;\r
-\r
- case 166:\r
-#line 605 "fta.y"\r
- {(yyval.plist_t) = (yyvsp[(1) - (4)].plist_t)->append((yyvsp[(3) - (4)].strval),(yyvsp[(4) - (4)].strval));;}\r
- break;\r
-\r
- case 167:\r
-#line 606 "fta.y"\r
- {(yyval.plist_t) = (yyvsp[(1) - (4)].plist_t)->append((yyvsp[(3) - (4)].strval),(yyvsp[(4) - (4)].strval));;}\r
- break;\r
-\r
- case 168:\r
-#line 607 "fta.y"\r
- {(yyval.plist_t) = (yyvsp[(1) - (4)].plist_t)->append((yyvsp[(3) - (4)].strval),(yyvsp[(4) - (4)].strval));;}\r
- break;\r
-\r
- case 169:\r
-#line 611 "fta.y"\r
- {(yyval.plist_t) = NULL;;}\r
- break;\r
-\r
- case 170:\r
-#line 612 "fta.y"\r
- {(yyval.plist_t) = (yyvsp[(2) - (3)].plist_t);;}\r
- break;\r
-\r
- case 171:\r
-#line 616 "fta.y"\r
- {(yyval.plist_t) = NULL;;}\r
- break;\r
-\r
- case 172:\r
-#line 617 "fta.y"\r
- {(yyval.plist_t) = (yyvsp[(2) - (3)].plist_t);;}\r
- break;\r
-\r
- case 173:\r
-#line 621 "fta.y"\r
- {(yyval.plist_t) = new param_list((yyvsp[(1) - (1)].strval));;}\r
- break;\r
-\r
- case 174:\r
-#line 622 "fta.y"\r
- {(yyval.plist_t) = (yyvsp[(1) - (3)].plist_t)->append((yyvsp[(3) - (3)].strval));;}\r
- break;\r
-\r
- case 175:\r
-#line 626 "fta.y"\r
- {(yyval.namevec_t) = new name_vec((yyvsp[(1) - (3)].strval),(yyvsp[(2) - (3)].strval),(yyvsp[(3) - (3)].plist_t));;}\r
- break;\r
-\r
- case 176:\r
-#line 627 "fta.y"\r
- {(yyval.namevec_t) = (yyvsp[(1) - (5)].namevec_t)->append((yyvsp[(3) - (5)].strval),(yyvsp[(4) - (5)].strval), (yyvsp[(5) - (5)].plist_t));;}\r
- break;\r
-\r
-\r
-/* Line 1267 of yacc.c. */\r
-#line 2843 "fta.tab.cc"\r
- default: break;\r
- }\r
- YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);\r
-\r
- YYPOPSTACK (yylen);\r
- yylen = 0;\r
- YY_STACK_PRINT (yyss, yyssp);\r
-\r
- *++yyvsp = yyval;\r
-\r
-\r
- /* Now `shift' the result of the reduction. Determine what state\r
- that goes to, based on the state we popped back to and the rule\r
- number reduced by. */\r
-\r
- yyn = yyr1[yyn];\r
-\r
- yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;\r
- if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)\r
- yystate = yytable[yystate];\r
- else\r
- yystate = yydefgoto[yyn - YYNTOKENS];\r
-\r
- goto yynewstate;\r
-\r
-\r
-/*------------------------------------.\r
-| yyerrlab -- here on detecting error |\r
-`------------------------------------*/\r
-yyerrlab:\r
- /* If not already recovering from an error, report this error. */\r
- if (!yyerrstatus)\r
- {\r
- ++yynerrs;\r
-#if ! YYERROR_VERBOSE\r
- yyerror (YY_("syntax error"));\r
-#else\r
- {\r
- YYSIZE_T yysize = yysyntax_error (0, yystate, yychar);\r
- if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM)\r
- {\r
- YYSIZE_T yyalloc = 2 * yysize;\r
- if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM))\r
- yyalloc = YYSTACK_ALLOC_MAXIMUM;\r
- if (yymsg != yymsgbuf)\r
- YYSTACK_FREE (yymsg);\r
- yymsg = (char *) YYSTACK_ALLOC (yyalloc);\r
- if (yymsg)\r
- yymsg_alloc = yyalloc;\r
- else\r
- {\r
- yymsg = yymsgbuf;\r
- yymsg_alloc = sizeof yymsgbuf;\r
- }\r
- }\r
-\r
- if (0 < yysize && yysize <= yymsg_alloc)\r
- {\r
- (void) yysyntax_error (yymsg, yystate, yychar);\r
- yyerror (yymsg);\r
- }\r
- else\r
- {\r
- yyerror (YY_("syntax error"));\r
- if (yysize != 0)\r
- goto yyexhaustedlab;\r
- }\r
- }\r
-#endif\r
- }\r
-\r
-\r
-\r
- if (yyerrstatus == 3)\r
- {\r
- /* If just tried and failed to reuse look-ahead token after an\r
- error, discard it. */\r
-\r
- if (yychar <= YYEOF)\r
- {\r
- /* Return failure if at end of input. */\r
- if (yychar == YYEOF)\r
- YYABORT;\r
- }\r
- else\r
- {\r
- yydestruct ("Error: discarding",\r
- yytoken, &yylval);\r
- yychar = YYEMPTY;\r
- }\r
- }\r
-\r
- /* Else will try to reuse look-ahead token after shifting the error\r
- token. */\r
- goto yyerrlab1;\r
-\r
-\r
-/*---------------------------------------------------.\r
-| yyerrorlab -- error raised explicitly by YYERROR. |\r
-`---------------------------------------------------*/\r
-yyerrorlab:\r
-\r
- /* Pacify compilers like GCC when the user code never invokes\r
- YYERROR and the label yyerrorlab therefore never appears in user\r
- code. */\r
- if (/*CONSTCOND*/ 0)\r
- goto yyerrorlab;\r
-\r
- /* Do not reclaim the symbols of the rule which action triggered\r
- this YYERROR. */\r
- YYPOPSTACK (yylen);\r
- yylen = 0;\r
- YY_STACK_PRINT (yyss, yyssp);\r
- yystate = *yyssp;\r
- goto yyerrlab1;\r
-\r
-\r
-/*-------------------------------------------------------------.\r
-| yyerrlab1 -- common code for both syntax error and YYERROR. |\r
-`-------------------------------------------------------------*/\r
-yyerrlab1:\r
- yyerrstatus = 3; /* Each real token shifted decrements this. */\r
-\r
- for (;;)\r
- {\r
- yyn = yypact[yystate];\r
- if (yyn != YYPACT_NINF)\r
- {\r
- yyn += YYTERROR;\r
- if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)\r
- {\r
- yyn = yytable[yyn];\r
- if (0 < yyn)\r
- break;\r
- }\r
- }\r
-\r
- /* Pop the current state because it cannot handle the error token. */\r
- if (yyssp == yyss)\r
- YYABORT;\r
-\r
-\r
- yydestruct ("Error: popping",\r
- yystos[yystate], yyvsp);\r
- YYPOPSTACK (1);\r
- yystate = *yyssp;\r
- YY_STACK_PRINT (yyss, yyssp);\r
- }\r
-\r
- if (yyn == YYFINAL)\r
- YYACCEPT;\r
-\r
- *++yyvsp = yylval;\r
-\r
-\r
- /* Shift the error token. */\r
- YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);\r
-\r
- yystate = yyn;\r
- goto yynewstate;\r
-\r
-\r
-/*-------------------------------------.\r
-| yyacceptlab -- YYACCEPT comes here. |\r
-`-------------------------------------*/\r
-yyacceptlab:\r
- yyresult = 0;\r
- goto yyreturn;\r
-\r
-/*-----------------------------------.\r
-| yyabortlab -- YYABORT comes here. |\r
-`-----------------------------------*/\r
-yyabortlab:\r
- yyresult = 1;\r
- goto yyreturn;\r
-\r
-#ifndef yyoverflow\r
-/*-------------------------------------------------.\r
-| yyexhaustedlab -- memory exhaustion comes here. |\r
-`-------------------------------------------------*/\r
-yyexhaustedlab:\r
- yyerror (YY_("memory exhausted"));\r
- yyresult = 2;\r
- /* Fall through. */\r
-#endif\r
-\r
-yyreturn:\r
- if (yychar != YYEOF && yychar != YYEMPTY)\r
- yydestruct ("Cleanup: discarding lookahead",\r
- yytoken, &yylval);\r
- /* Do not reclaim the symbols of the rule which action triggered\r
- this YYABORT or YYACCEPT. */\r
- YYPOPSTACK (yylen);\r
- YY_STACK_PRINT (yyss, yyssp);\r
- while (yyssp != yyss)\r
- {\r
- yydestruct ("Cleanup: popping",\r
- yystos[*yyssp], yyvsp);\r
- YYPOPSTACK (1);\r
- }\r
-#ifndef yyoverflow\r
- if (yyss != yyssa)\r
- YYSTACK_FREE (yyss);\r
-#endif\r
-#if YYERROR_VERBOSE\r
- if (yymsg != yymsgbuf)\r
- YYSTACK_FREE (yymsg);\r
-#endif\r
- /* Make sure YYID is used. */\r
- return YYID (yyresult);\r
-}\r
-\r
-\r
-#line 630 "fta.y"\r
-\r
-\r
-\r
+/* A Bison parser, made by GNU Bison 2.3. */
+
+/* Skeleton implementation for Bison's Yacc-like parsers in C
+
+ Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
+ Free Software Foundation, Inc.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA. */
+
+/* As a special exception, you may create a larger work that contains
+ part or all of the Bison parser skeleton and distribute that work
+ under terms of your choice, so long as that work isn't itself a
+ parser generator using the skeleton or a modified version thereof
+ as a parser skeleton. Alternatively, if you modify or redistribute
+ the parser skeleton itself, you may (at your option) remove this
+ special exception, which will cause the skeleton and the resulting
+ Bison output files to be licensed under the GNU General Public
+ License without this special exception.
+
+ This special exception was added by the Free Software Foundation in
+ version 2.2 of Bison. */
+
+/* C LALR(1) parser skeleton written by Richard Stallman, by
+ simplifying the original so-called "semantic" parser. */
+
+/* All symbols defined below should begin with yy or YY, to avoid
+ infringing on user name space. This should be done even for local
+ variables, as they might otherwise be expanded by user macros.
+ There are some unavoidable exceptions within include files to
+ define necessary library symbols; they are noted "INFRINGES ON
+ USER NAME SPACE" below. */
+
+/* Identify Bison output. */
+#define YYBISON 1
+
+/* Bison version. */
+#define YYBISON_VERSION "2.3"
+
+/* Skeleton name. */
+#define YYSKELETON_NAME "yacc.c"
+
+/* Pure parsers. */
+#define YYPURE 0
+
+/* Using locations. */
+#define YYLSP_NEEDED 0
+
+/* Substitute the variable and function names. */
+#define yyparse FtaParserparse
+#define yylex FtaParserlex
+#define yyerror FtaParsererror
+#define yylval FtaParserlval
+#define yychar FtaParserchar
+#define yydebug FtaParserdebug
+#define yynerrs FtaParsernerrs
+
+
+/* Tokens. */
+#ifndef YYTOKENTYPE
+# define YYTOKENTYPE
+ /* Put the tokens into the symbol table, so that GDB and other debuggers
+ know about them. */
+ enum yytokentype {
+ NAME = 258,
+ STRING_TOKEN = 259,
+ INTNUM = 260,
+ LONGINTNUM = 261,
+ APPROXNUM = 262,
+ OR = 263,
+ AND = 264,
+ NOT = 265,
+ COMPARISON = 266,
+ SHIFT_OP = 267,
+ UMINUS = 268,
+ SEMICOLON = 269,
+ LEFTBRACE = 270,
+ RIGHTBRACE = 271,
+ BY = 272,
+ AS = 273,
+ AGGR = 274,
+ FROM = 275,
+ INNER_JOIN = 276,
+ FILTER_JOIN = 277,
+ OUTER_JOIN = 278,
+ LEFT_OUTER_JOIN = 279,
+ RIGHT_OUTER_JOIN = 280,
+ GROUP = 281,
+ HAVING = 282,
+ IN = 283,
+ SELECT = 284,
+ WHERE = 285,
+ SUPERGROUP = 286,
+ CLEANING_WHEN = 287,
+ CLEANING_BY = 288,
+ CLOSING_WHEN = 289,
+ SUCH = 290,
+ THAT = 291,
+ CUBE = 292,
+ ROLLUP = 293,
+ GROUPING_SETS = 294,
+ TRUE_V = 295,
+ FALSE_V = 296,
+ TIMEVAL_L = 297,
+ HEX_L = 298,
+ LHEX_L = 299,
+ IP_L = 300,
+ IPV6_L = 301,
+ MERGE = 302,
+ SLACK = 303,
+ DEFINE_SEC = 304,
+ PARAM_SEC = 305,
+ PROTOCOL = 306,
+ TABLE = 307,
+ STREAM = 308,
+ FTA = 309,
+ UNPACK_FCNS = 310,
+ OPERATOR = 311,
+ OPERATOR_VIEW = 312,
+ FIELDS = 313,
+ SUBQUERIES = 314,
+ SELECTION_PUSHDOWN = 315
+ };
+#endif
+/* Tokens. */
+#define NAME 258
+#define STRING_TOKEN 259
+#define INTNUM 260
+#define LONGINTNUM 261
+#define APPROXNUM 262
+#define OR 263
+#define AND 264
+#define NOT 265
+#define COMPARISON 266
+#define SHIFT_OP 267
+#define UMINUS 268
+#define SEMICOLON 269
+#define LEFTBRACE 270
+#define RIGHTBRACE 271
+#define BY 272
+#define AS 273
+#define AGGR 274
+#define FROM 275
+#define INNER_JOIN 276
+#define FILTER_JOIN 277
+#define OUTER_JOIN 278
+#define LEFT_OUTER_JOIN 279
+#define RIGHT_OUTER_JOIN 280
+#define GROUP 281
+#define HAVING 282
+#define IN 283
+#define SELECT 284
+#define WHERE 285
+#define SUPERGROUP 286
+#define CLEANING_WHEN 287
+#define CLEANING_BY 288
+#define CLOSING_WHEN 289
+#define SUCH 290
+#define THAT 291
+#define CUBE 292
+#define ROLLUP 293
+#define GROUPING_SETS 294
+#define TRUE_V 295
+#define FALSE_V 296
+#define TIMEVAL_L 297
+#define HEX_L 298
+#define LHEX_L 299
+#define IP_L 300
+#define IPV6_L 301
+#define MERGE 302
+#define SLACK 303
+#define DEFINE_SEC 304
+#define PARAM_SEC 305
+#define PROTOCOL 306
+#define TABLE 307
+#define STREAM 308
+#define FTA 309
+#define UNPACK_FCNS 310
+#define OPERATOR 311
+#define OPERATOR_VIEW 312
+#define FIELDS 313
+#define SUBQUERIES 314
+#define SELECTION_PUSHDOWN 315
+
+
+
+
+/* Copy the first part of user declarations. */
+#line 8 "fta.y"
+
+
+
+#include <stdio.h>
+
+/* Some addn'l includes, necessary but not included by the
+ bison generated code.
+*/
+
+#include <stdlib.h>
+
+/* prototypes for the parser callbacks.
+*/
+
+#include "parse_fta.h"
+#include "parse_schema.h"
+
+
+extern fta_parse_t *fta_parse_result;
+extern var_defs_t *fta_parse_defines;
+
+
+#define YYDEBUG 1
+
+
+
+/* Enabling traces. */
+#ifndef YYDEBUG
+# define YYDEBUG 0
+#endif
+
+/* Enabling verbose error messages. */
+#ifdef YYERROR_VERBOSE
+# undef YYERROR_VERBOSE
+# define YYERROR_VERBOSE 1
+#else
+# define YYERROR_VERBOSE 0
+#endif
+
+/* Enabling the token table. */
+#ifndef YYTOKEN_TABLE
+# define YYTOKEN_TABLE 0
+#endif
+
+#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
+typedef union YYSTYPE
+#line 37 "fta.y"
+{
+ int intval;
+ double floatval;
+ char *strval;
+ int subtok;
+
+ string_t *stringval;
+
+/* for FTA definition. */
+ literal_t *litval;
+ scalarexp_t *scalarval;
+ se_list_t *se_listval;
+ select_list_t *select_listval;
+ table_exp_t *tblp;
+ predicate_t *predp;
+ literal_list_t *lit_l;
+ tablevar_t *table;
+ tablevar_list_t *tbl_list;
+ colref_t *colref;
+ ifpref_t *ifpref;
+ colref_list_t *clist;
+ var_defs_t *var_defs;
+ var_pair_t *var_pair;
+ gb_t *gb_val;
+ gb_list_t *gb_list;
+ list_of_gb_list_t *list_of_gb_list;
+ extended_gb_t *extended_gb;
+ extended_gb_list_t *extended_gb_list;
+
+ query_list_t *q_list;
+
+/* For table definition */
+ field_entry *field_t;
+ field_entry_list *field_list_t;
+ table_def *table_def_t;
+ table_list *table_list_schema;
+ param_list *plist_t;
+ name_vec *namevec_t;
+ subquery_spec *subq_spec_t;
+ subqueryspec_list *subqueryspec_list_t;
+ unpack_fcn *ufcn;
+ unpack_fcn_list *ufcnl;
+
+}
+/* Line 193 of yacc.c. */
+#line 295 "fta.tab.cc"
+ YYSTYPE;
+# define yystype YYSTYPE /* obsolescent; will be withdrawn */
+# define YYSTYPE_IS_DECLARED 1
+# define YYSTYPE_IS_TRIVIAL 1
+#endif
+
+
+
+/* Copy the second part of user declarations. */
+
+
+/* Line 216 of yacc.c. */
+#line 308 "fta.tab.cc"
+
+#ifdef short
+# undef short
+#endif
+
+#ifdef YYTYPE_UINT8
+typedef YYTYPE_UINT8 yytype_uint8;
+#else
+typedef unsigned char yytype_uint8;
+#endif
+
+#ifdef YYTYPE_INT8
+typedef YYTYPE_INT8 yytype_int8;
+#elif (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+typedef signed char yytype_int8;
+#else
+typedef short int yytype_int8;
+#endif
+
+#ifdef YYTYPE_UINT16
+typedef YYTYPE_UINT16 yytype_uint16;
+#else
+typedef unsigned short int yytype_uint16;
+#endif
+
+#ifdef YYTYPE_INT16
+typedef YYTYPE_INT16 yytype_int16;
+#else
+typedef short int yytype_int16;
+#endif
+
+#ifndef YYSIZE_T
+# ifdef __SIZE_TYPE__
+# define YYSIZE_T __SIZE_TYPE__
+# elif defined size_t
+# define YYSIZE_T size_t
+# elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
+# define YYSIZE_T size_t
+# else
+# define YYSIZE_T unsigned int
+# endif
+#endif
+
+#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
+
+#ifndef YY_
+# if YYENABLE_NLS
+# if ENABLE_NLS
+# include <libintl.h> /* INFRINGES ON USER NAME SPACE */
+# define YY_(msgid) dgettext ("bison-runtime", msgid)
+# endif
+# endif
+# ifndef YY_
+# define YY_(msgid) msgid
+# endif
+#endif
+
+/* Suppress unused-variable warnings by "using" E. */
+#if ! defined lint || defined __GNUC__
+# define YYUSE(e) ((void) (e))
+#else
+# define YYUSE(e) /* empty */
+#endif
+
+/* Identity function, used to suppress warnings about constant conditions. */
+#ifndef lint
+# define YYID(n) (n)
+#else
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+static int
+YYID (int i)
+#else
+static int
+YYID (i)
+ int i;
+#endif
+{
+ return i;
+}
+#endif
+
+#if ! defined yyoverflow || YYERROR_VERBOSE
+
+/* The parser invokes alloca or malloc; define the necessary symbols. */
+
+# ifdef YYSTACK_USE_ALLOCA
+# if YYSTACK_USE_ALLOCA
+# ifdef __GNUC__
+# define YYSTACK_ALLOC __builtin_alloca
+# elif defined __BUILTIN_VA_ARG_INCR
+# include <alloca.h> /* INFRINGES ON USER NAME SPACE */
+# elif defined _AIX
+# define YYSTACK_ALLOC __alloca
+# elif defined _MSC_VER
+# include <malloc.h> /* INFRINGES ON USER NAME SPACE */
+# define alloca _alloca
+# else
+# define YYSTACK_ALLOC alloca
+# if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
+# ifndef _STDLIB_H
+# define _STDLIB_H 1
+# endif
+# endif
+# endif
+# endif
+# endif
+
+# ifdef YYSTACK_ALLOC
+ /* Pacify GCC's `empty if-body' warning. */
+# define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
+# ifndef YYSTACK_ALLOC_MAXIMUM
+ /* The OS might guarantee only one guard page at the bottom of the stack,
+ and a page size can be as small as 4096 bytes. So we cannot safely
+ invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
+ to allow for a few compiler-allocated temporary stack slots. */
+# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
+# endif
+# else
+# define YYSTACK_ALLOC YYMALLOC
+# define YYSTACK_FREE YYFREE
+# ifndef YYSTACK_ALLOC_MAXIMUM
+# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
+# endif
+# if (defined __cplusplus && ! defined _STDLIB_H \
+ && ! ((defined YYMALLOC || defined malloc) \
+ && (defined YYFREE || defined free)))
+# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
+# ifndef _STDLIB_H
+# define _STDLIB_H 1
+# endif
+# endif
+# ifndef YYMALLOC
+# define YYMALLOC malloc
+# if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
+# endif
+# endif
+# ifndef YYFREE
+# define YYFREE free
+# if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+void free (void *); /* INFRINGES ON USER NAME SPACE */
+# endif
+# endif
+# endif
+#endif /* ! defined yyoverflow || YYERROR_VERBOSE */
+
+
+#if (! defined yyoverflow \
+ && (! defined __cplusplus \
+ || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
+
+/* A type that is properly aligned for any stack member. */
+union yyalloc
+{
+ yytype_int16 yyss;
+ YYSTYPE yyvs;
+ };
+
+/* The size of the maximum gap between one aligned stack and the next. */
+# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
+
+/* The size of an array large to enough to hold all stacks, each with
+ N elements. */
+# define YYSTACK_BYTES(N) \
+ ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
+ + YYSTACK_GAP_MAXIMUM)
+
+/* Copy COUNT objects from FROM to TO. The source and destination do
+ not overlap. */
+# ifndef YYCOPY
+# if defined __GNUC__ && 1 < __GNUC__
+# define YYCOPY(To, From, Count) \
+ __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
+# else
+# define YYCOPY(To, From, Count) \
+ do \
+ { \
+ YYSIZE_T yyi; \
+ for (yyi = 0; yyi < (Count); yyi++) \
+ (To)[yyi] = (From)[yyi]; \
+ } \
+ while (YYID (0))
+# endif
+# endif
+
+/* Relocate STACK from its old location to the new one. The
+ local variables YYSIZE and YYSTACKSIZE give the old and new number of
+ elements in the stack, and YYPTR gives the new location of the
+ stack. Advance YYPTR to a properly aligned location for the next
+ stack. */
+# define YYSTACK_RELOCATE(Stack) \
+ do \
+ { \
+ YYSIZE_T yynewbytes; \
+ YYCOPY (&yyptr->Stack, Stack, yysize); \
+ Stack = &yyptr->Stack; \
+ yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
+ yyptr += yynewbytes / sizeof (*yyptr); \
+ } \
+ while (YYID (0))
+
+#endif
+
+/* YYFINAL -- State number of the termination state. */
+#define YYFINAL 57
+/* YYLAST -- Last index in YYTABLE. */
+#define YYLAST 708
+
+/* YYNTOKENS -- Number of terminals. */
+#define YYNTOKENS 80
+/* YYNNTS -- Number of nonterminals. */
+#define YYNNTS 59
+/* YYNRULES -- Number of rules. */
+#define YYNRULES 176
+/* YYNRULES -- Number of states. */
+#define YYNSTATES 377
+
+/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
+#define YYUNDEFTOK 2
+#define YYMAXUTOK 315
+
+#define YYTRANSLATE(YYX) \
+ ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
+
+/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
+static const yytype_uint8 yytranslate[] =
+{
+ 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 74, 2, 77, 76, 19, 13, 2,
+ 68, 70, 17, 15, 69, 16, 71, 18, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 79, 2,
+ 2, 2, 2, 2, 78, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 72, 2, 73, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 12, 2, 75, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
+ 5, 6, 7, 8, 9, 10, 11, 14, 20, 21,
+ 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
+ 32, 33, 34, 35, 36, 37, 38, 39, 40, 41,
+ 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,
+ 52, 53, 54, 55, 56, 57, 58, 59, 60, 61,
+ 62, 63, 64, 65, 66, 67
+};
+
+#if YYDEBUG
+/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
+ YYRHS. */
+static const yytype_uint16 yyprhs[] =
+{
+ 0, 0, 3, 5, 7, 13, 17, 21, 24, 27,
+ 29, 33, 37, 40, 43, 45, 47, 51, 56, 60,
+ 65, 69, 71, 74, 78, 82, 86, 90, 96, 98,
+ 107, 110, 114, 118, 122, 126, 135, 137, 141, 143,
+ 146, 148, 152, 158, 164, 170, 172, 176, 177, 179,
+ 182, 183, 186, 187, 190, 191, 194, 195, 197, 200,
+ 204, 208, 211, 215, 217, 219, 221, 225, 230, 234,
+ 240, 242, 246, 250, 254, 258, 262, 266, 270, 274,
+ 278, 281, 284, 287, 290, 292, 295, 297, 299, 303,
+ 308, 313, 318, 322, 328, 334, 340, 345, 347, 351,
+ 355, 361, 363, 367, 369, 371, 373, 375, 377, 379,
+ 382, 385, 388, 391, 394, 397, 398, 402, 403, 406,
+ 410, 416, 418, 423, 428, 433, 435, 439, 441, 445,
+ 447, 451, 457, 461, 464, 469, 471, 475, 481, 485,
+ 489, 491, 495, 499, 501, 504, 512, 519, 536, 541,
+ 543, 547, 551, 553, 557, 562, 564, 567, 574, 579,
+ 580, 584, 586, 589, 592, 595, 599, 604, 609, 614,
+ 615, 619, 620, 624, 626, 630, 634
+};
+
+/* YYRHS -- A `-1'-separated list of the rules' RHS. */
+static const yytype_int16 yyrhs[] =
+{
+ 81, 0, -1, 83, -1, 125, -1, 61, 22, 125,
+ 82, 23, -1, 85, 84, 88, -1, 84, 85, 88,
+ -1, 84, 88, -1, 85, 88, -1, 88, -1, 85,
+ 84, 89, -1, 84, 85, 89, -1, 84, 89, -1,
+ 85, 89, -1, 89, -1, 82, -1, 83, 21, 82,
+ -1, 57, 22, 86, 23, -1, 57, 22, 23, -1,
+ 56, 22, 86, 23, -1, 56, 22, 23, -1, 87,
+ -1, 86, 87, -1, 3, 4, 21, -1, 3, 3,
+ 21, -1, 36, 90, 91, -1, 54, 122, 92, -1,
+ 54, 122, 55, 109, 92, -1, 110, -1, 92, 97,
+ 113, 114, 102, 99, 100, 101, -1, 27, 93, -1,
+ 28, 27, 93, -1, 30, 27, 93, -1, 32, 27,
+ 93, -1, 31, 27, 93, -1, 29, 68, 121, 69,
+ 5, 70, 27, 93, -1, 94, -1, 93, 69, 94,
+ -1, 95, -1, 95, 3, -1, 96, -1, 3, 71,
+ 96, -1, 3, 71, 3, 71, 96, -1, 4, 71,
+ 3, 71, 96, -1, 72, 3, 73, 71, 96, -1,
+ 3, -1, 96, 18, 3, -1, -1, 98, -1, 37,
+ 104, -1, -1, 39, 104, -1, -1, 40, 104, -1,
+ -1, 41, 104, -1, -1, 103, -1, 34, 104, -1,
+ 104, 8, 104, -1, 104, 9, 104, -1, 10, 104,
+ -1, 68, 104, 70, -1, 105, -1, 106, -1, 107,
+ -1, 3, 72, 73, -1, 3, 72, 111, 73, -1,
+ 109, 11, 109, -1, 109, 35, 72, 108, 73, -1,
+ 112, -1, 108, 69, 112, -1, 109, 15, 109, -1,
+ 109, 16, 109, -1, 109, 12, 109, -1, 109, 17,
+ 109, -1, 109, 18, 109, -1, 109, 13, 109, -1,
+ 109, 19, 109, -1, 109, 14, 109, -1, 15, 109,
+ -1, 16, 109, -1, 74, 109, -1, 75, 109, -1,
+ 112, -1, 76, 3, -1, 120, -1, 121, -1, 68,
+ 109, 70, -1, 26, 68, 17, 70, -1, 26, 68,
+ 109, 70, -1, 3, 68, 111, 70, -1, 3, 68,
+ 70, -1, 26, 76, 68, 17, 70, -1, 26, 76,
+ 68, 109, 70, -1, 3, 76, 68, 111, 70, -1,
+ 3, 76, 68, 70, -1, 109, -1, 109, 25, 3,
+ -1, 110, 69, 109, -1, 110, 69, 109, 25, 3,
+ -1, 109, -1, 111, 69, 109, -1, 4, -1, 5,
+ -1, 6, -1, 7, -1, 47, -1, 48, -1, 49,
+ 4, -1, 50, 4, -1, 51, 4, -1, 52, 4,
+ -1, 53, 4, -1, 77, 3, -1, -1, 33, 24,
+ 117, -1, -1, 38, 124, -1, 68, 118, 70, -1,
+ 115, 69, 68, 118, 70, -1, 119, -1, 45, 68,
+ 118, 70, -1, 44, 68, 118, 70, -1, 46, 68,
+ 115, 70, -1, 116, -1, 117, 69, 116, -1, 119,
+ -1, 118, 69, 119, -1, 3, -1, 3, 71, 3,
+ -1, 3, 71, 3, 71, 3, -1, 109, 25, 3,
+ -1, 78, 3, -1, 3, 71, 78, 3, -1, 3,
+ -1, 3, 71, 3, -1, 3, 71, 3, 71, 3,
+ -1, 121, 79, 121, -1, 122, 79, 121, -1, 3,
+ -1, 123, 69, 123, -1, 124, 69, 123, -1, 126,
+ -1, 125, 126, -1, 58, 3, 136, 135, 22, 131,
+ 23, -1, 60, 96, 136, 22, 131, 23, -1, 64,
+ 3, 22, 63, 133, 65, 22, 131, 23, 66, 22,
+ 129, 23, 67, 133, 23, -1, 62, 22, 127, 23,
+ -1, 128, -1, 127, 21, 128, -1, 3, 3, 5,
+ -1, 130, -1, 129, 21, 130, -1, 3, 68, 138,
+ 70, -1, 132, -1, 131, 132, -1, 3, 3, 3,
+ 133, 135, 21, -1, 3, 3, 133, 21, -1, -1,
+ 68, 134, 70, -1, 3, -1, 3, 3, -1, 3,
+ 4, -1, 3, 5, -1, 134, 69, 3, -1, 134,
+ 69, 3, 3, -1, 134, 69, 3, 4, -1, 134,
+ 69, 3, 5, -1, -1, 72, 137, 73, -1, -1,
+ 68, 137, 70, -1, 3, -1, 137, 69, 3, -1,
+ 3, 3, 133, -1, 138, 69, 3, 3, 133, -1
+};
+
+/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
+static const yytype_uint16 yyrline[] =
+{
+ 0, 189, 189, 194, 201, 215, 220, 225, 230, 234,
+ 237, 242, 247, 251, 255, 260, 261, 265, 266, 270,
+ 271, 275, 276, 280, 281, 285, 289, 291, 299, 303,
+ 315, 316, 317, 318, 319, 320, 324, 325, 329, 330,
+ 334, 335, 336, 337, 338, 342, 343, 348, 349, 353,
+ 357, 358, 362, 363, 367, 368, 372, 373, 377, 384,
+ 385, 386, 387, 388, 392, 393, 394, 395, 399, 403,
+ 407, 408, 414, 415, 416, 417, 418, 419, 420, 421,
+ 422, 423, 424, 425, 426, 427, 428, 429, 430, 431,
+ 432, 433, 434, 435, 436, 437, 438, 443, 444, 445,
+ 446, 450, 451, 455, 456, 457, 458, 459, 460, 461,
+ 462, 463, 464, 465, 466, 472, 473, 477, 478, 482,
+ 483, 487, 488, 489, 490, 494, 495, 499, 500, 504,
+ 505, 506, 507, 518, 519, 523, 524, 525, 529, 530,
+ 534, 538, 539, 554, 555, 558, 560, 562, 564, 568,
+ 569, 573, 577, 578, 582, 585, 586, 590, 591, 595,
+ 596, 600, 601, 602, 603, 604, 605, 606, 607, 611,
+ 612, 616, 617, 621, 622, 626, 627
+};
+#endif
+
+#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
+/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
+ First, the terminals, then, starting at YYNTOKENS, nonterminals. */
+static const char *const yytname[] =
+{
+ "$end", "error", "$undefined", "NAME", "STRING_TOKEN", "INTNUM",
+ "LONGINTNUM", "APPROXNUM", "OR", "AND", "NOT", "COMPARISON", "'|'",
+ "'&'", "SHIFT_OP", "'+'", "'-'", "'*'", "'/'", "'%'", "UMINUS",
+ "SEMICOLON", "LEFTBRACE", "RIGHTBRACE", "BY", "AS", "AGGR", "FROM",
+ "INNER_JOIN", "FILTER_JOIN", "OUTER_JOIN", "LEFT_OUTER_JOIN",
+ "RIGHT_OUTER_JOIN", "GROUP", "HAVING", "IN", "SELECT", "WHERE",
+ "SUPERGROUP", "CLEANING_WHEN", "CLEANING_BY", "CLOSING_WHEN", "SUCH",
+ "THAT", "CUBE", "ROLLUP", "GROUPING_SETS", "TRUE_V", "FALSE_V",
+ "TIMEVAL_L", "HEX_L", "LHEX_L", "IP_L", "IPV6_L", "MERGE", "SLACK",
+ "DEFINE_SEC", "PARAM_SEC", "PROTOCOL", "TABLE", "STREAM", "FTA",
+ "UNPACK_FCNS", "OPERATOR", "OPERATOR_VIEW", "FIELDS", "SUBQUERIES",
+ "SELECTION_PUSHDOWN", "'('", "','", "')'", "'.'", "'['", "']'", "'!'",
+ "'~'", "'$'", "'#'", "'@'", "':'", "$accept", "parse_result", "gsql",
+ "query_list", "params_def", "variable_def", "variable_list",
+ "variable_assign", "select_statement", "merge_statement", "selection",
+ "table_exp", "from_clause", "table_ref_commalist", "table_ref", "table",
+ "qname", "opt_where_clause", "where_clause", "opt_cleaning_when_clause",
+ "opt_cleaning_by_clause", "opt_closing_when_clause", "opt_having_clause",
+ "having_clause", "search_condition", "predicate", "comparison_predicate",
+ "in_predicate", "literal_commalist", "scalar_exp", "select_commalist",
+ "scalar_exp_commalist", "literal", "opt_group_by_clause",
+ "opt_supergroup_clause", "list_of_gb_commalist", "extended_gb",
+ "extended_gb_commalist", "gb_commalist", "gb", "ifparam", "column_ref",
+ "column_ref_list", "gb_ref", "gb_ref_list", "table_list", "table_def",
+ "unpack_func_list", "unpack_func", "subqueryspec_list", "subq_spec",
+ "field_list", "field", "opt_param_commalist", "param_commalist",
+ "opt_singleparam_commalist_bkt", "opt_singleparam_commalist",
+ "singleparam_commalist", "namevec_commalist", 0
+};
+#endif
+
+# ifdef YYPRINT
+/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
+ token YYLEX-NUM. */
+static const yytype_uint16 yytoknum[] =
+{
+ 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
+ 265, 266, 124, 38, 267, 43, 45, 42, 47, 37,
+ 268, 269, 270, 271, 272, 273, 274, 275, 276, 277,
+ 278, 279, 280, 281, 282, 283, 284, 285, 286, 287,
+ 288, 289, 290, 291, 292, 293, 294, 295, 296, 297,
+ 298, 299, 300, 301, 302, 303, 304, 305, 306, 307,
+ 308, 309, 310, 311, 312, 313, 314, 315, 40, 44,
+ 41, 46, 91, 93, 33, 126, 36, 35, 64, 58
+};
+# endif
+
+/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
+static const yytype_uint8 yyr1[] =
+{
+ 0, 80, 81, 81, 81, 82, 82, 82, 82, 82,
+ 82, 82, 82, 82, 82, 83, 83, 84, 84, 85,
+ 85, 86, 86, 87, 87, 88, 89, 89, 90, 91,
+ 92, 92, 92, 92, 92, 92, 93, 93, 94, 94,
+ 95, 95, 95, 95, 95, 96, 96, 97, 97, 98,
+ 99, 99, 100, 100, 101, 101, 102, 102, 103, 104,
+ 104, 104, 104, 104, 105, 105, 105, 105, 106, 107,
+ 108, 108, 109, 109, 109, 109, 109, 109, 109, 109,
+ 109, 109, 109, 109, 109, 109, 109, 109, 109, 109,
+ 109, 109, 109, 109, 109, 109, 109, 110, 110, 110,
+ 110, 111, 111, 112, 112, 112, 112, 112, 112, 112,
+ 112, 112, 112, 112, 112, 113, 113, 114, 114, 115,
+ 115, 116, 116, 116, 116, 117, 117, 118, 118, 119,
+ 119, 119, 119, 120, 120, 121, 121, 121, 122, 122,
+ 123, 124, 124, 125, 125, 126, 126, 126, 126, 127,
+ 127, 128, 129, 129, 130, 131, 131, 132, 132, 133,
+ 133, 134, 134, 134, 134, 134, 134, 134, 134, 135,
+ 135, 136, 136, 137, 137, 138, 138
+};
+
+/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
+static const yytype_uint8 yyr2[] =
+{
+ 0, 2, 1, 1, 5, 3, 3, 2, 2, 1,
+ 3, 3, 2, 2, 1, 1, 3, 4, 3, 4,
+ 3, 1, 2, 3, 3, 3, 3, 5, 1, 8,
+ 2, 3, 3, 3, 3, 8, 1, 3, 1, 2,
+ 1, 3, 5, 5, 5, 1, 3, 0, 1, 2,
+ 0, 2, 0, 2, 0, 2, 0, 1, 2, 3,
+ 3, 2, 3, 1, 1, 1, 3, 4, 3, 5,
+ 1, 3, 3, 3, 3, 3, 3, 3, 3, 3,
+ 2, 2, 2, 2, 1, 2, 1, 1, 3, 4,
+ 4, 4, 3, 5, 5, 5, 4, 1, 3, 3,
+ 5, 1, 3, 1, 1, 1, 1, 1, 1, 2,
+ 2, 2, 2, 2, 2, 0, 3, 0, 2, 3,
+ 5, 1, 4, 4, 4, 1, 3, 1, 3, 1,
+ 3, 5, 3, 2, 4, 1, 3, 5, 3, 3,
+ 1, 3, 3, 1, 2, 7, 6, 16, 4, 1,
+ 3, 3, 1, 3, 4, 1, 2, 6, 4, 0,
+ 3, 1, 2, 2, 2, 3, 4, 4, 4, 0,
+ 3, 0, 3, 1, 3, 3, 5
+};
+
+/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
+ STATE-NUM when YYTABLE doesn't specify something else to do. Zero
+ means the default is an error. */
+static const yytype_uint8 yydefact[] =
+{
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 15, 2, 0, 0, 9, 14, 3, 143, 135,
+ 103, 104, 105, 106, 0, 0, 0, 107, 108, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 97, 28, 84, 86, 87, 135, 0, 0, 0,
+ 0, 171, 45, 171, 0, 0, 0, 1, 0, 0,
+ 7, 12, 0, 8, 13, 144, 0, 0, 0, 80,
+ 81, 0, 0, 109, 110, 111, 112, 113, 0, 82,
+ 83, 85, 114, 133, 0, 0, 0, 0, 0, 0,
+ 25, 47, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 26, 0, 20, 0,
+ 21, 18, 0, 0, 169, 0, 0, 0, 0, 0,
+ 149, 0, 16, 6, 11, 5, 10, 92, 101, 0,
+ 136, 0, 0, 0, 0, 0, 88, 45, 0, 0,
+ 30, 36, 38, 40, 0, 0, 0, 0, 0, 0,
+ 115, 48, 74, 77, 79, 72, 73, 75, 76, 78,
+ 98, 99, 138, 0, 139, 0, 0, 19, 22, 17,
+ 173, 0, 0, 0, 46, 0, 0, 0, 0, 148,
+ 159, 0, 91, 0, 134, 96, 0, 89, 90, 0,
+ 0, 0, 0, 0, 0, 39, 31, 0, 32, 34,
+ 33, 135, 0, 0, 49, 63, 64, 65, 0, 0,
+ 117, 0, 27, 24, 23, 0, 172, 0, 0, 0,
+ 0, 155, 4, 151, 150, 0, 0, 102, 137, 95,
+ 93, 94, 45, 41, 0, 0, 37, 0, 0, 61,
+ 0, 0, 0, 0, 0, 0, 0, 0, 56, 100,
+ 174, 170, 0, 159, 146, 156, 161, 0, 0, 0,
+ 0, 0, 0, 66, 0, 62, 59, 60, 68, 0,
+ 129, 0, 0, 0, 0, 125, 116, 121, 140, 0,
+ 118, 0, 50, 57, 145, 159, 0, 162, 163, 164,
+ 0, 160, 0, 42, 43, 44, 0, 67, 0, 70,
+ 0, 0, 0, 0, 0, 0, 0, 0, 58, 0,
+ 52, 169, 158, 165, 0, 0, 0, 69, 130, 0,
+ 127, 0, 0, 0, 132, 126, 141, 142, 51, 0,
+ 54, 0, 166, 167, 168, 0, 35, 71, 0, 0,
+ 123, 122, 0, 0, 124, 53, 0, 29, 157, 0,
+ 131, 128, 119, 0, 55, 0, 0, 0, 0, 152,
+ 120, 0, 0, 0, 0, 0, 153, 159, 159, 0,
+ 154, 0, 175, 0, 147, 159, 176
+};
+
+/* YYDEFGOTO[NTERM-NUM]. */
+static const yytype_int16 yydefgoto[] =
+{
+ -1, 10, 11, 12, 13, 14, 109, 110, 15, 16,
+ 40, 90, 91, 140, 141, 142, 143, 150, 151, 310,
+ 330, 347, 282, 283, 204, 205, 206, 207, 298, 208,
+ 42, 129, 43, 210, 248, 323, 275, 276, 319, 320,
+ 44, 45, 48, 279, 280, 17, 18, 119, 120, 358,
+ 359, 220, 221, 226, 257, 173, 114, 171, 365
+};
+
+/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
+ STATE-NUM. */
+#define YYPACT_NINF -247
+static const yytype_int16 yypact[] =
+{
+ 121, 535, 76, 6, 60, 85, 115, 111, 132, 123,
+ 165, -247, 147, -9, 117, -247, -247, 178, -247, 87,
+ -247, -247, -247, -247, 535, 535, -24, -247, -247, 207,
+ 219, 223, 235, 242, 535, 535, 535, 198, 222, 266,
+ 261, 554, 230, -247, -247, -247, 243, 238, 360, 104,
+ 107, 252, -247, 18, 178, 319, 329, -247, -14, 163,
+ -247, -247, 163, -247, -247, -247, 200, 12, 295, -247,
+ -247, 279, 301, -247, -247, -247, -247, -247, 294, -247,
+ -247, -247, -247, -247, 13, 366, 326, 373, 374, 397,
+ -247, 359, 535, 535, 535, 535, 535, 535, 535, 535,
+ 423, 535, 424, 76, 535, 76, -247, 63, -247, 113,
+ -247, -247, 153, 425, 362, 432, 414, 422, 435, 30,
+ -247, 377, -247, -247, -247, -247, -247, -247, 689, 197,
+ 370, 439, 355, 383, 327, 369, -247, 385, 386, 451,
+ 390, -247, 464, 450, 13, 76, 13, 13, 13, 445,
+ 436, -247, 486, 395, 318, 191, 191, -247, -247, -247,
+ -247, 645, -247, 624, -247, 449, 452, -247, -247, -247,
+ -247, 210, 425, 455, -247, 469, 458, 478, 319, -247,
+ 419, 535, -247, 485, -247, -247, 228, -247, -247, 420,
+ 616, 488, 511, 416, 13, -247, 390, 446, 390, 390,
+ 390, 247, 445, 445, 205, -247, -247, -247, 126, 492,
+ 479, 515, -247, -247, -247, 521, -247, -19, 469, 522,
+ 161, -247, -247, -247, -247, 523, 463, 689, -247, -247,
+ -247, -247, 460, 450, 472, 473, -247, 524, 459, -247,
+ 11, 246, 445, 445, 535, 474, 144, 527, 513, -247,
+ -247, -247, 164, 15, -247, -247, 268, 233, 526, 115,
+ 115, 115, 475, -247, 59, -247, 540, -247, 689, 25,
+ 43, 489, 490, 491, 659, -247, 493, -247, -247, 494,
+ 505, 445, 537, -247, -247, 419, 539, -247, -247, -247,
+ 574, -247, 469, 450, 450, 450, 551, -247, 93, -247,
+ 23, 549, 549, 512, 578, 144, 527, 527, 205, 445,
+ 550, 362, -247, 345, 221, 13, 25, -247, 216, 255,
+ -247, 296, 549, 298, -247, -247, -247, -247, 205, 445,
+ 548, 570, -247, -247, -247, 528, 390, -247, 589, 549,
+ -247, -247, 308, 525, -247, 205, 445, -247, -247, 573,
+ 675, -247, -247, 549, 205, 601, 310, 538, 177, -247,
+ -247, 602, 601, 541, 604, 313, -247, 419, 419, 611,
+ -247, 592, -247, 613, -247, 419, -247
+};
+
+/* YYPGOTO[NTERM-NUM]. */
+static const yytype_int16 yypgoto[] =
+{
+ -247, -247, -37, -247, 605, 607, 568, -71, 50, 110,
+ -247, -247, -38, -142, 427, -247, -5, -247, -247, -247,
+ -247, -247, -247, -247, -194, -247, -247, -247, -247, -1,
+ -247, -121, -232, -247, -247, -247, 317, -247, -233, -234,
+ -247, 1, -247, 92, -247, 590, -4, -247, 467, -247,
+ 284, -193, -206, -246, -247, 336, 595, 477, -247
+};
+
+/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
+ positive, shift that token. If negative, reduce the rule which
+ number is the opposite. If zero, do what YYDEFACT says.
+ If YYTABLE_NINF, syntax error. */
+#define YYTABLE_NINF -138
+static const yytype_int16 yytable[] =
+{
+ 41, 53, 196, 47, 198, 199, 200, 286, 239, 240,
+ 106, 186, 277, 65, 255, 130, 137, 138, 285, 242,
+ 243, 122, 1, 69, 70, 252, 318, 1, 49, 20,
+ 21, 22, 23, 78, 79, 80, 115, 299, 168, 311,
+ 2, 168, 3, 4, 71, 2, 255, 3, 266, 267,
+ 215, 178, 72, 179, 251, -135, -135, -135, -135, -135,
+ -135, -135, -135, 60, 63, 128, 165, 166, -135, 321,
+ 134, 277, 27, 28, 29, 30, 31, 32, 33, 46,
+ 176, 265, 50, 225, 337, 139, 113, 308, 51, 342,
+ 131, 152, 153, 154, 155, 156, 157, 158, 159, 314,
+ 161, 131, 38, 163, 162, 351, 164, 107, 255, 123,
+ 107, 66, 125, 65, 300, 328, 107, 264, 52, 68,
+ 356, 371, 372, 61, 64, 212, 56, 108, 181, 376,
+ 111, 128, 297, 54, 190, 345, 167, 244, 92, 93,
+ 94, 95, 96, 97, 98, 99, 197, 270, 20, 21,
+ 22, 23, 354, 1, 55, 66, 107, 1, 67, 24,
+ 25, 245, 316, 68, 219, 57, 317, 219, 58, 124,
+ 26, 2, 126, 336, 4, 2, 169, 3, 4, 5,
+ 227, 6, 7, 8, 254, 9, 233, 284, 271, 272,
+ 273, 27, 28, 29, 30, 31, 32, 33, 362, 1,
+ 363, 81, 241, 19, 20, 21, 22, 23, 97, 98,
+ 99, 73, 34, 242, 243, 24, 25, 2, 35, 36,
+ 37, 38, 39, 74, 219, 82, 26, 75, -136, -136,
+ -136, -136, -136, -136, -136, -136, 5, 128, 6, 76,
+ 8, -136, 9, 268, 335, 274, 77, 27, 28, 29,
+ 30, 31, 32, 33, 293, 294, 295, 244, 92, 93,
+ 94, 95, 96, 97, 98, 99, 181, 182, 34, 83,
+ 127, 287, 288, 289, 35, 36, 37, 38, 39, 215,
+ 216, 245, 19, 20, 21, 22, 23, 338, 84, 85,
+ 86, 87, 88, 89, 24, 25, 133, 181, 229, 101,
+ 274, 274, 290, 291, 274, 26, 92, 93, 94, 95,
+ 96, 97, 98, 99, 102, 66, 136, 103, 67, 238,
+ 113, 274, 118, 68, 339, 340, 27, 28, 29, 30,
+ 31, 32, 33, 95, 96, 97, 98, 99, 274, 92,
+ 93, 94, 95, 96, 97, 98, 99, 34, 332, 333,
+ 334, 121, 274, 35, 36, 37, 38, 39, 19, 20,
+ 21, 22, 23, 132, 136, 339, 341, 343, 344, 135,
+ 24, 25, 19, 20, 21, 22, 23, 339, 352, 339,
+ 360, 26, 369, 370, 24, 25, 189, 84, 85, 86,
+ 87, 88, 89, 144, 145, 26, 149, 188, 326, 327,
+ 146, 147, 27, 28, 29, 30, 31, 32, 33, 94,
+ 95, 96, 97, 98, 99, 104, 27, 28, 29, 30,
+ 31, 32, 33, 34, 148, 185, 160, 130, 170, 35,
+ 36, 37, 38, 39, 172, 174, 175, 34, 177, 105,
+ 180, 183, 184, 35, 36, 37, 38, 39, 201, 20,
+ 21, 22, 23, 187, 193, 202, 191, 192, 1, 194,
+ 24, 25, 19, 20, 21, 22, 23, 195, 115, 209,
+ 213, 26, 219, 214, 24, 25, 2, 218, 3, 4,
+ 5, 222, 6, 223, 8, 26, 9, 225, 228, 235,
+ 230, 232, 27, 28, 29, 30, 31, 32, 33, 93,
+ 94, 95, 96, 97, 98, 99, 27, 28, 29, 30,
+ 31, 32, 33, 203, 234, 237, 246, 247, 249, 35,
+ 36, 37, 38, 39, 250, 253, 256, 34, 258, 262,
+ 278, 259, 263, 35, 36, 37, 38, 39, 19, 20,
+ 21, 22, 23, 260, 261, 296, 269, 281, 292, 243,
+ 24, 25, 270, 20, 21, 22, 23, 301, 302, 303,
+ 312, 26, 305, 306, 24, 25, 92, 93, 94, 95,
+ 96, 97, 98, 99, 307, 26, 309, 313, 315, 100,
+ 322, 324, 27, 28, 29, 30, 31, 32, 33, 346,
+ 329, 348, 350, 353, 349, 355, 27, 28, 29, 30,
+ 31, 32, 33, 34, 357, 364, 361, 368, 367, 35,
+ 36, 37, 38, 39, 373, 374, 375, 34, 112, 62,
+ 59, 236, 325, 35, 36, 37, 38, 39, 92, 93,
+ 94, 95, 96, 97, 98, 99, 92, 93, 94, 95,
+ 96, 97, 98, 99, 117, 224, 366, 331, 116, 217,
+ 0, 84, 85, 86, 87, 88, 89, 92, 93, 94,
+ 95, 96, 97, 98, 99, 0, 0, 0, 0, 0,
+ 211, 92, 93, 94, 95, 96, 97, 98, 99, 0,
+ 0, 0, 0, 0, 304, 0, 231, -137, -137, -137,
+ -137, -137, -137, -137, -137, 0, 0, 0, 0, 0,
+ -137, 92, 93, 94, 95, 96, 97, 98, 99
+};
+
+static const yytype_int16 yycheck[] =
+{
+ 1, 6, 144, 2, 146, 147, 148, 253, 202, 203,
+ 48, 132, 246, 17, 220, 3, 3, 4, 3, 8,
+ 9, 58, 36, 24, 25, 218, 3, 36, 22, 4,
+ 5, 6, 7, 34, 35, 36, 18, 269, 109, 285,
+ 54, 112, 56, 57, 68, 54, 252, 56, 242, 243,
+ 69, 21, 76, 23, 73, 12, 13, 14, 15, 16,
+ 17, 18, 19, 13, 14, 66, 3, 4, 25, 302,
+ 71, 305, 47, 48, 49, 50, 51, 52, 53, 3,
+ 117, 70, 22, 68, 316, 72, 68, 281, 3, 322,
+ 78, 92, 93, 94, 95, 96, 97, 98, 99, 292,
+ 101, 78, 77, 104, 103, 339, 105, 3, 314, 59,
+ 3, 68, 62, 117, 71, 309, 3, 238, 3, 76,
+ 353, 367, 368, 13, 14, 163, 3, 23, 69, 375,
+ 23, 132, 73, 22, 135, 329, 23, 11, 12, 13,
+ 14, 15, 16, 17, 18, 19, 145, 3, 4, 5,
+ 6, 7, 346, 36, 22, 68, 3, 36, 71, 15,
+ 16, 35, 69, 76, 3, 0, 73, 3, 21, 59,
+ 26, 54, 62, 315, 57, 54, 23, 56, 57, 58,
+ 181, 60, 61, 62, 23, 64, 191, 23, 44, 45,
+ 46, 47, 48, 49, 50, 51, 52, 53, 21, 36,
+ 23, 3, 203, 3, 4, 5, 6, 7, 17, 18,
+ 19, 4, 68, 8, 9, 15, 16, 54, 74, 75,
+ 76, 77, 78, 4, 3, 3, 26, 4, 12, 13,
+ 14, 15, 16, 17, 18, 19, 58, 238, 60, 4,
+ 62, 25, 64, 244, 23, 246, 4, 47, 48, 49,
+ 50, 51, 52, 53, 259, 260, 261, 11, 12, 13,
+ 14, 15, 16, 17, 18, 19, 69, 70, 68, 3,
+ 70, 3, 4, 5, 74, 75, 76, 77, 78, 69,
+ 70, 35, 3, 4, 5, 6, 7, 71, 27, 28,
+ 29, 30, 31, 32, 15, 16, 17, 69, 70, 69,
+ 301, 302, 69, 70, 305, 26, 12, 13, 14, 15,
+ 16, 17, 18, 19, 71, 68, 70, 79, 71, 72,
+ 68, 322, 3, 76, 69, 70, 47, 48, 49, 50,
+ 51, 52, 53, 15, 16, 17, 18, 19, 339, 12,
+ 13, 14, 15, 16, 17, 18, 19, 68, 3, 4,
+ 5, 22, 353, 74, 75, 76, 77, 78, 3, 4,
+ 5, 6, 7, 68, 70, 69, 70, 69, 70, 68,
+ 15, 16, 3, 4, 5, 6, 7, 69, 70, 69,
+ 70, 26, 69, 70, 15, 16, 17, 27, 28, 29,
+ 30, 31, 32, 27, 68, 26, 37, 70, 306, 307,
+ 27, 27, 47, 48, 49, 50, 51, 52, 53, 14,
+ 15, 16, 17, 18, 19, 55, 47, 48, 49, 50,
+ 51, 52, 53, 68, 27, 70, 3, 3, 3, 74,
+ 75, 76, 77, 78, 72, 3, 22, 68, 3, 79,
+ 63, 71, 3, 74, 75, 76, 77, 78, 3, 4,
+ 5, 6, 7, 70, 3, 10, 71, 71, 36, 69,
+ 15, 16, 3, 4, 5, 6, 7, 3, 18, 33,
+ 21, 26, 3, 21, 15, 16, 54, 22, 56, 57,
+ 58, 23, 60, 5, 62, 26, 64, 68, 3, 73,
+ 70, 3, 47, 48, 49, 50, 51, 52, 53, 13,
+ 14, 15, 16, 17, 18, 19, 47, 48, 49, 50,
+ 51, 52, 53, 68, 3, 69, 24, 38, 3, 74,
+ 75, 76, 77, 78, 3, 3, 3, 68, 65, 5,
+ 3, 71, 73, 74, 75, 76, 77, 78, 3, 4,
+ 5, 6, 7, 71, 71, 70, 72, 34, 22, 9,
+ 15, 16, 3, 4, 5, 6, 7, 68, 68, 68,
+ 21, 26, 69, 69, 15, 16, 12, 13, 14, 15,
+ 16, 17, 18, 19, 69, 26, 39, 3, 27, 25,
+ 68, 3, 47, 48, 49, 50, 51, 52, 53, 41,
+ 40, 21, 3, 68, 66, 22, 47, 48, 49, 50,
+ 51, 52, 53, 68, 3, 3, 68, 3, 67, 74,
+ 75, 76, 77, 78, 3, 23, 3, 68, 50, 14,
+ 13, 194, 305, 74, 75, 76, 77, 78, 12, 13,
+ 14, 15, 16, 17, 18, 19, 12, 13, 14, 15,
+ 16, 17, 18, 19, 54, 178, 362, 311, 53, 172,
+ -1, 27, 28, 29, 30, 31, 32, 12, 13, 14,
+ 15, 16, 17, 18, 19, -1, -1, -1, -1, -1,
+ 25, 12, 13, 14, 15, 16, 17, 18, 19, -1,
+ -1, -1, -1, -1, 25, -1, 70, 12, 13, 14,
+ 15, 16, 17, 18, 19, -1, -1, -1, -1, -1,
+ 25, 12, 13, 14, 15, 16, 17, 18, 19
+};
+
+/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
+ symbol of state STATE-NUM. */
+static const yytype_uint8 yystos[] =
+{
+ 0, 36, 54, 56, 57, 58, 60, 61, 62, 64,
+ 81, 82, 83, 84, 85, 88, 89, 125, 126, 3,
+ 4, 5, 6, 7, 15, 16, 26, 47, 48, 49,
+ 50, 51, 52, 53, 68, 74, 75, 76, 77, 78,
+ 90, 109, 110, 112, 120, 121, 3, 121, 122, 22,
+ 22, 3, 3, 96, 22, 22, 3, 0, 21, 85,
+ 88, 89, 84, 88, 89, 126, 68, 71, 76, 109,
+ 109, 68, 76, 4, 4, 4, 4, 4, 109, 109,
+ 109, 3, 3, 3, 27, 28, 29, 30, 31, 32,
+ 91, 92, 12, 13, 14, 15, 16, 17, 18, 19,
+ 25, 69, 71, 79, 55, 79, 92, 3, 23, 86,
+ 87, 23, 86, 68, 136, 18, 136, 125, 3, 127,
+ 128, 22, 82, 88, 89, 88, 89, 70, 109, 111,
+ 3, 78, 68, 17, 109, 68, 70, 3, 4, 72,
+ 93, 94, 95, 96, 27, 68, 27, 27, 27, 37,
+ 97, 98, 109, 109, 109, 109, 109, 109, 109, 109,
+ 3, 109, 121, 109, 121, 3, 4, 23, 87, 23,
+ 3, 137, 72, 135, 3, 22, 82, 3, 21, 23,
+ 63, 69, 70, 71, 3, 70, 111, 70, 70, 17,
+ 109, 71, 71, 3, 69, 3, 93, 121, 93, 93,
+ 93, 3, 10, 68, 104, 105, 106, 107, 109, 33,
+ 113, 25, 92, 21, 21, 69, 70, 137, 22, 3,
+ 131, 132, 23, 5, 128, 68, 133, 109, 3, 70,
+ 70, 70, 3, 96, 3, 73, 94, 69, 72, 104,
+ 104, 109, 8, 9, 11, 35, 24, 38, 114, 3,
+ 3, 73, 131, 3, 23, 132, 3, 134, 65, 71,
+ 71, 71, 5, 73, 111, 70, 104, 104, 109, 72,
+ 3, 44, 45, 46, 109, 116, 117, 119, 3, 123,
+ 124, 34, 102, 103, 23, 3, 133, 3, 4, 5,
+ 69, 70, 22, 96, 96, 96, 70, 73, 108, 112,
+ 71, 68, 68, 68, 25, 69, 69, 69, 104, 39,
+ 99, 133, 21, 3, 131, 27, 69, 73, 3, 118,
+ 119, 118, 68, 115, 3, 116, 123, 123, 104, 40,
+ 100, 135, 3, 4, 5, 23, 93, 112, 71, 69,
+ 70, 70, 118, 69, 70, 104, 41, 101, 21, 66,
+ 3, 119, 70, 68, 104, 22, 118, 3, 129, 130,
+ 70, 68, 21, 23, 3, 138, 130, 67, 3, 69,
+ 70, 133, 133, 3, 23, 3, 133
+};
+
+#define yyerrok (yyerrstatus = 0)
+#define yyclearin (yychar = YYEMPTY)
+#define YYEMPTY (-2)
+#define YYEOF 0
+
+#define YYACCEPT goto yyacceptlab
+#define YYABORT goto yyabortlab
+#define YYERROR goto yyerrorlab
+
+
+/* Like YYERROR except do call yyerror. This remains here temporarily
+ to ease the transition to the new meaning of YYERROR, for GCC.
+ Once GCC version 2 has supplanted version 1, this can go. */
+
+#define YYFAIL goto yyerrlab
+
+#define YYRECOVERING() (!!yyerrstatus)
+
+#define YYBACKUP(Token, Value) \
+do \
+ if (yychar == YYEMPTY && yylen == 1) \
+ { \
+ yychar = (Token); \
+ yylval = (Value); \
+ yytoken = YYTRANSLATE (yychar); \
+ YYPOPSTACK (1); \
+ goto yybackup; \
+ } \
+ else \
+ { \
+ yyerror (YY_("syntax error: cannot back up")); \
+ YYERROR; \
+ } \
+while (YYID (0))
+
+
+#define YYTERROR 1
+#define YYERRCODE 256
+
+
+/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
+ If N is 0, then set CURRENT to the empty location which ends
+ the previous symbol: RHS[0] (always defined). */
+
+#define YYRHSLOC(Rhs, K) ((Rhs)[K])
+#ifndef YYLLOC_DEFAULT
+# define YYLLOC_DEFAULT(Current, Rhs, N) \
+ do \
+ if (YYID (N)) \
+ { \
+ (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
+ (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
+ (Current).last_line = YYRHSLOC (Rhs, N).last_line; \
+ (Current).last_column = YYRHSLOC (Rhs, N).last_column; \
+ } \
+ else \
+ { \
+ (Current).first_line = (Current).last_line = \
+ YYRHSLOC (Rhs, 0).last_line; \
+ (Current).first_column = (Current).last_column = \
+ YYRHSLOC (Rhs, 0).last_column; \
+ } \
+ while (YYID (0))
+#endif
+
+
+/* YY_LOCATION_PRINT -- Print the location on the stream.
+ This macro was not mandated originally: define only if we know
+ we won't break user code: when these are the locations we know. */
+
+#ifndef YY_LOCATION_PRINT
+# if YYLTYPE_IS_TRIVIAL
+# define YY_LOCATION_PRINT(File, Loc) \
+ fprintf (File, "%d.%d-%d.%d", \
+ (Loc).first_line, (Loc).first_column, \
+ (Loc).last_line, (Loc).last_column)
+# else
+# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
+# endif
+#endif
+
+
+/* YYLEX -- calling `yylex' with the right arguments. */
+
+#ifdef YYLEX_PARAM
+# define YYLEX yylex (YYLEX_PARAM)
+#else
+# define YYLEX yylex ()
+#endif
+
+/* Enable debugging if requested. */
+#if YYDEBUG
+
+# ifndef YYFPRINTF
+# include <stdio.h> /* INFRINGES ON USER NAME SPACE */
+# define YYFPRINTF fprintf
+# endif
+
+# define YYDPRINTF(Args) \
+do { \
+ if (yydebug) \
+ YYFPRINTF Args; \
+} while (YYID (0))
+
+# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
+do { \
+ if (yydebug) \
+ { \
+ YYFPRINTF (stderr, "%s ", Title); \
+ yy_symbol_print (stderr, \
+ Type, Value); \
+ YYFPRINTF (stderr, "\n"); \
+ } \
+} while (YYID (0))
+
+
+/*--------------------------------.
+| Print this symbol on YYOUTPUT. |
+`--------------------------------*/
+
+/*ARGSUSED*/
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+static void
+yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
+#else
+static void
+yy_symbol_value_print (yyoutput, yytype, yyvaluep)
+ FILE *yyoutput;
+ int yytype;
+ YYSTYPE const * const yyvaluep;
+#endif
+{
+ if (!yyvaluep)
+ return;
+# ifdef YYPRINT
+ if (yytype < YYNTOKENS)
+ YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
+# else
+ YYUSE (yyoutput);
+# endif
+ switch (yytype)
+ {
+ default:
+ break;
+ }
+}
+
+
+/*--------------------------------.
+| Print this symbol on YYOUTPUT. |
+`--------------------------------*/
+
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+static void
+yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
+#else
+static void
+yy_symbol_print (yyoutput, yytype, yyvaluep)
+ FILE *yyoutput;
+ int yytype;
+ YYSTYPE const * const yyvaluep;
+#endif
+{
+ if (yytype < YYNTOKENS)
+ YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
+ else
+ YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
+
+ yy_symbol_value_print (yyoutput, yytype, yyvaluep);
+ YYFPRINTF (yyoutput, ")");
+}
+
+/*------------------------------------------------------------------.
+| yy_stack_print -- Print the state stack from its BOTTOM up to its |
+| TOP (included). |
+`------------------------------------------------------------------*/
+
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+static void
+yy_stack_print (yytype_int16 *bottom, yytype_int16 *top)
+#else
+static void
+yy_stack_print (bottom, top)
+ yytype_int16 *bottom;
+ yytype_int16 *top;
+#endif
+{
+ YYFPRINTF (stderr, "Stack now");
+ for (; bottom <= top; ++bottom)
+ YYFPRINTF (stderr, " %d", *bottom);
+ YYFPRINTF (stderr, "\n");
+}
+
+# define YY_STACK_PRINT(Bottom, Top) \
+do { \
+ if (yydebug) \
+ yy_stack_print ((Bottom), (Top)); \
+} while (YYID (0))
+
+
+/*------------------------------------------------.
+| Report that the YYRULE is going to be reduced. |
+`------------------------------------------------*/
+
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+static void
+yy_reduce_print (YYSTYPE *yyvsp, int yyrule)
+#else
+static void
+yy_reduce_print (yyvsp, yyrule)
+ YYSTYPE *yyvsp;
+ int yyrule;
+#endif
+{
+ int yynrhs = yyr2[yyrule];
+ int yyi;
+ unsigned long int yylno = yyrline[yyrule];
+ YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
+ yyrule - 1, yylno);
+ /* The symbols being reduced. */
+ for (yyi = 0; yyi < yynrhs; yyi++)
+ {
+ fprintf (stderr, " $%d = ", yyi + 1);
+ yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
+ &(yyvsp[(yyi + 1) - (yynrhs)])
+ );
+ fprintf (stderr, "\n");
+ }
+}
+
+# define YY_REDUCE_PRINT(Rule) \
+do { \
+ if (yydebug) \
+ yy_reduce_print (yyvsp, Rule); \
+} while (YYID (0))
+
+/* Nonzero means print parse trace. It is left uninitialized so that
+ multiple parsers can coexist. */
+int yydebug;
+#else /* !YYDEBUG */
+# define YYDPRINTF(Args)
+# define YY_SYMBOL_PRINT(Title, Type, Value, Location)
+# define YY_STACK_PRINT(Bottom, Top)
+# define YY_REDUCE_PRINT(Rule)
+#endif /* !YYDEBUG */
+
+
+/* YYINITDEPTH -- initial size of the parser's stacks. */
+#ifndef YYINITDEPTH
+# define YYINITDEPTH 200
+#endif
+
+/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
+ if the built-in stack extension method is used).
+
+ Do not make this value too large; the results are undefined if
+ YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
+ evaluated with infinite-precision integer arithmetic. */
+
+#ifndef YYMAXDEPTH
+# define YYMAXDEPTH 10000
+#endif
+
+\f
+
+#if YYERROR_VERBOSE
+
+# ifndef yystrlen
+# if defined __GLIBC__ && defined _STRING_H
+# define yystrlen strlen
+# else
+/* Return the length of YYSTR. */
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+static YYSIZE_T
+yystrlen (const char *yystr)
+#else
+static YYSIZE_T
+yystrlen (yystr)
+ const char *yystr;
+#endif
+{
+ YYSIZE_T yylen;
+ for (yylen = 0; yystr[yylen]; yylen++)
+ continue;
+ return yylen;
+}
+# endif
+# endif
+
+# ifndef yystpcpy
+# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
+# define yystpcpy stpcpy
+# else
+/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
+ YYDEST. */
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+static char *
+yystpcpy (char *yydest, const char *yysrc)
+#else
+static char *
+yystpcpy (yydest, yysrc)
+ char *yydest;
+ const char *yysrc;
+#endif
+{
+ char *yyd = yydest;
+ const char *yys = yysrc;
+
+ while ((*yyd++ = *yys++) != '\0')
+ continue;
+
+ return yyd - 1;
+}
+# endif
+# endif
+
+# ifndef yytnamerr
+/* Copy to YYRES the contents of YYSTR after stripping away unnecessary
+ quotes and backslashes, so that it's suitable for yyerror. The
+ heuristic is that double-quoting is unnecessary unless the string
+ contains an apostrophe, a comma, or backslash (other than
+ backslash-backslash). YYSTR is taken from yytname. If YYRES is
+ null, do not copy; instead, return the length of what the result
+ would have been. */
+static YYSIZE_T
+yytnamerr (char *yyres, const char *yystr)
+{
+ if (*yystr == '"')
+ {
+ YYSIZE_T yyn = 0;
+ char const *yyp = yystr;
+
+ for (;;)
+ switch (*++yyp)
+ {
+ case '\'':
+ case ',':
+ goto do_not_strip_quotes;
+
+ case '\\':
+ if (*++yyp != '\\')
+ goto do_not_strip_quotes;
+ /* Fall through. */
+ default:
+ if (yyres)
+ yyres[yyn] = *yyp;
+ yyn++;
+ break;
+
+ case '"':
+ if (yyres)
+ yyres[yyn] = '\0';
+ return yyn;
+ }
+ do_not_strip_quotes: ;
+ }
+
+ if (! yyres)
+ return yystrlen (yystr);
+
+ return yystpcpy (yyres, yystr) - yyres;
+}
+# endif
+
+/* Copy into YYRESULT an error message about the unexpected token
+ YYCHAR while in state YYSTATE. Return the number of bytes copied,
+ including the terminating null byte. If YYRESULT is null, do not
+ copy anything; just return the number of bytes that would be
+ copied. As a special case, return 0 if an ordinary "syntax error"
+ message will do. Return YYSIZE_MAXIMUM if overflow occurs during
+ size calculation. */
+static YYSIZE_T
+yysyntax_error (char *yyresult, int yystate, int yychar)
+{
+ int yyn = yypact[yystate];
+
+ if (! (YYPACT_NINF < yyn && yyn <= YYLAST))
+ return 0;
+ else
+ {
+ int yytype = YYTRANSLATE (yychar);
+ YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]);
+ YYSIZE_T yysize = yysize0;
+ YYSIZE_T yysize1;
+ int yysize_overflow = 0;
+ enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
+ char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
+ int yyx;
+
+# if 0
+ /* This is so xgettext sees the translatable formats that are
+ constructed on the fly. */
+ YY_("syntax error, unexpected %s");
+ YY_("syntax error, unexpected %s, expecting %s");
+ YY_("syntax error, unexpected %s, expecting %s or %s");
+ YY_("syntax error, unexpected %s, expecting %s or %s or %s");
+ YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s");
+# endif
+ char *yyfmt;
+ char const *yyf;
+ static char const yyunexpected[] = "syntax error, unexpected %s";
+ static char const yyexpecting[] = ", expecting %s";
+ static char const yyor[] = " or %s";
+ char yyformat[sizeof yyunexpected
+ + sizeof yyexpecting - 1
+ + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2)
+ * (sizeof yyor - 1))];
+ char const *yyprefix = yyexpecting;
+
+ /* Start YYX at -YYN if negative to avoid negative indexes in
+ YYCHECK. */
+ int yyxbegin = yyn < 0 ? -yyn : 0;
+
+ /* Stay within bounds of both yycheck and yytname. */
+ int yychecklim = YYLAST - yyn + 1;
+ int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
+ int yycount = 1;
+
+ yyarg[0] = yytname[yytype];
+ yyfmt = yystpcpy (yyformat, yyunexpected);
+
+ for (yyx = yyxbegin; yyx < yyxend; ++yyx)
+ if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
+ {
+ if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
+ {
+ yycount = 1;
+ yysize = yysize0;
+ yyformat[sizeof yyunexpected - 1] = '\0';
+ break;
+ }
+ yyarg[yycount++] = yytname[yyx];
+ yysize1 = yysize + yytnamerr (0, yytname[yyx]);
+ yysize_overflow |= (yysize1 < yysize);
+ yysize = yysize1;
+ yyfmt = yystpcpy (yyfmt, yyprefix);
+ yyprefix = yyor;
+ }
+
+ yyf = YY_(yyformat);
+ yysize1 = yysize + yystrlen (yyf);
+ yysize_overflow |= (yysize1 < yysize);
+ yysize = yysize1;
+
+ if (yysize_overflow)
+ return YYSIZE_MAXIMUM;
+
+ if (yyresult)
+ {
+ /* Avoid sprintf, as that infringes on the user's name space.
+ Don't have undefined behavior even if the translation
+ produced a string with the wrong number of "%s"s. */
+ char *yyp = yyresult;
+ int yyi = 0;
+ while ((*yyp = *yyf) != '\0')
+ {
+ if (*yyp == '%' && yyf[1] == 's' && yyi < yycount)
+ {
+ yyp += yytnamerr (yyp, yyarg[yyi++]);
+ yyf += 2;
+ }
+ else
+ {
+ yyp++;
+ yyf++;
+ }
+ }
+ }
+ return yysize;
+ }
+}
+#endif /* YYERROR_VERBOSE */
+\f
+
+/*-----------------------------------------------.
+| Release the memory associated to this symbol. |
+`-----------------------------------------------*/
+
+/*ARGSUSED*/
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+static void
+yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
+#else
+static void
+yydestruct (yymsg, yytype, yyvaluep)
+ const char *yymsg;
+ int yytype;
+ YYSTYPE *yyvaluep;
+#endif
+{
+ YYUSE (yyvaluep);
+
+ if (!yymsg)
+ yymsg = "Deleting";
+ YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
+
+ switch (yytype)
+ {
+
+ default:
+ break;
+ }
+}
+\f
+
+/* Prevent warnings from -Wmissing-prototypes. */
+
+#ifdef YYPARSE_PARAM
+#if defined __STDC__ || defined __cplusplus
+int yyparse (void *YYPARSE_PARAM);
+#else
+int yyparse ();
+#endif
+#else /* ! YYPARSE_PARAM */
+#if defined __STDC__ || defined __cplusplus
+int yyparse (void);
+#else
+int yyparse ();
+#endif
+#endif /* ! YYPARSE_PARAM */
+
+
+
+/* The look-ahead symbol. */
+int yychar;
+
+/* The semantic value of the look-ahead symbol. */
+YYSTYPE yylval;
+
+/* Number of syntax errors so far. */
+int yynerrs;
+
+
+
+/*----------.
+| yyparse. |
+`----------*/
+
+#ifdef YYPARSE_PARAM
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+int
+yyparse (void *YYPARSE_PARAM)
+#else
+int
+yyparse (YYPARSE_PARAM)
+ void *YYPARSE_PARAM;
+#endif
+#else /* ! YYPARSE_PARAM */
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+int
+yyparse (void)
+#else
+int
+yyparse ()
+
+#endif
+#endif
+{
+
+ int yystate;
+ int yyn;
+ int yyresult;
+ /* Number of tokens to shift before error messages enabled. */
+ int yyerrstatus;
+ /* Look-ahead token as an internal (translated) token number. */
+ int yytoken = 0;
+#if YYERROR_VERBOSE
+ /* Buffer for error messages, and its allocated size. */
+ char yymsgbuf[128];
+ char *yymsg = yymsgbuf;
+ YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
+#endif
+
+ /* Three stacks and their tools:
+ `yyss': related to states,
+ `yyvs': related to semantic values,
+ `yyls': related to locations.
+
+ Refer to the stacks thru separate pointers, to allow yyoverflow
+ to reallocate them elsewhere. */
+
+ /* The state stack. */
+ yytype_int16 yyssa[YYINITDEPTH];
+ yytype_int16 *yyss = yyssa;
+ yytype_int16 *yyssp;
+
+ /* The semantic value stack. */
+ YYSTYPE yyvsa[YYINITDEPTH];
+ YYSTYPE *yyvs = yyvsa;
+ YYSTYPE *yyvsp;
+
+
+
+#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
+
+ YYSIZE_T yystacksize = YYINITDEPTH;
+
+ /* The variables used to return semantic value and location from the
+ action routines. */
+ YYSTYPE yyval;
+
+
+ /* The number of symbols on the RHS of the reduced rule.
+ Keep to zero when no symbol should be popped. */
+ int yylen = 0;
+
+ YYDPRINTF ((stderr, "Starting parse\n"));
+
+ yystate = 0;
+ yyerrstatus = 0;
+ yynerrs = 0;
+ yychar = YYEMPTY; /* Cause a token to be read. */
+
+ /* Initialize stack pointers.
+ Waste one element of value and location stack
+ so that they stay on the same level as the state stack.
+ The wasted elements are never initialized. */
+
+ yyssp = yyss;
+ yyvsp = yyvs;
+
+ goto yysetstate;
+
+/*------------------------------------------------------------.
+| yynewstate -- Push a new state, which is found in yystate. |
+`------------------------------------------------------------*/
+ yynewstate:
+ /* In all cases, when you get here, the value and location stacks
+ have just been pushed. So pushing a state here evens the stacks. */
+ yyssp++;
+
+ yysetstate:
+ *yyssp = yystate;
+
+ if (yyss + yystacksize - 1 <= yyssp)
+ {
+ /* Get the current used size of the three stacks, in elements. */
+ YYSIZE_T yysize = yyssp - yyss + 1;
+
+#ifdef yyoverflow
+ {
+ /* Give user a chance to reallocate the stack. Use copies of
+ these so that the &'s don't force the real ones into
+ memory. */
+ YYSTYPE *yyvs1 = yyvs;
+ yytype_int16 *yyss1 = yyss;
+
+
+ /* Each stack pointer address is followed by the size of the
+ data in use in that stack, in bytes. This used to be a
+ conditional around just the two extra args, but that might
+ be undefined if yyoverflow is a macro. */
+ yyoverflow (YY_("memory exhausted"),
+ &yyss1, yysize * sizeof (*yyssp),
+ &yyvs1, yysize * sizeof (*yyvsp),
+
+ &yystacksize);
+
+ yyss = yyss1;
+ yyvs = yyvs1;
+ }
+#else /* no yyoverflow */
+# ifndef YYSTACK_RELOCATE
+ goto yyexhaustedlab;
+# else
+ /* Extend the stack our own way. */
+ if (YYMAXDEPTH <= yystacksize)
+ goto yyexhaustedlab;
+ yystacksize *= 2;
+ if (YYMAXDEPTH < yystacksize)
+ yystacksize = YYMAXDEPTH;
+
+ {
+ yytype_int16 *yyss1 = yyss;
+ union yyalloc *yyptr =
+ (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
+ if (! yyptr)
+ goto yyexhaustedlab;
+ YYSTACK_RELOCATE (yyss);
+ YYSTACK_RELOCATE (yyvs);
+
+# undef YYSTACK_RELOCATE
+ if (yyss1 != yyssa)
+ YYSTACK_FREE (yyss1);
+ }
+# endif
+#endif /* no yyoverflow */
+
+ yyssp = yyss + yysize - 1;
+ yyvsp = yyvs + yysize - 1;
+
+
+ YYDPRINTF ((stderr, "Stack size increased to %lu\n",
+ (unsigned long int) yystacksize));
+
+ if (yyss + yystacksize - 1 <= yyssp)
+ YYABORT;
+ }
+
+ YYDPRINTF ((stderr, "Entering state %d\n", yystate));
+
+ goto yybackup;
+
+/*-----------.
+| yybackup. |
+`-----------*/
+yybackup:
+
+ /* Do appropriate processing given the current state. Read a
+ look-ahead token if we need one and don't already have one. */
+
+ /* First try to decide what to do without reference to look-ahead token. */
+ yyn = yypact[yystate];
+ if (yyn == YYPACT_NINF)
+ goto yydefault;
+
+ /* Not known => get a look-ahead token if don't already have one. */
+
+ /* YYCHAR is either YYEMPTY or YYEOF or a valid look-ahead symbol. */
+ if (yychar == YYEMPTY)
+ {
+ YYDPRINTF ((stderr, "Reading a token: "));
+ yychar = YYLEX;
+ }
+
+ if (yychar <= YYEOF)
+ {
+ yychar = yytoken = YYEOF;
+ YYDPRINTF ((stderr, "Now at end of input.\n"));
+ }
+ else
+ {
+ yytoken = YYTRANSLATE (yychar);
+ YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
+ }
+
+ /* If the proper action on seeing token YYTOKEN is to reduce or to
+ detect an error, take that action. */
+ yyn += yytoken;
+ if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
+ goto yydefault;
+ yyn = yytable[yyn];
+ if (yyn <= 0)
+ {
+ if (yyn == 0 || yyn == YYTABLE_NINF)
+ goto yyerrlab;
+ yyn = -yyn;
+ goto yyreduce;
+ }
+
+ if (yyn == YYFINAL)
+ YYACCEPT;
+
+ /* Count tokens shifted since error; after three, turn off error
+ status. */
+ if (yyerrstatus)
+ yyerrstatus--;
+
+ /* Shift the look-ahead token. */
+ YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
+
+ /* Discard the shifted token unless it is eof. */
+ if (yychar != YYEOF)
+ yychar = YYEMPTY;
+
+ yystate = yyn;
+ *++yyvsp = yylval;
+
+ goto yynewstate;
+
+
+/*-----------------------------------------------------------.
+| yydefault -- do the default action for the current state. |
+`-----------------------------------------------------------*/
+yydefault:
+ yyn = yydefact[yystate];
+ if (yyn == 0)
+ goto yyerrlab;
+ goto yyreduce;
+
+
+/*-----------------------------.
+| yyreduce -- Do a reduction. |
+`-----------------------------*/
+yyreduce:
+ /* yyn is the number of a rule to reduce with. */
+ yylen = yyr2[yyn];
+
+ /* If YYLEN is nonzero, implement the default value of the action:
+ `$$ = $1'.
+
+ Otherwise, the following line sets YYVAL to garbage.
+ This behavior is undocumented and Bison
+ users should not rely upon it. Assigning to YYVAL
+ unconditionally makes the parser a bit smaller, and it avoids a
+ GCC warning that YYVAL may be used uninitialized. */
+ yyval = yyvsp[1-yylen];
+
+
+ YY_REDUCE_PRINT (yyn);
+ switch (yyn)
+ {
+ case 2:
+#line 189 "fta.y"
+ {
+ fta_parse_result->parse_tree_list = (yyvsp[(1) - (1)].q_list);
+ fta_parse_result->tables = NULL;
+ fta_parse_result->parse_type = QUERY_PARSE;
+ ;}
+ break;
+
+ case 3:
+#line 194 "fta.y"
+ {
+ fta_parse_result->parse_tree_list = NULL;
+ fta_parse_result->fta_parse_tree = NULL;
+ fta_parse_result->tables = (yyvsp[(1) - (1)].table_list_schema);
+ fta_parse_result->parse_type = TABLE_PARSE;
+ ;}
+ break;
+
+ case 4:
+#line 201 "fta.y"
+ {
+ fta_parse_result->parse_tree_list = NULL;
+ fta_parse_result->fta_parse_tree = (yyvsp[(4) - (5)].tblp);
+ fta_parse_result->tables = (yyvsp[(3) - (5)].table_list_schema);
+ fta_parse_result->parse_type = STREAM_PARSE;
+ ;}
+ break;
+
+ case 5:
+#line 215 "fta.y"
+ {
+ (yyvsp[(3) - (3)].tblp)->add_nmap((yyvsp[(1) - (3)].var_defs)); // Memory leak : plug it.
+ (yyvsp[(3) - (3)].tblp)->add_param_list((yyvsp[(2) - (3)].var_defs)); // Memory leak : plug it.
+ (yyval.tblp) = (yyvsp[(3) - (3)].tblp);
+ ;}
+ break;
+
+ case 6:
+#line 220 "fta.y"
+ {
+ (yyvsp[(3) - (3)].tblp)->add_nmap((yyvsp[(2) - (3)].var_defs)); // Memory leak : plug it.
+ (yyvsp[(3) - (3)].tblp)->add_param_list((yyvsp[(1) - (3)].var_defs)); // Memory leak : plug it.
+ (yyval.tblp) = (yyvsp[(3) - (3)].tblp);
+ ;}
+ break;
+
+ case 7:
+#line 225 "fta.y"
+ {
+ (yyvsp[(2) - (2)].tblp)->add_nmap(NULL); // Memory leak : plug it.
+ (yyvsp[(2) - (2)].tblp)->add_param_list((yyvsp[(1) - (2)].var_defs)); // Memory leak : plug it.
+ (yyval.tblp) = (yyvsp[(2) - (2)].tblp);
+ ;}
+ break;
+
+ case 8:
+#line 230 "fta.y"
+ {
+ (yyvsp[(2) - (2)].tblp)->add_nmap((yyvsp[(1) - (2)].var_defs)); // Memory leak : plug it.
+ (yyval.tblp) = (yyvsp[(2) - (2)].tblp);
+ ;}
+ break;
+
+ case 9:
+#line 234 "fta.y"
+ {
+ (yyval.tblp) = (yyvsp[(1) - (1)].tblp);
+ ;}
+ break;
+
+ case 10:
+#line 237 "fta.y"
+ {
+ (yyvsp[(3) - (3)].tblp)->add_nmap((yyvsp[(1) - (3)].var_defs)); // Memory leak : plug it.
+ (yyvsp[(3) - (3)].tblp)->add_param_list((yyvsp[(2) - (3)].var_defs)); // Memory leak : plug it.
+ (yyval.tblp) = (yyvsp[(3) - (3)].tblp);
+ ;}
+ break;
+
+ case 11:
+#line 242 "fta.y"
+ {
+ (yyvsp[(3) - (3)].tblp)->add_nmap((yyvsp[(2) - (3)].var_defs)); // Memory leak : plug it.
+ (yyvsp[(3) - (3)].tblp)->add_param_list((yyvsp[(1) - (3)].var_defs)); // Memory leak : plug it.
+ (yyval.tblp) = (yyvsp[(3) - (3)].tblp);
+ ;}
+ break;
+
+ case 12:
+#line 247 "fta.y"
+ {
+ (yyvsp[(2) - (2)].tblp)->add_param_list((yyvsp[(1) - (2)].var_defs)); // Memory leak : plug it.
+ (yyval.tblp) = (yyvsp[(2) - (2)].tblp);
+ ;}
+ break;
+
+ case 13:
+#line 251 "fta.y"
+ {
+ (yyvsp[(2) - (2)].tblp)->add_nmap((yyvsp[(1) - (2)].var_defs)); // Memory leak : plug it.
+ (yyval.tblp) = (yyvsp[(2) - (2)].tblp);
+ ;}
+ break;
+
+ case 14:
+#line 255 "fta.y"
+ {
+ (yyval.tblp) = (yyvsp[(1) - (1)].tblp);
+ ;}
+ break;
+
+ case 15:
+#line 260 "fta.y"
+ {(yyval.q_list) = new query_list_t((yyvsp[(1) - (1)].tblp));;}
+ break;
+
+ case 16:
+#line 261 "fta.y"
+ {(yyval.q_list) = (yyvsp[(1) - (3)].q_list)->append((yyvsp[(3) - (3)].tblp));;}
+ break;
+
+ case 17:
+#line 265 "fta.y"
+ {(yyval.var_defs)=(yyvsp[(3) - (4)].var_defs);;}
+ break;
+
+ case 18:
+#line 266 "fta.y"
+ {(yyval.var_defs)=NULL;;}
+ break;
+
+ case 19:
+#line 270 "fta.y"
+ {(yyval.var_defs)=(yyvsp[(3) - (4)].var_defs);fta_parse_defines=(yyvsp[(3) - (4)].var_defs);;}
+ break;
+
+ case 20:
+#line 271 "fta.y"
+ {(yyval.var_defs)=NULL;fta_parse_defines = NULL;;}
+ break;
+
+ case 21:
+#line 275 "fta.y"
+ {(yyval.var_defs) = new var_defs_t((yyvsp[(1) - (1)].var_pair));;}
+ break;
+
+ case 22:
+#line 276 "fta.y"
+ {(yyval.var_defs) = (yyvsp[(1) - (2)].var_defs)->add_var_pair((yyvsp[(2) - (2)].var_pair));;}
+ break;
+
+ case 23:
+#line 280 "fta.y"
+ {(yyval.var_pair) = new var_pair_t((yyvsp[(1) - (3)].strval),(yyvsp[(2) - (3)].strval));;}
+ break;
+
+ case 24:
+#line 281 "fta.y"
+ {(yyval.var_pair) = new var_pair_t((yyvsp[(1) - (3)].strval),(yyvsp[(2) - (3)].strval));;}
+ break;
+
+ case 25:
+#line 285 "fta.y"
+ {(yyval.tblp) = (yyvsp[(3) - (3)].tblp)->add_selection((yyvsp[(2) - (3)].select_listval));;}
+ break;
+
+ case 26:
+#line 290 "fta.y"
+ {(yyval.tblp) = new table_exp_t((yyvsp[(2) - (3)].clist),(yyvsp[(3) - (3)].tbl_list));;}
+ break;
+
+ case 27:
+#line 292 "fta.y"
+ {(yyval.tblp) = new table_exp_t((yyvsp[(2) - (5)].clist),(yyvsp[(4) - (5)].scalarval),(yyvsp[(5) - (5)].tbl_list));;}
+ break;
+
+ case 28:
+#line 299 "fta.y"
+ { (yyval.select_listval) = (yyvsp[(1) - (1)].select_listval);;}
+ break;
+
+ case 29:
+#line 311 "fta.y"
+ {(yyval.tblp)=new table_exp_t((yyvsp[(1) - (8)].tbl_list),(yyvsp[(2) - (8)].predp),(yyvsp[(3) - (8)].extended_gb_list),(yyvsp[(4) - (8)].clist),(yyvsp[(5) - (8)].predp),(yyvsp[(6) - (8)].predp),(yyvsp[(7) - (8)].predp), (yyvsp[(8) - (8)].predp));;}
+ break;
+
+ case 30:
+#line 315 "fta.y"
+ {(yyval.tbl_list) = (yyvsp[(2) - (2)].tbl_list); (yyval.tbl_list)->set_properties(-1);;}
+ break;
+
+ case 31:
+#line 316 "fta.y"
+ {(yyval.tbl_list) = (yyvsp[(3) - (3)].tbl_list); (yyval.tbl_list)->set_properties(INNER_JOIN_PROPERTY);;}
+ break;
+
+ case 32:
+#line 317 "fta.y"
+ {(yyval.tbl_list) = (yyvsp[(3) - (3)].tbl_list); (yyval.tbl_list)->set_properties(OUTER_JOIN_PROPERTY);;}
+ break;
+
+ case 33:
+#line 318 "fta.y"
+ {(yyval.tbl_list) = (yyvsp[(3) - (3)].tbl_list); (yyval.tbl_list)->set_properties(RIGHT_OUTER_JOIN_PROPERTY);;}
+ break;
+
+ case 34:
+#line 319 "fta.y"
+ {(yyval.tbl_list) = (yyvsp[(3) - (3)].tbl_list); (yyval.tbl_list)->set_properties(LEFT_OUTER_JOIN_PROPERTY);;}
+ break;
+
+ case 35:
+#line 320 "fta.y"
+ {(yyval.tbl_list) = (yyvsp[(8) - (8)].tbl_list); (yyval.tbl_list)->set_properties(FILTER_JOIN_PROPERTY); (yyval.tbl_list)->set_colref((yyvsp[(3) - (8)].colref)); (yyval.tbl_list)->set_temporal_range((yyvsp[(5) - (8)].strval));;}
+ break;
+
+ case 36:
+#line 324 "fta.y"
+ {(yyval.tbl_list) = new tablevar_list_t((yyvsp[(1) - (1)].table));;}
+ break;
+
+ case 37:
+#line 325 "fta.y"
+ {(yyval.tbl_list)= (yyvsp[(1) - (3)].tbl_list)->append_table((yyvsp[(3) - (3)].table));;}
+ break;
+
+ case 38:
+#line 329 "fta.y"
+ { (yyval.table) = (yyvsp[(1) - (1)].table);;}
+ break;
+
+ case 39:
+#line 330 "fta.y"
+ { (yyval.table)= (yyvsp[(1) - (2)].table)->set_range_var((yyvsp[(2) - (2)].strval));;}
+ break;
+
+ case 40:
+#line 334 "fta.y"
+ {(yyval.table) = new tablevar_t((yyvsp[(1) - (1)].stringval)->c_str());;}
+ break;
+
+ case 41:
+#line 335 "fta.y"
+ {(yyval.table) = new tablevar_t((yyvsp[(1) - (3)].strval),(yyvsp[(3) - (3)].stringval)->c_str(),0);;}
+ break;
+
+ case 42:
+#line 336 "fta.y"
+ {(yyval.table) = new tablevar_t((yyvsp[(1) - (5)].strval),(yyvsp[(3) - (5)].strval),(yyvsp[(5) - (5)].stringval)->c_str());;}
+ break;
+
+ case 43:
+#line 337 "fta.y"
+ {(yyval.table) = new tablevar_t((yyvsp[(1) - (5)].strval),(yyvsp[(3) - (5)].strval),(yyvsp[(5) - (5)].stringval)->c_str());;}
+ break;
+
+ case 44:
+#line 338 "fta.y"
+ {(yyval.table) = new tablevar_t((yyvsp[(2) - (5)].strval),(yyvsp[(5) - (5)].stringval)->c_str(),1);;}
+ break;
+
+ case 45:
+#line 342 "fta.y"
+ {(yyval.stringval) = new string_t((yyvsp[(1) - (1)].strval));;}
+ break;
+
+ case 46:
+#line 343 "fta.y"
+ {(yyval.stringval) = (yyval.stringval)->append("/",(yyvsp[(3) - (3)].strval));;}
+ break;
+
+ case 47:
+#line 348 "fta.y"
+ {(yyval.predp)=NULL;;}
+ break;
+
+ case 48:
+#line 349 "fta.y"
+ {(yyval.predp)=(yyvsp[(1) - (1)].predp);;}
+ break;
+
+ case 49:
+#line 353 "fta.y"
+ {(yyval.predp) = (yyvsp[(2) - (2)].predp);;}
+ break;
+
+ case 50:
+#line 357 "fta.y"
+ {(yyval.predp)=NULL;;}
+ break;
+
+ case 51:
+#line 358 "fta.y"
+ {(yyval.predp)=(yyvsp[(2) - (2)].predp); ;}
+ break;
+
+ case 52:
+#line 362 "fta.y"
+ {(yyval.predp)=NULL;;}
+ break;
+
+ case 53:
+#line 363 "fta.y"
+ {(yyval.predp)=(yyvsp[(2) - (2)].predp); ;}
+ break;
+
+ case 54:
+#line 367 "fta.y"
+ {(yyval.predp)=NULL;;}
+ break;
+
+ case 55:
+#line 368 "fta.y"
+ {(yyval.predp)=(yyvsp[(2) - (2)].predp); ;}
+ break;
+
+ case 56:
+#line 372 "fta.y"
+ {(yyval.predp)=NULL;;}
+ break;
+
+ case 57:
+#line 373 "fta.y"
+ {(yyval.predp)=(yyvsp[(1) - (1)].predp);;}
+ break;
+
+ case 58:
+#line 377 "fta.y"
+ {(yyval.predp) = (yyvsp[(2) - (2)].predp);;}
+ break;
+
+ case 59:
+#line 384 "fta.y"
+ {(yyval.predp)=new predicate_t("OR",(yyvsp[(1) - (3)].predp),(yyvsp[(3) - (3)].predp));;}
+ break;
+
+ case 60:
+#line 385 "fta.y"
+ {(yyval.predp)=new predicate_t("AND",(yyvsp[(1) - (3)].predp),(yyvsp[(3) - (3)].predp));;}
+ break;
+
+ case 61:
+#line 386 "fta.y"
+ {(yyval.predp) = new predicate_t("NOT", (yyvsp[(2) - (2)].predp) );;}
+ break;
+
+ case 62:
+#line 387 "fta.y"
+ {(yyval.predp) = (yyvsp[(2) - (3)].predp);;}
+ break;
+
+ case 63:
+#line 388 "fta.y"
+ {(yyval.predp) = (yyvsp[(1) - (1)].predp);;}
+ break;
+
+ case 64:
+#line 392 "fta.y"
+ { (yyval.predp)=(yyvsp[(1) - (1)].predp);;}
+ break;
+
+ case 65:
+#line 393 "fta.y"
+ { (yyval.predp) = (yyvsp[(1) - (1)].predp);;}
+ break;
+
+ case 66:
+#line 394 "fta.y"
+ {(yyval.predp) = predicate_t::make_paramless_fcn_predicate((yyvsp[(1) - (3)].strval)); ;}
+ break;
+
+ case 67:
+#line 395 "fta.y"
+ {(yyval.predp) = new predicate_t((yyvsp[(1) - (4)].strval), (yyvsp[(3) - (4)].se_listval)->get_se_list()); ;}
+ break;
+
+ case 68:
+#line 399 "fta.y"
+ {(yyval.predp) = new predicate_t((yyvsp[(1) - (3)].scalarval),(yyvsp[(2) - (3)].strval),(yyvsp[(3) - (3)].scalarval));;}
+ break;
+
+ case 69:
+#line 403 "fta.y"
+ { (yyval.predp) = new predicate_t((yyvsp[(1) - (5)].scalarval),(yyvsp[(4) - (5)].lit_l)); ;}
+ break;
+
+ case 70:
+#line 407 "fta.y"
+ {(yyval.lit_l) = new literal_list_t((yyvsp[(1) - (1)].litval));;}
+ break;
+
+ case 71:
+#line 408 "fta.y"
+ {(yyval.lit_l) = (yyvsp[(1) - (3)].lit_l)->append_literal((yyvsp[(3) - (3)].litval));;}
+ break;
+
+ case 72:
+#line 414 "fta.y"
+ { (yyval.scalarval)=new scalarexp_t("+",(yyvsp[(1) - (3)].scalarval),(yyvsp[(3) - (3)].scalarval));;}
+ break;
+
+ case 73:
+#line 415 "fta.y"
+ { (yyval.scalarval)=new scalarexp_t("-",(yyvsp[(1) - (3)].scalarval),(yyvsp[(3) - (3)].scalarval));;}
+ break;
+
+ case 74:
+#line 416 "fta.y"
+ { (yyval.scalarval)=new scalarexp_t("|",(yyvsp[(1) - (3)].scalarval),(yyvsp[(3) - (3)].scalarval));;}
+ break;
+
+ case 75:
+#line 417 "fta.y"
+ { (yyval.scalarval)=new scalarexp_t("*",(yyvsp[(1) - (3)].scalarval),(yyvsp[(3) - (3)].scalarval));;}
+ break;
+
+ case 76:
+#line 418 "fta.y"
+ { (yyval.scalarval)=new scalarexp_t("/",(yyvsp[(1) - (3)].scalarval),(yyvsp[(3) - (3)].scalarval));;}
+ break;
+
+ case 77:
+#line 419 "fta.y"
+ { (yyval.scalarval)=new scalarexp_t("&",(yyvsp[(1) - (3)].scalarval),(yyvsp[(3) - (3)].scalarval));;}
+ break;
+
+ case 78:
+#line 420 "fta.y"
+ { (yyval.scalarval)=new scalarexp_t("%",(yyvsp[(1) - (3)].scalarval),(yyvsp[(3) - (3)].scalarval));;}
+ break;
+
+ case 79:
+#line 421 "fta.y"
+ { (yyval.scalarval)=new scalarexp_t((yyvsp[(2) - (3)].strval),(yyvsp[(1) - (3)].scalarval),(yyvsp[(3) - (3)].scalarval));;}
+ break;
+
+ case 80:
+#line 422 "fta.y"
+ { (yyval.scalarval) = new scalarexp_t("+",(yyvsp[(2) - (2)].scalarval));;}
+ break;
+
+ case 81:
+#line 423 "fta.y"
+ { (yyval.scalarval) = new scalarexp_t("-",(yyvsp[(2) - (2)].scalarval));;}
+ break;
+
+ case 82:
+#line 424 "fta.y"
+ { (yyval.scalarval) = new scalarexp_t("!",(yyvsp[(2) - (2)].scalarval));;}
+ break;
+
+ case 83:
+#line 425 "fta.y"
+ { (yyval.scalarval) = new scalarexp_t("~",(yyvsp[(2) - (2)].scalarval));;}
+ break;
+
+ case 84:
+#line 426 "fta.y"
+ { (yyval.scalarval)= new scalarexp_t((yyvsp[(1) - (1)].litval));;}
+ break;
+
+ case 85:
+#line 427 "fta.y"
+ {(yyval.scalarval) = scalarexp_t::make_param_reference((yyvsp[(2) - (2)].strval));;}
+ break;
+
+ case 86:
+#line 428 "fta.y"
+ {(yyval.scalarval) = scalarexp_t::make_iface_param_reference((yyvsp[(1) - (1)].ifpref));;}
+ break;
+
+ case 87:
+#line 429 "fta.y"
+ { (yyval.scalarval) = new scalarexp_t((yyvsp[(1) - (1)].colref));;}
+ break;
+
+ case 88:
+#line 430 "fta.y"
+ {(yyval.scalarval) = (yyvsp[(2) - (3)].scalarval);;}
+ break;
+
+ case 89:
+#line 431 "fta.y"
+ { (yyval.scalarval) = scalarexp_t::make_star_aggr((yyvsp[(1) - (4)].strval)); ;}
+ break;
+
+ case 90:
+#line 432 "fta.y"
+ { (yyval.scalarval) = scalarexp_t::make_se_aggr((yyvsp[(1) - (4)].strval),(yyvsp[(3) - (4)].scalarval)); ;}
+ break;
+
+ case 91:
+#line 433 "fta.y"
+ {(yyval.scalarval) = new scalarexp_t((yyvsp[(1) - (4)].strval), (yyvsp[(3) - (4)].se_listval)->get_se_list()); ;}
+ break;
+
+ case 92:
+#line 434 "fta.y"
+ {(yyval.scalarval) = scalarexp_t::make_paramless_fcn((yyvsp[(1) - (3)].strval)); ;}
+ break;
+
+ case 93:
+#line 435 "fta.y"
+ { (yyval.scalarval) = scalarexp_t::make_star_aggr((yyvsp[(1) - (5)].strval)); (yyval.scalarval)->set_superaggr(true); ;}
+ break;
+
+ case 94:
+#line 436 "fta.y"
+ { (yyval.scalarval) = scalarexp_t::make_se_aggr((yyvsp[(1) - (5)].strval),(yyvsp[(4) - (5)].scalarval)); (yyval.scalarval)->set_superaggr(true); ;}
+ break;
+
+ case 95:
+#line 437 "fta.y"
+ {(yyval.scalarval) = new scalarexp_t((yyvsp[(1) - (5)].strval), (yyvsp[(4) - (5)].se_listval)->get_se_list()); (yyval.scalarval)->set_superaggr(true); ;}
+ break;
+
+ case 96:
+#line 438 "fta.y"
+ {(yyval.scalarval) = scalarexp_t::make_paramless_fcn((yyvsp[(1) - (4)].strval)); (yyval.scalarval)->set_superaggr(true); ;}
+ break;
+
+ case 97:
+#line 443 "fta.y"
+ { (yyval.select_listval)= new select_list_t((yyvsp[(1) - (1)].scalarval)); ;}
+ break;
+
+ case 98:
+#line 444 "fta.y"
+ { (yyval.select_listval)= new select_list_t((yyvsp[(1) - (3)].scalarval),(yyvsp[(3) - (3)].strval)); ;}
+ break;
+
+ case 99:
+#line 445 "fta.y"
+ { (yyval.select_listval)=(yyvsp[(1) - (3)].select_listval)->append((yyvsp[(3) - (3)].scalarval)); ;}
+ break;
+
+ case 100:
+#line 446 "fta.y"
+ { (yyval.select_listval)=(yyvsp[(1) - (5)].select_listval)->append((yyvsp[(3) - (5)].scalarval),(yyvsp[(5) - (5)].strval)); ;}
+ break;
+
+ case 101:
+#line 450 "fta.y"
+ { (yyval.se_listval)= new se_list_t((yyvsp[(1) - (1)].scalarval)); ;}
+ break;
+
+ case 102:
+#line 451 "fta.y"
+ { (yyval.se_listval)=(yyvsp[(1) - (3)].se_listval)->append((yyvsp[(3) - (3)].scalarval)); ;}
+ break;
+
+ case 103:
+#line 455 "fta.y"
+ {(yyval.litval) = new literal_t((yyvsp[(1) - (1)].strval),LITERAL_STRING);;}
+ break;
+
+ case 104:
+#line 456 "fta.y"
+ {(yyval.litval) = new literal_t((yyvsp[(1) - (1)].strval),LITERAL_INT);;}
+ break;
+
+ case 105:
+#line 457 "fta.y"
+ {(yyval.litval) = new literal_t((yyvsp[(1) - (1)].strval),LITERAL_LONGINT);;}
+ break;
+
+ case 106:
+#line 458 "fta.y"
+ {(yyval.litval) = new literal_t((yyvsp[(1) - (1)].strval),LITERAL_FLOAT);;}
+ break;
+
+ case 107:
+#line 459 "fta.y"
+ {(yyval.litval) = new literal_t("TRUE",LITERAL_BOOL);;}
+ break;
+
+ case 108:
+#line 460 "fta.y"
+ {(yyval.litval) = new literal_t("FALSE",LITERAL_BOOL);;}
+ break;
+
+ case 109:
+#line 461 "fta.y"
+ {(yyval.litval) = new literal_t((yyvsp[(2) - (2)].strval),LITERAL_TIMEVAL);;}
+ break;
+
+ case 110:
+#line 462 "fta.y"
+ {(yyval.litval) = new literal_t((yyvsp[(2) - (2)].strval),LITERAL_HEX);;}
+ break;
+
+ case 111:
+#line 463 "fta.y"
+ {(yyval.litval) = new literal_t((yyvsp[(2) - (2)].strval),LITERAL_LONGHEX);;}
+ break;
+
+ case 112:
+#line 464 "fta.y"
+ {(yyval.litval) = new literal_t((yyvsp[(2) - (2)].strval),LITERAL_IP);;}
+ break;
+
+ case 113:
+#line 465 "fta.y"
+ {(yyval.litval) = new literal_t((yyvsp[(2) - (2)].strval),LITERAL_IPV6);;}
+ break;
+
+ case 114:
+#line 466 "fta.y"
+ {(yyval.litval) = literal_t::make_define_literal((yyvsp[(2) - (2)].strval),fta_parse_defines);;}
+ break;
+
+ case 115:
+#line 472 "fta.y"
+ {(yyval.extended_gb_list) = NULL;;}
+ break;
+
+ case 116:
+#line 473 "fta.y"
+ {(yyval.extended_gb_list) = (yyvsp[(3) - (3)].extended_gb_list);;}
+ break;
+
+ case 117:
+#line 477 "fta.y"
+ {(yyval.clist) = NULL;;}
+ break;
+
+ case 118:
+#line 478 "fta.y"
+ {(yyval.clist) = (yyvsp[(2) - (2)].clist);;}
+ break;
+
+ case 119:
+#line 482 "fta.y"
+ { (yyval.list_of_gb_list) = new list_of_gb_list_t((yyvsp[(2) - (3)].gb_list));;}
+ break;
+
+ case 120:
+#line 483 "fta.y"
+ {(yyval.list_of_gb_list) = (yyvsp[(1) - (5)].list_of_gb_list)->append((yyvsp[(4) - (5)].gb_list));;}
+ break;
+
+ case 121:
+#line 487 "fta.y"
+ {(yyval.extended_gb) = extended_gb_t::create_from_gb((yyvsp[(1) - (1)].gb_val));;}
+ break;
+
+ case 122:
+#line 488 "fta.y"
+ {(yyval.extended_gb) = extended_gb_t::extended_create_from_rollup((yyvsp[(3) - (4)].gb_list));;}
+ break;
+
+ case 123:
+#line 489 "fta.y"
+ {(yyval.extended_gb) = extended_gb_t::extended_create_from_cube((yyvsp[(3) - (4)].gb_list));;}
+ break;
+
+ case 124:
+#line 490 "fta.y"
+ {(yyval.extended_gb) = extended_gb_t::extended_create_from_gsets((yyvsp[(3) - (4)].list_of_gb_list));;}
+ break;
+
+ case 125:
+#line 494 "fta.y"
+ { (yyval.extended_gb_list) = new extended_gb_list_t((yyvsp[(1) - (1)].extended_gb));;}
+ break;
+
+ case 126:
+#line 495 "fta.y"
+ { (yyval.extended_gb_list)=(yyvsp[(1) - (3)].extended_gb_list)->append((yyvsp[(3) - (3)].extended_gb));;}
+ break;
+
+ case 127:
+#line 499 "fta.y"
+ { (yyval.gb_list) = new gb_list_t((yyvsp[(1) - (1)].gb_val));;}
+ break;
+
+ case 128:
+#line 500 "fta.y"
+ { (yyval.gb_list)=(yyvsp[(1) - (3)].gb_list)->append((yyvsp[(3) - (3)].gb_val));;}
+ break;
+
+ case 129:
+#line 504 "fta.y"
+ {(yyval.gb_val) = new gb_t((yyvsp[(1) - (1)].strval)); ;}
+ break;
+
+ case 130:
+#line 505 "fta.y"
+ {(yyval.gb_val) = new gb_t((yyvsp[(1) - (3)].strval),(yyvsp[(3) - (3)].strval)); ;}
+ break;
+
+ case 131:
+#line 506 "fta.y"
+ {(yyval.gb_val) = new gb_t((yyvsp[(1) - (5)].strval),(yyvsp[(3) - (5)].strval),(yyvsp[(5) - (5)].strval)); ;}
+ break;
+
+ case 132:
+#line 507 "fta.y"
+ {(yyval.gb_val) = new gb_t((yyvsp[(1) - (3)].scalarval),(yyvsp[(3) - (3)].strval)); ;}
+ break;
+
+ case 133:
+#line 518 "fta.y"
+ {(yyval.ifpref) = new ifpref_t((yyvsp[(2) - (2)].strval));;}
+ break;
+
+ case 134:
+#line 519 "fta.y"
+ {(yyval.ifpref) = new ifpref_t((yyvsp[(1) - (4)].strval), (yyvsp[(4) - (4)].strval));;}
+ break;
+
+ case 135:
+#line 523 "fta.y"
+ {(yyval.colref) = new colref_t((yyvsp[(1) - (1)].strval)); ;}
+ break;
+
+ case 136:
+#line 524 "fta.y"
+ {(yyval.colref) = new colref_t((yyvsp[(1) - (3)].strval),(yyvsp[(3) - (3)].strval)); ;}
+ break;
+
+ case 137:
+#line 525 "fta.y"
+ {(yyval.colref) = new colref_t((yyvsp[(1) - (5)].strval),(yyvsp[(3) - (5)].strval),(yyvsp[(5) - (5)].strval)); ;}
+ break;
+
+ case 138:
+#line 529 "fta.y"
+ {(yyval.clist)=new colref_list_t((yyvsp[(1) - (3)].colref)); (yyval.clist)->append((yyvsp[(3) - (3)].colref));;}
+ break;
+
+ case 139:
+#line 530 "fta.y"
+ {(yyval.clist) = (yyvsp[(1) - (3)].clist)->append((yyvsp[(3) - (3)].colref));;}
+ break;
+
+ case 140:
+#line 534 "fta.y"
+ {(yyval.colref) = new colref_t((yyvsp[(1) - (1)].strval)); ;}
+ break;
+
+ case 141:
+#line 538 "fta.y"
+ {(yyval.clist)=new colref_list_t((yyvsp[(1) - (3)].colref)); (yyval.clist)->append((yyvsp[(3) - (3)].colref));;}
+ break;
+
+ case 142:
+#line 539 "fta.y"
+ {(yyval.clist) = (yyvsp[(1) - (3)].clist)->append((yyvsp[(3) - (3)].colref));;}
+ break;
+
+ case 143:
+#line 554 "fta.y"
+ {(yyval.table_list_schema) = new table_list((yyvsp[(1) - (1)].table_def_t));;}
+ break;
+
+ case 144:
+#line 555 "fta.y"
+ {(yyval.table_list_schema) = (yyvsp[(1) - (2)].table_list_schema)->append_table((yyvsp[(2) - (2)].table_def_t));;}
+ break;
+
+ case 145:
+#line 558 "fta.y"
+ {
+ (yyval.table_def_t)=new table_def((yyvsp[(2) - (7)].strval),(yyvsp[(3) - (7)].plist_t),(yyvsp[(4) - (7)].plist_t), (yyvsp[(6) - (7)].field_list_t), PROTOCOL_SCHEMA); delete (yyvsp[(6) - (7)].field_list_t);;}
+ break;
+
+ case 146:
+#line 560 "fta.y"
+ {
+ (yyval.table_def_t)=new table_def((yyvsp[(2) - (6)].stringval)->c_str(),(yyvsp[(3) - (6)].plist_t),NULL,(yyvsp[(5) - (6)].field_list_t), STREAM_SCHEMA); delete (yyvsp[(5) - (6)].field_list_t);;}
+ break;
+
+ case 147:
+#line 562 "fta.y"
+ {
+ (yyval.table_def_t) = new table_def((yyvsp[(2) - (16)].strval), (yyvsp[(5) - (16)].plist_t), (yyvsp[(8) - (16)].field_list_t), (yyvsp[(12) - (16)].subqueryspec_list_t), (yyvsp[(15) - (16)].plist_t)); ;}
+ break;
+
+ case 148:
+#line 564 "fta.y"
+ { (yyval.table_def_t) = new table_def((yyvsp[(3) - (4)].ufcnl)); ;}
+ break;
+
+ case 149:
+#line 568 "fta.y"
+ {(yyval.ufcnl) = new unpack_fcn_list((yyvsp[(1) - (1)].ufcn));;}
+ break;
+
+ case 150:
+#line 569 "fta.y"
+ {(yyval.ufcnl) = (yyvsp[(1) - (3)].ufcnl) -> append((yyvsp[(3) - (3)].ufcn));;}
+ break;
+
+ case 151:
+#line 573 "fta.y"
+ {(yyval.ufcn) = new unpack_fcn((yyvsp[(1) - (3)].strval),(yyvsp[(2) - (3)].strval),(yyvsp[(3) - (3)].strval));;}
+ break;
+
+ case 152:
+#line 577 "fta.y"
+ {(yyval.subqueryspec_list_t) = new subqueryspec_list((yyvsp[(1) - (1)].subq_spec_t));;}
+ break;
+
+ case 153:
+#line 578 "fta.y"
+ {(yyval.subqueryspec_list_t) = (yyvsp[(1) - (3)].subqueryspec_list_t)->append((yyvsp[(3) - (3)].subq_spec_t));;}
+ break;
+
+ case 154:
+#line 582 "fta.y"
+ {(yyval.subq_spec_t)=new subquery_spec((yyvsp[(1) - (4)].strval), (yyvsp[(3) - (4)].namevec_t)); delete (yyvsp[(3) - (4)].namevec_t);;}
+ break;
+
+ case 155:
+#line 585 "fta.y"
+ {(yyval.field_list_t) = new field_entry_list((yyvsp[(1) - (1)].field_t));;}
+ break;
+
+ case 156:
+#line 586 "fta.y"
+ {(yyval.field_list_t) = (yyvsp[(1) - (2)].field_list_t)->append_field((yyvsp[(2) - (2)].field_t));;}
+ break;
+
+ case 157:
+#line 590 "fta.y"
+ {(yyval.field_t) = new field_entry((yyvsp[(1) - (6)].strval),(yyvsp[(2) - (6)].strval),(yyvsp[(3) - (6)].strval),(yyvsp[(4) - (6)].plist_t),(yyvsp[(5) - (6)].plist_t));;}
+ break;
+
+ case 158:
+#line 591 "fta.y"
+ {(yyval.field_t) = new field_entry((yyvsp[(1) - (4)].strval),(yyvsp[(2) - (4)].strval),"",(yyvsp[(3) - (4)].plist_t),NULL);;}
+ break;
+
+ case 159:
+#line 595 "fta.y"
+ {(yyval.plist_t) = NULL;;}
+ break;
+
+ case 160:
+#line 596 "fta.y"
+ {(yyval.plist_t) = (yyvsp[(2) - (3)].plist_t);;}
+ break;
+
+ case 161:
+#line 600 "fta.y"
+ {(yyval.plist_t) = new param_list((yyvsp[(1) - (1)].strval));;}
+ break;
+
+ case 162:
+#line 601 "fta.y"
+ {(yyval.plist_t) = new param_list((yyvsp[(1) - (2)].strval),(yyvsp[(2) - (2)].strval));;}
+ break;
+
+ case 163:
+#line 602 "fta.y"
+ {(yyval.plist_t) = new param_list((yyvsp[(1) - (2)].strval),(yyvsp[(2) - (2)].strval));;}
+ break;
+
+ case 164:
+#line 603 "fta.y"
+ {(yyval.plist_t) = new param_list((yyvsp[(1) - (2)].strval),(yyvsp[(2) - (2)].strval));;}
+ break;
+
+ case 165:
+#line 604 "fta.y"
+ {(yyval.plist_t) = (yyvsp[(1) - (3)].plist_t)->append((yyvsp[(3) - (3)].strval));;}
+ break;
+
+ case 166:
+#line 605 "fta.y"
+ {(yyval.plist_t) = (yyvsp[(1) - (4)].plist_t)->append((yyvsp[(3) - (4)].strval),(yyvsp[(4) - (4)].strval));;}
+ break;
+
+ case 167:
+#line 606 "fta.y"
+ {(yyval.plist_t) = (yyvsp[(1) - (4)].plist_t)->append((yyvsp[(3) - (4)].strval),(yyvsp[(4) - (4)].strval));;}
+ break;
+
+ case 168:
+#line 607 "fta.y"
+ {(yyval.plist_t) = (yyvsp[(1) - (4)].plist_t)->append((yyvsp[(3) - (4)].strval),(yyvsp[(4) - (4)].strval));;}
+ break;
+
+ case 169:
+#line 611 "fta.y"
+ {(yyval.plist_t) = NULL;;}
+ break;
+
+ case 170:
+#line 612 "fta.y"
+ {(yyval.plist_t) = (yyvsp[(2) - (3)].plist_t);;}
+ break;
+
+ case 171:
+#line 616 "fta.y"
+ {(yyval.plist_t) = NULL;;}
+ break;
+
+ case 172:
+#line 617 "fta.y"
+ {(yyval.plist_t) = (yyvsp[(2) - (3)].plist_t);;}
+ break;
+
+ case 173:
+#line 621 "fta.y"
+ {(yyval.plist_t) = new param_list((yyvsp[(1) - (1)].strval));;}
+ break;
+
+ case 174:
+#line 622 "fta.y"
+ {(yyval.plist_t) = (yyvsp[(1) - (3)].plist_t)->append((yyvsp[(3) - (3)].strval));;}
+ break;
+
+ case 175:
+#line 626 "fta.y"
+ {(yyval.namevec_t) = new name_vec((yyvsp[(1) - (3)].strval),(yyvsp[(2) - (3)].strval),(yyvsp[(3) - (3)].plist_t));;}
+ break;
+
+ case 176:
+#line 627 "fta.y"
+ {(yyval.namevec_t) = (yyvsp[(1) - (5)].namevec_t)->append((yyvsp[(3) - (5)].strval),(yyvsp[(4) - (5)].strval), (yyvsp[(5) - (5)].plist_t));;}
+ break;
+
+
+/* Line 1267 of yacc.c. */
+#line 2843 "fta.tab.cc"
+ default: break;
+ }
+ YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
+
+ YYPOPSTACK (yylen);
+ yylen = 0;
+ YY_STACK_PRINT (yyss, yyssp);
+
+ *++yyvsp = yyval;
+
+
+ /* Now `shift' the result of the reduction. Determine what state
+ that goes to, based on the state we popped back to and the rule
+ number reduced by. */
+
+ yyn = yyr1[yyn];
+
+ yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
+ if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
+ yystate = yytable[yystate];
+ else
+ yystate = yydefgoto[yyn - YYNTOKENS];
+
+ goto yynewstate;
+
+
+/*------------------------------------.
+| yyerrlab -- here on detecting error |
+`------------------------------------*/
+yyerrlab:
+ /* If not already recovering from an error, report this error. */
+ if (!yyerrstatus)
+ {
+ ++yynerrs;
+#if ! YYERROR_VERBOSE
+ yyerror (YY_("syntax error"));
+#else
+ {
+ YYSIZE_T yysize = yysyntax_error (0, yystate, yychar);
+ if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM)
+ {
+ YYSIZE_T yyalloc = 2 * yysize;
+ if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM))
+ yyalloc = YYSTACK_ALLOC_MAXIMUM;
+ if (yymsg != yymsgbuf)
+ YYSTACK_FREE (yymsg);
+ yymsg = (char *) YYSTACK_ALLOC (yyalloc);
+ if (yymsg)
+ yymsg_alloc = yyalloc;
+ else
+ {
+ yymsg = yymsgbuf;
+ yymsg_alloc = sizeof yymsgbuf;
+ }
+ }
+
+ if (0 < yysize && yysize <= yymsg_alloc)
+ {
+ (void) yysyntax_error (yymsg, yystate, yychar);
+ yyerror (yymsg);
+ }
+ else
+ {
+ yyerror (YY_("syntax error"));
+ if (yysize != 0)
+ goto yyexhaustedlab;
+ }
+ }
+#endif
+ }
+
+
+
+ if (yyerrstatus == 3)
+ {
+ /* If just tried and failed to reuse look-ahead token after an
+ error, discard it. */
+
+ if (yychar <= YYEOF)
+ {
+ /* Return failure if at end of input. */
+ if (yychar == YYEOF)
+ YYABORT;
+ }
+ else
+ {
+ yydestruct ("Error: discarding",
+ yytoken, &yylval);
+ yychar = YYEMPTY;
+ }
+ }
+
+ /* Else will try to reuse look-ahead token after shifting the error
+ token. */
+ goto yyerrlab1;
+
+
+/*---------------------------------------------------.
+| yyerrorlab -- error raised explicitly by YYERROR. |
+`---------------------------------------------------*/
+yyerrorlab:
+
+ /* Pacify compilers like GCC when the user code never invokes
+ YYERROR and the label yyerrorlab therefore never appears in user
+ code. */
+ if (/*CONSTCOND*/ 0)
+ goto yyerrorlab;
+
+ /* Do not reclaim the symbols of the rule which action triggered
+ this YYERROR. */
+ YYPOPSTACK (yylen);
+ yylen = 0;
+ YY_STACK_PRINT (yyss, yyssp);
+ yystate = *yyssp;
+ goto yyerrlab1;
+
+
+/*-------------------------------------------------------------.
+| yyerrlab1 -- common code for both syntax error and YYERROR. |
+`-------------------------------------------------------------*/
+yyerrlab1:
+ yyerrstatus = 3; /* Each real token shifted decrements this. */
+
+ for (;;)
+ {
+ yyn = yypact[yystate];
+ if (yyn != YYPACT_NINF)
+ {
+ yyn += YYTERROR;
+ if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
+ {
+ yyn = yytable[yyn];
+ if (0 < yyn)
+ break;
+ }
+ }
+
+ /* Pop the current state because it cannot handle the error token. */
+ if (yyssp == yyss)
+ YYABORT;
+
+
+ yydestruct ("Error: popping",
+ yystos[yystate], yyvsp);
+ YYPOPSTACK (1);
+ yystate = *yyssp;
+ YY_STACK_PRINT (yyss, yyssp);
+ }
+
+ if (yyn == YYFINAL)
+ YYACCEPT;
+
+ *++yyvsp = yylval;
+
+
+ /* Shift the error token. */
+ YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
+
+ yystate = yyn;
+ goto yynewstate;
+
+
+/*-------------------------------------.
+| yyacceptlab -- YYACCEPT comes here. |
+`-------------------------------------*/
+yyacceptlab:
+ yyresult = 0;
+ goto yyreturn;
+
+/*-----------------------------------.
+| yyabortlab -- YYABORT comes here. |
+`-----------------------------------*/
+yyabortlab:
+ yyresult = 1;
+ goto yyreturn;
+
+#ifndef yyoverflow
+/*-------------------------------------------------.
+| yyexhaustedlab -- memory exhaustion comes here. |
+`-------------------------------------------------*/
+yyexhaustedlab:
+ yyerror (YY_("memory exhausted"));
+ yyresult = 2;
+ /* Fall through. */
+#endif
+
+yyreturn:
+ if (yychar != YYEOF && yychar != YYEMPTY)
+ yydestruct ("Cleanup: discarding lookahead",
+ yytoken, &yylval);
+ /* Do not reclaim the symbols of the rule which action triggered
+ this YYABORT or YYACCEPT. */
+ YYPOPSTACK (yylen);
+ YY_STACK_PRINT (yyss, yyssp);
+ while (yyssp != yyss)
+ {
+ yydestruct ("Cleanup: popping",
+ yystos[*yyssp], yyvsp);
+ YYPOPSTACK (1);
+ }
+#ifndef yyoverflow
+ if (yyss != yyssa)
+ YYSTACK_FREE (yyss);
+#endif
+#if YYERROR_VERBOSE
+ if (yymsg != yymsgbuf)
+ YYSTACK_FREE (yymsg);
+#endif
+ /* Make sure YYID is used. */
+ return YYID (yyresult);
+}
+
+
+#line 630 "fta.y"
+
+
+