diff --git a/src/parser/bison_parser.cpp b/src/parser/bison_parser.cpp
index 442f6af6..dd178de7 100644
--- a/src/parser/bison_parser.cpp
+++ b/src/parser/bison_parser.cpp
@@ -1,8 +1,8 @@
-/* A Bison parser, made by GNU Bison 3.8.2. */
+/* A Bison parser, made by GNU Bison 3.5.1. */
/* Bison implementation for Yacc-like parsers in C
- Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation,
+ Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2020 Free Software Foundation,
Inc.
This program is free software: you can redistribute it and/or modify
@@ -16,7 +16,7 @@
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, see . */
+ along with this program. If not, see . */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
@@ -34,10 +34,6 @@
/* C LALR(1) parser skeleton written by Richard Stallman, by
simplifying the original so-called "semantic" parser. */
-/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
- especially those whose name start with YY_ or yy_. They are
- private implementation details that can be changed or removed. */
-
/* 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.
@@ -45,11 +41,14 @@
define necessary library symbols; they are noted "INFRINGES ON
USER NAME SPACE" below. */
-/* Identify Bison output, and Bison version. */
-#define YYBISON 30802
+/* Undocumented macros, especially those whose name start with YY_,
+ are private implementation details. Do not rely on them. */
+
+/* Identify Bison output. */
+#define YYBISON 1
-/* Bison version string. */
-#define YYBISON_VERSION "3.8.2"
+/* Bison version. */
+#define YYBISON_VERSION "3.5.1"
/* Skeleton name. */
#define YYSKELETON_NAME "yacc.c"
@@ -104,7 +103,7 @@ int yyerror(YYLTYPE* llocp, SQLParserResult* result, yyscan_t scanner, const cha
}
// clang-format off
-#line 108 "bison_parser.cpp"
+#line 107 "bison_parser.cpp"
# ifndef YY_CAST
# ifdef __cplusplus
@@ -127,319 +126,325 @@ int yyerror(YYLTYPE* llocp, SQLParserResult* result, yyscan_t scanner, const cha
# endif
# endif
-#include "bison_parser.h"
-/* Symbol kind. */
-enum yysymbol_kind_t
-{
- YYSYMBOL_YYEMPTY = -2,
- YYSYMBOL_YYEOF = 0, /* "end of file" */
- YYSYMBOL_YYerror = 1, /* error */
- YYSYMBOL_YYUNDEF = 2, /* "invalid token" */
- YYSYMBOL_IDENTIFIER = 3, /* IDENTIFIER */
- YYSYMBOL_STRING = 4, /* STRING */
- YYSYMBOL_FLOATVAL = 5, /* FLOATVAL */
- YYSYMBOL_INTVAL = 6, /* INTVAL */
- YYSYMBOL_DEALLOCATE = 7, /* DEALLOCATE */
- YYSYMBOL_PARAMETERS = 8, /* PARAMETERS */
- YYSYMBOL_INTERSECT = 9, /* INTERSECT */
- YYSYMBOL_TEMPORARY = 10, /* TEMPORARY */
- YYSYMBOL_TIMESTAMP = 11, /* TIMESTAMP */
- YYSYMBOL_DISTINCT = 12, /* DISTINCT */
- YYSYMBOL_NVARCHAR = 13, /* NVARCHAR */
- YYSYMBOL_RESTRICT = 14, /* RESTRICT */
- YYSYMBOL_TRUNCATE = 15, /* TRUNCATE */
- YYSYMBOL_ANALYZE = 16, /* ANALYZE */
- YYSYMBOL_BETWEEN = 17, /* BETWEEN */
- YYSYMBOL_CASCADE = 18, /* CASCADE */
- YYSYMBOL_COLUMNS = 19, /* COLUMNS */
- YYSYMBOL_CONTROL = 20, /* CONTROL */
- YYSYMBOL_DEFAULT = 21, /* DEFAULT */
- YYSYMBOL_EXECUTE = 22, /* EXECUTE */
- YYSYMBOL_EXPLAIN = 23, /* EXPLAIN */
- YYSYMBOL_INTEGER = 24, /* INTEGER */
- YYSYMBOL_NATURAL = 25, /* NATURAL */
- YYSYMBOL_PREPARE = 26, /* PREPARE */
- YYSYMBOL_PRIMARY = 27, /* PRIMARY */
- YYSYMBOL_SCHEMAS = 28, /* SCHEMAS */
- YYSYMBOL_CHARACTER_VARYING = 29, /* CHARACTER_VARYING */
- YYSYMBOL_REAL = 30, /* REAL */
- YYSYMBOL_DECIMAL = 31, /* DECIMAL */
- YYSYMBOL_SMALLINT = 32, /* SMALLINT */
- YYSYMBOL_SPATIAL = 33, /* SPATIAL */
- YYSYMBOL_VARCHAR = 34, /* VARCHAR */
- YYSYMBOL_VIRTUAL = 35, /* VIRTUAL */
- YYSYMBOL_DESCRIBE = 36, /* DESCRIBE */
- YYSYMBOL_BEFORE = 37, /* BEFORE */
- YYSYMBOL_COLUMN = 38, /* COLUMN */
- YYSYMBOL_CREATE = 39, /* CREATE */
- YYSYMBOL_DELETE = 40, /* DELETE */
- YYSYMBOL_DIRECT = 41, /* DIRECT */
- YYSYMBOL_DOUBLE = 42, /* DOUBLE */
- YYSYMBOL_ESCAPE = 43, /* ESCAPE */
- YYSYMBOL_EXCEPT = 44, /* EXCEPT */
- YYSYMBOL_EXISTS = 45, /* EXISTS */
- YYSYMBOL_EXTRACT = 46, /* EXTRACT */
- YYSYMBOL_CAST = 47, /* CAST */
- YYSYMBOL_FORMAT = 48, /* FORMAT */
- YYSYMBOL_GLOBAL = 49, /* GLOBAL */
- YYSYMBOL_HAVING = 50, /* HAVING */
- YYSYMBOL_IMPORT = 51, /* IMPORT */
- YYSYMBOL_INSERT = 52, /* INSERT */
- YYSYMBOL_ISNULL = 53, /* ISNULL */
- YYSYMBOL_OFFSET = 54, /* OFFSET */
- YYSYMBOL_RENAME = 55, /* RENAME */
- YYSYMBOL_SCHEMA = 56, /* SCHEMA */
- YYSYMBOL_SELECT = 57, /* SELECT */
- YYSYMBOL_SORTED = 58, /* SORTED */
- YYSYMBOL_TABLES = 59, /* TABLES */
- YYSYMBOL_UNIQUE = 60, /* UNIQUE */
- YYSYMBOL_UNLOAD = 61, /* UNLOAD */
- YYSYMBOL_UPDATE = 62, /* UPDATE */
- YYSYMBOL_VALUES = 63, /* VALUES */
- YYSYMBOL_AFTER = 64, /* AFTER */
- YYSYMBOL_ALTER = 65, /* ALTER */
- YYSYMBOL_CROSS = 66, /* CROSS */
- YYSYMBOL_DELTA = 67, /* DELTA */
- YYSYMBOL_FLOAT = 68, /* FLOAT */
- YYSYMBOL_GROUP = 69, /* GROUP */
- YYSYMBOL_INDEX = 70, /* INDEX */
- YYSYMBOL_INNER = 71, /* INNER */
- YYSYMBOL_LIMIT = 72, /* LIMIT */
- YYSYMBOL_LOCAL = 73, /* LOCAL */
- YYSYMBOL_MERGE = 74, /* MERGE */
- YYSYMBOL_MINUS = 75, /* MINUS */
- YYSYMBOL_ORDER = 76, /* ORDER */
- YYSYMBOL_OUTER = 77, /* OUTER */
- YYSYMBOL_RIGHT = 78, /* RIGHT */
- YYSYMBOL_TABLE = 79, /* TABLE */
- YYSYMBOL_UNION = 80, /* UNION */
- YYSYMBOL_USING = 81, /* USING */
- YYSYMBOL_WHERE = 82, /* WHERE */
- YYSYMBOL_CALL = 83, /* CALL */
- YYSYMBOL_CASE = 84, /* CASE */
- YYSYMBOL_CHAR = 85, /* CHAR */
- YYSYMBOL_COPY = 86, /* COPY */
- YYSYMBOL_DATE = 87, /* DATE */
- YYSYMBOL_DATETIME = 88, /* DATETIME */
- YYSYMBOL_DESC = 89, /* DESC */
- YYSYMBOL_DROP = 90, /* DROP */
- YYSYMBOL_ELSE = 91, /* ELSE */
- YYSYMBOL_FILE = 92, /* FILE */
- YYSYMBOL_FROM = 93, /* FROM */
- YYSYMBOL_FULL = 94, /* FULL */
- YYSYMBOL_HASH = 95, /* HASH */
- YYSYMBOL_HINT = 96, /* HINT */
- YYSYMBOL_INTO = 97, /* INTO */
- YYSYMBOL_JOIN = 98, /* JOIN */
- YYSYMBOL_LEFT = 99, /* LEFT */
- YYSYMBOL_LIKE = 100, /* LIKE */
- YYSYMBOL_LOAD = 101, /* LOAD */
- YYSYMBOL_LONG = 102, /* LONG */
- YYSYMBOL_NULL = 103, /* NULL */
- YYSYMBOL_PLAN = 104, /* PLAN */
- YYSYMBOL_SHOW = 105, /* SHOW */
- YYSYMBOL_TEXT = 106, /* TEXT */
- YYSYMBOL_THEN = 107, /* THEN */
- YYSYMBOL_TIME = 108, /* TIME */
- YYSYMBOL_VIEW = 109, /* VIEW */
- YYSYMBOL_WHEN = 110, /* WHEN */
- YYSYMBOL_WITH = 111, /* WITH */
- YYSYMBOL_ADD = 112, /* ADD */
- YYSYMBOL_ALL = 113, /* ALL */
- YYSYMBOL_AND = 114, /* AND */
- YYSYMBOL_ASC = 115, /* ASC */
- YYSYMBOL_END = 116, /* END */
- YYSYMBOL_FOR = 117, /* FOR */
- YYSYMBOL_INT = 118, /* INT */
- YYSYMBOL_KEY = 119, /* KEY */
- YYSYMBOL_NOT = 120, /* NOT */
- YYSYMBOL_OFF = 121, /* OFF */
- YYSYMBOL_SET = 122, /* SET */
- YYSYMBOL_TOP = 123, /* TOP */
- YYSYMBOL_AS = 124, /* AS */
- YYSYMBOL_BY = 125, /* BY */
- YYSYMBOL_IF = 126, /* IF */
- YYSYMBOL_IN = 127, /* IN */
- YYSYMBOL_IS = 128, /* IS */
- YYSYMBOL_OF = 129, /* OF */
- YYSYMBOL_ON = 130, /* ON */
- YYSYMBOL_OR = 131, /* OR */
- YYSYMBOL_TO = 132, /* TO */
- YYSYMBOL_ARRAY = 133, /* ARRAY */
- YYSYMBOL_CONCAT = 134, /* CONCAT */
- YYSYMBOL_ILIKE = 135, /* ILIKE */
- YYSYMBOL_SECOND = 136, /* SECOND */
- YYSYMBOL_MINUTE = 137, /* MINUTE */
- YYSYMBOL_HOUR = 138, /* HOUR */
- YYSYMBOL_DAY = 139, /* DAY */
- YYSYMBOL_MONTH = 140, /* MONTH */
- YYSYMBOL_YEAR = 141, /* YEAR */
- YYSYMBOL_SECONDS = 142, /* SECONDS */
- YYSYMBOL_MINUTES = 143, /* MINUTES */
- YYSYMBOL_HOURS = 144, /* HOURS */
- YYSYMBOL_DAYS = 145, /* DAYS */
- YYSYMBOL_MONTHS = 146, /* MONTHS */
- YYSYMBOL_YEARS = 147, /* YEARS */
- YYSYMBOL_INTERVAL = 148, /* INTERVAL */
- YYSYMBOL_TRUE = 149, /* TRUE */
- YYSYMBOL_FALSE = 150, /* FALSE */
- YYSYMBOL_TRANSACTION = 151, /* TRANSACTION */
- YYSYMBOL_BEGIN = 152, /* BEGIN */
- YYSYMBOL_COMMIT = 153, /* COMMIT */
- YYSYMBOL_ROLLBACK = 154, /* ROLLBACK */
- YYSYMBOL_155_ = 155, /* '=' */
- YYSYMBOL_EQUALS = 156, /* EQUALS */
- YYSYMBOL_NOTEQUALS = 157, /* NOTEQUALS */
- YYSYMBOL_158_ = 158, /* '<' */
- YYSYMBOL_159_ = 159, /* '>' */
- YYSYMBOL_LESS = 160, /* LESS */
- YYSYMBOL_GREATER = 161, /* GREATER */
- YYSYMBOL_LESSEQ = 162, /* LESSEQ */
- YYSYMBOL_GREATEREQ = 163, /* GREATEREQ */
- YYSYMBOL_NOTNULL = 164, /* NOTNULL */
- YYSYMBOL_165_ = 165, /* '+' */
- YYSYMBOL_166_ = 166, /* '-' */
- YYSYMBOL_167_ = 167, /* '*' */
- YYSYMBOL_168_ = 168, /* '/' */
- YYSYMBOL_169_ = 169, /* '%' */
- YYSYMBOL_170_ = 170, /* '^' */
- YYSYMBOL_UMINUS = 171, /* UMINUS */
- YYSYMBOL_172_ = 172, /* '[' */
- YYSYMBOL_173_ = 173, /* ']' */
- YYSYMBOL_174_ = 174, /* '(' */
- YYSYMBOL_175_ = 175, /* ')' */
- YYSYMBOL_176_ = 176, /* '.' */
- YYSYMBOL_177_ = 177, /* ';' */
- YYSYMBOL_178_ = 178, /* ',' */
- YYSYMBOL_179_ = 179, /* '?' */
- YYSYMBOL_YYACCEPT = 180, /* $accept */
- YYSYMBOL_input = 181, /* input */
- YYSYMBOL_statement_list = 182, /* statement_list */
- YYSYMBOL_statement = 183, /* statement */
- YYSYMBOL_preparable_statement = 184, /* preparable_statement */
- YYSYMBOL_opt_hints = 185, /* opt_hints */
- YYSYMBOL_hint_list = 186, /* hint_list */
- YYSYMBOL_hint = 187, /* hint */
- YYSYMBOL_transaction_statement = 188, /* transaction_statement */
- YYSYMBOL_opt_transaction_keyword = 189, /* opt_transaction_keyword */
- YYSYMBOL_prepare_statement = 190, /* prepare_statement */
- YYSYMBOL_prepare_target_query = 191, /* prepare_target_query */
- YYSYMBOL_execute_statement = 192, /* execute_statement */
- YYSYMBOL_import_statement = 193, /* import_statement */
- YYSYMBOL_file_type = 194, /* file_type */
- YYSYMBOL_file_path = 195, /* file_path */
- YYSYMBOL_opt_file_type = 196, /* opt_file_type */
- YYSYMBOL_export_statement = 197, /* export_statement */
- YYSYMBOL_show_statement = 198, /* show_statement */
- YYSYMBOL_create_statement = 199, /* create_statement */
- YYSYMBOL_opt_not_exists = 200, /* opt_not_exists */
- YYSYMBOL_table_elem_commalist = 201, /* table_elem_commalist */
- YYSYMBOL_table_elem = 202, /* table_elem */
- YYSYMBOL_column_def = 203, /* column_def */
- YYSYMBOL_column_type = 204, /* column_type */
- YYSYMBOL_opt_time_precision = 205, /* opt_time_precision */
- YYSYMBOL_opt_decimal_specification = 206, /* opt_decimal_specification */
- YYSYMBOL_opt_column_constraints = 207, /* opt_column_constraints */
- YYSYMBOL_column_constraint_list = 208, /* column_constraint_list */
- YYSYMBOL_column_constraint = 209, /* column_constraint */
- YYSYMBOL_table_constraint = 210, /* table_constraint */
- YYSYMBOL_drop_statement = 211, /* drop_statement */
- YYSYMBOL_opt_exists = 212, /* opt_exists */
- YYSYMBOL_alter_statement = 213, /* alter_statement */
- YYSYMBOL_alter_action = 214, /* alter_action */
- YYSYMBOL_drop_action = 215, /* drop_action */
- YYSYMBOL_delete_statement = 216, /* delete_statement */
- YYSYMBOL_truncate_statement = 217, /* truncate_statement */
- YYSYMBOL_insert_statement = 218, /* insert_statement */
- YYSYMBOL_opt_column_list = 219, /* opt_column_list */
- YYSYMBOL_update_statement = 220, /* update_statement */
- YYSYMBOL_update_clause_commalist = 221, /* update_clause_commalist */
- YYSYMBOL_update_clause = 222, /* update_clause */
- YYSYMBOL_select_statement = 223, /* select_statement */
- YYSYMBOL_select_within_set_operation = 224, /* select_within_set_operation */
- YYSYMBOL_select_within_set_operation_no_parentheses = 225, /* select_within_set_operation_no_parentheses */
- YYSYMBOL_select_with_paren = 226, /* select_with_paren */
- YYSYMBOL_select_no_paren = 227, /* select_no_paren */
- YYSYMBOL_set_operator = 228, /* set_operator */
- YYSYMBOL_set_type = 229, /* set_type */
- YYSYMBOL_opt_all = 230, /* opt_all */
- YYSYMBOL_select_clause = 231, /* select_clause */
- YYSYMBOL_opt_distinct = 232, /* opt_distinct */
- YYSYMBOL_select_list = 233, /* select_list */
- YYSYMBOL_opt_from_clause = 234, /* opt_from_clause */
- YYSYMBOL_from_clause = 235, /* from_clause */
- YYSYMBOL_opt_where = 236, /* opt_where */
- YYSYMBOL_opt_group = 237, /* opt_group */
- YYSYMBOL_opt_having = 238, /* opt_having */
- YYSYMBOL_opt_order = 239, /* opt_order */
- YYSYMBOL_order_list = 240, /* order_list */
- YYSYMBOL_order_desc = 241, /* order_desc */
- YYSYMBOL_opt_order_type = 242, /* opt_order_type */
- YYSYMBOL_opt_top = 243, /* opt_top */
- YYSYMBOL_opt_limit = 244, /* opt_limit */
- YYSYMBOL_expr_list = 245, /* expr_list */
- YYSYMBOL_opt_literal_list = 246, /* opt_literal_list */
- YYSYMBOL_literal_list = 247, /* literal_list */
- YYSYMBOL_expr_alias = 248, /* expr_alias */
- YYSYMBOL_expr = 249, /* expr */
- YYSYMBOL_operand = 250, /* operand */
- YYSYMBOL_scalar_expr = 251, /* scalar_expr */
- YYSYMBOL_unary_expr = 252, /* unary_expr */
- YYSYMBOL_binary_expr = 253, /* binary_expr */
- YYSYMBOL_logic_expr = 254, /* logic_expr */
- YYSYMBOL_in_expr = 255, /* in_expr */
- YYSYMBOL_case_expr = 256, /* case_expr */
- YYSYMBOL_case_list = 257, /* case_list */
- YYSYMBOL_exists_expr = 258, /* exists_expr */
- YYSYMBOL_comp_expr = 259, /* comp_expr */
- YYSYMBOL_function_expr = 260, /* function_expr */
- YYSYMBOL_extract_expr = 261, /* extract_expr */
- YYSYMBOL_cast_expr = 262, /* cast_expr */
- YYSYMBOL_datetime_field = 263, /* datetime_field */
- YYSYMBOL_datetime_field_plural = 264, /* datetime_field_plural */
- YYSYMBOL_duration_field = 265, /* duration_field */
- YYSYMBOL_array_expr = 266, /* array_expr */
- YYSYMBOL_array_index = 267, /* array_index */
- YYSYMBOL_between_expr = 268, /* between_expr */
- YYSYMBOL_column_name = 269, /* column_name */
- YYSYMBOL_literal = 270, /* literal */
- YYSYMBOL_string_literal = 271, /* string_literal */
- YYSYMBOL_bool_literal = 272, /* bool_literal */
- YYSYMBOL_num_literal = 273, /* num_literal */
- YYSYMBOL_int_literal = 274, /* int_literal */
- YYSYMBOL_null_literal = 275, /* null_literal */
- YYSYMBOL_date_literal = 276, /* date_literal */
- YYSYMBOL_interval_literal = 277, /* interval_literal */
- YYSYMBOL_param_expr = 278, /* param_expr */
- YYSYMBOL_table_ref = 279, /* table_ref */
- YYSYMBOL_table_ref_atomic = 280, /* table_ref_atomic */
- YYSYMBOL_nonjoin_table_ref_atomic = 281, /* nonjoin_table_ref_atomic */
- YYSYMBOL_table_ref_commalist = 282, /* table_ref_commalist */
- YYSYMBOL_table_ref_name = 283, /* table_ref_name */
- YYSYMBOL_table_ref_name_no_alias = 284, /* table_ref_name_no_alias */
- YYSYMBOL_table_name = 285, /* table_name */
- YYSYMBOL_opt_index_name = 286, /* opt_index_name */
- YYSYMBOL_table_alias = 287, /* table_alias */
- YYSYMBOL_opt_table_alias = 288, /* opt_table_alias */
- YYSYMBOL_alias = 289, /* alias */
- YYSYMBOL_opt_alias = 290, /* opt_alias */
- YYSYMBOL_opt_with_clause = 291, /* opt_with_clause */
- YYSYMBOL_with_clause = 292, /* with_clause */
- YYSYMBOL_with_description_list = 293, /* with_description_list */
- YYSYMBOL_with_description = 294, /* with_description */
- YYSYMBOL_join_clause = 295, /* join_clause */
- YYSYMBOL_opt_join_type = 296, /* opt_join_type */
- YYSYMBOL_join_condition = 297, /* join_condition */
- YYSYMBOL_opt_semicolon = 298, /* opt_semicolon */
- YYSYMBOL_ident_commalist = 299 /* ident_commalist */
+/* Enabling verbose error messages. */
+#ifdef YYERROR_VERBOSE
+# undef YYERROR_VERBOSE
+# define YYERROR_VERBOSE 1
+#else
+# define YYERROR_VERBOSE 1
+#endif
+
+/* Use api.header.include to #include this header
+ instead of duplicating it here. */
+#ifndef YY_HSQL_BISON_PARSER_H_INCLUDED
+# define YY_HSQL_BISON_PARSER_H_INCLUDED
+/* Debug traces. */
+#ifndef HSQL_DEBUG
+# if defined YYDEBUG
+#if YYDEBUG
+# define HSQL_DEBUG 1
+# else
+# define HSQL_DEBUG 0
+# endif
+# else /* ! defined YYDEBUG */
+# define HSQL_DEBUG 0
+# endif /* ! defined YYDEBUG */
+#endif /* ! defined HSQL_DEBUG */
+#if HSQL_DEBUG
+extern int hsql_debug;
+#endif
+/* "%code requires" blocks. */
+#line 38 "bison_parser.y"
+
+// clang-format on
+// %code requires block
+
+#include "../SQLParserResult.h"
+#include "../sql/statements.h"
+#include "parser_typedef.h"
+
+// Auto update column and line number
+#define YY_USER_ACTION \
+ yylloc->first_line = yylloc->last_line; \
+ yylloc->first_column = yylloc->last_column; \
+ for (int i = 0; yytext[i] != '\0'; i++) { \
+ yylloc->total_column++; \
+ yylloc->string_length++; \
+ if (yytext[i] == '\n') { \
+ yylloc->last_line++; \
+ yylloc->last_column = 0; \
+ } else { \
+ yylloc->last_column++; \
+ } \
+ }
+
+#line 182 "bison_parser.cpp"
+
+/* Token type. */
+#ifndef HSQL_TOKENTYPE
+#define HSQL_TOKENTYPE
+enum hsql_tokentype {
+ SQL_IDENTIFIER = 258,
+ SQL_STRING = 259,
+ SQL_FLOATVAL = 260,
+ SQL_INTVAL = 261,
+ SQL_DEALLOCATE = 262,
+ SQL_PARAMETERS = 263,
+ SQL_INTERSECT = 264,
+ SQL_TEMPORARY = 265,
+ SQL_TIMESTAMP = 266,
+ SQL_DISTINCT = 267,
+ SQL_NVARCHAR = 268,
+ SQL_RESTRICT = 269,
+ SQL_TRUNCATE = 270,
+ SQL_ANALYZE = 271,
+ SQL_BETWEEN = 272,
+ SQL_CASCADE = 273,
+ SQL_COLUMNS = 274,
+ SQL_CONTROL = 275,
+ SQL_DEFAULT = 276,
+ SQL_EXECUTE = 277,
+ SQL_EXPLAIN = 278,
+ SQL_INTEGER = 279,
+ SQL_NATURAL = 280,
+ SQL_PREPARE = 281,
+ SQL_PRIMARY = 282,
+ SQL_SCHEMAS = 283,
+ SQL_CHARACTER_VARYING = 284,
+ SQL_REAL = 285,
+ SQL_DECIMAL = 286,
+ SQL_SMALLINT = 287,
+ SQL_SPATIAL = 288,
+ SQL_VARCHAR = 289,
+ SQL_VIRTUAL = 290,
+ SQL_DESCRIBE = 291,
+ SQL_BEFORE = 292,
+ SQL_COLUMN = 293,
+ SQL_CREATE = 294,
+ SQL_DELETE = 295,
+ SQL_DIRECT = 296,
+ SQL_DOUBLE = 297,
+ SQL_ESCAPE = 298,
+ SQL_EXCEPT = 299,
+ SQL_EXISTS = 300,
+ SQL_EXTRACT = 301,
+ SQL_CAST = 302,
+ SQL_FORMAT = 303,
+ SQL_GLOBAL = 304,
+ SQL_HAVING = 305,
+ SQL_IMPORT = 306,
+ SQL_INSERT = 307,
+ SQL_ISNULL = 308,
+ SQL_OFFSET = 309,
+ SQL_RENAME = 310,
+ SQL_SCHEMA = 311,
+ SQL_SELECT = 312,
+ SQL_SORTED = 313,
+ SQL_TABLES = 314,
+ SQL_UNIQUE = 315,
+ SQL_UNLOAD = 316,
+ SQL_UPDATE = 317,
+ SQL_VALUES = 318,
+ SQL_AFTER = 319,
+ SQL_ALTER = 320,
+ SQL_CROSS = 321,
+ SQL_DELTA = 322,
+ SQL_FLOAT = 323,
+ SQL_GROUP = 324,
+ SQL_INDEX = 325,
+ SQL_INNER = 326,
+ SQL_LIMIT = 327,
+ SQL_LOCAL = 328,
+ SQL_MERGE = 329,
+ SQL_MINUS = 330,
+ SQL_ORDER = 331,
+ SQL_OUTER = 332,
+ SQL_RIGHT = 333,
+ SQL_TABLE = 334,
+ SQL_UNION = 335,
+ SQL_USING = 336,
+ SQL_WHERE = 337,
+ SQL_CALL = 338,
+ SQL_CASE = 339,
+ SQL_CHAR = 340,
+ SQL_COPY = 341,
+ SQL_DATE = 342,
+ SQL_DATETIME = 343,
+ SQL_DESC = 344,
+ SQL_DROP = 345,
+ SQL_ELSE = 346,
+ SQL_FILE = 347,
+ SQL_FROM = 348,
+ SQL_FULL = 349,
+ SQL_HASH = 350,
+ SQL_HINT = 351,
+ SQL_INTO = 352,
+ SQL_JOIN = 353,
+ SQL_LEFT = 354,
+ SQL_LIKE = 355,
+ SQL_LOAD = 356,
+ SQL_LONG = 357,
+ SQL_NULL = 358,
+ SQL_PLAN = 359,
+ SQL_SHOW = 360,
+ SQL_TEXT = 361,
+ SQL_THEN = 362,
+ SQL_TIME = 363,
+ SQL_VIEW = 364,
+ SQL_WHEN = 365,
+ SQL_WITH = 366,
+ SQL_ADD = 367,
+ SQL_ALL = 368,
+ SQL_AND = 369,
+ SQL_ASC = 370,
+ SQL_END = 371,
+ SQL_FOR = 372,
+ SQL_INT = 373,
+ SQL_KEY = 374,
+ SQL_NOT = 375,
+ SQL_OFF = 376,
+ SQL_SET = 377,
+ SQL_TOP = 378,
+ SQL_AS = 379,
+ SQL_BY = 380,
+ SQL_IF = 381,
+ SQL_IN = 382,
+ SQL_IS = 383,
+ SQL_OF = 384,
+ SQL_ON = 385,
+ SQL_OR = 386,
+ SQL_TO = 387,
+ SQL_NO = 388,
+ SQL_ARRAY = 389,
+ SQL_CONCAT = 390,
+ SQL_ILIKE = 391,
+ SQL_SECOND = 392,
+ SQL_MINUTE = 393,
+ SQL_HOUR = 394,
+ SQL_DAY = 395,
+ SQL_MONTH = 396,
+ SQL_YEAR = 397,
+ SQL_SECONDS = 398,
+ SQL_MINUTES = 399,
+ SQL_HOURS = 400,
+ SQL_DAYS = 401,
+ SQL_MONTHS = 402,
+ SQL_YEARS = 403,
+ SQL_INTERVAL = 404,
+ SQL_TRUE = 405,
+ SQL_FALSE = 406,
+ SQL_TRANSACTION = 407,
+ SQL_BEGIN = 408,
+ SQL_COMMIT = 409,
+ SQL_ROLLBACK = 410,
+ SQL_NOWAIT = 411,
+ SQL_SKIP = 412,
+ SQL_LOCKED = 413,
+ SQL_SHARE = 414,
+ SQL_EQUALS = 415,
+ SQL_NOTEQUALS = 416,
+ SQL_LESS = 417,
+ SQL_GREATER = 418,
+ SQL_LESSEQ = 419,
+ SQL_GREATEREQ = 420,
+ SQL_NOTNULL = 421,
+ SQL_UMINUS = 422
+};
+#endif
+
+/* Value type. */
+#if !defined HSQL_STYPE && !defined HSQL_STYPE_IS_DECLARED
+union HSQL_STYPE {
+#line 98 "bison_parser.y"
+
+ // clang-format on
+ bool bval;
+ char* sval;
+ double fval;
+ int64_t ival;
+ uintmax_t uval;
+
+ // statements
+ hsql::AlterStatement* alter_stmt;
+ hsql::CreateStatement* create_stmt;
+ hsql::DeleteStatement* delete_stmt;
+ hsql::DropStatement* drop_stmt;
+ hsql::ExecuteStatement* exec_stmt;
+ hsql::ExportStatement* export_stmt;
+ hsql::ImportStatement* import_stmt;
+ hsql::InsertStatement* insert_stmt;
+ hsql::PrepareStatement* prep_stmt;
+ hsql::SelectStatement* select_stmt;
+ hsql::ShowStatement* show_stmt;
+ hsql::SQLStatement* statement;
+ hsql::TransactionStatement* transaction_stmt;
+ hsql::UpdateStatement* update_stmt;
+
+ hsql::Alias* alias_t;
+ hsql::AlterAction* alter_action_t;
+ hsql::ColumnDefinition* column_t;
+ hsql::ColumnType column_type_t;
+ hsql::ConstraintType column_constraint_t;
+ hsql::DatetimeField datetime_field;
+ hsql::DropColumnAction* drop_action_t;
+ hsql::Expr* expr;
+ hsql::GroupByDescription* group_t;
+ hsql::ImportType import_type_t;
+ hsql::JoinType join_type;
+ hsql::LimitDescription* limit;
+ hsql::OrderDescription* order;
+ hsql::OrderType order_type;
+ hsql::SetOperation* set_operator_t;
+ hsql::TableConstraint* table_constraint_t;
+ hsql::TableElement* table_element_t;
+ hsql::TableName table_name;
+ hsql::TableRef* table;
+ hsql::UpdateClause* update_t;
+ hsql::WithDescription* with_description_t;
+ hsql::LockingClause* locking_t;
+
+ std::vector* str_vec;
+ std::vector* column_constraint_vec;
+ std::vector* expr_vec;
+ std::vector* order_vec;
+ std::vector* stmt_vec;
+ std::vector* table_element_vec;
+ std::vector* table_vec;
+ std::vector* update_vec;
+ std::vector* with_description_vec;
+ std::vector* locking_clause_vec;
+
+ std::pair* ival_pair;
+
+ hsql::RowLockMode lock_mode_t;
+ hsql::RowLockWaitPolicy lock_wait_policy_t;
+
+#line 425 "bison_parser.cpp"
};
-typedef enum yysymbol_kind_t yysymbol_kind_t;
+typedef union HSQL_STYPE HSQL_STYPE;
+#define HSQL_STYPE_IS_TRIVIAL 1
+#define HSQL_STYPE_IS_DECLARED 1
+#endif
+/* Location type. */
+#if !defined HSQL_LTYPE && !defined HSQL_LTYPE_IS_DECLARED
+typedef struct HSQL_LTYPE HSQL_LTYPE;
+struct HSQL_LTYPE {
+ int first_line;
+ int first_column;
+ int last_line;
+ int last_column;
+};
+#define HSQL_LTYPE_IS_DECLARED 1
+#define HSQL_LTYPE_IS_TRIVIAL 1
+#endif
+int hsql_parse(hsql::SQLParserResult* result, yyscan_t scanner);
+#endif /* !YY_HSQL_BISON_PARSER_H_INCLUDED */
#ifdef short
-# undef short
+#undef short
#endif
/* On compilers that do not define __PTRDIFF_MAX__ etc., make sure
@@ -447,11 +452,11 @@ typedef enum yysymbol_kind_t yysymbol_kind_t;
so that the code can choose integer types of a good width. */
#ifndef __PTRDIFF_MAX__
-# include /* INFRINGES ON USER NAME SPACE */
-# if defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
-# include /* INFRINGES ON USER NAME SPACE */
-# define YY_STDINT_H
-# endif
+#include /* INFRINGES ON USER NAME SPACE */
+#if defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
+#include /* INFRINGES ON USER NAME SPACE */
+#define YY_STDINT_H
+#endif
#endif
/* Narrow types that promote to a signed type and that can represent a
@@ -475,22 +480,9 @@ typedef int_least16_t yytype_int16;
typedef short yytype_int16;
#endif
-/* Work around bug in HP-UX 11.23, which defines these macros
- incorrectly for preprocessor constants. This workaround can likely
- be removed in 2023, as HPE has promised support for HP-UX 11.23
- (aka HP-UX 11i v2) only through the end of 2022; see Table 2 of
- . */
-#ifdef __hpux
-# undef UINT_LEAST8_MAX
-# undef UINT_LEAST16_MAX
-# define UINT_LEAST8_MAX 255
-# define UINT_LEAST16_MAX 65535
-#endif
-
#if defined __UINT_LEAST8_MAX__ && __UINT_LEAST8_MAX__ <= __INT_MAX__
typedef __UINT_LEAST8_TYPE__ yytype_uint8;
-#elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H \
- && UINT_LEAST8_MAX <= INT_MAX)
+#elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H && UINT_LEAST8_MAX <= INT_MAX)
typedef uint_least8_t yytype_uint8;
#elif !defined __UINT_LEAST8_MAX__ && UCHAR_MAX <= INT_MAX
typedef unsigned char yytype_uint8;
@@ -500,8 +492,7 @@ typedef short yytype_uint8;
#if defined __UINT_LEAST16_MAX__ && __UINT_LEAST16_MAX__ <= __INT_MAX__
typedef __UINT_LEAST16_TYPE__ yytype_uint16;
-#elif (!defined __UINT_LEAST16_MAX__ && defined YY_STDINT_H \
- && UINT_LEAST16_MAX <= INT_MAX)
+#elif (!defined __UINT_LEAST16_MAX__ && defined YY_STDINT_H && UINT_LEAST16_MAX <= INT_MAX)
typedef uint_least16_t yytype_uint16;
#elif !defined __UINT_LEAST16_MAX__ && USHRT_MAX <= INT_MAX
typedef unsigned short yytype_uint16;
@@ -510,42 +501,38 @@ typedef int yytype_uint16;
#endif
#ifndef YYPTRDIFF_T
-# if defined __PTRDIFF_TYPE__ && defined __PTRDIFF_MAX__
-# define YYPTRDIFF_T __PTRDIFF_TYPE__
-# define YYPTRDIFF_MAXIMUM __PTRDIFF_MAX__
-# elif defined PTRDIFF_MAX
-# ifndef ptrdiff_t
-# include /* INFRINGES ON USER NAME SPACE */
-# endif
-# define YYPTRDIFF_T ptrdiff_t
-# define YYPTRDIFF_MAXIMUM PTRDIFF_MAX
-# else
-# define YYPTRDIFF_T long
-# define YYPTRDIFF_MAXIMUM LONG_MAX
-# endif
+#if defined __PTRDIFF_TYPE__ && defined __PTRDIFF_MAX__
+#define YYPTRDIFF_T __PTRDIFF_TYPE__
+#define YYPTRDIFF_MAXIMUM __PTRDIFF_MAX__
+#elif defined PTRDIFF_MAX
+#ifndef ptrdiff_t
+#include /* INFRINGES ON USER NAME SPACE */
+#endif
+#define YYPTRDIFF_T ptrdiff_t
+#define YYPTRDIFF_MAXIMUM PTRDIFF_MAX
+#else
+#define YYPTRDIFF_T long
+#define YYPTRDIFF_MAXIMUM LONG_MAX
+#endif
#endif
#ifndef YYSIZE_T
-# ifdef __SIZE_TYPE__
-# define YYSIZE_T __SIZE_TYPE__
-# elif defined size_t
-# define YYSIZE_T size_t
-# elif defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
-# include /* INFRINGES ON USER NAME SPACE */
-# define YYSIZE_T size_t
-# else
-# define YYSIZE_T unsigned
-# endif
+#ifdef __SIZE_TYPE__
+#define YYSIZE_T __SIZE_TYPE__
+#elif defined size_t
+#define YYSIZE_T size_t
+#elif defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
+#include /* INFRINGES ON USER NAME SPACE */
+#define YYSIZE_T size_t
+#else
+#define YYSIZE_T unsigned
+#endif
#endif
-#define YYSIZE_MAXIMUM \
- YY_CAST (YYPTRDIFF_T, \
- (YYPTRDIFF_MAXIMUM < YY_CAST (YYSIZE_T, -1) \
- ? YYPTRDIFF_MAXIMUM \
- : YY_CAST (YYSIZE_T, -1)))
-
-#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
+#define YYSIZE_MAXIMUM \
+ YY_CAST(YYPTRDIFF_T, (YYPTRDIFF_MAXIMUM < YY_CAST(YYSIZE_T, -1) ? YYPTRDIFF_MAXIMUM : YY_CAST(YYSIZE_T, -1)))
+#define YYSIZEOF(X) YY_CAST(YYPTRDIFF_T, sizeof(X))
/* Stored state numbers (used for stacks). */
typedef yytype_int16 yy_state_t;
@@ -554,1075 +541,968 @@ typedef yytype_int16 yy_state_t;
typedef int yy_state_fast_t;
#ifndef YY_
-# if defined YYENABLE_NLS && YYENABLE_NLS
-# if ENABLE_NLS
-# include /* INFRINGES ON USER NAME SPACE */
-# define YY_(Msgid) dgettext ("bison-runtime", Msgid)
-# endif
-# endif
-# ifndef YY_
-# define YY_(Msgid) Msgid
-# endif
+#if defined YYENABLE_NLS && YYENABLE_NLS
+#if ENABLE_NLS
+#include /* INFRINGES ON USER NAME SPACE */
+#define YY_(Msgid) dgettext("bison-runtime", Msgid)
+#endif
+#endif
+#ifndef YY_
+#define YY_(Msgid) Msgid
+#endif
#endif
-
#ifndef YY_ATTRIBUTE_PURE
-# if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__)
-# define YY_ATTRIBUTE_PURE __attribute__ ((__pure__))
-# else
-# define YY_ATTRIBUTE_PURE
-# endif
+#if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__)
+#define YY_ATTRIBUTE_PURE __attribute__((__pure__))
+#else
+#define YY_ATTRIBUTE_PURE
+#endif
#endif
#ifndef YY_ATTRIBUTE_UNUSED
-# if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__)
-# define YY_ATTRIBUTE_UNUSED __attribute__ ((__unused__))
-# else
-# define YY_ATTRIBUTE_UNUSED
-# endif
+#if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__)
+#define YY_ATTRIBUTE_UNUSED __attribute__((__unused__))
+#else
+#define YY_ATTRIBUTE_UNUSED
+#endif
#endif
/* Suppress unused-variable warnings by "using" E. */
-#if ! defined lint || defined __GNUC__
-# define YY_USE(E) ((void) (E))
+#if !defined lint || defined __GNUC__
+#define YYUSE(E) ((void)(E))
#else
-# define YY_USE(E) /* empty */
+#define YYUSE(E) /* empty */
#endif
+#if defined __GNUC__ && !defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
/* Suppress an incorrect diagnostic about yylval being uninitialized. */
-#if defined __GNUC__ && ! defined __ICC && 406 <= __GNUC__ * 100 + __GNUC_MINOR__
-# if __GNUC__ * 100 + __GNUC_MINOR__ < 407
-# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
- _Pragma ("GCC diagnostic push") \
- _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")
-# else
-# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
- _Pragma ("GCC diagnostic push") \
- _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") \
- _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
-# endif
-# define YY_IGNORE_MAYBE_UNINITIALIZED_END \
- _Pragma ("GCC diagnostic pop")
+#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
+ _Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wuninitialized\"") \
+ _Pragma("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
+#define YY_IGNORE_MAYBE_UNINITIALIZED_END _Pragma("GCC diagnostic pop")
#else
-# define YY_INITIAL_VALUE(Value) Value
+#define YY_INITIAL_VALUE(Value) Value
#endif
#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
-# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
-# define YY_IGNORE_MAYBE_UNINITIALIZED_END
+#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
+#define YY_IGNORE_MAYBE_UNINITIALIZED_END
#endif
#ifndef YY_INITIAL_VALUE
-# define YY_INITIAL_VALUE(Value) /* Nothing. */
+#define YY_INITIAL_VALUE(Value) /* Nothing. */
#endif
-#if defined __cplusplus && defined __GNUC__ && ! defined __ICC && 6 <= __GNUC__
-# define YY_IGNORE_USELESS_CAST_BEGIN \
- _Pragma ("GCC diagnostic push") \
- _Pragma ("GCC diagnostic ignored \"-Wuseless-cast\"")
-# define YY_IGNORE_USELESS_CAST_END \
- _Pragma ("GCC diagnostic pop")
+#if defined __cplusplus && defined __GNUC__ && !defined __ICC && 6 <= __GNUC__
+#define YY_IGNORE_USELESS_CAST_BEGIN _Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wuseless-cast\"")
+#define YY_IGNORE_USELESS_CAST_END _Pragma("GCC diagnostic pop")
#endif
#ifndef YY_IGNORE_USELESS_CAST_BEGIN
-# define YY_IGNORE_USELESS_CAST_BEGIN
-# define YY_IGNORE_USELESS_CAST_END
+#define YY_IGNORE_USELESS_CAST_BEGIN
+#define YY_IGNORE_USELESS_CAST_END
#endif
+#define YY_ASSERT(E) ((void)(0 && (E)))
-#define YY_ASSERT(E) ((void) (0 && (E)))
-
-#if 1
+#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 /* INFRINGES ON USER NAME SPACE */
-# elif defined _AIX
-# define YYSTACK_ALLOC __alloca
-# elif defined _MSC_VER
-# include /* INFRINGES ON USER NAME SPACE */
-# define alloca _alloca
-# else
-# define YYSTACK_ALLOC alloca
-# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS
-# include /* INFRINGES ON USER NAME SPACE */
- /* Use EXIT_SUCCESS as a witness for stdlib.h. */
-# ifndef EXIT_SUCCESS
-# define EXIT_SUCCESS 0
-# endif
-# endif
-# endif
-# endif
-# endif
+#ifdef YYSTACK_USE_ALLOCA
+#if YYSTACK_USE_ALLOCA
+#ifdef __GNUC__
+#define YYSTACK_ALLOC __builtin_alloca
+#elif defined __BUILTIN_VA_ARG_INCR
+#include /* INFRINGES ON USER NAME SPACE */
+#elif defined _AIX
+#define YYSTACK_ALLOC __alloca
+#elif defined _MSC_VER
+#include /* INFRINGES ON USER NAME SPACE */
+#define alloca _alloca
+#else
+#define YYSTACK_ALLOC alloca
+#if !defined _ALLOCA_H && !defined EXIT_SUCCESS
+#include /* INFRINGES ON USER NAME SPACE */
+/* Use EXIT_SUCCESS as a witness for stdlib.h. */
+#ifndef EXIT_SUCCESS
+#define EXIT_SUCCESS 0
+#endif
+#endif
+#endif
+#endif
+#endif
-# ifdef YYSTACK_ALLOC
- /* Pacify GCC's 'empty if-body' warning. */
-# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
-# ifndef YYSTACK_ALLOC_MAXIMUM
- /* The OS might guarantee only one guard page at the bottom of the stack,
+#ifdef YYSTACK_ALLOC
+/* Pacify GCC's 'empty if-body' warning. */
+#define YYSTACK_FREE(Ptr) \
+ do { /* empty */ \
+ ; \
+ } while (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 EXIT_SUCCESS \
- && ! ((defined YYMALLOC || defined malloc) \
- && (defined YYFREE || defined free)))
-# include /* INFRINGES ON USER NAME SPACE */
-# ifndef EXIT_SUCCESS
-# define EXIT_SUCCESS 0
-# endif
-# endif
-# ifndef YYMALLOC
-# define YYMALLOC malloc
-# if ! defined malloc && ! defined EXIT_SUCCESS
-void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
-# endif
-# endif
-# ifndef YYFREE
-# define YYFREE free
-# if ! defined free && ! defined EXIT_SUCCESS
-void free (void *); /* INFRINGES ON USER NAME SPACE */
-# endif
-# endif
-# endif
-#endif /* 1 */
+#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 EXIT_SUCCESS && \
+ !((defined YYMALLOC || defined malloc) && (defined YYFREE || defined free)))
+#include /* INFRINGES ON USER NAME SPACE */
+#ifndef EXIT_SUCCESS
+#define EXIT_SUCCESS 0
+#endif
+#endif
+#ifndef YYMALLOC
+#define YYMALLOC malloc
+#if !defined malloc && !defined EXIT_SUCCESS
+void* malloc(YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
+#endif
+#endif
+#ifndef YYFREE
+#define YYFREE free
+#if !defined free && !defined EXIT_SUCCESS
+void free(void*); /* INFRINGES ON USER NAME SPACE */
+#endif
+#endif
+#endif
+#endif /* ! defined yyoverflow || YYERROR_VERBOSE */
-#if (! defined yyoverflow \
- && (! defined __cplusplus \
- || (defined HSQL_LTYPE_IS_TRIVIAL && HSQL_LTYPE_IS_TRIVIAL \
- && defined HSQL_STYPE_IS_TRIVIAL && HSQL_STYPE_IS_TRIVIAL)))
+#if (!defined yyoverflow && (!defined __cplusplus || (defined HSQL_LTYPE_IS_TRIVIAL && HSQL_LTYPE_IS_TRIVIAL && \
+ defined HSQL_STYPE_IS_TRIVIAL && HSQL_STYPE_IS_TRIVIAL)))
/* A type that is properly aligned for any stack member. */
-union yyalloc
-{
+union yyalloc {
yy_state_t yyss_alloc;
YYSTYPE yyvs_alloc;
YYLTYPE yyls_alloc;
};
/* The size of the maximum gap between one aligned stack and the next. */
-# define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1)
+#define YYSTACK_GAP_MAXIMUM (YYSIZEOF(union yyalloc) - 1)
/* The size of an array large to enough to hold all stacks, each with
N elements. */
-# define YYSTACK_BYTES(N) \
- ((N) * (YYSIZEOF (yy_state_t) + YYSIZEOF (YYSTYPE) \
- + YYSIZEOF (YYLTYPE)) \
- + 2 * YYSTACK_GAP_MAXIMUM)
+#define YYSTACK_BYTES(N) \
+ ((N) * (YYSIZEOF(yy_state_t) + YYSIZEOF(YYSTYPE) + YYSIZEOF(YYLTYPE)) + 2 * YYSTACK_GAP_MAXIMUM)
-# define YYCOPY_NEEDED 1
+#define YYCOPY_NEEDED 1
/* 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_alloc, Stack) \
- do \
- { \
- YYPTRDIFF_T yynewbytes; \
- YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
- Stack = &yyptr->Stack_alloc; \
- yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
- yyptr += yynewbytes / YYSIZEOF (*yyptr); \
- } \
- while (0)
+#define YYSTACK_RELOCATE(Stack_alloc, Stack) \
+ do { \
+ YYPTRDIFF_T yynewbytes; \
+ YYCOPY(&yyptr->Stack_alloc, Stack, yysize); \
+ Stack = &yyptr->Stack_alloc; \
+ yynewbytes = yystacksize * YYSIZEOF(*Stack) + YYSTACK_GAP_MAXIMUM; \
+ yyptr += yynewbytes / YYSIZEOF(*yyptr); \
+ } while (0)
#endif
#if defined YYCOPY_NEEDED && YYCOPY_NEEDED
/* Copy COUNT objects from SRC to DST. The source and destination do
not overlap. */
-# ifndef YYCOPY
-# if defined __GNUC__ && 1 < __GNUC__
-# define YYCOPY(Dst, Src, Count) \
- __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
-# else
-# define YYCOPY(Dst, Src, Count) \
- do \
- { \
- YYPTRDIFF_T yyi; \
- for (yyi = 0; yyi < (Count); yyi++) \
- (Dst)[yyi] = (Src)[yyi]; \
- } \
- while (0)
-# endif
-# endif
+#ifndef YYCOPY
+#if defined __GNUC__ && 1 < __GNUC__
+#define YYCOPY(Dst, Src, Count) __builtin_memcpy(Dst, Src, YY_CAST(YYSIZE_T, (Count)) * sizeof(*(Src)))
+#else
+#define YYCOPY(Dst, Src, Count) \
+ do { \
+ YYPTRDIFF_T yyi; \
+ for (yyi = 0; yyi < (Count); yyi++) (Dst)[yyi] = (Src)[yyi]; \
+ } while (0)
+#endif
+#endif
#endif /* !YYCOPY_NEEDED */
/* YYFINAL -- State number of the termination state. */
-#define YYFINAL 67
+#define YYFINAL 67
/* YYLAST -- Last index in YYTABLE. */
-#define YYLAST 899
+#define YYLAST 946
/* YYNTOKENS -- Number of terminals. */
-#define YYNTOKENS 180
+#define YYNTOKENS 185
/* YYNNTS -- Number of nonterminals. */
-#define YYNNTS 120
+#define YYNNTS 125
/* YYNRULES -- Number of rules. */
-#define YYNRULES 303
+#define YYNRULES 316
/* YYNSTATES -- Number of states. */
-#define YYNSTATES 549
-
-/* YYMAXUTOK -- Last valid token kind. */
-#define YYMAXUTOK 417
+#define YYNSTATES 570
+#define YYUNDEFTOK 2
+#define YYMAXUTOK 422
/* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM
as returned by yylex, with out-of-bounds checking. */
-#define YYTRANSLATE(YYX) \
- (0 <= (YYX) && (YYX) <= YYMAXUTOK \
- ? YY_CAST (yysymbol_kind_t, yytranslate[YYX]) \
- : YYSYMBOL_YYUNDEF)
+#define YYTRANSLATE(YYX) (0 <= (YYX) && (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
/* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM
as returned by 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, 2, 2, 2, 2, 169, 2, 2,
- 174, 175, 167, 165, 178, 166, 176, 168, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 177,
- 158, 155, 159, 179, 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, 172, 2, 173, 170, 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, 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, 12, 13, 14,
- 15, 16, 17, 18, 19, 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, 68, 69, 70, 71, 72, 73, 74,
- 75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
- 85, 86, 87, 88, 89, 90, 91, 92, 93, 94,
- 95, 96, 97, 98, 99, 100, 101, 102, 103, 104,
- 105, 106, 107, 108, 109, 110, 111, 112, 113, 114,
- 115, 116, 117, 118, 119, 120, 121, 122, 123, 124,
- 125, 126, 127, 128, 129, 130, 131, 132, 133, 134,
- 135, 136, 137, 138, 139, 140, 141, 142, 143, 144,
- 145, 146, 147, 148, 149, 150, 151, 152, 153, 154,
- 156, 157, 160, 161, 162, 163, 164, 171
-};
+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, 2, 2, 2, 2, 174, 2, 2, 179, 180, 172, 170, 183, 171,
+ 181, 173, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 182, 163, 160, 164, 184, 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, 177,
+ 2, 178, 175, 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, 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, 12, 13, 14, 15, 16, 17, 18, 19, 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, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
+ 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112,
+ 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135,
+ 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158,
+ 159, 161, 162, 165, 166, 167, 168, 169, 176};
#if HSQL_DEBUG
/* YYRLINE[YYN] -- Source line where rule number YYN was defined. */
-static const yytype_int16 yyrline[] =
-{
- 0, 294, 294, 313, 319, 326, 330, 334, 335, 336,
- 338, 339, 340, 341, 342, 343, 344, 345, 346, 347,
- 353, 354, 356, 360, 365, 369, 379, 380, 381, 383,
- 383, 389, 395, 397, 401, 412, 418, 425, 440, 445,
- 446, 452, 464, 465, 470, 481, 494, 502, 509, 516,
- 525, 526, 528, 532, 537, 538, 540, 545, 546, 547,
- 548, 549, 550, 554, 555, 556, 557, 558, 559, 560,
- 561, 562, 564, 565, 567, 568, 569, 571, 572, 574,
- 578, 583, 584, 585, 586, 588, 589, 597, 603, 609,
- 615, 621, 622, 629, 635, 637, 647, 654, 665, 672,
- 680, 681, 688, 695, 699, 704, 714, 718, 722, 734,
- 734, 736, 737, 746, 747, 749, 759, 770, 775, 779,
- 783, 788, 789, 791, 801, 802, 804, 806, 807, 809,
- 811, 812, 814, 819, 821, 822, 824, 825, 827, 831,
- 836, 838, 839, 840, 844, 845, 847, 848, 849, 850,
- 851, 852, 857, 861, 866, 867, 869, 873, 878, 886,
- 886, 886, 886, 886, 888, 889, 889, 889, 889, 889,
- 889, 889, 889, 890, 890, 894, 894, 896, 897, 898,
- 899, 900, 902, 902, 903, 904, 905, 906, 907, 908,
- 909, 910, 911, 913, 914, 916, 917, 918, 919, 923,
- 924, 925, 926, 928, 929, 931, 932, 934, 935, 936,
- 937, 938, 939, 940, 942, 943, 945, 947, 949, 950,
- 951, 952, 953, 954, 956, 957, 958, 959, 960, 961,
- 963, 963, 965, 967, 969, 971, 972, 973, 974, 976,
- 976, 976, 976, 976, 976, 976, 978, 980, 981, 983,
- 984, 986, 988, 990, 1001, 1005, 1016, 1048, 1057, 1057,
- 1064, 1064, 1066, 1066, 1073, 1077, 1082, 1090, 1096, 1100,
- 1105, 1106, 1108, 1108, 1110, 1110, 1112, 1113, 1115, 1115,
- 1121, 1121, 1123, 1125, 1129, 1134, 1144, 1151, 1159, 1175,
- 1176, 1177, 1178, 1179, 1180, 1181, 1182, 1183, 1184, 1186,
- 1192, 1192, 1195, 1199
-};
+static const yytype_int16 yyrline[] = {
+ 0, 304, 304, 323, 329, 336, 340, 344, 345, 346, 348, 349, 350, 351, 352, 353, 354, 355, 356,
+ 357, 363, 364, 366, 370, 375, 379, 389, 390, 391, 393, 393, 399, 405, 407, 411, 422, 428, 435,
+ 450, 455, 456, 462, 474, 475, 480, 491, 504, 512, 519, 526, 535, 536, 538, 542, 547, 548, 550,
+ 555, 556, 557, 558, 559, 560, 564, 565, 566, 567, 568, 569, 570, 571, 572, 574, 575, 577, 578,
+ 579, 581, 582, 584, 588, 593, 594, 595, 596, 598, 599, 607, 613, 619, 625, 631, 632, 639, 645,
+ 647, 657, 664, 675, 682, 690, 691, 698, 705, 709, 714, 724, 728, 732, 744, 744, 746, 747, 756,
+ 757, 759, 773, 785, 790, 794, 798, 803, 804, 806, 816, 817, 819, 821, 822, 824, 826, 827, 829,
+ 834, 836, 837, 839, 840, 842, 846, 851, 853, 854, 855, 859, 860, 862, 863, 864, 865, 866, 867,
+ 872, 876, 881, 882, 884, 888, 893, 901, 901, 901, 901, 901, 903, 904, 904, 904, 904, 904, 904,
+ 904, 904, 905, 905, 909, 909, 911, 912, 913, 914, 915, 917, 917, 918, 919, 920, 921, 922, 923,
+ 924, 925, 926, 928, 929, 931, 932, 933, 934, 938, 939, 940, 941, 943, 944, 946, 947, 949, 950,
+ 951, 952, 953, 954, 955, 957, 958, 960, 962, 964, 965, 966, 967, 968, 969, 971, 972, 973, 974,
+ 975, 976, 978, 978, 980, 982, 984, 986, 987, 988, 989, 991, 991, 991, 991, 991, 991, 991, 993,
+ 995, 996, 998, 999, 1001, 1003, 1005, 1016, 1020, 1031, 1063, 1072, 1072, 1079, 1079, 1081, 1081, 1088, 1092,
+ 1097, 1105, 1111, 1115, 1120, 1121, 1123, 1123, 1125, 1125, 1127, 1128, 1130, 1130, 1136, 1137, 1139, 1143, 1148,
+ 1154, 1161, 1162, 1163, 1164, 1166, 1167, 1168, 1174, 1174, 1176, 1178, 1182, 1187, 1197, 1204, 1212, 1228, 1229,
+ 1230, 1231, 1232, 1233, 1234, 1235, 1236, 1237, 1239, 1245, 1245, 1248, 1252};
#endif
-/** Accessing symbol of state STATE. */
-#define YY_ACCESSING_SYMBOL(State) YY_CAST (yysymbol_kind_t, yystos[State])
-
-#if 1
-/* The user-facing name of the symbol whose (internal) number is
- YYSYMBOL. No bounds checking. */
-static const char *yysymbol_name (yysymbol_kind_t yysymbol) YY_ATTRIBUTE_UNUSED;
-
+#if HSQL_DEBUG || YYERROR_VERBOSE || 1
/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
First, the terminals, then, starting at YYNTOKENS, nonterminals. */
-static const char *const yytname[] =
-{
- "\"end of file\"", "error", "\"invalid token\"", "IDENTIFIER", "STRING",
- "FLOATVAL", "INTVAL", "DEALLOCATE", "PARAMETERS", "INTERSECT",
- "TEMPORARY", "TIMESTAMP", "DISTINCT", "NVARCHAR", "RESTRICT", "TRUNCATE",
- "ANALYZE", "BETWEEN", "CASCADE", "COLUMNS", "CONTROL", "DEFAULT",
- "EXECUTE", "EXPLAIN", "INTEGER", "NATURAL", "PREPARE", "PRIMARY",
- "SCHEMAS", "CHARACTER_VARYING", "REAL", "DECIMAL", "SMALLINT", "SPATIAL",
- "VARCHAR", "VIRTUAL", "DESCRIBE", "BEFORE", "COLUMN", "CREATE", "DELETE",
- "DIRECT", "DOUBLE", "ESCAPE", "EXCEPT", "EXISTS", "EXTRACT", "CAST",
- "FORMAT", "GLOBAL", "HAVING", "IMPORT", "INSERT", "ISNULL", "OFFSET",
- "RENAME", "SCHEMA", "SELECT", "SORTED", "TABLES", "UNIQUE", "UNLOAD",
- "UPDATE", "VALUES", "AFTER", "ALTER", "CROSS", "DELTA", "FLOAT", "GROUP",
- "INDEX", "INNER", "LIMIT", "LOCAL", "MERGE", "MINUS", "ORDER", "OUTER",
- "RIGHT", "TABLE", "UNION", "USING", "WHERE", "CALL", "CASE", "CHAR",
- "COPY", "DATE", "DATETIME", "DESC", "DROP", "ELSE", "FILE", "FROM",
- "FULL", "HASH", "HINT", "INTO", "JOIN", "LEFT", "LIKE", "LOAD", "LONG",
- "NULL", "PLAN", "SHOW", "TEXT", "THEN", "TIME", "VIEW", "WHEN", "WITH",
- "ADD", "ALL", "AND", "ASC", "END", "FOR", "INT", "KEY", "NOT", "OFF",
- "SET", "TOP", "AS", "BY", "IF", "IN", "IS", "OF", "ON", "OR", "TO",
- "ARRAY", "CONCAT", "ILIKE", "SECOND", "MINUTE", "HOUR", "DAY", "MONTH",
- "YEAR", "SECONDS", "MINUTES", "HOURS", "DAYS", "MONTHS", "YEARS",
- "INTERVAL", "TRUE", "FALSE", "TRANSACTION", "BEGIN", "COMMIT",
- "ROLLBACK", "'='", "EQUALS", "NOTEQUALS", "'<'", "'>'", "LESS",
- "GREATER", "LESSEQ", "GREATEREQ", "NOTNULL", "'+'", "'-'", "'*'", "'/'",
- "'%'", "'^'", "UMINUS", "'['", "']'", "'('", "')'", "'.'", "';'", "','",
- "'?'", "$accept", "input", "statement_list", "statement",
- "preparable_statement", "opt_hints", "hint_list", "hint",
- "transaction_statement", "opt_transaction_keyword", "prepare_statement",
- "prepare_target_query", "execute_statement", "import_statement",
- "file_type", "file_path", "opt_file_type", "export_statement",
- "show_statement", "create_statement", "opt_not_exists",
- "table_elem_commalist", "table_elem", "column_def", "column_type",
- "opt_time_precision", "opt_decimal_specification",
- "opt_column_constraints", "column_constraint_list", "column_constraint",
- "table_constraint", "drop_statement", "opt_exists", "alter_statement",
- "alter_action", "drop_action", "delete_statement", "truncate_statement",
- "insert_statement", "opt_column_list", "update_statement",
- "update_clause_commalist", "update_clause", "select_statement",
- "select_within_set_operation",
- "select_within_set_operation_no_parentheses", "select_with_paren",
- "select_no_paren", "set_operator", "set_type", "opt_all",
- "select_clause", "opt_distinct", "select_list", "opt_from_clause",
- "from_clause", "opt_where", "opt_group", "opt_having", "opt_order",
- "order_list", "order_desc", "opt_order_type", "opt_top", "opt_limit",
- "expr_list", "opt_literal_list", "literal_list", "expr_alias", "expr",
- "operand", "scalar_expr", "unary_expr", "binary_expr", "logic_expr",
- "in_expr", "case_expr", "case_list", "exists_expr", "comp_expr",
- "function_expr", "extract_expr", "cast_expr", "datetime_field",
- "datetime_field_plural", "duration_field", "array_expr", "array_index",
- "between_expr", "column_name", "literal", "string_literal",
- "bool_literal", "num_literal", "int_literal", "null_literal",
- "date_literal", "interval_literal", "param_expr", "table_ref",
- "table_ref_atomic", "nonjoin_table_ref_atomic", "table_ref_commalist",
- "table_ref_name", "table_ref_name_no_alias", "table_name",
- "opt_index_name", "table_alias", "opt_table_alias", "alias", "opt_alias",
- "opt_with_clause", "with_clause", "with_description_list",
- "with_description", "join_clause", "opt_join_type", "join_condition",
- "opt_semicolon", "ident_commalist", YY_NULLPTR
-};
+static const char* const yytname[] = {"$end",
+ "error",
+ "$undefined",
+ "IDENTIFIER",
+ "STRING",
+ "FLOATVAL",
+ "INTVAL",
+ "DEALLOCATE",
+ "PARAMETERS",
+ "INTERSECT",
+ "TEMPORARY",
+ "TIMESTAMP",
+ "DISTINCT",
+ "NVARCHAR",
+ "RESTRICT",
+ "TRUNCATE",
+ "ANALYZE",
+ "BETWEEN",
+ "CASCADE",
+ "COLUMNS",
+ "CONTROL",
+ "DEFAULT",
+ "EXECUTE",
+ "EXPLAIN",
+ "INTEGER",
+ "NATURAL",
+ "PREPARE",
+ "PRIMARY",
+ "SCHEMAS",
+ "CHARACTER_VARYING",
+ "REAL",
+ "DECIMAL",
+ "SMALLINT",
+ "SPATIAL",
+ "VARCHAR",
+ "VIRTUAL",
+ "DESCRIBE",
+ "BEFORE",
+ "COLUMN",
+ "CREATE",
+ "DELETE",
+ "DIRECT",
+ "DOUBLE",
+ "ESCAPE",
+ "EXCEPT",
+ "EXISTS",
+ "EXTRACT",
+ "CAST",
+ "FORMAT",
+ "GLOBAL",
+ "HAVING",
+ "IMPORT",
+ "INSERT",
+ "ISNULL",
+ "OFFSET",
+ "RENAME",
+ "SCHEMA",
+ "SELECT",
+ "SORTED",
+ "TABLES",
+ "UNIQUE",
+ "UNLOAD",
+ "UPDATE",
+ "VALUES",
+ "AFTER",
+ "ALTER",
+ "CROSS",
+ "DELTA",
+ "FLOAT",
+ "GROUP",
+ "INDEX",
+ "INNER",
+ "LIMIT",
+ "LOCAL",
+ "MERGE",
+ "MINUS",
+ "ORDER",
+ "OUTER",
+ "RIGHT",
+ "TABLE",
+ "UNION",
+ "USING",
+ "WHERE",
+ "CALL",
+ "CASE",
+ "CHAR",
+ "COPY",
+ "DATE",
+ "DATETIME",
+ "DESC",
+ "DROP",
+ "ELSE",
+ "FILE",
+ "FROM",
+ "FULL",
+ "HASH",
+ "HINT",
+ "INTO",
+ "JOIN",
+ "LEFT",
+ "LIKE",
+ "LOAD",
+ "LONG",
+ "NULL",
+ "PLAN",
+ "SHOW",
+ "TEXT",
+ "THEN",
+ "TIME",
+ "VIEW",
+ "WHEN",
+ "WITH",
+ "ADD",
+ "ALL",
+ "AND",
+ "ASC",
+ "END",
+ "FOR",
+ "INT",
+ "KEY",
+ "NOT",
+ "OFF",
+ "SET",
+ "TOP",
+ "AS",
+ "BY",
+ "IF",
+ "IN",
+ "IS",
+ "OF",
+ "ON",
+ "OR",
+ "TO",
+ "NO",
+ "ARRAY",
+ "CONCAT",
+ "ILIKE",
+ "SECOND",
+ "MINUTE",
+ "HOUR",
+ "DAY",
+ "MONTH",
+ "YEAR",
+ "SECONDS",
+ "MINUTES",
+ "HOURS",
+ "DAYS",
+ "MONTHS",
+ "YEARS",
+ "INTERVAL",
+ "TRUE",
+ "FALSE",
+ "TRANSACTION",
+ "BEGIN",
+ "COMMIT",
+ "ROLLBACK",
+ "NOWAIT",
+ "SKIP",
+ "LOCKED",
+ "SHARE",
+ "'='",
+ "EQUALS",
+ "NOTEQUALS",
+ "'<'",
+ "'>'",
+ "LESS",
+ "GREATER",
+ "LESSEQ",
+ "GREATEREQ",
+ "NOTNULL",
+ "'+'",
+ "'-'",
+ "'*'",
+ "'/'",
+ "'%'",
+ "'^'",
+ "UMINUS",
+ "'['",
+ "']'",
+ "'('",
+ "')'",
+ "'.'",
+ "';'",
+ "','",
+ "'?'",
+ "$accept",
+ "input",
+ "statement_list",
+ "statement",
+ "preparable_statement",
+ "opt_hints",
+ "hint_list",
+ "hint",
+ "transaction_statement",
+ "opt_transaction_keyword",
+ "prepare_statement",
+ "prepare_target_query",
+ "execute_statement",
+ "import_statement",
+ "file_type",
+ "file_path",
+ "opt_file_type",
+ "export_statement",
+ "show_statement",
+ "create_statement",
+ "opt_not_exists",
+ "table_elem_commalist",
+ "table_elem",
+ "column_def",
+ "column_type",
+ "opt_time_precision",
+ "opt_decimal_specification",
+ "opt_column_constraints",
+ "column_constraint_list",
+ "column_constraint",
+ "table_constraint",
+ "drop_statement",
+ "opt_exists",
+ "alter_statement",
+ "alter_action",
+ "drop_action",
+ "delete_statement",
+ "truncate_statement",
+ "insert_statement",
+ "opt_column_list",
+ "update_statement",
+ "update_clause_commalist",
+ "update_clause",
+ "select_statement",
+ "select_within_set_operation",
+ "select_within_set_operation_no_parentheses",
+ "select_with_paren",
+ "select_no_paren",
+ "set_operator",
+ "set_type",
+ "opt_all",
+ "select_clause",
+ "opt_distinct",
+ "select_list",
+ "opt_from_clause",
+ "from_clause",
+ "opt_where",
+ "opt_group",
+ "opt_having",
+ "opt_order",
+ "order_list",
+ "order_desc",
+ "opt_order_type",
+ "opt_top",
+ "opt_limit",
+ "expr_list",
+ "opt_literal_list",
+ "literal_list",
+ "expr_alias",
+ "expr",
+ "operand",
+ "scalar_expr",
+ "unary_expr",
+ "binary_expr",
+ "logic_expr",
+ "in_expr",
+ "case_expr",
+ "case_list",
+ "exists_expr",
+ "comp_expr",
+ "function_expr",
+ "extract_expr",
+ "cast_expr",
+ "datetime_field",
+ "datetime_field_plural",
+ "duration_field",
+ "array_expr",
+ "array_index",
+ "between_expr",
+ "column_name",
+ "literal",
+ "string_literal",
+ "bool_literal",
+ "num_literal",
+ "int_literal",
+ "null_literal",
+ "date_literal",
+ "interval_literal",
+ "param_expr",
+ "table_ref",
+ "table_ref_atomic",
+ "nonjoin_table_ref_atomic",
+ "table_ref_commalist",
+ "table_ref_name",
+ "table_ref_name_no_alias",
+ "table_name",
+ "opt_index_name",
+ "table_alias",
+ "opt_table_alias",
+ "alias",
+ "opt_alias",
+ "opt_locking_clause",
+ "opt_locking_clause_list",
+ "locking_clause",
+ "row_lock_mode",
+ "opt_row_lock_policy",
+ "opt_with_clause",
+ "with_clause",
+ "with_description_list",
+ "with_description",
+ "join_clause",
+ "opt_join_type",
+ "join_condition",
+ "opt_semicolon",
+ "ident_commalist",
+ YY_NULLPTR};
+#endif
-static const char *
-yysymbol_name (yysymbol_kind_t yysymbol)
-{
- return yytname[yysymbol];
-}
+#ifdef YYPRINT
+/* YYTOKNUM[NUM] -- (External) token number corresponding to the
+ (internal) symbol number NUM (which must be that of a token). */
+static const yytype_int16 yytoknum[] = {
+ 0, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 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, 316, 317,
+ 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338,
+ 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359,
+ 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380,
+ 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401,
+ 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 61, 415, 416, 60, 62, 417, 418, 419,
+ 420, 421, 43, 45, 42, 47, 37, 94, 422, 91, 93, 40, 41, 46, 59, 44, 63};
#endif
-#define YYPACT_NINF (-410)
+#define YYPACT_NINF (-456)
-#define yypact_value_is_default(Yyn) \
- ((Yyn) == YYPACT_NINF)
+#define yypact_value_is_default(Yyn) ((Yyn) == YYPACT_NINF)
-#define YYTABLE_NINF (-301)
+#define YYTABLE_NINF (-314)
-#define yytable_value_is_error(Yyn) \
- ((Yyn) == YYTABLE_NINF)
+#define yytable_value_is_error(Yyn) ((Yyn) == YYTABLE_NINF)
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
- STATE-NUM. */
-static const yytype_int16 yypact[] =
-{
- 579, 31, 44, 117, 138, 44, -26, 70, 74, 76,
- 44, 116, 44, -14, 19, 203, 78, 78, 78, 241,
- 84, -410, 140, -410, 140, -410, -410, -410, -410, -410,
- -410, -410, -410, -410, -410, -410, -410, -23, -410, 244,
- 77, -410, 91, 196, -410, 146, 146, 146, 44, 287,
- 44, 180, -410, 185, -57, 185, 185, 185, 44, -410,
- 182, 134, -410, -410, -410, -410, -410, -410, 548, -410,
- 220, -410, -410, 194, -23, 204, -410, 166, -410, 320,
- 37, 323, 218, 337, 44, 44, 267, -410, 266, 186,
- 363, 322, 44, 364, 364, 373, 44, 44, -410, 222,
- 203, -410, 225, 371, 380, 208, 219, -410, -410, -410,
- -23, 288, 277, -23, 80, -410, -410, -410, -410, 400,
- -410, 403, -410, -410, -410, 233, 235, -410, -410, -410,
- -410, 714, -410, -410, -410, -410, -410, -410, 369, -410,
- 285, -48, 186, 316, -410, 364, 413, 105, 265, -51,
- -410, -410, 332, 312, -410, 312, -410, -410, -410, -410,
- -410, 421, -410, -410, 316, -410, -410, 349, -410, -410,
- 204, -410, -410, 316, 349, 316, 125, -410, -410, 375,
- -410, 37, -410, -410, -410, -410, -410, -410, -410, -410,
- -410, -410, -410, -410, -410, -410, -410, -410, 44, 423,
- 318, 34, 306, -106, 259, 261, 263, 176, 325, 268,
- 385, -410, 231, 93, 410, -410, -410, -410, -410, -410,
- -410, -410, -410, -410, -410, -410, -410, -410, -410, -410,
- -410, 341, -410, 27, 269, -410, 316, 363, -410, 404,
- -410, -410, 393, -410, -410, 270, 39, -410, 353, 272,
- -410, 24, 80, -23, 273, -410, -43, 80, 93, 394,
- 28, -410, -410, 278, 355, -410, 781, 335, 281, 65,
- -410, -410, -410, 318, 9, 21, 399, 375, 316, 316,
- 43, 109, 283, 385, 607, 316, 99, 284, -52, 316,
- 316, 385, -410, 385, -46, 286, 136, 385, 385, 385,
- 385, 385, 385, 385, 385, 385, 385, 385, 385, 385,
- 385, 385, 371, 44, -410, 458, 37, 93, -410, 185,
- 287, 37, -410, 421, 20, 267, -410, 316, -410, 459,
- -410, -410, -410, -410, 316, -410, -410, -410, -410, 316,
- 316, 413, 364, -410, 293, -410, 294, -410, 297, -410,
- -410, 302, -410, -410, -410, -410, 303, -410, 98, 304,
- 413, -410, 34, -410, -410, 316, -410, -410, 305, 386,
- -65, 47, 171, 316, 316, -410, 399, 381, 26, -410,
- -410, -410, 370, 554, 625, 385, 311, 231, -410, 383,
- 315, 625, 625, 625, 625, 675, 675, 675, 675, 99,
- 99, -83, -83, -83, -71, 321, -410, -410, 119, 486,
- -410, 123, -410, 318, -410, 66, -410, 319, -410, 25,
- -410, 424, -410, -410, -410, 93, 93, 157, -410, 490,
- 492, -410, 494, 495, 496, -410, 384, -410, -410, 405,
- -410, 98, -410, 413, 158, -410, 169, -410, 316, 781,
- 316, 316, -410, 179, 101, 331, -410, 385, 625, 231,
- 334, 170, -410, -410, -410, -410, -410, 342, 409, -410,
- -410, -410, 442, 443, 444, 425, 20, 519, -410, -410,
- -410, 401, -410, -410, 350, 181, 352, 354, 356, -410,
- -410, -410, 200, -410, -410, 52, 357, 93, 223, -410,
- 316, -410, 607, 361, 207, -410, -410, 25, 20, -410,
- -410, -410, 20, 275, 365, 316, -410, -410, 518, -410,
- -410, -410, -410, -410, -410, -410, 93, -410, -410, -410,
- -410, 340, 413, -28, 366, 368, 316, 209, 316, -410,
- -410, 22, 93, -410, -410, 93, 367, 372, -410
-};
+ STATE-NUM. */
+static const yytype_int16 yypact[] = {
+ 619, 16, 48, 72, 123, 48, -11, -38, 78, 87, 48, 109, 48, 102, 33, 196, 51, 51, 51,
+ 217, 46, -456, 132, -456, 132, -456, -456, -456, -456, -456, -456, -456, -456, -456, -456, -456, -456, -31,
+ -456, 241, 74, -456, 82, 164, -456, 142, 142, 142, 48, 273, 48, 167, -456, 170, -59, 170, 170,
+ 170, 48, -456, 178, 112, -456, -456, -456, -456, -456, -456, 614, -456, 207, -456, -456, 187, -31, 57,
+ -456, 138, -456, 306, 75, 307, 192, 318, 48, 48, 246, -456, 231, 154, 332, 310, 48, 367, 367,
+ 369, 48, 48, -456, 195, 196, -456, 197, 376, 363, 204, 206, -456, -456, -456, -31, 270, 262, -31,
+ -10, -456, -456, -456, -456, 385, -456, 390, -456, -456, -456, 215, 216, -456, -456, -456, -456, 300, -456,
+ -456, -456, -456, -456, -456, 355, -456, 271, -54, 154, 333, -456, 367, 399, 43, 248, -53, -456, -456,
+ 316, 296, -456, 296, -456, -456, -456, -456, -456, 406, -456, -456, 333, -456, -456, 334, -456, -456, 57,
+ -456, -456, 333, 334, 333, 129, 294, -456, 203, -456, 75, -456, -456, -456, -456, -456, -456, -456, -456,
+ -456, -456, -456, -456, -456, -456, -456, -456, 48, 409, 302, 150, 291, 96, 249, 250, 251, 247, 387,
+ 272, 419, -456, 301, -64, 445, -456, -456, -456, -456, -456, -456, -456, -456, -456, -456, -456, -456, -456,
+ -456, -456, -456, 330, -456, 47, 275, -456, 333, 332, -456, 417, -456, -456, 408, -456, -456, 278, 137,
+ -456, 365, 276, -456, 42, -10, -31, 277, -456, -43, -10, -64, 407, 24, 27, -456, 294, -456, -456,
+ -456, 284, 372, -456, 828, 349, 290, 147, -456, -456, -456, 302, 11, 13, 413, 203, 333, 333, 156,
+ 77, 297, 419, 655, 333, 61, 295, -83, 333, 333, 419, -456, 419, 52, 299, -17, 419, 419, 419,
+ 419, 419, 419, 419, 419, 419, 419, 419, 419, 419, 419, 419, 376, 48, -456, 476, 75, -64, -456,
+ 170, 273, 75, -456, 406, 15, 246, -456, 333, -456, 478, -456, -456, -456, -456, 333, -456, -456, -456,
+ 294, 333, 333, -456, 327, 368, -456, 90, -456, 399, 367, -456, 309, -456, 312, -456, 313, -456, -456,
+ 314, -456, -456, -456, -456, 315, -456, 101, 317, 399, -456, 150, -456, -456, 333, -456, -456, 319, 396,
+ 84, 76, 148, 333, 333, -456, 413, 395, 91, -456, -456, -456, 383, 575, 676, 419, 321, 301, -456,
+ 398, 325, 676, 676, 676, 676, 625, 625, 625, 625, 61, 61, 45, 45, 45, -95, 331, -456, -456,
+ 149, 505, -456, 169, -456, 302, -456, 65, -456, 328, -456, 25, -456, 441, -456, -456, -456, -456, -64,
+ -64, -456, 451, 399, -456, 356, -456, 171, -456, 509, 510, -456, 513, 514, 518, -456, 412, -456, -456,
+ 422, -456, 101, -456, 399, 173, -456, 179, -456, 333, 828, 333, 333, -456, 140, 98, 346, -456, 419,
+ 676, 301, 347, 180, -456, -456, -456, -456, -456, 348, 434, -456, -456, -456, 457, 458, 463, 443, 15,
+ 539, -456, -456, -456, 418, -456, -456, -96, -456, -456, 364, 181, 370, 374, 375, -456, -456, -456, 185,
+ -456, -456, -73, 377, -64, 168, -456, 333, -456, 655, 380, 186, -456, -456, 25, 15, -456, -456, -456,
+ 15, 220, 373, 333, -456, -456, -456, 541, -456, -456, -456, -456, -456, -456, -456, -64, -456, -456, -456,
+ -456, 452, 399, -29, 381, 384, 333, 190, 333, -456, -456, 17, -64, -456, -456, -64, 386, 382, -456};
/* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
- Performed when YYTABLE does not specify something else to do. Zero
- means the default is an error. */
-static const yytype_int16 yydefact[] =
-{
- 281, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 30, 30, 30, 0,
- 301, 3, 21, 19, 21, 18, 8, 9, 7, 11,
- 16, 17, 13, 14, 12, 15, 10, 0, 280, 0,
- 268, 97, 33, 0, 44, 51, 51, 51, 0, 0,
- 0, 0, 267, 92, 0, 92, 92, 92, 0, 42,
- 0, 282, 283, 29, 26, 28, 27, 1, 281, 2,
- 0, 6, 5, 145, 0, 106, 107, 137, 89, 0,
- 155, 0, 0, 271, 0, 0, 131, 37, 0, 101,
- 0, 0, 0, 0, 0, 0, 0, 0, 43, 0,
- 0, 4, 0, 0, 125, 0, 0, 119, 120, 118,
- 0, 122, 0, 0, 151, 269, 246, 249, 251, 0,
- 252, 0, 247, 248, 257, 0, 154, 156, 239, 240,
- 241, 250, 242, 243, 244, 245, 32, 31, 0, 270,
- 0, 0, 101, 0, 96, 0, 0, 0, 0, 131,
- 103, 91, 0, 40, 38, 40, 90, 87, 88, 285,
- 284, 0, 144, 124, 0, 114, 113, 137, 110, 109,
- 111, 121, 117, 0, 137, 0, 0, 115, 253, 256,
- 34, 0, 218, 219, 220, 221, 222, 223, 224, 225,
- 226, 227, 228, 229, 230, 231, 254, 50, 0, 0,
- 281, 0, 0, 235, 0, 0, 0, 0, 0, 0,
- 0, 237, 0, 130, 159, 166, 167, 168, 161, 163,
- 169, 162, 182, 170, 171, 172, 173, 165, 160, 175,
- 176, 0, 302, 0, 0, 99, 0, 0, 102, 0,
- 93, 94, 0, 36, 41, 24, 0, 22, 128, 126,
- 152, 279, 151, 0, 136, 138, 143, 151, 147, 149,
- 146, 255, 157, 0, 0, 47, 0, 0, 0, 0,
- 52, 54, 55, 281, 125, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 178, 0, 177, 0, 0, 0,
- 0, 0, 179, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 100, 0, 0, 105, 104, 92,
- 0, 0, 20, 0, 0, 131, 127, 0, 277, 0,
- 278, 158, 108, 112, 0, 142, 141, 140, 116, 0,
- 0, 0, 0, 65, 0, 67, 76, 68, 0, 63,
- 64, 0, 60, 61, 66, 69, 73, 57, 78, 0,
- 0, 46, 0, 49, 214, 0, 236, 238, 0, 0,
- 0, 0, 0, 0, 0, 201, 0, 0, 0, 174,
- 164, 193, 194, 0, 189, 0, 0, 0, 180, 0,
- 192, 191, 207, 208, 209, 210, 211, 212, 213, 184,
- 183, 186, 185, 187, 188, 0, 35, 303, 0, 0,
- 39, 0, 23, 281, 129, 258, 260, 0, 262, 275,
- 261, 133, 153, 276, 139, 150, 148, 0, 45, 0,
- 0, 62, 0, 0, 0, 70, 0, 82, 83, 0,
- 56, 77, 79, 0, 0, 53, 0, 205, 0, 0,
- 0, 0, 199, 0, 0, 0, 232, 0, 190, 0,
- 0, 0, 181, 233, 98, 95, 25, 0, 0, 297,
- 289, 295, 293, 296, 291, 0, 0, 0, 274, 266,
- 272, 0, 123, 48, 0, 0, 0, 0, 0, 81,
- 84, 80, 0, 86, 215, 0, 0, 203, 0, 202,
- 0, 206, 234, 0, 0, 197, 195, 275, 0, 292,
- 294, 290, 0, 259, 276, 0, 59, 75, 0, 71,
- 58, 72, 85, 216, 217, 200, 204, 198, 196, 263,
- 286, 298, 0, 135, 0, 0, 0, 0, 0, 132,
- 74, 0, 299, 287, 273, 134, 235, 0, 288
-};
+ Performed when YYTABLE does not specify something else to do. Zero
+ means the default is an error. */
+static const yytype_int16 yydefact[] = {
+ 294, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30, 30, 30, 0, 314, 3, 21,
+ 19, 21, 18, 8, 9, 7, 11, 16, 17, 13, 14, 12, 15, 10, 0, 293, 0, 268, 97, 33, 0, 44, 51,
+ 51, 51, 0, 0, 0, 0, 267, 92, 0, 92, 92, 92, 0, 42, 0, 295, 296, 29, 26, 28, 27, 1, 294,
+ 2, 0, 6, 5, 145, 0, 106, 107, 137, 89, 0, 155, 0, 0, 271, 0, 0, 131, 37, 0, 101, 0, 0,
+ 0, 0, 0, 0, 0, 0, 43, 0, 0, 4, 0, 0, 125, 0, 0, 119, 120, 118, 0, 122, 0, 0, 151,
+ 269, 246, 249, 251, 0, 252, 0, 247, 248, 257, 0, 154, 156, 239, 240, 241, 250, 242, 243, 244, 245, 32, 31,
+ 0, 270, 0, 0, 101, 0, 96, 0, 0, 0, 0, 131, 103, 91, 0, 40, 38, 40, 90, 87, 88, 298, 297,
+ 0, 144, 124, 0, 114, 113, 137, 110, 109, 111, 121, 117, 0, 137, 0, 0, 281, 253, 256, 34, 0, 218, 219,
+ 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 254, 50, 0, 0, 294, 0, 0, 235, 0, 0, 0,
+ 0, 0, 0, 0, 237, 0, 130, 159, 166, 167, 168, 161, 163, 169, 162, 182, 170, 171, 172, 173, 165, 160, 175,
+ 176, 0, 315, 0, 0, 99, 0, 0, 102, 0, 93, 94, 0, 36, 41, 24, 0, 22, 128, 126, 152, 279, 151,
+ 0, 136, 138, 143, 151, 147, 149, 146, 0, 115, 280, 282, 255, 157, 0, 0, 47, 0, 0, 0, 0, 52, 54,
+ 55, 294, 125, 0, 0, 0, 0, 0, 0, 0, 0, 0, 178, 0, 177, 0, 0, 0, 0, 0, 179, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0, 105,
+ 104, 92, 0, 0, 20, 0, 0, 131, 127, 0, 277, 0, 278, 158, 108, 112, 0, 142, 141, 140, 281, 0, 0,
+ 286, 0, 0, 288, 292, 283, 0, 0, 65, 0, 67, 76, 68, 0, 63, 64, 0, 60, 61, 66, 69, 73, 57,
+ 78, 0, 0, 46, 0, 49, 214, 0, 236, 238, 0, 0, 0, 0, 0, 0, 0, 201, 0, 0, 0, 174, 164,
+ 193, 194, 0, 189, 0, 0, 0, 180, 0, 192, 191, 207, 208, 209, 210, 211, 212, 213, 184, 183, 186, 185, 187,
+ 188, 0, 35, 316, 0, 0, 39, 0, 23, 294, 129, 258, 260, 0, 262, 275, 261, 133, 153, 276, 139, 116, 150,
+ 148, 289, 0, 0, 291, 0, 284, 0, 45, 0, 0, 62, 0, 0, 0, 70, 0, 82, 83, 0, 56, 77, 79,
+ 0, 0, 53, 0, 205, 0, 0, 0, 0, 199, 0, 0, 0, 232, 0, 190, 0, 0, 0, 181, 233, 98, 95,
+ 25, 0, 0, 310, 302, 308, 306, 309, 304, 0, 0, 0, 274, 266, 272, 0, 123, 287, 292, 290, 48, 0, 0,
+ 0, 0, 0, 81, 84, 80, 0, 86, 215, 0, 0, 203, 0, 202, 0, 206, 234, 0, 0, 197, 195, 275, 0,
+ 305, 307, 303, 0, 259, 276, 0, 285, 59, 75, 0, 71, 58, 72, 85, 216, 217, 200, 204, 198, 196, 263, 299,
+ 311, 0, 135, 0, 0, 0, 0, 0, 132, 74, 0, 312, 300, 273, 134, 235, 0, 301};
/* YYPGOTO[NTERM-NUM]. */
-static const yytype_int16 yypgoto[] =
-{
- -410, -410, -410, 460, -410, 516, -410, 226, -410, 159,
- -410, -410, -410, -410, 230, -85, 391, -410, -410, -410,
- 236, -410, 191, -410, 107, -410, -410, -410, -410, 113,
- -410, -410, -49, -410, -410, -410, -410, -410, -410, 415,
- -410, -410, 324, -187, -97, -410, 3, -73, -25, -410,
- -410, -84, 307, -410, -410, -410, -135, -410, -410, -94,
- -410, 224, -410, -410, -2, -266, -410, -36, 256, -143,
- -193, -410, -410, -410, -410, -410, -410, 280, -410, -410,
- -410, -410, -410, -144, -410, -410, -410, -410, -410, 30,
- -62, -90, -410, -410, -92, -410, -410, -410, -410, -410,
- -409, 54, -410, -410, -410, 0, -410, -410, 82, 339,
- -410, -410, -410, -410, 485, -410, -410, -410, -410, -321
-};
+static const yytype_int16 yypgoto[] = {
+ -456, -456, -456, 480, -456, 525, -456, 229, -456, 152, -456, -456, -456, -456, 240, -92, 420, -456,
+ -456, -456, 111, -456, 202, -456, 110, -456, -456, -456, -456, 119, -456, -456, -50, -456, -456, -456,
+ -456, -456, -456, 436, -456, -456, 342, -192, -88, -456, 0, -71, -41, -456, -456, -86, 305, -456,
+ -456, -456, -137, -456, -456, -111, -456, 254, -456, -456, 31, -270, -456, -35, 253, -143, -193, -456,
+ -456, -456, -456, -456, -456, 303, -456, -456, -456, -456, -456, -136, -456, -456, -456, -456, -456, 23,
+ -58, -80, -456, -456, -93, -456, -456, -456, -456, -456, -455, 58, -456, -456, -456, -1, -456, -456,
+ 62, 337, -456, 252, -456, 336, -456, 92, -456, -456, -456, 495, -456, -456, -456, -456, -316};
/* YYDEFGOTO[NTERM-NUM]. */
-static const yytype_int16 yydefgoto[] =
-{
- 0, 19, 20, 21, 22, 71, 246, 247, 23, 64,
- 24, 137, 25, 26, 88, 153, 243, 27, 28, 29,
- 83, 269, 270, 271, 358, 435, 431, 440, 441, 442,
- 272, 30, 92, 31, 240, 241, 32, 33, 34, 147,
- 35, 149, 150, 36, 167, 168, 169, 76, 110, 111,
- 172, 77, 164, 248, 325, 326, 144, 482, 539, 114,
- 254, 255, 337, 104, 177, 249, 125, 126, 250, 251,
- 214, 215, 216, 217, 218, 219, 220, 281, 221, 222,
- 223, 224, 225, 194, 195, 196, 226, 227, 228, 229,
- 230, 128, 129, 130, 131, 132, 133, 134, 135, 414,
- 415, 416, 417, 418, 51, 419, 140, 478, 479, 480,
- 331, 37, 38, 61, 62, 420, 475, 543, 69, 233
-};
+static const yytype_int16 yydefgoto[] = {
+ -1, 19, 20, 21, 22, 71, 246, 247, 23, 64, 24, 137, 25, 26, 88, 153, 243, 27, 28, 29, 83,
+ 273, 274, 275, 368, 452, 448, 457, 458, 459, 276, 30, 92, 31, 240, 241, 32, 33, 34, 147, 35, 149,
+ 150, 36, 167, 168, 169, 76, 110, 111, 172, 77, 164, 248, 329, 330, 144, 499, 560, 114, 254, 255, 341,
+ 104, 177, 249, 125, 126, 250, 251, 214, 215, 216, 217, 218, 219, 220, 285, 221, 222, 223, 224, 225, 194,
+ 195, 196, 226, 227, 228, 229, 230, 128, 129, 130, 131, 132, 133, 134, 135, 424, 425, 426, 427, 428, 51,
+ 429, 140, 495, 496, 497, 335, 262, 263, 264, 349, 443, 37, 38, 61, 62, 430, 492, 564, 69, 233};
/* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If
- positive, shift that token. If negative, reduce the rule whose
- number is the opposite. If YYTABLE_NINF, syntax error. */
-static const yytype_int16 yytable[] =
-{
- 213, 106, 41, 154, 154, 44, 95, 96, 97, 155,
- 52, 162, 54, 265, 238, 284, 174, 286, 127, 378,
- 427, 163, 538, 40, 366, 546, 170, 328, 328, 170,
- 256, 143, 258, 260, 73, 261, 93, 266, 58, 444,
- 75, 116, 117, 118, 45, 199, 335, 40, 86, 289,
- 89, 297, 113, 46, 385, 154, 55, 39, 98, 449,
- 231, 267, 289, 297, 280, 56, 290, 513, 274, 288,
- 275, 289, 336, 252, 235, 94, 200, 105, 59, 290,
- 257, 386, 340, 47, 141, 142, 363, 311, 290, 312,
- 284, 468, 152, 317, 268, 57, 157, 158, 383, 446,
- 384, 312, 159, 531, 390, 391, 392, 393, 394, 395,
- 396, 397, 398, 399, 400, 401, 402, 403, 404, 262,
- 42, 461, 492, 380, 119, 436, 201, 237, 203, 116,
- 117, 118, 469, 369, 175, 370, 371, 470, 289, 287,
- 120, 43, 289, 471, 472, 253, 381, 382, 329, 477,
- 327, 74, 176, 279, 450, 290, 333, 289, 437, 290,
- 473, 289, 73, 48, -298, 474, 289, 49, 234, 170,
- 204, 205, 206, 50, 290, 107, 65, 66, 290, 203,
- 116, 117, 118, 290, 364, 121, 122, 123, 367, 211,
- 421, 256, 458, 504, 413, 53, 425, 426, 263, 456,
- 373, 438, 314, 368, 327, 315, 60, 289, 500, 207,
- 108, 537, 119, 107, 322, 289, 124, 323, 439, 374,
- 405, 204, 205, 206, 290, 375, 467, 523, 120, 63,
- 453, 454, 290, 297, 203, 116, 117, 118, 259, 388,
- 361, 67, 112, 362, -264, 208, 109, 78, 108, 533,
- 332, 70, 154, 79, 127, 338, 389, 428, 209, 127,
- 207, 68, 451, 119, 502, 80, 308, 309, 310, 311,
- 409, 312, 82, 121, 122, 123, 204, 205, 206, 120,
- 408, 374, 84, 85, 109, 411, 279, 452, 73, 81,
- 87, 210, 211, 289, 464, 499, 208, 181, 466, 212,
- 468, 181, 90, 455, 124, 495, 99, 497, 498, 209,
- 290, 91, 100, 406, 460, 207, 102, 103, 119, 203,
- 116, 117, 118, 115, 121, 122, 123, 136, 203, 116,
- 117, 118, 483, 493, 120, 315, 315, 289, 138, 525,
- 139, 469, 210, 211, 494, 506, 470, 327, 327, 143,
- 212, 208, 471, 472, 290, 124, 517, 526, 145, 518,
- 146, 204, 205, 206, 209, 468, 148, 151, 116, 473,
- 282, 205, 206, -298, 474, 522, 156, 118, 315, 121,
- 122, 123, 528, 165, 544, 327, 503, 315, 203, 116,
- 117, 118, 163, 542, 166, 545, 74, 210, 211, 161,
- 207, 171, 173, 119, 178, 212, 469, 179, 180, 207,
- 124, 470, 119, 181, 197, 198, 232, 471, 472, 120,
- 236, 535, 239, 242, 245, 112, 264, 291, 120, 15,
- 273, 205, 206, 276, 473, 277, 208, 278, 313, 474,
- 285, 320, 319, 316, 321, 283, 324, 342, 339, 209,
- 327, 334, 341, -265, 359, 360, 73, 376, 209, 379,
- 387, 407, 423, 292, 121, 122, 123, 429, 430, 207,
- 536, 432, 119, 121, 122, 123, 433, 434, 443, 448,
- 447, 385, 210, 211, 289, 459, 462, 312, 120, 465,
- 212, 210, 211, 481, 463, 124, 484, 476, 485, 212,
- 486, 487, 488, 489, 124, 283, 501, 508, 490, 505,
- 293, 182, 183, 184, 185, 186, 187, 507, 209, 509,
- 510, 511, 514, 512, 534, 516, 515, 519, 101, 520,
- 294, 521, 524, 121, 122, 123, 527, 295, 296, 532,
- 72, 540, 541, 275, 297, 298, 244, 548, -300, 412,
- 410, 210, 211, 445, 491, 1, 496, 202, 424, 212,
- 372, 318, 530, 2, 124, 299, 300, 301, 302, 303,
- 3, 547, 304, 305, 4, 306, 307, 308, 309, 310,
- 311, 365, 312, 422, 5, 160, 1, 6, 7, 529,
- 330, 0, 0, 0, 2, 0, 0, 0, 0, 8,
- 9, 3, 0, 0, 0, 4, 0, 292, 0, 0,
- 10, 0, 0, 11, 0, 5, 0, 0, 6, 7,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 8, 9, 0, 0, 12, 0, 0, 0, 13, 0,
- 0, 10, 0, 0, 11, 0, 0, 0, 0, 0,
- 0, 0, 0, 14, 293, 0, 0, 0, 0, 15,
- 292, 0, 0, 0, 0, 12, 0, 0, 457, 13,
- 0, 0, 0, 0, 377, 0, 0, 0, 292, 0,
- 0, 0, 296, 0, 14, 0, 0, 0, 297, 298,
- 15, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 16, 17, 18, 0, 0, 0, 0, 293, 0, 299,
- 300, 301, 302, 303, 0, 0, 304, 305, 0, 306,
- 307, 308, 309, 310, 311, -301, 312, 377, 292, 0,
- 0, 16, 17, 18, 0, 296, 0, 0, 0, 0,
- 0, 297, 298, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 296, 0, 0, 0, 0, 0, 297,
- -301, 0, 299, 300, 301, 302, 303, 0, 0, 304,
- 305, 0, 306, 307, 308, 309, 310, 311, 0, 312,
- -301, -301, -301, 302, 303, 0, 0, 304, 305, 0,
- 306, 307, 308, 309, 310, 311, 0, 312, 0, 0,
- 0, 0, 0, 296, 0, 343, 0, 0, 0, 297,
- 344, 345, 346, 347, 0, 348, 0, 0, 0, 0,
- 0, 0, 0, 349, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, -301, -301, 0, 0, -301, -301, 0,
- 306, 307, 308, 309, 310, 311, 0, 312, 0, 350,
- 182, 183, 184, 185, 186, 187, 188, 189, 190, 191,
- 192, 193, 0, 0, 0, 0, 351, 0, 352, 353,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 354, 0, 0, 0, 355, 0, 356,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 357
-};
-
-static const yytype_int16 yycheck[] =
-{
- 143, 74, 2, 93, 94, 5, 55, 56, 57, 94,
- 10, 103, 12, 200, 149, 208, 113, 210, 80, 285,
- 341, 12, 50, 3, 3, 3, 110, 3, 3, 113,
- 173, 82, 175, 176, 57, 179, 93, 3, 19, 360,
- 37, 4, 5, 6, 70, 93, 89, 3, 48, 114,
- 50, 134, 77, 79, 100, 145, 70, 26, 58, 124,
- 145, 27, 114, 134, 207, 79, 131, 476, 174, 212,
- 176, 114, 115, 167, 147, 132, 124, 74, 59, 131,
- 174, 127, 54, 109, 84, 85, 273, 170, 131, 172,
- 283, 25, 92, 236, 60, 109, 96, 97, 291, 365,
- 293, 172, 99, 512, 297, 298, 299, 300, 301, 302,
- 303, 304, 305, 306, 307, 308, 309, 310, 311, 181,
- 3, 387, 443, 175, 87, 27, 174, 178, 3, 4,
- 5, 6, 66, 277, 54, 278, 279, 71, 114, 212,
- 103, 3, 114, 77, 78, 170, 289, 290, 124, 124,
- 178, 174, 72, 110, 107, 131, 253, 114, 60, 131,
- 94, 114, 57, 93, 98, 99, 114, 93, 63, 253,
- 45, 46, 47, 97, 131, 9, 17, 18, 131, 3,
- 4, 5, 6, 131, 175, 148, 149, 150, 167, 167,
- 325, 334, 385, 459, 174, 79, 339, 340, 198, 173,
- 91, 103, 175, 276, 178, 178, 3, 114, 107, 84,
- 44, 532, 87, 9, 175, 114, 179, 178, 120, 110,
- 312, 45, 46, 47, 131, 116, 413, 175, 103, 151,
- 373, 374, 131, 134, 3, 4, 5, 6, 113, 103,
- 175, 0, 76, 178, 178, 120, 80, 3, 44, 515,
- 252, 111, 342, 176, 316, 257, 120, 342, 133, 321,
- 84, 177, 91, 87, 457, 174, 167, 168, 169, 170,
- 319, 172, 126, 148, 149, 150, 45, 46, 47, 103,
- 316, 110, 46, 47, 80, 321, 110, 116, 57, 93,
- 3, 166, 167, 114, 175, 116, 120, 178, 175, 174,
- 25, 178, 122, 376, 179, 448, 124, 450, 451, 133,
- 131, 126, 178, 313, 387, 84, 96, 123, 87, 3,
- 4, 5, 6, 3, 148, 149, 150, 4, 3, 4,
- 5, 6, 175, 175, 103, 178, 178, 114, 120, 116,
- 3, 66, 166, 167, 175, 175, 71, 178, 178, 82,
- 174, 120, 77, 78, 131, 179, 175, 500, 92, 178,
- 174, 45, 46, 47, 133, 25, 3, 45, 4, 94,
- 45, 46, 47, 98, 99, 175, 3, 6, 178, 148,
- 149, 150, 175, 175, 175, 178, 459, 178, 3, 4,
- 5, 6, 12, 536, 175, 538, 174, 166, 167, 174,
- 84, 113, 125, 87, 4, 174, 66, 4, 175, 84,
- 179, 71, 87, 178, 45, 130, 3, 77, 78, 103,
- 155, 81, 90, 111, 3, 76, 3, 17, 103, 111,
- 124, 46, 47, 174, 94, 174, 120, 174, 97, 99,
- 172, 48, 38, 174, 174, 120, 93, 92, 54, 133,
- 178, 178, 174, 178, 119, 174, 57, 174, 133, 175,
- 174, 3, 3, 53, 148, 149, 150, 174, 174, 84,
- 130, 174, 87, 148, 149, 150, 174, 174, 174, 93,
- 175, 100, 166, 167, 114, 174, 103, 172, 103, 3,
- 174, 166, 167, 69, 173, 179, 6, 178, 6, 174,
- 6, 6, 6, 119, 179, 120, 175, 98, 103, 175,
- 100, 136, 137, 138, 139, 140, 141, 175, 133, 77,
- 77, 77, 3, 98, 6, 175, 125, 175, 68, 175,
- 120, 175, 175, 148, 149, 150, 175, 127, 128, 174,
- 24, 175, 174, 176, 134, 135, 155, 175, 0, 323,
- 320, 166, 167, 362, 441, 7, 449, 142, 334, 174,
- 280, 237, 508, 15, 179, 155, 156, 157, 158, 159,
- 22, 541, 162, 163, 26, 165, 166, 167, 168, 169,
- 170, 274, 172, 327, 36, 100, 7, 39, 40, 507,
- 251, -1, -1, -1, 15, -1, -1, -1, -1, 51,
- 52, 22, -1, -1, -1, 26, -1, 53, -1, -1,
- 62, -1, -1, 65, -1, 36, -1, -1, 39, 40,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- 51, 52, -1, -1, 86, -1, -1, -1, 90, -1,
- -1, 62, -1, -1, 65, -1, -1, -1, -1, -1,
- -1, -1, -1, 105, 100, -1, -1, -1, -1, 111,
- 53, -1, -1, -1, -1, 86, -1, -1, 114, 90,
- -1, -1, -1, -1, 120, -1, -1, -1, 53, -1,
- -1, -1, 128, -1, 105, -1, -1, -1, 134, 135,
- 111, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- 152, 153, 154, -1, -1, -1, -1, 100, -1, 155,
- 156, 157, 158, 159, -1, -1, 162, 163, -1, 165,
- 166, 167, 168, 169, 170, 100, 172, 120, 53, -1,
- -1, 152, 153, 154, -1, 128, -1, -1, -1, -1,
- -1, 134, 135, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, 128, -1, -1, -1, -1, -1, 134,
- 135, -1, 155, 156, 157, 158, 159, -1, -1, 162,
- 163, -1, 165, 166, 167, 168, 169, 170, -1, 172,
- 155, 156, 157, 158, 159, -1, -1, 162, 163, -1,
- 165, 166, 167, 168, 169, 170, -1, 172, -1, -1,
- -1, -1, -1, 128, -1, 24, -1, -1, -1, 134,
- 29, 30, 31, 32, -1, 34, -1, -1, -1, -1,
- -1, -1, -1, 42, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, 158, 159, -1, -1, 162, 163, -1,
- 165, 166, 167, 168, 169, 170, -1, 172, -1, 68,
- 136, 137, 138, 139, 140, 141, 142, 143, 144, 145,
- 146, 147, -1, -1, -1, -1, 85, -1, 87, 88,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, 102, -1, -1, -1, 106, -1, 108,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, 118
-};
-
-/* YYSTOS[STATE-NUM] -- The symbol kind of the accessing symbol of
- state STATE-NUM. */
-static const yytype_int16 yystos[] =
-{
- 0, 7, 15, 22, 26, 36, 39, 40, 51, 52,
- 62, 65, 86, 90, 105, 111, 152, 153, 154, 181,
- 182, 183, 184, 188, 190, 192, 193, 197, 198, 199,
- 211, 213, 216, 217, 218, 220, 223, 291, 292, 26,
- 3, 285, 3, 3, 285, 70, 79, 109, 93, 93,
- 97, 284, 285, 79, 285, 70, 79, 109, 19, 59,
- 3, 293, 294, 151, 189, 189, 189, 0, 177, 298,
- 111, 185, 185, 57, 174, 226, 227, 231, 3, 176,
- 174, 93, 126, 200, 200, 200, 285, 3, 194, 285,
- 122, 126, 212, 93, 132, 212, 212, 212, 285, 124,
- 178, 183, 96, 123, 243, 226, 227, 9, 44, 80,
- 228, 229, 76, 228, 239, 3, 4, 5, 6, 87,
- 103, 148, 149, 150, 179, 246, 247, 270, 271, 272,
- 273, 274, 275, 276, 277, 278, 4, 191, 120, 3,
- 286, 285, 285, 82, 236, 92, 174, 219, 3, 221,
- 222, 45, 285, 195, 271, 195, 3, 285, 285, 226,
- 294, 174, 274, 12, 232, 175, 175, 224, 225, 226,
- 231, 113, 230, 125, 224, 54, 72, 244, 4, 4,
- 175, 178, 136, 137, 138, 139, 140, 141, 142, 143,
- 144, 145, 146, 147, 263, 264, 265, 45, 130, 93,
- 124, 174, 219, 3, 45, 46, 47, 84, 120, 133,
- 166, 167, 174, 249, 250, 251, 252, 253, 254, 255,
- 256, 258, 259, 260, 261, 262, 266, 267, 268, 269,
- 270, 195, 3, 299, 63, 227, 155, 178, 236, 90,
- 214, 215, 111, 196, 196, 3, 186, 187, 233, 245,
- 248, 249, 239, 228, 240, 241, 249, 239, 249, 113,
- 249, 263, 270, 285, 3, 223, 3, 27, 60, 201,
- 202, 203, 210, 124, 174, 176, 174, 174, 174, 110,
- 249, 257, 45, 120, 250, 172, 250, 227, 249, 114,
- 131, 17, 53, 100, 120, 127, 128, 134, 135, 155,
- 156, 157, 158, 159, 162, 163, 165, 166, 167, 168,
- 169, 170, 172, 97, 175, 178, 174, 249, 222, 38,
- 48, 174, 175, 178, 93, 234, 235, 178, 3, 124,
- 289, 290, 244, 224, 178, 89, 115, 242, 244, 54,
- 54, 174, 92, 24, 29, 30, 31, 32, 34, 42,
- 68, 85, 87, 88, 102, 106, 108, 118, 204, 119,
- 174, 175, 178, 223, 175, 232, 3, 167, 227, 263,
- 249, 249, 257, 91, 110, 116, 174, 120, 245, 175,
- 175, 249, 249, 250, 250, 100, 127, 174, 103, 120,
- 250, 250, 250, 250, 250, 250, 250, 250, 250, 250,
- 250, 250, 250, 250, 250, 274, 285, 3, 247, 212,
- 194, 247, 187, 174, 279, 280, 281, 282, 283, 285,
- 295, 236, 248, 3, 241, 249, 249, 299, 195, 174,
- 174, 206, 174, 174, 174, 205, 27, 60, 103, 120,
- 207, 208, 209, 174, 299, 202, 245, 175, 93, 124,
- 107, 91, 116, 249, 249, 227, 173, 114, 250, 174,
- 227, 245, 103, 173, 175, 3, 175, 223, 25, 66,
- 71, 77, 78, 94, 99, 296, 178, 124, 287, 288,
- 289, 69, 237, 175, 6, 6, 6, 6, 6, 119,
- 103, 209, 299, 175, 175, 249, 204, 249, 249, 116,
- 107, 175, 250, 227, 245, 175, 175, 175, 98, 77,
- 77, 77, 98, 280, 3, 125, 175, 175, 178, 175,
- 175, 175, 175, 175, 175, 116, 249, 175, 175, 288,
- 281, 280, 174, 245, 6, 81, 130, 299, 50, 238,
- 175, 174, 249, 297, 175, 249, 3, 269, 175
-};
-
-/* YYR1[RULE-NUM] -- Symbol kind of the left-hand side of rule RULE-NUM. */
-static const yytype_int16 yyr1[] =
-{
- 0, 180, 181, 182, 182, 183, 183, 183, 183, 183,
- 184, 184, 184, 184, 184, 184, 184, 184, 184, 184,
- 185, 185, 186, 186, 187, 187, 188, 188, 188, 189,
- 189, 190, 191, 192, 192, 193, 193, 194, 195, 196,
- 196, 197, 198, 198, 198, 199, 199, 199, 199, 199,
- 200, 200, 201, 201, 202, 202, 203, 204, 204, 204,
- 204, 204, 204, 204, 204, 204, 204, 204, 204, 204,
- 204, 204, 205, 205, 206, 206, 206, 207, 207, 208,
- 208, 209, 209, 209, 209, 210, 210, 211, 211, 211,
- 211, 212, 212, 213, 214, 215, 216, 217, 218, 218,
- 219, 219, 220, 221, 221, 222, 223, 223, 223, 224,
- 224, 225, 225, 226, 226, 227, 227, 228, 229, 229,
- 229, 230, 230, 231, 232, 232, 233, 234, 234, 235,
- 236, 236, 237, 237, 238, 238, 239, 239, 240, 240,
- 241, 242, 242, 242, 243, 243, 244, 244, 244, 244,
- 244, 244, 245, 245, 246, 246, 247, 247, 248, 249,
- 249, 249, 249, 249, 250, 250, 250, 250, 250, 250,
- 250, 250, 250, 250, 250, 251, 251, 252, 252, 252,
- 252, 252, 253, 253, 253, 253, 253, 253, 253, 253,
- 253, 253, 253, 254, 254, 255, 255, 255, 255, 256,
- 256, 256, 256, 257, 257, 258, 258, 259, 259, 259,
- 259, 259, 259, 259, 260, 260, 261, 262, 263, 263,
- 263, 263, 263, 263, 264, 264, 264, 264, 264, 264,
- 265, 265, 266, 267, 268, 269, 269, 269, 269, 270,
- 270, 270, 270, 270, 270, 270, 271, 272, 272, 273,
- 273, 274, 275, 276, 277, 277, 277, 278, 279, 279,
- 280, 280, 281, 281, 282, 282, 283, 284, 285, 285,
- 286, 286, 287, 287, 288, 288, 289, 289, 290, 290,
- 291, 291, 292, 293, 293, 294, 295, 295, 295, 296,
- 296, 296, 296, 296, 296, 296, 296, 296, 296, 297,
- 298, 298, 299, 299
-};
-
-/* YYR2[RULE-NUM] -- Number of symbols on the right-hand side of rule RULE-NUM. */
-static const yytype_int8 yyr2[] =
-{
- 0, 2, 2, 1, 3, 2, 2, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 5, 0, 1, 3, 1, 4, 2, 2, 2, 1,
- 0, 4, 1, 2, 5, 7, 5, 1, 1, 3,
- 0, 5, 2, 3, 2, 8, 7, 6, 9, 7,
- 3, 0, 1, 3, 1, 1, 3, 1, 4, 4,
- 1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
- 2, 4, 3, 0, 5, 3, 0, 1, 0, 1,
- 2, 2, 1, 1, 2, 5, 4, 4, 4, 3,
- 4, 2, 0, 5, 1, 4, 4, 2, 8, 5,
- 3, 0, 5, 1, 3, 3, 2, 2, 6, 1,
- 1, 1, 3, 3, 3, 3, 5, 2, 1, 1,
- 1, 1, 0, 7, 1, 0, 1, 1, 0, 2,
- 2, 0, 4, 0, 2, 0, 3, 0, 1, 3,
- 2, 1, 1, 0, 2, 0, 2, 2, 4, 2,
- 4, 0, 1, 3, 1, 0, 1, 3, 2, 1,
- 1, 1, 1, 1, 3, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 3, 1, 1, 2, 2, 2,
- 3, 4, 1, 3, 3, 3, 3, 3, 3, 3,
- 4, 3, 3, 3, 3, 5, 6, 5, 6, 4,
- 6, 3, 5, 4, 5, 4, 5, 3, 3, 3,
- 3, 3, 3, 3, 3, 5, 6, 6, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 4, 4, 5, 1, 3, 1, 3, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 2, 2, 3, 2, 1, 1, 3,
- 1, 1, 1, 4, 1, 3, 2, 1, 1, 3,
- 1, 0, 1, 5, 1, 0, 2, 1, 1, 0,
- 1, 0, 2, 1, 3, 3, 4, 6, 8, 1,
- 2, 1, 2, 1, 2, 1, 1, 1, 0, 1,
- 1, 0, 1, 3
-};
-
-
-enum { YYENOMEM = -2 };
-
-#define yyerrok (yyerrstatus = 0)
-#define yyclearin (yychar = SQL_HSQL_EMPTY)
-
-#define YYACCEPT goto yyacceptlab
-#define YYABORT goto yyabortlab
-#define YYERROR goto yyerrorlab
-#define YYNOMEM goto yyexhaustedlab
-
-
-#define YYRECOVERING() (!!yyerrstatus)
-
-#define YYBACKUP(Token, Value) \
- do \
- if (yychar == SQL_HSQL_EMPTY) \
- { \
- yychar = (Token); \
- yylval = (Value); \
- YYPOPSTACK (yylen); \
- yystate = *yyssp; \
- goto yybackup; \
- } \
- else \
- { \
- yyerror (&yylloc, result, scanner, YY_("syntax error: cannot back up")); \
- YYERROR; \
- } \
+ positive, shift that token. If negative, reduce the rule whose
+ number is the opposite. If YYTABLE_NINF, syntax error. */
+static const yytype_int16 yytable[] = {
+ 213, 41, 155, 106, 44, 95, 96, 97, 269, 52, 162, 54, 238, 154, 154, 288, 376, 290, 40, 388, 567,
+ 559, 127, 163, 170, 174, 73, 170, 332, 143, 256, 293, 258, 260, 93, 444, 113, 75, 533, 199, 301, 293,
+ 39, 265, 175, 332, 339, 86, 294, 89, 293, 40, 58, 231, 461, 48, 252, 98, 294, 45, 441, 442, 176,
+ 257, 284, 154, 107, 294, 46, 292, 200, 293, 340, 94, 105, 42, 235, 552, 344, 116, 117, 118, 316, 141,
+ 142, 373, 398, 319, 294, 345, 485, 152, 59, 321, 288, 157, 158, 390, 47, 159, 73, 108, 393, 399, 394,
+ 463, 234, 544, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 266, 501, 201,
+ 43, 478, 453, 253, 237, 486, 203, 116, 117, 118, 487, 109, 293, 380, 381, 291, 488, 489, 512, 379, 346,
+ 107, 74, 494, 391, 392, 395, 270, 331, 294, 293, 84, 85, 490, 347, 454, 119, -311, 491, 337, 333, 170,
+ 383, 65, 66, 49, 55, 294, 204, 205, 206, 271, 120, 396, 301, 56, 108, 467, 50, 377, 348, 384, 53,
+ 211, 293, 374, 431, 385, 423, 256, 301, 267, 293, 60, 436, 437, 475, 63, 455, 520, 524, 294, 466, 378,
+ 272, 57, 293, 207, 112, 294, 119, 67, 109, 440, 315, 456, 316, 415, 121, 122, 123, 318, 68, 294, 319,
+ 484, 120, 312, 313, 314, 315, 558, 316, 468, 470, 471, 259, 70, 78, 485, 441, 442, -264, 208, 203, 116,
+ 117, 118, 293, 79, 519, 81, 384, 124, 445, 80, 127, 209, 469, 554, 283, 127, 82, 473, 293, 294, 154,
+ 419, 331, 278, 87, 279, 121, 122, 123, 522, 293, 336, 546, 418, 486, 294, 342, 90, 421, 487, 204, 205,
+ 206, 100, 91, 488, 489, 294, 210, 211, 99, 102, 203, 116, 117, 118, 212, 115, 103, 136, 138, 124, 490,
+ 472, 416, 326, -311, 491, 327, 139, 515, 145, 517, 518, 477, 371, 143, 481, 372, 207, 181, 146, 119, 148,
+ 203, 116, 117, 118, 182, 183, 184, 185, 186, 187, 204, 205, 206, 483, 120, 503, 181, 513, 319, 151, 319,
+ 283, 73, 514, 526, 538, 331, 331, 539, 543, 549, 208, 319, 331, 565, 116, 156, 319, 74, 163, 161, 547,
+ 204, 205, 206, 209, 118, 171, 165, 207, 166, 173, 119, 178, 203, 116, 117, 118, 179, 180, 121, 122, 123,
+ 181, 197, 198, 232, -265, 120, 523, 239, 242, 236, 245, 112, 261, 268, 15, 563, 277, 566, 207, 210, 211,
+ 119, 208, 203, 116, 117, 118, 212, 317, 280, 281, 282, 124, 286, 205, 206, 209, 120, 182, 183, 184, 185,
+ 186, 187, 188, 189, 190, 191, 192, 193, 289, 121, 122, 123, 208, 320, 323, 324, 325, 328, 331, 338, 343,
+ 295, 351, 352, 205, 206, 209, 369, 370, 73, 207, 210, 211, 119, 389, 386, 485, 397, 417, 212, 433, 121,
+ 122, 123, 124, 438, 439, 446, 465, 120, 447, 449, 450, 451, 395, 460, 293, 296, 464, 476, 479, 316, 207,
+ 210, 211, 119, 287, 482, 480, 498, 493, 212, 500, 502, 504, 505, 124, 486, 506, 507, 209, 120, 487, 508,
+ 510, 521, 525, 527, 488, 489, 509, 528, 556, 529, 530, 121, 122, 123, 287, 531, 532, 534, 535, 537, 297,
+ 490, 555, 101, 72, 540, 491, 553, 209, 541, 542, 422, 545, 210, 211, 548, 561, 569, 562, 420, 298, 212,
+ 279, 121, 122, 123, 124, 299, 300, 462, 244, 516, 511, 202, 322, 301, 302, 557, 375, 432, 568, 551, 382,
+ 334, 550, 210, 211, 434, 536, 435, 160, 0, 0, 212, 350, 0, 0, 0, 124, 0, 303, 304, 305, 306,
+ 307, 0, 0, 308, 309, -313, 310, 311, 312, 313, 314, 315, 1, 316, 0, 0, 0, 1, 0, 296, 2,
+ 0, 0, 0, 0, 2, 0, 3, 0, 0, 0, 4, 3, 0, 0, 0, 4, 0, 0, 0, 0, 5,
+ 0, 0, 6, 7, 5, 0, 0, 6, 7, 0, 0, 0, 0, 0, 8, 9, 0, 0, 0, 8, 9,
+ 0, 0, 0, 297, 10, 0, 296, 11, 0, 10, 0, 0, 11, 0, 0, 0, 0, 474, 0, 0, 0,
+ 0, 0, 387, 0, 0, 0, 0, 12, 0, 0, 300, 13, 12, 0, 0, 296, 13, 301, 302, 0, 0,
+ 0, 0, 0, 0, 0, 14, 0, 0, 0, 0, 14, 15, 0, 0, 0, 296, 15, 0, 0, 0, 0,
+ 303, 304, 305, 306, 307, 0, 0, 308, 309, 0, 310, 311, 312, 313, 314, 315, 0, 316, 300, 0, 297,
+ 0, 0, 0, 0, 301, 0, 0, 0, 0, 0, 0, 16, 17, 18, 0, 0, 16, 17, 18, 387, -314,
+ 0, 0, 0, 0, 0, 0, 300, 0, 0, 0, 0, -314, -314, 301, 302, -314, -314, 0, 310, 311, 312,
+ 313, 314, 315, 0, 316, 0, 300, 0, 0, 0, 0, 0, 0, 301, -314, 0, 0, 303, 304, 305, 306,
+ 307, 0, 0, 308, 309, 0, 310, 311, 312, 313, 314, 315, 0, 316, 0, 0, 0, -314, -314, -314, 306,
+ 307, 0, 0, 308, 309, 0, 310, 311, 312, 313, 314, 315, 353, 316, 0, 0, 0, 354, 355, 356, 357,
+ 0, 358, 0, 0, 0, 0, 0, 0, 0, 359, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 360, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 361, 0, 362, 363, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 364, 0, 0, 0, 365, 0, 366, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 367};
+
+static const yytype_int16 yycheck[] = {
+ 143, 2, 94, 74, 5, 55, 56, 57, 200, 10, 103, 12, 149, 93, 94, 208, 3, 210, 3, 289, 3, 50, 80,
+ 12, 110, 113, 57, 113, 3, 82, 173, 114, 175, 176, 93, 351, 77, 37, 493, 93, 135, 114, 26, 179, 54, 3,
+ 89, 48, 131, 50, 114, 3, 19, 145, 370, 93, 167, 58, 131, 70, 156, 157, 72, 174, 207, 145, 9, 131, 79,
+ 212, 124, 114, 115, 132, 74, 3, 147, 532, 54, 4, 5, 6, 177, 84, 85, 277, 103, 183, 131, 62, 25, 92,
+ 59, 236, 287, 96, 97, 180, 109, 99, 57, 44, 295, 120, 297, 375, 63, 180, 301, 302, 303, 304, 305, 306, 307,
+ 308, 309, 310, 311, 312, 313, 314, 315, 181, 440, 179, 3, 397, 27, 170, 183, 66, 3, 4, 5, 6, 71, 80,
+ 114, 282, 283, 212, 77, 78, 460, 281, 119, 9, 179, 124, 293, 294, 100, 3, 183, 131, 114, 46, 47, 94, 133,
+ 60, 87, 98, 99, 253, 124, 253, 91, 17, 18, 93, 70, 131, 45, 46, 47, 27, 103, 127, 135, 79, 44, 107,
+ 97, 172, 159, 110, 79, 172, 114, 180, 329, 116, 179, 338, 135, 198, 114, 3, 343, 344, 395, 152, 103, 107, 476,
+ 131, 124, 280, 60, 109, 114, 84, 76, 131, 87, 0, 80, 129, 175, 120, 177, 316, 149, 150, 151, 180, 182, 131,
+ 183, 423, 103, 172, 173, 174, 175, 553, 177, 91, 383, 384, 113, 111, 3, 25, 156, 157, 183, 120, 3, 4, 5,
+ 6, 114, 181, 116, 93, 110, 184, 352, 179, 320, 134, 116, 535, 110, 325, 126, 178, 114, 131, 352, 323, 183, 179,
+ 3, 181, 149, 150, 151, 474, 114, 252, 116, 320, 66, 131, 257, 122, 325, 71, 45, 46, 47, 183, 126, 77, 78,
+ 131, 171, 172, 124, 96, 3, 4, 5, 6, 179, 3, 123, 4, 120, 184, 94, 386, 317, 180, 98, 99, 183, 3,
+ 465, 92, 467, 468, 397, 180, 82, 180, 183, 84, 183, 179, 87, 3, 3, 4, 5, 6, 137, 138, 139, 140, 141,
+ 142, 45, 46, 47, 180, 103, 180, 183, 180, 183, 45, 183, 110, 57, 180, 180, 180, 183, 183, 183, 180, 180, 120,
+ 183, 183, 180, 4, 3, 183, 179, 12, 179, 520, 45, 46, 47, 134, 6, 113, 180, 84, 180, 125, 87, 4, 3,
+ 4, 5, 6, 4, 180, 149, 150, 151, 183, 45, 130, 3, 183, 103, 476, 90, 111, 160, 3, 76, 117, 3, 111,
+ 557, 124, 559, 84, 171, 172, 87, 120, 3, 4, 5, 6, 179, 97, 179, 179, 179, 184, 45, 46, 47, 134, 103,
+ 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 177, 149, 150, 151, 120, 179, 38, 48, 179, 93, 183,
+ 183, 54, 17, 179, 92, 46, 47, 134, 119, 179, 57, 84, 171, 172, 87, 180, 179, 25, 179, 3, 179, 3, 149,
+ 150, 151, 184, 159, 119, 179, 93, 103, 179, 179, 179, 179, 100, 179, 114, 53, 180, 179, 103, 177, 84, 171, 172,
+ 87, 120, 3, 178, 69, 183, 179, 62, 158, 6, 6, 184, 66, 6, 6, 134, 103, 71, 6, 103, 180, 180, 180,
+ 77, 78, 119, 98, 81, 77, 77, 149, 150, 151, 120, 77, 98, 3, 125, 180, 100, 94, 6, 68, 24, 180, 99,
+ 179, 134, 180, 180, 327, 180, 171, 172, 180, 180, 180, 179, 324, 120, 179, 181, 149, 150, 151, 184, 127, 128, 372,
+ 155, 466, 458, 142, 237, 135, 136, 130, 278, 331, 562, 528, 284, 251, 527, 171, 172, 338, 501, 342, 100, -1, -1,
+ 179, 263, -1, -1, -1, 184, -1, 160, 161, 162, 163, 164, -1, -1, 167, 168, 0, 170, 171, 172, 173, 174, 175,
+ 7, 177, -1, -1, -1, 7, -1, 53, 15, -1, -1, -1, -1, 15, -1, 22, -1, -1, -1, 26, 22, -1, -1,
+ -1, 26, -1, -1, -1, -1, 36, -1, -1, 39, 40, 36, -1, -1, 39, 40, -1, -1, -1, -1, -1, 51, 52,
+ -1, -1, -1, 51, 52, -1, -1, -1, 100, 62, -1, 53, 65, -1, 62, -1, -1, 65, -1, -1, -1, -1, 114,
+ -1, -1, -1, -1, -1, 120, -1, -1, -1, -1, 86, -1, -1, 128, 90, 86, -1, -1, 53, 90, 135, 136, -1,
+ -1, -1, -1, -1, -1, -1, 105, -1, -1, -1, -1, 105, 111, -1, -1, -1, 53, 111, -1, -1, -1, -1, 160,
+ 161, 162, 163, 164, -1, -1, 167, 168, -1, 170, 171, 172, 173, 174, 175, -1, 177, 128, -1, 100, -1, -1, -1,
+ -1, 135, -1, -1, -1, -1, -1, -1, 153, 154, 155, -1, -1, 153, 154, 155, 120, 100, -1, -1, -1, -1, -1,
+ -1, 128, -1, -1, -1, -1, 163, 164, 135, 136, 167, 168, -1, 170, 171, 172, 173, 174, 175, -1, 177, -1, 128,
+ -1, -1, -1, -1, -1, -1, 135, 136, -1, -1, 160, 161, 162, 163, 164, -1, -1, 167, 168, -1, 170, 171, 172,
+ 173, 174, 175, -1, 177, -1, -1, -1, 160, 161, 162, 163, 164, -1, -1, 167, 168, -1, 170, 171, 172, 173, 174,
+ 175, 24, 177, -1, -1, -1, 29, 30, 31, 32, -1, 34, -1, -1, -1, -1, -1, -1, -1, 42, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 68,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 85, -1, 87, 88, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 102, -1, -1, -1, 106, -1, 108, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 118};
+
+/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
+ symbol of state STATE-NUM. */
+static const yytype_int16 yystos[] = {
+ 0, 7, 15, 22, 26, 36, 39, 40, 51, 52, 62, 65, 86, 90, 105, 111, 153, 154, 155, 186, 187, 188, 189,
+ 193, 195, 197, 198, 202, 203, 204, 216, 218, 221, 222, 223, 225, 228, 301, 302, 26, 3, 290, 3, 3, 290, 70,
+ 79, 109, 93, 93, 97, 289, 290, 79, 290, 70, 79, 109, 19, 59, 3, 303, 304, 152, 194, 194, 194, 0, 182,
+ 308, 111, 190, 190, 57, 179, 231, 232, 236, 3, 181, 179, 93, 126, 205, 205, 205, 290, 3, 199, 290, 122, 126,
+ 217, 93, 132, 217, 217, 217, 290, 124, 183, 188, 96, 123, 248, 231, 232, 9, 44, 80, 233, 234, 76, 233, 244,
+ 3, 4, 5, 6, 87, 103, 149, 150, 151, 184, 251, 252, 275, 276, 277, 278, 279, 280, 281, 282, 283, 4, 196,
+ 120, 3, 291, 290, 290, 82, 241, 92, 179, 224, 3, 226, 227, 45, 290, 200, 276, 200, 3, 290, 290, 231, 304,
+ 179, 279, 12, 237, 180, 180, 229, 230, 231, 236, 113, 235, 125, 229, 54, 72, 249, 4, 4, 180, 183, 137, 138,
+ 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 268, 269, 270, 45, 130, 93, 124, 179, 224, 3, 45, 46, 47,
+ 84, 120, 134, 171, 172, 179, 254, 255, 256, 257, 258, 259, 260, 261, 263, 264, 265, 266, 267, 271, 272, 273, 274,
+ 275, 200, 3, 309, 63, 232, 160, 183, 241, 90, 219, 220, 111, 201, 201, 3, 191, 192, 238, 250, 253, 254, 244,
+ 233, 245, 246, 254, 244, 254, 113, 254, 117, 296, 297, 298, 268, 275, 290, 3, 228, 3, 27, 60, 206, 207, 208,
+ 215, 124, 179, 181, 179, 179, 179, 110, 254, 262, 45, 120, 255, 177, 255, 232, 254, 114, 131, 17, 53, 100, 120,
+ 127, 128, 135, 136, 160, 161, 162, 163, 164, 167, 168, 170, 171, 172, 173, 174, 175, 177, 97, 180, 183, 179, 254,
+ 227, 38, 48, 179, 180, 183, 93, 239, 240, 183, 3, 124, 294, 295, 249, 229, 183, 89, 115, 247, 249, 54, 54,
+ 62, 119, 133, 159, 299, 298, 179, 92, 24, 29, 30, 31, 32, 34, 42, 68, 85, 87, 88, 102, 106, 108, 118,
+ 209, 119, 179, 180, 183, 228, 180, 237, 3, 172, 232, 268, 254, 254, 262, 91, 110, 116, 179, 120, 250, 180, 180,
+ 254, 254, 255, 255, 100, 127, 179, 103, 120, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
+ 255, 279, 290, 3, 252, 217, 199, 252, 192, 179, 284, 285, 286, 287, 288, 290, 305, 241, 253, 3, 246, 296, 254,
+ 254, 159, 119, 129, 156, 157, 300, 309, 200, 179, 179, 211, 179, 179, 179, 210, 27, 60, 103, 120, 212, 213, 214,
+ 179, 309, 207, 250, 180, 93, 124, 107, 91, 116, 254, 254, 232, 178, 114, 255, 179, 232, 250, 103, 178, 180, 3,
+ 180, 228, 25, 66, 71, 77, 78, 94, 99, 306, 183, 124, 292, 293, 294, 69, 242, 62, 309, 158, 180, 6, 6,
+ 6, 6, 6, 119, 103, 214, 309, 180, 180, 254, 209, 254, 254, 116, 107, 180, 255, 232, 250, 180, 180, 180, 98,
+ 77, 77, 77, 98, 285, 3, 125, 300, 180, 180, 183, 180, 180, 180, 180, 180, 180, 116, 254, 180, 180, 293, 286,
+ 285, 179, 250, 6, 81, 130, 309, 50, 243, 180, 179, 254, 307, 180, 254, 3, 274, 180};
+
+/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
+static const yytype_int16 yyr1[] = {
+ 0, 185, 186, 187, 187, 188, 188, 188, 188, 188, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 190, 190, 191,
+ 191, 192, 192, 193, 193, 193, 194, 194, 195, 196, 197, 197, 198, 198, 199, 200, 201, 201, 202, 203, 203, 203, 204,
+ 204, 204, 204, 204, 205, 205, 206, 206, 207, 207, 208, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209,
+ 209, 209, 209, 210, 210, 211, 211, 211, 212, 212, 213, 213, 214, 214, 214, 214, 215, 215, 216, 216, 216, 216, 217,
+ 217, 218, 219, 220, 221, 222, 223, 223, 224, 224, 225, 226, 226, 227, 228, 228, 228, 229, 229, 230, 230, 231, 231,
+ 232, 232, 233, 234, 234, 234, 235, 235, 236, 237, 237, 238, 239, 239, 240, 241, 241, 242, 242, 243, 243, 244, 244,
+ 245, 245, 246, 247, 247, 247, 248, 248, 249, 249, 249, 249, 249, 249, 250, 250, 251, 251, 252, 252, 253, 254, 254,
+ 254, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 256, 256, 257, 257, 257, 257, 257, 258, 258,
+ 258, 258, 258, 258, 258, 258, 258, 258, 258, 259, 259, 260, 260, 260, 260, 261, 261, 261, 261, 262, 262, 263, 263,
+ 264, 264, 264, 264, 264, 264, 264, 265, 265, 266, 267, 268, 268, 268, 268, 268, 268, 269, 269, 269, 269, 269, 269,
+ 270, 270, 271, 272, 273, 274, 274, 274, 274, 275, 275, 275, 275, 275, 275, 275, 276, 277, 277, 278, 278, 279, 280,
+ 281, 282, 282, 282, 283, 284, 284, 285, 285, 286, 286, 287, 287, 288, 289, 290, 290, 291, 291, 292, 292, 293, 293,
+ 294, 294, 295, 295, 296, 296, 297, 297, 298, 298, 299, 299, 299, 299, 300, 300, 300, 301, 301, 302, 303, 303, 304,
+ 305, 305, 305, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 307, 308, 308, 309, 309};
+
+/* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */
+static const yytype_int8 yyr2[] = {
+ 0, 2, 2, 1, 3, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 0, 1, 3, 1, 4, 2, 2, 2, 1, 0, 4, 1, 2, 5, 7,
+ 5, 1, 1, 3, 0, 5, 2, 3, 2, 8, 7, 6, 9, 7, 3, 0, 1, 3, 1, 1, 3, 1, 4, 4, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 4,
+ 3, 0, 5, 3, 0, 1, 0, 1, 2, 2, 1, 1, 2, 5, 4, 4, 4, 3, 4, 2, 0, 5, 1, 4, 4, 2, 8, 5, 3, 0, 5, 1, 3, 3, 2, 2,
+ 6, 1, 1, 1, 3, 3, 3, 4, 6, 2, 1, 1, 1, 1, 0, 7, 1, 0, 1, 1, 0, 2, 2, 0, 4, 0, 2, 0, 3, 0, 1, 3, 2, 1, 1, 0,
+ 2, 0, 2, 2, 4, 2, 4, 0, 1, 3, 1, 0, 1, 3, 2, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 2, 2, 2,
+ 3, 4, 1, 3, 3, 3, 3, 3, 3, 3, 4, 3, 3, 3, 3, 5, 6, 5, 6, 4, 6, 3, 5, 4, 5, 4, 5, 3, 3, 3, 3, 3, 3, 3, 3, 5,
+ 6, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 4, 5, 1, 3, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 2, 2, 3, 2, 1, 1, 3, 1, 1, 1, 4, 1, 3, 2, 1, 1, 3, 1, 0, 1, 5, 1, 0, 2, 1, 1, 0, 1, 0, 1, 2, 3, 5, 1, 3,
+ 1, 2, 2, 1, 0, 1, 0, 2, 1, 3, 3, 4, 6, 8, 1, 2, 1, 2, 1, 2, 1, 1, 1, 0, 1, 1, 0, 1, 3};
+
+#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
+
+#define YYRECOVERING() (!!yyerrstatus)
+
+#define YYBACKUP(Token, Value) \
+ do \
+ if (yychar == YYEMPTY) { \
+ yychar = (Token); \
+ yylval = (Value); \
+ YYPOPSTACK(yylen); \
+ yystate = *yyssp; \
+ goto yybackup; \
+ } else { \
+ yyerror(&yylloc, result, scanner, YY_("syntax error: cannot back up")); \
+ YYERROR; \
+ } \
while (0)
-/* Backward compatibility with an undocumented macro.
- Use SQL_HSQL_error or SQL_HSQL_UNDEF. */
-#define YYERRCODE SQL_HSQL_UNDEF
+/* Error token number */
+#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). */
#ifndef YYLLOC_DEFAULT
-# define YYLLOC_DEFAULT(Current, Rhs, N) \
- do \
- if (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 (0)
+#define YYLLOC_DEFAULT(Current, Rhs, N) \
+ do \
+ if (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 (0)
#endif
#define YYRHSLOC(Rhs, K) ((Rhs)[K])
-
/* Enable debugging if requested. */
#if HSQL_DEBUG
-# ifndef YYFPRINTF
-# include /* INFRINGES ON USER NAME SPACE */
-# define YYFPRINTF fprintf
-# endif
-
-# define YYDPRINTF(Args) \
-do { \
- if (yydebug) \
- YYFPRINTF Args; \
-} while (0)
+#ifndef YYFPRINTF
+#include /* INFRINGES ON USER NAME SPACE */
+#define YYFPRINTF fprintf
+#endif
+#define YYDPRINTF(Args) \
+ do { \
+ if (yydebug) YYFPRINTF Args; \
+ } while (0)
-/* YYLOCATION_PRINT -- Print the location on the stream.
+/* 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 YYLOCATION_PRINT
-
-# if defined YY_LOCATION_PRINT
-
- /* Temporary convenience wrapper in case some people defined the
- undocumented and private YY_LOCATION_PRINT macros. */
-# define YYLOCATION_PRINT(File, Loc) YY_LOCATION_PRINT(File, *(Loc))
-
-# elif defined HSQL_LTYPE_IS_TRIVIAL && HSQL_LTYPE_IS_TRIVIAL
+#ifndef YY_LOCATION_PRINT
+#if defined HSQL_LTYPE_IS_TRIVIAL && HSQL_LTYPE_IS_TRIVIAL
/* Print *YYLOCP on YYO. Private, do not rely on its existence. */
YY_ATTRIBUTE_UNUSED
-static int
-yy_location_print_ (FILE *yyo, YYLTYPE const * const yylocp)
-{
+static int yy_location_print_(FILE* yyo, YYLTYPE const* const yylocp) {
int res = 0;
int end_col = 0 != yylocp->last_column ? yylocp->last_column - 1 : 0;
- if (0 <= yylocp->first_line)
- {
- res += YYFPRINTF (yyo, "%d", yylocp->first_line);
- if (0 <= yylocp->first_column)
- res += YYFPRINTF (yyo, ".%d", yylocp->first_column);
- }
- if (0 <= yylocp->last_line)
- {
- if (yylocp->first_line < yylocp->last_line)
- {
- res += YYFPRINTF (yyo, "-%d", yylocp->last_line);
- if (0 <= end_col)
- res += YYFPRINTF (yyo, ".%d", end_col);
- }
- else if (0 <= end_col && yylocp->first_column < end_col)
- res += YYFPRINTF (yyo, "-%d", end_col);
- }
+ if (0 <= yylocp->first_line) {
+ res += YYFPRINTF(yyo, "%d", yylocp->first_line);
+ if (0 <= yylocp->first_column) res += YYFPRINTF(yyo, ".%d", yylocp->first_column);
+ }
+ if (0 <= yylocp->last_line) {
+ if (yylocp->first_line < yylocp->last_line) {
+ res += YYFPRINTF(yyo, "-%d", yylocp->last_line);
+ if (0 <= end_col) res += YYFPRINTF(yyo, ".%d", end_col);
+ } else if (0 <= end_col && yylocp->first_column < end_col)
+ res += YYFPRINTF(yyo, "-%d", end_col);
+ }
return res;
}
-# define YYLOCATION_PRINT yy_location_print_
-
- /* Temporary convenience wrapper in case some people defined the
- undocumented and private YY_LOCATION_PRINT macros. */
-# define YY_LOCATION_PRINT(File, Loc) YYLOCATION_PRINT(File, &(Loc))
+#define YY_LOCATION_PRINT(File, Loc) yy_location_print_(File, &(Loc))
-# else
-
-# define YYLOCATION_PRINT(File, Loc) ((void) 0)
- /* Temporary convenience wrapper in case some people defined the
- undocumented and private YY_LOCATION_PRINT macros. */
-# define YY_LOCATION_PRINT YYLOCATION_PRINT
-
-# endif
-# endif /* !defined YYLOCATION_PRINT */
-
-
-# define YY_SYMBOL_PRINT(Title, Kind, Value, Location) \
-do { \
- if (yydebug) \
- { \
- YYFPRINTF (stderr, "%s ", Title); \
- yy_symbol_print (stderr, \
- Kind, Value, Location, result, scanner); \
- YYFPRINTF (stderr, "\n"); \
- } \
-} while (0)
+#else
+#define YY_LOCATION_PRINT(File, Loc) ((void)0)
+#endif
+#endif
+#define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
+ do { \
+ if (yydebug) { \
+ YYFPRINTF(stderr, "%s ", Title); \
+ yy_symbol_print(stderr, Type, Value, Location, result, scanner); \
+ YYFPRINTF(stderr, "\n"); \
+ } \
+ } while (0)
/*-----------------------------------.
| Print this symbol's value on YYO. |
`-----------------------------------*/
-static void
-yy_symbol_value_print (FILE *yyo,
- yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp, hsql::SQLParserResult* result, yyscan_t scanner)
-{
- FILE *yyoutput = yyo;
- YY_USE (yyoutput);
- YY_USE (yylocationp);
- YY_USE (result);
- YY_USE (scanner);
- if (!yyvaluep)
- return;
+static void yy_symbol_value_print(FILE* yyo, int yytype, YYSTYPE const* const yyvaluep,
+ YYLTYPE const* const yylocationp, hsql::SQLParserResult* result, yyscan_t scanner) {
+ FILE* yyoutput = yyo;
+ YYUSE(yyoutput);
+ YYUSE(yylocationp);
+ YYUSE(result);
+ YYUSE(scanner);
+ if (!yyvaluep) return;
+#ifdef YYPRINT
+ if (yytype < YYNTOKENS) YYPRINT(yyo, yytoknum[yytype], *yyvaluep);
+#endif
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
- YY_USE (yykind);
+ YYUSE(yytype);
YY_IGNORE_MAYBE_UNINITIALIZED_END
}
-
/*---------------------------.
| Print this symbol on YYO. |
`---------------------------*/
-static void
-yy_symbol_print (FILE *yyo,
- yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp, hsql::SQLParserResult* result, yyscan_t scanner)
-{
- YYFPRINTF (yyo, "%s %s (",
- yykind < YYNTOKENS ? "token" : "nterm", yysymbol_name (yykind));
-
- YYLOCATION_PRINT (yyo, yylocationp);
- YYFPRINTF (yyo, ": ");
- yy_symbol_value_print (yyo, yykind, yyvaluep, yylocationp, result, scanner);
- YYFPRINTF (yyo, ")");
+static void yy_symbol_print(FILE* yyo, int yytype, YYSTYPE const* const yyvaluep, YYLTYPE const* const yylocationp,
+ hsql::SQLParserResult* result, yyscan_t scanner) {
+ YYFPRINTF(yyo, "%s %s (", yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]);
+
+ YY_LOCATION_PRINT(yyo, *yylocationp);
+ YYFPRINTF(yyo, ": ");
+ yy_symbol_value_print(yyo, yytype, yyvaluep, yylocationp, result, scanner);
+ YYFPRINTF(yyo, ")");
}
/*------------------------------------------------------------------.
@@ -1630,70 +1510,57 @@ yy_symbol_print (FILE *yyo,
| TOP (included). |
`------------------------------------------------------------------*/
-static void
-yy_stack_print (yy_state_t *yybottom, yy_state_t *yytop)
-{
- YYFPRINTF (stderr, "Stack now");
- for (; yybottom <= yytop; yybottom++)
- {
- int yybot = *yybottom;
- YYFPRINTF (stderr, " %d", yybot);
- }
- YYFPRINTF (stderr, "\n");
+static void yy_stack_print(yy_state_t* yybottom, yy_state_t* yytop) {
+ YYFPRINTF(stderr, "Stack now");
+ for (; yybottom <= yytop; yybottom++) {
+ int yybot = *yybottom;
+ YYFPRINTF(stderr, " %d", yybot);
+ }
+ YYFPRINTF(stderr, "\n");
}
-# define YY_STACK_PRINT(Bottom, Top) \
-do { \
- if (yydebug) \
- yy_stack_print ((Bottom), (Top)); \
-} while (0)
-
+#define YY_STACK_PRINT(Bottom, Top) \
+ do { \
+ if (yydebug) yy_stack_print((Bottom), (Top)); \
+ } while (0)
/*------------------------------------------------.
| Report that the YYRULE is going to be reduced. |
`------------------------------------------------*/
-static void
-yy_reduce_print (yy_state_t *yyssp, YYSTYPE *yyvsp, YYLTYPE *yylsp,
- int yyrule, hsql::SQLParserResult* result, yyscan_t scanner)
-{
+static void yy_reduce_print(yy_state_t* yyssp, YYSTYPE* yyvsp, YYLTYPE* yylsp, int yyrule,
+ hsql::SQLParserResult* result, yyscan_t scanner) {
int yylno = yyrline[yyrule];
int yynrhs = yyr2[yyrule];
int yyi;
- YYFPRINTF (stderr, "Reducing stack by rule %d (line %d):\n",
- yyrule - 1, yylno);
+ YYFPRINTF(stderr, "Reducing stack by rule %d (line %d):\n", yyrule - 1, yylno);
/* The symbols being reduced. */
- for (yyi = 0; yyi < yynrhs; yyi++)
- {
- YYFPRINTF (stderr, " $%d = ", yyi + 1);
- yy_symbol_print (stderr,
- YY_ACCESSING_SYMBOL (+yyssp[yyi + 1 - yynrhs]),
- &yyvsp[(yyi + 1) - (yynrhs)],
- &(yylsp[(yyi + 1) - (yynrhs)]), result, scanner);
- YYFPRINTF (stderr, "\n");
- }
+ for (yyi = 0; yyi < yynrhs; yyi++) {
+ YYFPRINTF(stderr, " $%d = ", yyi + 1);
+ yy_symbol_print(stderr, yystos[+yyssp[yyi + 1 - yynrhs]], &yyvsp[(yyi + 1) - (yynrhs)],
+ &(yylsp[(yyi + 1) - (yynrhs)]), result, scanner);
+ YYFPRINTF(stderr, "\n");
+ }
}
-# define YY_REDUCE_PRINT(Rule) \
-do { \
- if (yydebug) \
- yy_reduce_print (yyssp, yyvsp, yylsp, Rule, result, scanner); \
-} while (0)
+#define YY_REDUCE_PRINT(Rule) \
+ do { \
+ if (yydebug) yy_reduce_print(yyssp, yyvsp, yylsp, Rule, result, scanner); \
+ } while (0)
/* Nonzero means print parse trace. It is left uninitialized so that
multiple parsers can coexist. */
int yydebug;
#else /* !HSQL_DEBUG */
-# define YYDPRINTF(Args) ((void) 0)
-# define YY_SYMBOL_PRINT(Title, Kind, Value, Location)
-# define YY_STACK_PRINT(Bottom, Top)
-# define YY_REDUCE_PRINT(Rule)
+#define YYDPRINTF(Args)
+#define YY_SYMBOL_PRINT(Title, Type, Value, Location)
+#define YY_STACK_PRINT(Bottom, Top)
+#define YY_REDUCE_PRINT(Rule)
#endif /* !HSQL_DEBUG */
-
/* YYINITDEPTH -- initial size of the parser's stacks. */
#ifndef YYINITDEPTH
-# define YYINITDEPTH 200
+#define YYINITDEPTH 200
#endif
/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
@@ -1704,95 +1571,39 @@ int yydebug;
evaluated with infinite-precision integer arithmetic. */
#ifndef YYMAXDEPTH
-# define YYMAXDEPTH 10000
+#define YYMAXDEPTH 10000
#endif
-
-/* Context of a parse error. */
-typedef struct
-{
- yy_state_t *yyssp;
- yysymbol_kind_t yytoken;
- YYLTYPE *yylloc;
-} yypcontext_t;
-
-/* Put in YYARG at most YYARGN of the expected tokens given the
- current YYCTX, and return the number of tokens stored in YYARG. If
- YYARG is null, return the number of expected tokens (guaranteed to
- be less than YYNTOKENS). Return YYENOMEM on memory exhaustion.
- Return 0 if there are more than YYARGN expected tokens, yet fill
- YYARG up to YYARGN. */
-static int
-yypcontext_expected_tokens (const yypcontext_t *yyctx,
- yysymbol_kind_t yyarg[], int yyargn)
-{
- /* Actual size of YYARG. */
- int yycount = 0;
- int yyn = yypact[+*yyctx->yyssp];
- if (!yypact_value_is_default (yyn))
- {
- /* Start YYX at -YYN if negative to avoid negative indexes in
- YYCHECK. In other words, skip the first -YYN actions for
- this state because they are default actions. */
- int yyxbegin = yyn < 0 ? -yyn : 0;
- /* Stay within bounds of both yycheck and yytname. */
- int yychecklim = YYLAST - yyn + 1;
- int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
- int yyx;
- for (yyx = yyxbegin; yyx < yyxend; ++yyx)
- if (yycheck[yyx + yyn] == yyx && yyx != YYSYMBOL_YYerror
- && !yytable_value_is_error (yytable[yyx + yyn]))
- {
- if (!yyarg)
- ++yycount;
- else if (yycount == yyargn)
- return 0;
- else
- yyarg[yycount++] = YY_CAST (yysymbol_kind_t, yyx);
- }
- }
- if (yyarg && yycount == 0 && 0 < yyargn)
- yyarg[0] = YYSYMBOL_YYEMPTY;
- return yycount;
-}
-
-
-
+#if YYERROR_VERBOSE
#ifndef yystrlen
-# if defined __GLIBC__ && defined _STRING_H
-# define yystrlen(S) (YY_CAST (YYPTRDIFF_T, strlen (S)))
-# else
+#if defined __GLIBC__ && defined _STRING_H
+#define yystrlen(S) (YY_CAST(YYPTRDIFF_T, strlen(S)))
+#else
/* Return the length of YYSTR. */
-static YYPTRDIFF_T
-yystrlen (const char *yystr)
-{
+static YYPTRDIFF_T yystrlen(const char* yystr) {
YYPTRDIFF_T yylen;
- for (yylen = 0; yystr[yylen]; yylen++)
- continue;
+ for (yylen = 0; yystr[yylen]; yylen++) continue;
return yylen;
}
-# endif
+#endif
#endif
#ifndef yystpcpy
-# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
-# define yystpcpy stpcpy
-# else
+#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. */
-static char *
-yystpcpy (char *yydest, const char *yysrc)
-{
- char *yyd = yydest;
- const char *yys = yysrc;
+static char* yystpcpy(char* yydest, const char* yysrc) {
+ char* yyd = yydest;
+ const char* yys = yysrc;
- while ((*yyd++ = *yys++) != '\0')
- continue;
+ while ((*yyd++ = *yys++) != '\0') continue;
return yyd - 1;
}
-# endif
+#endif
#endif
#ifndef yytnamerr
@@ -1803,55 +1614,62 @@ yystpcpy (char *yydest, const char *yysrc)
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 YYPTRDIFF_T
-yytnamerr (char *yyres, const char *yystr)
-{
- if (*yystr == '"')
- {
- YYPTRDIFF_T yyn = 0;
- char const *yyp = yystr;
- for (;;)
- switch (*++yyp)
- {
- case '\'':
- case ',':
+static YYPTRDIFF_T yytnamerr(char* yyres, const char* yystr) {
+ if (*yystr == '"') {
+ YYPTRDIFF_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;
-
- case '\\':
- if (*++yyp != '\\')
- goto do_not_strip_quotes;
- else
- goto append;
-
- append:
- default:
- if (yyres)
- yyres[yyn] = *yyp;
- yyn++;
- break;
-
- case '"':
- if (yyres)
- yyres[yyn] = '\0';
- return yyn;
- }
- do_not_strip_quotes: ;
- }
+ else
+ goto append;
+
+ append:
+ default:
+ if (yyres) yyres[yyn] = *yyp;
+ yyn++;
+ break;
+
+ case '"':
+ if (yyres) yyres[yyn] = '\0';
+ return yyn;
+ }
+ do_not_strip_quotes:;
+ }
if (yyres)
- return yystpcpy (yyres, yystr) - yyres;
+ return yystpcpy(yyres, yystr) - yyres;
else
- return yystrlen (yystr);
+ return yystrlen(yystr);
}
#endif
+/* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message
+ about the unexpected token YYTOKEN for the state stack whose top is
+ YYSSP.
-static int
-yy_syntax_error_arguments (const yypcontext_t *yyctx,
- yysymbol_kind_t yyarg[], int yyargn)
-{
+ Return 0 if *YYMSG was successfully written. Return 1 if *YYMSG is
+ not large enough to hold the message. In that case, also set
+ *YYMSG_ALLOC to the required number of bytes. Return 2 if the
+ required number of bytes is too large to store. */
+static int yysyntax_error(YYPTRDIFF_T* yymsg_alloc, char** yymsg, yy_state_t* yyssp, int yytoken) {
+ enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
+ /* Internationalized format string. */
+ const char* yyformat = YY_NULLPTR;
+ /* Arguments of yyformat: reported tokens (one for the "unexpected",
+ one per "expected"). */
+ char const* yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
/* Actual size of YYARG. */
int yycount = 0;
+ /* Cumulated lengths of YYARG. */
+ YYPTRDIFF_T yysize = 0;
+
/* There are many possibilities here to consider:
- If this state is a consistent state with a default action, then
the only way this function was invoked is if the default action
@@ -1875,54 +1693,45 @@ yy_syntax_error_arguments (const yypcontext_t *yyctx,
one exception: it will still contain any token that will not be
accepted due to an error action in a later state.
*/
- if (yyctx->yytoken != YYSYMBOL_YYEMPTY)
- {
- int yyn;
- if (yyarg)
- yyarg[yycount] = yyctx->yytoken;
- ++yycount;
- yyn = yypcontext_expected_tokens (yyctx,
- yyarg ? yyarg + 1 : yyarg, yyargn - 1);
- if (yyn == YYENOMEM)
- return YYENOMEM;
- else
- yycount += yyn;
- }
- return yycount;
-}
-
-/* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message
- about the unexpected token YYTOKEN for the state stack whose top is
- YYSSP.
-
- Return 0 if *YYMSG was successfully written. Return -1 if *YYMSG is
- not large enough to hold the message. In that case, also set
- *YYMSG_ALLOC to the required number of bytes. Return YYENOMEM if the
- required number of bytes is too large to store. */
-static int
-yysyntax_error (YYPTRDIFF_T *yymsg_alloc, char **yymsg,
- const yypcontext_t *yyctx)
-{
- enum { YYARGS_MAX = 5 };
- /* Internationalized format string. */
- const char *yyformat = YY_NULLPTR;
- /* Arguments of yyformat: reported tokens (one for the "unexpected",
- one per "expected"). */
- yysymbol_kind_t yyarg[YYARGS_MAX];
- /* Cumulated lengths of YYARG. */
- YYPTRDIFF_T yysize = 0;
+ if (yytoken != YYEMPTY) {
+ int yyn = yypact[+*yyssp];
+ YYPTRDIFF_T yysize0 = yytnamerr(YY_NULLPTR, yytname[yytoken]);
+ yysize = yysize0;
+ yyarg[yycount++] = yytname[yytoken];
+ if (!yypact_value_is_default(yyn)) {
+ /* Start YYX at -YYN if negative to avoid negative indexes in
+ YYCHECK. In other words, skip the first -YYN actions for
+ this state because they are default actions. */
+ int yyxbegin = yyn < 0 ? -yyn : 0;
+ /* Stay within bounds of both yycheck and yytname. */
+ int yychecklim = YYLAST - yyn + 1;
+ int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
+ int yyx;
- /* Actual size of YYARG. */
- int yycount = yy_syntax_error_arguments (yyctx, yyarg, YYARGS_MAX);
- if (yycount == YYENOMEM)
- return YYENOMEM;
+ for (yyx = yyxbegin; yyx < yyxend; ++yyx)
+ if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR && !yytable_value_is_error(yytable[yyx + yyn])) {
+ if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) {
+ yycount = 1;
+ yysize = yysize0;
+ break;
+ }
+ yyarg[yycount++] = yytname[yyx];
+ {
+ YYPTRDIFF_T yysize1 = yysize + yytnamerr(YY_NULLPTR, yytname[yyx]);
+ if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)
+ yysize = yysize1;
+ else
+ return 2;
+ }
+ }
+ }
+ }
- switch (yycount)
- {
-#define YYCASE_(N, S) \
- case N: \
- yyformat = S; \
- break
+ switch (yycount) {
+#define YYCASE_(N, S) \
+ case N: \
+ yyformat = S; \
+ break
default: /* Avoid compiler warnings. */
YYCASE_(0, YY_("syntax error"));
YYCASE_(1, YY_("syntax error, unexpected %s"));
@@ -1931,101 +1740,91 @@ yysyntax_error (YYPTRDIFF_T *yymsg_alloc, char **yymsg,
YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s"));
YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"));
#undef YYCASE_
- }
+ }
- /* Compute error message size. Don't count the "%s"s, but reserve
- room for the terminator. */
- yysize = yystrlen (yyformat) - 2 * yycount + 1;
{
- int yyi;
- for (yyi = 0; yyi < yycount; ++yyi)
- {
- YYPTRDIFF_T yysize1
- = yysize + yytnamerr (YY_NULLPTR, yytname[yyarg[yyi]]);
- if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)
- yysize = yysize1;
- else
- return YYENOMEM;
- }
+ /* Don't count the "%s"s in the final size, but reserve room for
+ the terminator. */
+ YYPTRDIFF_T yysize1 = yysize + (yystrlen(yyformat) - 2 * yycount) + 1;
+ if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)
+ yysize = yysize1;
+ else
+ return 2;
}
- if (*yymsg_alloc < yysize)
- {
- *yymsg_alloc = 2 * yysize;
- if (! (yysize <= *yymsg_alloc
- && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM))
- *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM;
- return -1;
- }
+ if (*yymsg_alloc < yysize) {
+ *yymsg_alloc = 2 * yysize;
+ if (!(yysize <= *yymsg_alloc && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM)) *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM;
+ return 1;
+ }
/* Avoid sprintf, as that infringes on the user's name space.
Don't have undefined behavior even if the translation
produced a string with the wrong number of "%s"s. */
{
- char *yyp = *yymsg;
+ char* yyp = *yymsg;
int yyi = 0;
while ((*yyp = *yyformat) != '\0')
- if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount)
- {
- yyp += yytnamerr (yyp, yytname[yyarg[yyi++]]);
- yyformat += 2;
- }
- else
- {
- ++yyp;
- ++yyformat;
- }
+ if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount) {
+ yyp += yytnamerr(yyp, yyarg[yyi++]);
+ yyformat += 2;
+ } else {
+ ++yyp;
+ ++yyformat;
+ }
}
return 0;
}
-
+#endif /* YYERROR_VERBOSE */
/*-----------------------------------------------.
| Release the memory associated to this symbol. |
`-----------------------------------------------*/
-static void
-yydestruct (const char *yymsg,
- yysymbol_kind_t yykind, YYSTYPE *yyvaluep, YYLTYPE *yylocationp, hsql::SQLParserResult* result, yyscan_t scanner)
-{
- YY_USE (yyvaluep);
- YY_USE (yylocationp);
- YY_USE (result);
- YY_USE (scanner);
- if (!yymsg)
- yymsg = "Deleting";
- YY_SYMBOL_PRINT (yymsg, yykind, yyvaluep, yylocationp);
+static void yydestruct(const char* yymsg, int yytype, YYSTYPE* yyvaluep, YYLTYPE* yylocationp,
+ hsql::SQLParserResult* result, yyscan_t scanner) {
+ YYUSE(yyvaluep);
+ YYUSE(yylocationp);
+ YYUSE(result);
+ YYUSE(scanner);
+ if (!yymsg) yymsg = "Deleting";
+ YY_SYMBOL_PRINT(yymsg, yytype, yyvaluep, yylocationp);
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
- switch (yykind)
- {
- case YYSYMBOL_IDENTIFIER: /* IDENTIFIER */
-#line 163 "bison_parser.y"
- { free( (((*yyvaluep).sval)) ); }
-#line 2006 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_STRING: /* STRING */
-#line 163 "bison_parser.y"
- { free( (((*yyvaluep).sval)) ); }
-#line 2012 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_FLOATVAL: /* FLOATVAL */
-#line 161 "bison_parser.y"
- { }
-#line 2018 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_INTVAL: /* INTVAL */
-#line 161 "bison_parser.y"
- { }
-#line 2024 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_statement_list: /* statement_list */
-#line 164 "bison_parser.y"
- {
+ switch (yytype) {
+ case 3: /* IDENTIFIER */
+#line 168 "bison_parser.y"
+ {
+ free((((*yyvaluep).sval)));
+ }
+#line 1980 "bison_parser.cpp"
+ break;
+
+ case 4: /* STRING */
+#line 168 "bison_parser.y"
+ {
+ free((((*yyvaluep).sval)));
+ }
+#line 1986 "bison_parser.cpp"
+ break;
+
+ case 5: /* FLOATVAL */
+#line 166 "bison_parser.y"
+ {
+ }
+#line 1992 "bison_parser.cpp"
+ break;
+
+ case 6: /* INTVAL */
+#line 166 "bison_parser.y"
+ {
+ }
+#line 1998 "bison_parser.cpp"
+ break;
+
+ case 187: /* statement_list */
+#line 169 "bison_parser.y"
+ {
if ((((*yyvaluep).stmt_vec)) != nullptr) {
for (auto ptr : *(((*yyvaluep).stmt_vec))) {
delete ptr;
@@ -2033,24 +1832,28 @@ yydestruct (const char *yymsg,
}
delete (((*yyvaluep).stmt_vec));
}
-#line 2037 "bison_parser.cpp"
- break;
+#line 2011 "bison_parser.cpp"
+ break;
- case YYSYMBOL_statement: /* statement */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).statement)); }
-#line 2043 "bison_parser.cpp"
- break;
+ case 188: /* statement */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).statement));
+ }
+#line 2017 "bison_parser.cpp"
+ break;
- case YYSYMBOL_preparable_statement: /* preparable_statement */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).statement)); }
-#line 2049 "bison_parser.cpp"
- break;
+ case 189: /* preparable_statement */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).statement));
+ }
+#line 2023 "bison_parser.cpp"
+ break;
- case YYSYMBOL_opt_hints: /* opt_hints */
-#line 164 "bison_parser.y"
- {
+ case 190: /* opt_hints */
+#line 169 "bison_parser.y"
+ {
if ((((*yyvaluep).expr_vec)) != nullptr) {
for (auto ptr : *(((*yyvaluep).expr_vec))) {
delete ptr;
@@ -2058,12 +1861,12 @@ yydestruct (const char *yymsg,
}
delete (((*yyvaluep).expr_vec));
}
-#line 2062 "bison_parser.cpp"
- break;
+#line 2036 "bison_parser.cpp"
+ break;
- case YYSYMBOL_hint_list: /* hint_list */
-#line 164 "bison_parser.y"
- {
+ case 191: /* hint_list */
+#line 169 "bison_parser.y"
+ {
if ((((*yyvaluep).expr_vec)) != nullptr) {
for (auto ptr : *(((*yyvaluep).expr_vec))) {
delete ptr;
@@ -2071,90 +1874,113 @@ yydestruct (const char *yymsg,
}
delete (((*yyvaluep).expr_vec));
}
-#line 2075 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_hint: /* hint */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).expr)); }
-#line 2081 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_transaction_statement: /* transaction_statement */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).transaction_stmt)); }
-#line 2087 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_prepare_statement: /* prepare_statement */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).prep_stmt)); }
-#line 2093 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_prepare_target_query: /* prepare_target_query */
-#line 163 "bison_parser.y"
- { free( (((*yyvaluep).sval)) ); }
-#line 2099 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_execute_statement: /* execute_statement */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).exec_stmt)); }
-#line 2105 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_import_statement: /* import_statement */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).import_stmt)); }
-#line 2111 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_file_type: /* file_type */
-#line 161 "bison_parser.y"
- { }
-#line 2117 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_file_path: /* file_path */
-#line 163 "bison_parser.y"
- { free( (((*yyvaluep).sval)) ); }
-#line 2123 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_opt_file_type: /* opt_file_type */
-#line 161 "bison_parser.y"
- { }
-#line 2129 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_export_statement: /* export_statement */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).export_stmt)); }
-#line 2135 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_show_statement: /* show_statement */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).show_stmt)); }
-#line 2141 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_create_statement: /* create_statement */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).create_stmt)); }
-#line 2147 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_opt_not_exists: /* opt_not_exists */
-#line 161 "bison_parser.y"
- { }
-#line 2153 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_table_elem_commalist: /* table_elem_commalist */
-#line 164 "bison_parser.y"
- {
+#line 2049 "bison_parser.cpp"
+ break;
+
+ case 192: /* hint */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).expr));
+ }
+#line 2055 "bison_parser.cpp"
+ break;
+
+ case 193: /* transaction_statement */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).transaction_stmt));
+ }
+#line 2061 "bison_parser.cpp"
+ break;
+
+ case 195: /* prepare_statement */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).prep_stmt));
+ }
+#line 2067 "bison_parser.cpp"
+ break;
+
+ case 196: /* prepare_target_query */
+#line 168 "bison_parser.y"
+ {
+ free((((*yyvaluep).sval)));
+ }
+#line 2073 "bison_parser.cpp"
+ break;
+
+ case 197: /* execute_statement */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).exec_stmt));
+ }
+#line 2079 "bison_parser.cpp"
+ break;
+
+ case 198: /* import_statement */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).import_stmt));
+ }
+#line 2085 "bison_parser.cpp"
+ break;
+
+ case 199: /* file_type */
+#line 166 "bison_parser.y"
+ {
+ }
+#line 2091 "bison_parser.cpp"
+ break;
+
+ case 200: /* file_path */
+#line 168 "bison_parser.y"
+ {
+ free((((*yyvaluep).sval)));
+ }
+#line 2097 "bison_parser.cpp"
+ break;
+
+ case 201: /* opt_file_type */
+#line 166 "bison_parser.y"
+ {
+ }
+#line 2103 "bison_parser.cpp"
+ break;
+
+ case 202: /* export_statement */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).export_stmt));
+ }
+#line 2109 "bison_parser.cpp"
+ break;
+
+ case 203: /* show_statement */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).show_stmt));
+ }
+#line 2115 "bison_parser.cpp"
+ break;
+
+ case 204: /* create_statement */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).create_stmt));
+ }
+#line 2121 "bison_parser.cpp"
+ break;
+
+ case 205: /* opt_not_exists */
+#line 166 "bison_parser.y"
+ {
+ }
+#line 2127 "bison_parser.cpp"
+ break;
+
+ case 206: /* table_elem_commalist */
+#line 169 "bison_parser.y"
+ {
if ((((*yyvaluep).table_element_vec)) != nullptr) {
for (auto ptr : *(((*yyvaluep).table_element_vec))) {
delete ptr;
@@ -2162,114 +1988,142 @@ yydestruct (const char *yymsg,
}
delete (((*yyvaluep).table_element_vec));
}
-#line 2166 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_table_elem: /* table_elem */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).table_element_t)); }
-#line 2172 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_column_def: /* column_def */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).column_t)); }
-#line 2178 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_column_type: /* column_type */
-#line 161 "bison_parser.y"
- { }
-#line 2184 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_opt_time_precision: /* opt_time_precision */
-#line 161 "bison_parser.y"
- { }
-#line 2190 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_opt_decimal_specification: /* opt_decimal_specification */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).ival_pair)); }
-#line 2196 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_opt_column_constraints: /* opt_column_constraints */
-#line 161 "bison_parser.y"
- { }
-#line 2202 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_column_constraint_list: /* column_constraint_list */
-#line 161 "bison_parser.y"
- { }
-#line 2208 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_column_constraint: /* column_constraint */
-#line 161 "bison_parser.y"
- { }
-#line 2214 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_table_constraint: /* table_constraint */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).table_constraint_t)); }
-#line 2220 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_drop_statement: /* drop_statement */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).drop_stmt)); }
-#line 2226 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_opt_exists: /* opt_exists */
-#line 161 "bison_parser.y"
- { }
-#line 2232 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_alter_statement: /* alter_statement */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).alter_stmt)); }
-#line 2238 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_alter_action: /* alter_action */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).alter_action_t)); }
-#line 2244 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_drop_action: /* drop_action */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).drop_action_t)); }
-#line 2250 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_delete_statement: /* delete_statement */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).delete_stmt)); }
-#line 2256 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_truncate_statement: /* truncate_statement */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).delete_stmt)); }
-#line 2262 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_insert_statement: /* insert_statement */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).insert_stmt)); }
-#line 2268 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_opt_column_list: /* opt_column_list */
-#line 164 "bison_parser.y"
- {
+#line 2140 "bison_parser.cpp"
+ break;
+
+ case 207: /* table_elem */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).table_element_t));
+ }
+#line 2146 "bison_parser.cpp"
+ break;
+
+ case 208: /* column_def */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).column_t));
+ }
+#line 2152 "bison_parser.cpp"
+ break;
+
+ case 209: /* column_type */
+#line 166 "bison_parser.y"
+ {
+ }
+#line 2158 "bison_parser.cpp"
+ break;
+
+ case 210: /* opt_time_precision */
+#line 166 "bison_parser.y"
+ {
+ }
+#line 2164 "bison_parser.cpp"
+ break;
+
+ case 211: /* opt_decimal_specification */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).ival_pair));
+ }
+#line 2170 "bison_parser.cpp"
+ break;
+
+ case 212: /* opt_column_constraints */
+#line 166 "bison_parser.y"
+ {
+ }
+#line 2176 "bison_parser.cpp"
+ break;
+
+ case 213: /* column_constraint_list */
+#line 166 "bison_parser.y"
+ {
+ }
+#line 2182 "bison_parser.cpp"
+ break;
+
+ case 214: /* column_constraint */
+#line 166 "bison_parser.y"
+ {
+ }
+#line 2188 "bison_parser.cpp"
+ break;
+
+ case 215: /* table_constraint */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).table_constraint_t));
+ }
+#line 2194 "bison_parser.cpp"
+ break;
+
+ case 216: /* drop_statement */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).drop_stmt));
+ }
+#line 2200 "bison_parser.cpp"
+ break;
+
+ case 217: /* opt_exists */
+#line 166 "bison_parser.y"
+ {
+ }
+#line 2206 "bison_parser.cpp"
+ break;
+
+ case 218: /* alter_statement */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).alter_stmt));
+ }
+#line 2212 "bison_parser.cpp"
+ break;
+
+ case 219: /* alter_action */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).alter_action_t));
+ }
+#line 2218 "bison_parser.cpp"
+ break;
+
+ case 220: /* drop_action */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).drop_action_t));
+ }
+#line 2224 "bison_parser.cpp"
+ break;
+
+ case 221: /* delete_statement */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).delete_stmt));
+ }
+#line 2230 "bison_parser.cpp"
+ break;
+
+ case 222: /* truncate_statement */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).delete_stmt));
+ }
+#line 2236 "bison_parser.cpp"
+ break;
+
+ case 223: /* insert_statement */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).insert_stmt));
+ }
+#line 2242 "bison_parser.cpp"
+ break;
+
+ case 224: /* opt_column_list */
+#line 169 "bison_parser.y"
+ {
if ((((*yyvaluep).str_vec)) != nullptr) {
for (auto ptr : *(((*yyvaluep).str_vec))) {
delete ptr;
@@ -2277,18 +2131,20 @@ yydestruct (const char *yymsg,
}
delete (((*yyvaluep).str_vec));
}
-#line 2281 "bison_parser.cpp"
- break;
+#line 2255 "bison_parser.cpp"
+ break;
- case YYSYMBOL_update_statement: /* update_statement */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).update_stmt)); }
-#line 2287 "bison_parser.cpp"
- break;
+ case 225: /* update_statement */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).update_stmt));
+ }
+#line 2261 "bison_parser.cpp"
+ break;
- case YYSYMBOL_update_clause_commalist: /* update_clause_commalist */
-#line 164 "bison_parser.y"
- {
+ case 226: /* update_clause_commalist */
+#line 169 "bison_parser.y"
+ {
if ((((*yyvaluep).update_vec)) != nullptr) {
for (auto ptr : *(((*yyvaluep).update_vec))) {
delete ptr;
@@ -2296,78 +2152,98 @@ yydestruct (const char *yymsg,
}
delete (((*yyvaluep).update_vec));
}
-#line 2300 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_update_clause: /* update_clause */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).update_t)); }
-#line 2306 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_select_statement: /* select_statement */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).select_stmt)); }
-#line 2312 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_select_within_set_operation: /* select_within_set_operation */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).select_stmt)); }
-#line 2318 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_select_within_set_operation_no_parentheses: /* select_within_set_operation_no_parentheses */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).select_stmt)); }
-#line 2324 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_select_with_paren: /* select_with_paren */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).select_stmt)); }
-#line 2330 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_select_no_paren: /* select_no_paren */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).select_stmt)); }
-#line 2336 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_set_operator: /* set_operator */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).set_operator_t)); }
-#line 2342 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_set_type: /* set_type */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).set_operator_t)); }
-#line 2348 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_opt_all: /* opt_all */
-#line 161 "bison_parser.y"
- { }
-#line 2354 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_select_clause: /* select_clause */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).select_stmt)); }
-#line 2360 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_opt_distinct: /* opt_distinct */
-#line 161 "bison_parser.y"
- { }
-#line 2366 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_select_list: /* select_list */
-#line 164 "bison_parser.y"
- {
+#line 2274 "bison_parser.cpp"
+ break;
+
+ case 227: /* update_clause */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).update_t));
+ }
+#line 2280 "bison_parser.cpp"
+ break;
+
+ case 228: /* select_statement */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).select_stmt));
+ }
+#line 2286 "bison_parser.cpp"
+ break;
+
+ case 229: /* select_within_set_operation */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).select_stmt));
+ }
+#line 2292 "bison_parser.cpp"
+ break;
+
+ case 230: /* select_within_set_operation_no_parentheses */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).select_stmt));
+ }
+#line 2298 "bison_parser.cpp"
+ break;
+
+ case 231: /* select_with_paren */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).select_stmt));
+ }
+#line 2304 "bison_parser.cpp"
+ break;
+
+ case 232: /* select_no_paren */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).select_stmt));
+ }
+#line 2310 "bison_parser.cpp"
+ break;
+
+ case 233: /* set_operator */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).set_operator_t));
+ }
+#line 2316 "bison_parser.cpp"
+ break;
+
+ case 234: /* set_type */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).set_operator_t));
+ }
+#line 2322 "bison_parser.cpp"
+ break;
+
+ case 235: /* opt_all */
+#line 166 "bison_parser.y"
+ {
+ }
+#line 2328 "bison_parser.cpp"
+ break;
+
+ case 236: /* select_clause */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).select_stmt));
+ }
+#line 2334 "bison_parser.cpp"
+ break;
+
+ case 237: /* opt_distinct */
+#line 166 "bison_parser.y"
+ {
+ }
+#line 2340 "bison_parser.cpp"
+ break;
+
+ case 238: /* select_list */
+#line 169 "bison_parser.y"
+ {
if ((((*yyvaluep).expr_vec)) != nullptr) {
for (auto ptr : *(((*yyvaluep).expr_vec))) {
delete ptr;
@@ -2375,42 +2251,52 @@ yydestruct (const char *yymsg,
}
delete (((*yyvaluep).expr_vec));
}
-#line 2379 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_opt_from_clause: /* opt_from_clause */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).table)); }
-#line 2385 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_from_clause: /* from_clause */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).table)); }
-#line 2391 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_opt_where: /* opt_where */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).expr)); }
-#line 2397 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_opt_group: /* opt_group */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).group_t)); }
-#line 2403 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_opt_having: /* opt_having */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).expr)); }
-#line 2409 "bison_parser.cpp"
- break;
+#line 2353 "bison_parser.cpp"
+ break;
+
+ case 239: /* opt_from_clause */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).table));
+ }
+#line 2359 "bison_parser.cpp"
+ break;
+
+ case 240: /* from_clause */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).table));
+ }
+#line 2365 "bison_parser.cpp"
+ break;
+
+ case 241: /* opt_where */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).expr));
+ }
+#line 2371 "bison_parser.cpp"
+ break;
+
+ case 242: /* opt_group */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).group_t));
+ }
+#line 2377 "bison_parser.cpp"
+ break;
+
+ case 243: /* opt_having */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).expr));
+ }
+#line 2383 "bison_parser.cpp"
+ break;
- case YYSYMBOL_opt_order: /* opt_order */
-#line 164 "bison_parser.y"
- {
+ case 244: /* opt_order */
+#line 169 "bison_parser.y"
+ {
if ((((*yyvaluep).order_vec)) != nullptr) {
for (auto ptr : *(((*yyvaluep).order_vec))) {
delete ptr;
@@ -2418,12 +2304,12 @@ yydestruct (const char *yymsg,
}
delete (((*yyvaluep).order_vec));
}
-#line 2422 "bison_parser.cpp"
- break;
+#line 2396 "bison_parser.cpp"
+ break;
- case YYSYMBOL_order_list: /* order_list */
-#line 164 "bison_parser.y"
- {
+ case 245: /* order_list */
+#line 169 "bison_parser.y"
+ {
if ((((*yyvaluep).order_vec)) != nullptr) {
for (auto ptr : *(((*yyvaluep).order_vec))) {
delete ptr;
@@ -2431,382 +2317,522 @@ yydestruct (const char *yymsg,
}
delete (((*yyvaluep).order_vec));
}
-#line 2435 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_order_desc: /* order_desc */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).order)); }
-#line 2441 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_opt_order_type: /* opt_order_type */
-#line 161 "bison_parser.y"
- { }
-#line 2447 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_opt_top: /* opt_top */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).limit)); }
-#line 2453 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_opt_limit: /* opt_limit */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).limit)); }
+#line 2409 "bison_parser.cpp"
+ break;
+
+ case 246: /* order_desc */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).order));
+ }
+#line 2415 "bison_parser.cpp"
+ break;
+
+ case 247: /* opt_order_type */
+#line 166 "bison_parser.y"
+ {
+ }
+#line 2421 "bison_parser.cpp"
+ break;
+
+ case 248: /* opt_top */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).limit));
+ }
+#line 2427 "bison_parser.cpp"
+ break;
+
+ case 249: /* opt_limit */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).limit));
+ }
+#line 2433 "bison_parser.cpp"
+ break;
+
+ case 250: /* expr_list */
+#line 169 "bison_parser.y"
+ {
+ if ((((*yyvaluep).expr_vec)) != nullptr) {
+ for (auto ptr : *(((*yyvaluep).expr_vec))) {
+ delete ptr;
+ }
+ }
+ delete (((*yyvaluep).expr_vec));
+ }
+#line 2446 "bison_parser.cpp"
+ break;
+
+ case 251: /* opt_literal_list */
+#line 169 "bison_parser.y"
+ {
+ if ((((*yyvaluep).expr_vec)) != nullptr) {
+ for (auto ptr : *(((*yyvaluep).expr_vec))) {
+ delete ptr;
+ }
+ }
+ delete (((*yyvaluep).expr_vec));
+ }
#line 2459 "bison_parser.cpp"
- break;
+ break;
+
+ case 252: /* literal_list */
+#line 169 "bison_parser.y"
+ {
+ if ((((*yyvaluep).expr_vec)) != nullptr) {
+ for (auto ptr : *(((*yyvaluep).expr_vec))) {
+ delete ptr;
+ }
+ }
+ delete (((*yyvaluep).expr_vec));
+ }
+#line 2472 "bison_parser.cpp"
+ break;
+
+ case 253: /* expr_alias */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).expr));
+ }
+#line 2478 "bison_parser.cpp"
+ break;
+
+ case 254: /* expr */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).expr));
+ }
+#line 2484 "bison_parser.cpp"
+ break;
+
+ case 255: /* operand */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).expr));
+ }
+#line 2490 "bison_parser.cpp"
+ break;
+
+ case 256: /* scalar_expr */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).expr));
+ }
+#line 2496 "bison_parser.cpp"
+ break;
+
+ case 257: /* unary_expr */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).expr));
+ }
+#line 2502 "bison_parser.cpp"
+ break;
+
+ case 258: /* binary_expr */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).expr));
+ }
+#line 2508 "bison_parser.cpp"
+ break;
+
+ case 259: /* logic_expr */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).expr));
+ }
+#line 2514 "bison_parser.cpp"
+ break;
+
+ case 260: /* in_expr */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).expr));
+ }
+#line 2520 "bison_parser.cpp"
+ break;
+
+ case 261: /* case_expr */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).expr));
+ }
+#line 2526 "bison_parser.cpp"
+ break;
+
+ case 262: /* case_list */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).expr));
+ }
+#line 2532 "bison_parser.cpp"
+ break;
+
+ case 263: /* exists_expr */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).expr));
+ }
+#line 2538 "bison_parser.cpp"
+ break;
+
+ case 264: /* comp_expr */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).expr));
+ }
+#line 2544 "bison_parser.cpp"
+ break;
+
+ case 265: /* function_expr */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).expr));
+ }
+#line 2550 "bison_parser.cpp"
+ break;
+
+ case 266: /* extract_expr */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).expr));
+ }
+#line 2556 "bison_parser.cpp"
+ break;
+
+ case 267: /* cast_expr */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).expr));
+ }
+#line 2562 "bison_parser.cpp"
+ break;
+
+ case 268: /* datetime_field */
+#line 166 "bison_parser.y"
+ {
+ }
+#line 2568 "bison_parser.cpp"
+ break;
+
+ case 269: /* datetime_field_plural */
+#line 166 "bison_parser.y"
+ {
+ }
+#line 2574 "bison_parser.cpp"
+ break;
+
+ case 270: /* duration_field */
+#line 166 "bison_parser.y"
+ {
+ }
+#line 2580 "bison_parser.cpp"
+ break;
+
+ case 271: /* array_expr */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).expr));
+ }
+#line 2586 "bison_parser.cpp"
+ break;
+
+ case 272: /* array_index */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).expr));
+ }
+#line 2592 "bison_parser.cpp"
+ break;
+
+ case 273: /* between_expr */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).expr));
+ }
+#line 2598 "bison_parser.cpp"
+ break;
+
+ case 274: /* column_name */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).expr));
+ }
+#line 2604 "bison_parser.cpp"
+ break;
+
+ case 275: /* literal */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).expr));
+ }
+#line 2610 "bison_parser.cpp"
+ break;
+
+ case 276: /* string_literal */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).expr));
+ }
+#line 2616 "bison_parser.cpp"
+ break;
+
+ case 277: /* bool_literal */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).expr));
+ }
+#line 2622 "bison_parser.cpp"
+ break;
+
+ case 278: /* num_literal */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).expr));
+ }
+#line 2628 "bison_parser.cpp"
+ break;
+
+ case 279: /* int_literal */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).expr));
+ }
+#line 2634 "bison_parser.cpp"
+ break;
+
+ case 280: /* null_literal */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).expr));
+ }
+#line 2640 "bison_parser.cpp"
+ break;
+
+ case 281: /* date_literal */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).expr));
+ }
+#line 2646 "bison_parser.cpp"
+ break;
+
+ case 282: /* interval_literal */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).expr));
+ }
+#line 2652 "bison_parser.cpp"
+ break;
+
+ case 283: /* param_expr */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).expr));
+ }
+#line 2658 "bison_parser.cpp"
+ break;
+
+ case 284: /* table_ref */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).table));
+ }
+#line 2664 "bison_parser.cpp"
+ break;
+
+ case 285: /* table_ref_atomic */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).table));
+ }
+#line 2670 "bison_parser.cpp"
+ break;
+
+ case 286: /* nonjoin_table_ref_atomic */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).table));
+ }
+#line 2676 "bison_parser.cpp"
+ break;
+
+ case 287: /* table_ref_commalist */
+#line 169 "bison_parser.y"
+ {
+ if ((((*yyvaluep).table_vec)) != nullptr) {
+ for (auto ptr : *(((*yyvaluep).table_vec))) {
+ delete ptr;
+ }
+ }
+ delete (((*yyvaluep).table_vec));
+ }
+#line 2689 "bison_parser.cpp"
+ break;
+
+ case 288: /* table_ref_name */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).table));
+ }
+#line 2695 "bison_parser.cpp"
+ break;
+
+ case 289: /* table_ref_name_no_alias */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).table));
+ }
+#line 2701 "bison_parser.cpp"
+ break;
+
+ case 290: /* table_name */
+#line 167 "bison_parser.y"
+ {
+ free((((*yyvaluep).table_name).name));
+ free((((*yyvaluep).table_name).schema));
+ }
+#line 2707 "bison_parser.cpp"
+ break;
+
+ case 291: /* opt_index_name */
+#line 168 "bison_parser.y"
+ {
+ free((((*yyvaluep).sval)));
+ }
+#line 2713 "bison_parser.cpp"
+ break;
+
+ case 292: /* table_alias */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).alias_t));
+ }
+#line 2719 "bison_parser.cpp"
+ break;
+
+ case 293: /* opt_table_alias */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).alias_t));
+ }
+#line 2725 "bison_parser.cpp"
+ break;
+
+ case 294: /* alias */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).alias_t));
+ }
+#line 2731 "bison_parser.cpp"
+ break;
+
+ case 295: /* opt_alias */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).alias_t));
+ }
+#line 2737 "bison_parser.cpp"
+ break;
+
+ case 296: /* opt_locking_clause */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).locking_clause_vec));
+ }
+#line 2743 "bison_parser.cpp"
+ break;
+
+ case 297: /* opt_locking_clause_list */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).locking_clause_vec));
+ }
+#line 2749 "bison_parser.cpp"
+ break;
+
+ case 298: /* locking_clause */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).locking_t));
+ }
+#line 2755 "bison_parser.cpp"
+ break;
+
+ case 299: /* row_lock_mode */
+#line 166 "bison_parser.y"
+ {
+ }
+#line 2761 "bison_parser.cpp"
+ break;
+
+ case 300: /* opt_row_lock_policy */
+#line 166 "bison_parser.y"
+ {
+ }
+#line 2767 "bison_parser.cpp"
+ break;
+
+ case 301: /* opt_with_clause */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).with_description_vec));
+ }
+#line 2773 "bison_parser.cpp"
+ break;
+
+ case 302: /* with_clause */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).with_description_vec));
+ }
+#line 2779 "bison_parser.cpp"
+ break;
+
+ case 303: /* with_description_list */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).with_description_vec));
+ }
+#line 2785 "bison_parser.cpp"
+ break;
- case YYSYMBOL_expr_list: /* expr_list */
-#line 164 "bison_parser.y"
- {
- if ((((*yyvaluep).expr_vec)) != nullptr) {
- for (auto ptr : *(((*yyvaluep).expr_vec))) {
- delete ptr;
- }
- }
- delete (((*yyvaluep).expr_vec));
+ case 304: /* with_description */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).with_description_t));
}
-#line 2472 "bison_parser.cpp"
- break;
+#line 2791 "bison_parser.cpp"
+ break;
- case YYSYMBOL_opt_literal_list: /* opt_literal_list */
-#line 164 "bison_parser.y"
- {
- if ((((*yyvaluep).expr_vec)) != nullptr) {
- for (auto ptr : *(((*yyvaluep).expr_vec))) {
- delete ptr;
- }
- }
- delete (((*yyvaluep).expr_vec));
+ case 305: /* join_clause */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).table));
}
-#line 2485 "bison_parser.cpp"
- break;
+#line 2797 "bison_parser.cpp"
+ break;
- case YYSYMBOL_literal_list: /* literal_list */
-#line 164 "bison_parser.y"
- {
- if ((((*yyvaluep).expr_vec)) != nullptr) {
- for (auto ptr : *(((*yyvaluep).expr_vec))) {
- delete ptr;
- }
- }
- delete (((*yyvaluep).expr_vec));
+ case 306: /* opt_join_type */
+#line 166 "bison_parser.y"
+ {
}
-#line 2498 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_expr_alias: /* expr_alias */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).expr)); }
-#line 2504 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_expr: /* expr */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).expr)); }
-#line 2510 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_operand: /* operand */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).expr)); }
-#line 2516 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_scalar_expr: /* scalar_expr */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).expr)); }
-#line 2522 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_unary_expr: /* unary_expr */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).expr)); }
-#line 2528 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_binary_expr: /* binary_expr */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).expr)); }
-#line 2534 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_logic_expr: /* logic_expr */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).expr)); }
-#line 2540 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_in_expr: /* in_expr */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).expr)); }
-#line 2546 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_case_expr: /* case_expr */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).expr)); }
-#line 2552 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_case_list: /* case_list */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).expr)); }
-#line 2558 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_exists_expr: /* exists_expr */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).expr)); }
-#line 2564 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_comp_expr: /* comp_expr */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).expr)); }
-#line 2570 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_function_expr: /* function_expr */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).expr)); }
-#line 2576 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_extract_expr: /* extract_expr */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).expr)); }
-#line 2582 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_cast_expr: /* cast_expr */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).expr)); }
-#line 2588 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_datetime_field: /* datetime_field */
-#line 161 "bison_parser.y"
- { }
-#line 2594 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_datetime_field_plural: /* datetime_field_plural */
-#line 161 "bison_parser.y"
- { }
-#line 2600 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_duration_field: /* duration_field */
-#line 161 "bison_parser.y"
- { }
-#line 2606 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_array_expr: /* array_expr */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).expr)); }
-#line 2612 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_array_index: /* array_index */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).expr)); }
-#line 2618 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_between_expr: /* between_expr */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).expr)); }
-#line 2624 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_column_name: /* column_name */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).expr)); }
-#line 2630 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_literal: /* literal */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).expr)); }
-#line 2636 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_string_literal: /* string_literal */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).expr)); }
-#line 2642 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_bool_literal: /* bool_literal */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).expr)); }
-#line 2648 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_num_literal: /* num_literal */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).expr)); }
-#line 2654 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_int_literal: /* int_literal */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).expr)); }
-#line 2660 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_null_literal: /* null_literal */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).expr)); }
-#line 2666 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_date_literal: /* date_literal */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).expr)); }
-#line 2672 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_interval_literal: /* interval_literal */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).expr)); }
-#line 2678 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_param_expr: /* param_expr */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).expr)); }
-#line 2684 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_table_ref: /* table_ref */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).table)); }
-#line 2690 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_table_ref_atomic: /* table_ref_atomic */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).table)); }
-#line 2696 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_nonjoin_table_ref_atomic: /* nonjoin_table_ref_atomic */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).table)); }
-#line 2702 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_table_ref_commalist: /* table_ref_commalist */
-#line 164 "bison_parser.y"
- {
- if ((((*yyvaluep).table_vec)) != nullptr) {
- for (auto ptr : *(((*yyvaluep).table_vec))) {
- delete ptr;
- }
- }
- delete (((*yyvaluep).table_vec));
+#line 2803 "bison_parser.cpp"
+ break;
+
+ case 307: /* join_condition */
+#line 177 "bison_parser.y"
+ {
+ delete (((*yyvaluep).expr));
}
-#line 2715 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_table_ref_name: /* table_ref_name */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).table)); }
-#line 2721 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_table_ref_name_no_alias: /* table_ref_name_no_alias */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).table)); }
-#line 2727 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_table_name: /* table_name */
-#line 162 "bison_parser.y"
- { free( (((*yyvaluep).table_name).name) ); free( (((*yyvaluep).table_name).schema) ); }
-#line 2733 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_opt_index_name: /* opt_index_name */
-#line 163 "bison_parser.y"
- { free( (((*yyvaluep).sval)) ); }
-#line 2739 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_table_alias: /* table_alias */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).alias_t)); }
-#line 2745 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_opt_table_alias: /* opt_table_alias */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).alias_t)); }
-#line 2751 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_alias: /* alias */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).alias_t)); }
-#line 2757 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_opt_alias: /* opt_alias */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).alias_t)); }
-#line 2763 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_opt_with_clause: /* opt_with_clause */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).with_description_vec)); }
-#line 2769 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_with_clause: /* with_clause */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).with_description_vec)); }
-#line 2775 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_with_description_list: /* with_description_list */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).with_description_vec)); }
-#line 2781 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_with_description: /* with_description */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).with_description_t)); }
-#line 2787 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_join_clause: /* join_clause */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).table)); }
-#line 2793 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_opt_join_type: /* opt_join_type */
-#line 161 "bison_parser.y"
- { }
-#line 2799 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_join_condition: /* join_condition */
-#line 172 "bison_parser.y"
- { delete (((*yyvaluep).expr)); }
-#line 2805 "bison_parser.cpp"
- break;
-
- case YYSYMBOL_ident_commalist: /* ident_commalist */
-#line 164 "bison_parser.y"
- {
+#line 2809 "bison_parser.cpp"
+ break;
+
+ case 309: /* ident_commalist */
+#line 169 "bison_parser.y"
+ {
if ((((*yyvaluep).str_vec)) != nullptr) {
for (auto ptr : *(((*yyvaluep).str_vec))) {
delete ptr;
@@ -2814,120 +2840,126 @@ yydestruct (const char *yymsg,
}
delete (((*yyvaluep).str_vec));
}
-#line 2818 "bison_parser.cpp"
- break;
+#line 2822 "bison_parser.cpp"
+ break;
- default:
- break;
- }
+ default:
+ break;
+ }
YY_IGNORE_MAYBE_UNINITIALIZED_END
}
-
-
-
-
-
/*----------.
| yyparse. |
`----------*/
-int
-yyparse (hsql::SQLParserResult* result, yyscan_t scanner)
-{
-/* Lookahead token kind. */
-int yychar;
-
+int yyparse(hsql::SQLParserResult* result, yyscan_t scanner) {
+ /* The lookahead symbol. */
+ int yychar;
-/* The semantic value of the lookahead symbol. */
-/* Default value used for initialization, for pacifying older GCCs
+ /* The semantic value of the lookahead symbol. */
+ /* Default value used for initialization, for pacifying older GCCs
or non-GCC compilers. */
-YY_INITIAL_VALUE (static YYSTYPE yyval_default;)
-YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default);
+ YY_INITIAL_VALUE(static YYSTYPE yyval_default;)
+ YYSTYPE yylval YY_INITIAL_VALUE(= yyval_default);
+
+ /* Location data for the lookahead symbol. */
+ static YYLTYPE yyloc_default
+#if defined HSQL_LTYPE_IS_TRIVIAL && HSQL_LTYPE_IS_TRIVIAL
+ = { 1,
+ 1,
+ 1,
+ 1 }
+#endif
+ ;
+ YYLTYPE yylloc = yyloc_default;
-/* Location data for the lookahead symbol. */
-static YYLTYPE yyloc_default
-# if defined HSQL_LTYPE_IS_TRIVIAL && HSQL_LTYPE_IS_TRIVIAL
- = { 1, 1, 1, 1 }
-# endif
-;
-YYLTYPE yylloc = yyloc_default;
+ /* Number of syntax errors so far. */
+ int yynerrs;
- /* Number of syntax errors so far. */
- int yynerrs = 0;
+ yy_state_fast_t yystate;
+ /* Number of tokens to shift before error messages enabled. */
+ int yyerrstatus;
- yy_state_fast_t yystate = 0;
- /* Number of tokens to shift before error messages enabled. */
- int yyerrstatus = 0;
+ /* The stacks and their tools:
+ 'yyss': related to states.
+ 'yyvs': related to semantic values.
+ 'yyls': related to locations.
- /* Refer to the stacks through separate pointers, to allow yyoverflow
+ Refer to the stacks through separate pointers, to allow yyoverflow
to reallocate them elsewhere. */
- /* Their size. */
- YYPTRDIFF_T yystacksize = YYINITDEPTH;
+ /* The state stack. */
+ yy_state_t yyssa[YYINITDEPTH];
+ yy_state_t* yyss;
+ yy_state_t* yyssp;
- /* The state stack: array, bottom, top. */
- yy_state_t yyssa[YYINITDEPTH];
- yy_state_t *yyss = yyssa;
- yy_state_t *yyssp = yyss;
+ /* The semantic value stack. */
+ YYSTYPE yyvsa[YYINITDEPTH];
+ YYSTYPE* yyvs;
+ YYSTYPE* yyvsp;
- /* The semantic value stack: array, bottom, top. */
- YYSTYPE yyvsa[YYINITDEPTH];
- YYSTYPE *yyvs = yyvsa;
- YYSTYPE *yyvsp = yyvs;
+ /* The location stack. */
+ YYLTYPE yylsa[YYINITDEPTH];
+ YYLTYPE* yyls;
+ YYLTYPE* yylsp;
- /* The location stack: array, bottom, top. */
- YYLTYPE yylsa[YYINITDEPTH];
- YYLTYPE *yyls = yylsa;
- YYLTYPE *yylsp = yyls;
+ /* The locations where the error started and ended. */
+ YYLTYPE yyerror_range[3];
+
+ YYPTRDIFF_T yystacksize;
int yyn;
- /* The return value of yyparse. */
int yyresult;
- /* Lookahead symbol kind. */
- yysymbol_kind_t yytoken = YYSYMBOL_YYEMPTY;
+ /* Lookahead token as an internal (translated) token number. */
+ int yytoken = 0;
/* The variables used to return semantic value and location from the
action routines. */
YYSTYPE yyval;
YYLTYPE yyloc;
- /* The locations where the error started and ended. */
- YYLTYPE yyerror_range[3];
-
+#if YYERROR_VERBOSE
/* Buffer for error messages, and its allocated size. */
char yymsgbuf[128];
- char *yymsg = yymsgbuf;
+ char* yymsg = yymsgbuf;
YYPTRDIFF_T yymsg_alloc = sizeof yymsgbuf;
+#endif
-#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N), yylsp -= (N))
+#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N), yylsp -= (N))
/* 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"));
+ yyssp = yyss = yyssa;
+ yyvsp = yyvs = yyvsa;
+ yylsp = yyls = yylsa;
+ yystacksize = YYINITDEPTH;
- yychar = SQL_HSQL_EMPTY; /* Cause a token to be read. */
+ YYDPRINTF((stderr, "Starting parse\n"));
+ yystate = 0;
+ yyerrstatus = 0;
+ yynerrs = 0;
+ yychar = YYEMPTY; /* Cause a token to be read. */
/* User initialization code. */
#line 77 "bison_parser.y"
-{
- // Initialize
- yylloc.first_column = 0;
- yylloc.last_column = 0;
- yylloc.first_line = 0;
- yylloc.last_line = 0;
- yylloc.total_column = 0;
- yylloc.string_length = 0;
-}
+ {
+ // Initialize
+ yylloc.first_column = 0;
+ yylloc.last_column = 0;
+ yylloc.first_line = 0;
+ yylloc.last_line = 0;
+ yylloc.total_column = 0;
+ yylloc.string_length = 0;
+ }
-#line 2926 "bison_parser.cpp"
+#line 2940 "bison_parser.cpp"
yylsp[0] = yylloc;
goto yysetstate;
-
/*------------------------------------------------------------.
| yynewstate -- push a new state, which is found in yystate. |
`------------------------------------------------------------*/
@@ -2936,93 +2968,77 @@ YYLTYPE yylloc = yyloc_default;
have just been pushed. So pushing a state here evens the stacks. */
yyssp++;
-
/*--------------------------------------------------------------------.
| yysetstate -- set current state (the top of the stack) to yystate. |
`--------------------------------------------------------------------*/
yysetstate:
- YYDPRINTF ((stderr, "Entering state %d\n", yystate));
- YY_ASSERT (0 <= yystate && yystate < YYNSTATES);
+ YYDPRINTF((stderr, "Entering state %d\n", yystate));
+ YY_ASSERT(0 <= yystate && yystate < YYNSTATES);
YY_IGNORE_USELESS_CAST_BEGIN
- *yyssp = YY_CAST (yy_state_t, yystate);
+ *yyssp = YY_CAST(yy_state_t, yystate);
YY_IGNORE_USELESS_CAST_END
- YY_STACK_PRINT (yyss, yyssp);
if (yyss + yystacksize - 1 <= yyssp)
#if !defined yyoverflow && !defined YYSTACK_RELOCATE
- YYNOMEM;
+ goto yyexhaustedlab;
#else
- {
- /* Get the current used size of the three stacks, in elements. */
- YYPTRDIFF_T yysize = yyssp - yyss + 1;
+ {
+ /* Get the current used size of the three stacks, in elements. */
+ YYPTRDIFF_T yysize = yyssp - yyss + 1;
-# if defined yyoverflow
- {
- /* Give user a chance to reallocate the stack. Use copies of
+#if defined 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. */
- yy_state_t *yyss1 = yyss;
- YYSTYPE *yyvs1 = yyvs;
- YYLTYPE *yyls1 = yyls;
+ yy_state_t* yyss1 = yyss;
+ YYSTYPE* yyvs1 = yyvs;
+ YYLTYPE* yyls1 = yyls;
- /* Each stack pointer address is followed by the size of the
+ /* Each stack pointer address is followed by the size of the
data in use in that stack, in bytes. This used to be a
conditional around just the two extra args, but that might
be undefined if yyoverflow is a macro. */
- yyoverflow (YY_("memory exhausted"),
- &yyss1, yysize * YYSIZEOF (*yyssp),
- &yyvs1, yysize * YYSIZEOF (*yyvsp),
- &yyls1, yysize * YYSIZEOF (*yylsp),
- &yystacksize);
- yyss = yyss1;
- yyvs = yyvs1;
- yyls = yyls1;
- }
-# else /* defined YYSTACK_RELOCATE */
- /* Extend the stack our own way. */
- if (YYMAXDEPTH <= yystacksize)
- YYNOMEM;
- yystacksize *= 2;
- if (YYMAXDEPTH < yystacksize)
- yystacksize = YYMAXDEPTH;
-
- {
- yy_state_t *yyss1 = yyss;
- union yyalloc *yyptr =
- YY_CAST (union yyalloc *,
- YYSTACK_ALLOC (YY_CAST (YYSIZE_T, YYSTACK_BYTES (yystacksize))));
- if (! yyptr)
- YYNOMEM;
- YYSTACK_RELOCATE (yyss_alloc, yyss);
- YYSTACK_RELOCATE (yyvs_alloc, yyvs);
- YYSTACK_RELOCATE (yyls_alloc, yyls);
-# undef YYSTACK_RELOCATE
- if (yyss1 != yyssa)
- YYSTACK_FREE (yyss1);
- }
-# endif
+ yyoverflow(YY_("memory exhausted"), &yyss1, yysize * YYSIZEOF(*yyssp), &yyvs1, yysize * YYSIZEOF(*yyvsp), &yyls1,
+ yysize * YYSIZEOF(*yylsp), &yystacksize);
+ yyss = yyss1;
+ yyvs = yyvs1;
+ yyls = yyls1;
+ }
+#else /* defined YYSTACK_RELOCATE */
+ /* Extend the stack our own way. */
+ if (YYMAXDEPTH <= yystacksize) goto yyexhaustedlab;
+ yystacksize *= 2;
+ if (YYMAXDEPTH < yystacksize) yystacksize = YYMAXDEPTH;
- yyssp = yyss + yysize - 1;
- yyvsp = yyvs + yysize - 1;
- yylsp = yyls + yysize - 1;
+ {
+ yy_state_t* yyss1 = yyss;
+ union yyalloc* yyptr = YY_CAST(union yyalloc*, YYSTACK_ALLOC(YY_CAST(YYSIZE_T, YYSTACK_BYTES(yystacksize))));
+ if (!yyptr) goto yyexhaustedlab;
+ YYSTACK_RELOCATE(yyss_alloc, yyss);
+ YYSTACK_RELOCATE(yyvs_alloc, yyvs);
+ YYSTACK_RELOCATE(yyls_alloc, yyls);
+#undef YYSTACK_RELOCATE
+ if (yyss1 != yyssa) YYSTACK_FREE(yyss1);
+ }
+#endif
- YY_IGNORE_USELESS_CAST_BEGIN
- YYDPRINTF ((stderr, "Stack size increased to %ld\n",
- YY_CAST (long, yystacksize)));
- YY_IGNORE_USELESS_CAST_END
+ yyssp = yyss + yysize - 1;
+ yyvsp = yyvs + yysize - 1;
+ yylsp = yyls + yysize - 1;
- if (yyss + yystacksize - 1 <= yyssp)
- YYABORT;
- }
-#endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */
+ YY_IGNORE_USELESS_CAST_BEGIN
+ YYDPRINTF((stderr, "Stack size increased to %ld\n", YY_CAST(long, yystacksize)));
+ YY_IGNORE_USELESS_CAST_END
+ if (yyss + yystacksize - 1 <= yyssp) YYABORT;
+ }
+#endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */
- if (yystate == YYFINAL)
- YYACCEPT;
+ if (yystate == YYFINAL) YYACCEPT;
goto yybackup;
-
/*-----------.
| yybackup. |
`-----------*/
@@ -3032,62 +3048,41 @@ YYLTYPE yylloc = yyloc_default;
/* First try to decide what to do without reference to lookahead token. */
yyn = yypact[yystate];
- if (yypact_value_is_default (yyn))
- goto yydefault;
+ if (yypact_value_is_default(yyn)) goto yydefault;
/* Not known => get a lookahead token if don't already have one. */
- /* YYCHAR is either empty, or end-of-input, or a valid lookahead. */
- if (yychar == SQL_HSQL_EMPTY)
- {
- YYDPRINTF ((stderr, "Reading a token\n"));
- yychar = yylex (&yylval, &yylloc, scanner);
- }
+ /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
+ if (yychar == YYEMPTY) {
+ YYDPRINTF((stderr, "Reading a token: "));
+ yychar = yylex(&yylval, &yylloc, scanner);
+ }
- if (yychar <= SQL_YYEOF)
- {
- yychar = SQL_YYEOF;
- yytoken = YYSYMBOL_YYEOF;
- YYDPRINTF ((stderr, "Now at end of input.\n"));
- }
- else if (yychar == SQL_HSQL_error)
- {
- /* The scanner already issued an error message, process directly
- to error recovery. But do not keep the error token as
- lookahead, it is too special and may lead us to an endless
- loop in error recovery. */
- yychar = SQL_HSQL_UNDEF;
- yytoken = YYSYMBOL_YYerror;
- yyerror_range[1] = yylloc;
- goto yyerrlab1;
- }
- else
- {
- yytoken = YYTRANSLATE (yychar);
- YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
- }
+ 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;
+ if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) goto yydefault;
yyn = yytable[yyn];
- if (yyn <= 0)
- {
- if (yytable_value_is_error (yyn))
- goto yyerrlab;
- yyn = -yyn;
- goto yyreduce;
- }
+ if (yyn <= 0) {
+ if (yytable_value_is_error(yyn)) goto yyerrlab;
+ yyn = -yyn;
+ goto yyreduce;
+ }
/* Count tokens shifted since error; after three, turn off error
status. */
- if (yyerrstatus)
- yyerrstatus--;
+ if (yyerrstatus) yyerrstatus--;
/* Shift the lookahead token. */
- YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
+ YY_SYMBOL_PRINT("Shifting", yytoken, &yylval, &yylloc);
yystate = yyn;
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
*++yyvsp = yylval;
@@ -3095,20 +3090,17 @@ YYLTYPE yylloc = yyloc_default;
*++yylsp = yylloc;
/* Discard the shifted token. */
- yychar = SQL_HSQL_EMPTY;
+ yychar = YYEMPTY;
goto yynewstate;
-
/*-----------------------------------------------------------.
| yydefault -- do the default action for the current state. |
`-----------------------------------------------------------*/
yydefault:
yyn = yydefact[yystate];
- if (yyn == 0)
- goto yyerrlab;
+ if (yyn == 0) goto yyerrlab;
goto yyreduce;
-
/*-----------------------------.
| yyreduce -- do a reduction. |
`-----------------------------*/
@@ -3124,2001 +3116,2469 @@ YYLTYPE yylloc = yyloc_default;
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];
+ yyval = yyvsp[1 - yylen];
/* Default location. */
- YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen);
+ YYLLOC_DEFAULT(yyloc, (yylsp - yylen), yylen);
yyerror_range[1] = yyloc;
- YY_REDUCE_PRINT (yyn);
- switch (yyn)
- {
- case 2: /* input: statement_list opt_semicolon */
-#line 294 "bison_parser.y"
- {
- for (SQLStatement* stmt : *(yyvsp[-1].stmt_vec)) {
- // Transfers ownership of the statement.
- result->addStatement(stmt);
- }
+ YY_REDUCE_PRINT(yyn);
+ switch (yyn) {
+ case 2:
+#line 304 "bison_parser.y"
+ {
+ for (SQLStatement* stmt : *(yyvsp[-1].stmt_vec)) {
+ // Transfers ownership of the statement.
+ result->addStatement(stmt);
+ }
- unsigned param_id = 0;
- for (void* param : yyloc.param_list) {
- if (param != nullptr) {
- Expr* expr = (Expr*)param;
- expr->ival = param_id;
- result->addParameter(expr);
- ++param_id;
+ unsigned param_id = 0;
+ for (void* param : yyloc.param_list) {
+ if (param != nullptr) {
+ Expr* expr = (Expr*)param;
+ expr->ival = param_id;
+ result->addParameter(expr);
+ ++param_id;
+ }
+ }
+ delete (yyvsp[-1].stmt_vec);
}
- }
- delete (yyvsp[-1].stmt_vec);
- }
#line 3155 "bison_parser.cpp"
break;
- case 3: /* statement_list: statement */
-#line 313 "bison_parser.y"
- {
- (yyvsp[0].statement)->stringLength = yylloc.string_length;
- yylloc.string_length = 0;
- (yyval.stmt_vec) = new std::vector();
- (yyval.stmt_vec)->push_back((yyvsp[0].statement));
-}
+ case 3:
+#line 323 "bison_parser.y"
+ {
+ (yyvsp[0].statement)->stringLength = yylloc.string_length;
+ yylloc.string_length = 0;
+ (yyval.stmt_vec) = new std::vector();
+ (yyval.stmt_vec)->push_back((yyvsp[0].statement));
+ }
#line 3166 "bison_parser.cpp"
break;
- case 4: /* statement_list: statement_list ';' statement */
-#line 319 "bison_parser.y"
- {
- (yyvsp[0].statement)->stringLength = yylloc.string_length;
- yylloc.string_length = 0;
- (yyvsp[-2].stmt_vec)->push_back((yyvsp[0].statement));
- (yyval.stmt_vec) = (yyvsp[-2].stmt_vec);
-}
+ case 4:
+#line 329 "bison_parser.y"
+ {
+ (yyvsp[0].statement)->stringLength = yylloc.string_length;
+ yylloc.string_length = 0;
+ (yyvsp[-2].stmt_vec)->push_back((yyvsp[0].statement));
+ (yyval.stmt_vec) = (yyvsp[-2].stmt_vec);
+ }
#line 3177 "bison_parser.cpp"
break;
- case 5: /* statement: prepare_statement opt_hints */
-#line 326 "bison_parser.y"
- {
- (yyval.statement) = (yyvsp[-1].prep_stmt);
- (yyval.statement)->hints = (yyvsp[0].expr_vec);
-}
+ case 5:
+#line 336 "bison_parser.y"
+ {
+ (yyval.statement) = (yyvsp[-1].prep_stmt);
+ (yyval.statement)->hints = (yyvsp[0].expr_vec);
+ }
#line 3186 "bison_parser.cpp"
break;
- case 6: /* statement: preparable_statement opt_hints */
-#line 330 "bison_parser.y"
- {
- (yyval.statement) = (yyvsp[-1].statement);
- (yyval.statement)->hints = (yyvsp[0].expr_vec);
-}
+ case 6:
+#line 340 "bison_parser.y"
+ {
+ (yyval.statement) = (yyvsp[-1].statement);
+ (yyval.statement)->hints = (yyvsp[0].expr_vec);
+ }
#line 3195 "bison_parser.cpp"
break;
- case 7: /* statement: show_statement */
-#line 334 "bison_parser.y"
- { (yyval.statement) = (yyvsp[0].show_stmt); }
+ case 7:
+#line 344 "bison_parser.y"
+ {
+ (yyval.statement) = (yyvsp[0].show_stmt);
+ }
#line 3201 "bison_parser.cpp"
break;
- case 8: /* statement: import_statement */
-#line 335 "bison_parser.y"
- { (yyval.statement) = (yyvsp[0].import_stmt); }
+ case 8:
+#line 345 "bison_parser.y"
+ {
+ (yyval.statement) = (yyvsp[0].import_stmt);
+ }
#line 3207 "bison_parser.cpp"
break;
- case 9: /* statement: export_statement */
-#line 336 "bison_parser.y"
- { (yyval.statement) = (yyvsp[0].export_stmt); }
+ case 9:
+#line 346 "bison_parser.y"
+ {
+ (yyval.statement) = (yyvsp[0].export_stmt);
+ }
#line 3213 "bison_parser.cpp"
break;
- case 10: /* preparable_statement: select_statement */
-#line 338 "bison_parser.y"
- { (yyval.statement) = (yyvsp[0].select_stmt); }
+ case 10:
+#line 348 "bison_parser.y"
+ {
+ (yyval.statement) = (yyvsp[0].select_stmt);
+ }
#line 3219 "bison_parser.cpp"
break;
- case 11: /* preparable_statement: create_statement */
-#line 339 "bison_parser.y"
- { (yyval.statement) = (yyvsp[0].create_stmt); }
+ case 11:
+#line 349 "bison_parser.y"
+ {
+ (yyval.statement) = (yyvsp[0].create_stmt);
+ }
#line 3225 "bison_parser.cpp"
break;
- case 12: /* preparable_statement: insert_statement */
-#line 340 "bison_parser.y"
- { (yyval.statement) = (yyvsp[0].insert_stmt); }
+ case 12:
+#line 350 "bison_parser.y"
+ {
+ (yyval.statement) = (yyvsp[0].insert_stmt);
+ }
#line 3231 "bison_parser.cpp"
break;
- case 13: /* preparable_statement: delete_statement */
-#line 341 "bison_parser.y"
- { (yyval.statement) = (yyvsp[0].delete_stmt); }
+ case 13:
+#line 351 "bison_parser.y"
+ {
+ (yyval.statement) = (yyvsp[0].delete_stmt);
+ }
#line 3237 "bison_parser.cpp"
break;
- case 14: /* preparable_statement: truncate_statement */
-#line 342 "bison_parser.y"
- { (yyval.statement) = (yyvsp[0].delete_stmt); }
+ case 14:
+#line 352 "bison_parser.y"
+ {
+ (yyval.statement) = (yyvsp[0].delete_stmt);
+ }
#line 3243 "bison_parser.cpp"
break;
- case 15: /* preparable_statement: update_statement */
-#line 343 "bison_parser.y"
- { (yyval.statement) = (yyvsp[0].update_stmt); }
+ case 15:
+#line 353 "bison_parser.y"
+ {
+ (yyval.statement) = (yyvsp[0].update_stmt);
+ }
#line 3249 "bison_parser.cpp"
break;
- case 16: /* preparable_statement: drop_statement */
-#line 344 "bison_parser.y"
- { (yyval.statement) = (yyvsp[0].drop_stmt); }
+ case 16:
+#line 354 "bison_parser.y"
+ {
+ (yyval.statement) = (yyvsp[0].drop_stmt);
+ }
#line 3255 "bison_parser.cpp"
break;
- case 17: /* preparable_statement: alter_statement */
-#line 345 "bison_parser.y"
- { (yyval.statement) = (yyvsp[0].alter_stmt); }
+ case 17:
+#line 355 "bison_parser.y"
+ {
+ (yyval.statement) = (yyvsp[0].alter_stmt);
+ }
#line 3261 "bison_parser.cpp"
break;
- case 18: /* preparable_statement: execute_statement */
-#line 346 "bison_parser.y"
- { (yyval.statement) = (yyvsp[0].exec_stmt); }
+ case 18:
+#line 356 "bison_parser.y"
+ {
+ (yyval.statement) = (yyvsp[0].exec_stmt);
+ }
#line 3267 "bison_parser.cpp"
break;
- case 19: /* preparable_statement: transaction_statement */
-#line 347 "bison_parser.y"
- { (yyval.statement) = (yyvsp[0].transaction_stmt); }
+ case 19:
+#line 357 "bison_parser.y"
+ {
+ (yyval.statement) = (yyvsp[0].transaction_stmt);
+ }
#line 3273 "bison_parser.cpp"
break;
- case 20: /* opt_hints: WITH HINT '(' hint_list ')' */
-#line 353 "bison_parser.y"
- { (yyval.expr_vec) = (yyvsp[-1].expr_vec); }
+ case 20:
+#line 363 "bison_parser.y"
+ {
+ (yyval.expr_vec) = (yyvsp[-1].expr_vec);
+ }
#line 3279 "bison_parser.cpp"
break;
- case 21: /* opt_hints: %empty */
-#line 354 "bison_parser.y"
- { (yyval.expr_vec) = nullptr; }
+ case 21:
+#line 364 "bison_parser.y"
+ {
+ (yyval.expr_vec) = nullptr;
+ }
#line 3285 "bison_parser.cpp"
break;
- case 22: /* hint_list: hint */
-#line 356 "bison_parser.y"
- {
- (yyval.expr_vec) = new std::vector();
- (yyval.expr_vec)->push_back((yyvsp[0].expr));
-}
+ case 22:
+#line 366 "bison_parser.y"
+ {
+ (yyval.expr_vec) = new std::vector();
+ (yyval.expr_vec)->push_back((yyvsp[0].expr));
+ }
#line 3294 "bison_parser.cpp"
break;
- case 23: /* hint_list: hint_list ',' hint */
-#line 360 "bison_parser.y"
- {
- (yyvsp[-2].expr_vec)->push_back((yyvsp[0].expr));
- (yyval.expr_vec) = (yyvsp[-2].expr_vec);
-}
+ case 23:
+#line 370 "bison_parser.y"
+ {
+ (yyvsp[-2].expr_vec)->push_back((yyvsp[0].expr));
+ (yyval.expr_vec) = (yyvsp[-2].expr_vec);
+ }
#line 3303 "bison_parser.cpp"
break;
- case 24: /* hint: IDENTIFIER */
-#line 365 "bison_parser.y"
- {
- (yyval.expr) = Expr::make(kExprHint);
- (yyval.expr)->name = (yyvsp[0].sval);
-}
+ case 24:
+#line 375 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::make(kExprHint);
+ (yyval.expr)->name = (yyvsp[0].sval);
+ }
#line 3312 "bison_parser.cpp"
break;
- case 25: /* hint: IDENTIFIER '(' literal_list ')' */
-#line 369 "bison_parser.y"
- {
- (yyval.expr) = Expr::make(kExprHint);
- (yyval.expr)->name = (yyvsp[-3].sval);
- (yyval.expr)->exprList = (yyvsp[-1].expr_vec);
-}
+ case 25:
+#line 379 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::make(kExprHint);
+ (yyval.expr)->name = (yyvsp[-3].sval);
+ (yyval.expr)->exprList = (yyvsp[-1].expr_vec);
+ }
#line 3322 "bison_parser.cpp"
break;
- case 26: /* transaction_statement: BEGIN opt_transaction_keyword */
-#line 379 "bison_parser.y"
- { (yyval.transaction_stmt) = new TransactionStatement(kBeginTransaction); }
+ case 26:
+#line 389 "bison_parser.y"
+ {
+ (yyval.transaction_stmt) = new TransactionStatement(kBeginTransaction);
+ }
#line 3328 "bison_parser.cpp"
break;
- case 27: /* transaction_statement: ROLLBACK opt_transaction_keyword */
-#line 380 "bison_parser.y"
- { (yyval.transaction_stmt) = new TransactionStatement(kRollbackTransaction); }
+ case 27:
+#line 390 "bison_parser.y"
+ {
+ (yyval.transaction_stmt) = new TransactionStatement(kRollbackTransaction);
+ }
#line 3334 "bison_parser.cpp"
break;
- case 28: /* transaction_statement: COMMIT opt_transaction_keyword */
-#line 381 "bison_parser.y"
- { (yyval.transaction_stmt) = new TransactionStatement(kCommitTransaction); }
+ case 28:
+#line 391 "bison_parser.y"
+ {
+ (yyval.transaction_stmt) = new TransactionStatement(kCommitTransaction);
+ }
#line 3340 "bison_parser.cpp"
break;
- case 31: /* prepare_statement: PREPARE IDENTIFIER FROM prepare_target_query */
-#line 389 "bison_parser.y"
- {
- (yyval.prep_stmt) = new PrepareStatement();
- (yyval.prep_stmt)->name = (yyvsp[-2].sval);
- (yyval.prep_stmt)->query = (yyvsp[0].sval);
-}
+ case 31:
+#line 399 "bison_parser.y"
+ {
+ (yyval.prep_stmt) = new PrepareStatement();
+ (yyval.prep_stmt)->name = (yyvsp[-2].sval);
+ (yyval.prep_stmt)->query = (yyvsp[0].sval);
+ }
#line 3350 "bison_parser.cpp"
break;
- case 33: /* execute_statement: EXECUTE IDENTIFIER */
-#line 397 "bison_parser.y"
- {
- (yyval.exec_stmt) = new ExecuteStatement();
- (yyval.exec_stmt)->name = (yyvsp[0].sval);
-}
+ case 33:
+#line 407 "bison_parser.y"
+ {
+ (yyval.exec_stmt) = new ExecuteStatement();
+ (yyval.exec_stmt)->name = (yyvsp[0].sval);
+ }
#line 3359 "bison_parser.cpp"
break;
- case 34: /* execute_statement: EXECUTE IDENTIFIER '(' opt_literal_list ')' */
-#line 401 "bison_parser.y"
- {
- (yyval.exec_stmt) = new ExecuteStatement();
- (yyval.exec_stmt)->name = (yyvsp[-3].sval);
- (yyval.exec_stmt)->parameters = (yyvsp[-1].expr_vec);
-}
+ case 34:
+#line 411 "bison_parser.y"
+ {
+ (yyval.exec_stmt) = new ExecuteStatement();
+ (yyval.exec_stmt)->name = (yyvsp[-3].sval);
+ (yyval.exec_stmt)->parameters = (yyvsp[-1].expr_vec);
+ }
#line 3369 "bison_parser.cpp"
break;
- case 35: /* import_statement: IMPORT FROM file_type FILE file_path INTO table_name */
-#line 412 "bison_parser.y"
- {
- (yyval.import_stmt) = new ImportStatement((yyvsp[-4].import_type_t));
- (yyval.import_stmt)->filePath = (yyvsp[-2].sval);
- (yyval.import_stmt)->schema = (yyvsp[0].table_name).schema;
- (yyval.import_stmt)->tableName = (yyvsp[0].table_name).name;
-}
+ case 35:
+#line 422 "bison_parser.y"
+ {
+ (yyval.import_stmt) = new ImportStatement((yyvsp[-4].import_type_t));
+ (yyval.import_stmt)->filePath = (yyvsp[-2].sval);
+ (yyval.import_stmt)->schema = (yyvsp[0].table_name).schema;
+ (yyval.import_stmt)->tableName = (yyvsp[0].table_name).name;
+ }
#line 3380 "bison_parser.cpp"
break;
- case 36: /* import_statement: COPY table_name FROM file_path opt_file_type */
-#line 418 "bison_parser.y"
- {
- (yyval.import_stmt) = new ImportStatement((yyvsp[0].import_type_t));
- (yyval.import_stmt)->filePath = (yyvsp[-1].sval);
- (yyval.import_stmt)->schema = (yyvsp[-3].table_name).schema;
- (yyval.import_stmt)->tableName = (yyvsp[-3].table_name).name;
-}
+ case 36:
+#line 428 "bison_parser.y"
+ {
+ (yyval.import_stmt) = new ImportStatement((yyvsp[0].import_type_t));
+ (yyval.import_stmt)->filePath = (yyvsp[-1].sval);
+ (yyval.import_stmt)->schema = (yyvsp[-3].table_name).schema;
+ (yyval.import_stmt)->tableName = (yyvsp[-3].table_name).name;
+ }
#line 3391 "bison_parser.cpp"
break;
- case 37: /* file_type: IDENTIFIER */
-#line 425 "bison_parser.y"
- {
- if (strcasecmp((yyvsp[0].sval), "csv") == 0) {
- (yyval.import_type_t) = kImportCSV;
- } else if (strcasecmp((yyvsp[0].sval), "tbl") == 0) {
- (yyval.import_type_t) = kImportTbl;
- } else if (strcasecmp((yyvsp[0].sval), "binary") == 0 || strcasecmp((yyvsp[0].sval), "bin") == 0) {
- (yyval.import_type_t) = kImportBinary;
- } else {
- free((yyvsp[0].sval));
- yyerror(&yyloc, result, scanner, "File type is unknown.");
- YYERROR;
- }
- free((yyvsp[0].sval));
-}
+ case 37:
+#line 435 "bison_parser.y"
+ {
+ if (strcasecmp((yyvsp[0].sval), "csv") == 0) {
+ (yyval.import_type_t) = kImportCSV;
+ } else if (strcasecmp((yyvsp[0].sval), "tbl") == 0) {
+ (yyval.import_type_t) = kImportTbl;
+ } else if (strcasecmp((yyvsp[0].sval), "binary") == 0 || strcasecmp((yyvsp[0].sval), "bin") == 0) {
+ (yyval.import_type_t) = kImportBinary;
+ } else {
+ free((yyvsp[0].sval));
+ yyerror(&yyloc, result, scanner, "File type is unknown.");
+ YYERROR;
+ }
+ free((yyvsp[0].sval));
+ }
#line 3410 "bison_parser.cpp"
break;
- case 38: /* file_path: string_literal */
-#line 440 "bison_parser.y"
- {
- (yyval.sval) = strdup((yyvsp[0].expr)->name);
- delete (yyvsp[0].expr);
-}
+ case 38:
+#line 450 "bison_parser.y"
+ {
+ (yyval.sval) = strdup((yyvsp[0].expr)->name);
+ delete (yyvsp[0].expr);
+ }
#line 3419 "bison_parser.cpp"
break;
- case 39: /* opt_file_type: WITH FORMAT file_type */
-#line 445 "bison_parser.y"
- { (yyval.import_type_t) = (yyvsp[0].import_type_t); }
+ case 39:
+#line 455 "bison_parser.y"
+ {
+ (yyval.import_type_t) = (yyvsp[0].import_type_t);
+ }
#line 3425 "bison_parser.cpp"
break;
- case 40: /* opt_file_type: %empty */
-#line 446 "bison_parser.y"
- { (yyval.import_type_t) = kImportAuto; }
+ case 40:
+#line 456 "bison_parser.y"
+ {
+ (yyval.import_type_t) = kImportAuto;
+ }
#line 3431 "bison_parser.cpp"
break;
- case 41: /* export_statement: COPY table_name TO file_path opt_file_type */
-#line 452 "bison_parser.y"
- {
- (yyval.export_stmt) = new ExportStatement((yyvsp[0].import_type_t));
- (yyval.export_stmt)->filePath = (yyvsp[-1].sval);
- (yyval.export_stmt)->schema = (yyvsp[-3].table_name).schema;
- (yyval.export_stmt)->tableName = (yyvsp[-3].table_name).name;
-}
+ case 41:
+#line 462 "bison_parser.y"
+ {
+ (yyval.export_stmt) = new ExportStatement((yyvsp[0].import_type_t));
+ (yyval.export_stmt)->filePath = (yyvsp[-1].sval);
+ (yyval.export_stmt)->schema = (yyvsp[-3].table_name).schema;
+ (yyval.export_stmt)->tableName = (yyvsp[-3].table_name).name;
+ }
#line 3442 "bison_parser.cpp"
break;
- case 42: /* show_statement: SHOW TABLES */
-#line 464 "bison_parser.y"
- { (yyval.show_stmt) = new ShowStatement(kShowTables); }
+ case 42:
+#line 474 "bison_parser.y"
+ {
+ (yyval.show_stmt) = new ShowStatement(kShowTables);
+ }
#line 3448 "bison_parser.cpp"
break;
- case 43: /* show_statement: SHOW COLUMNS table_name */
-#line 465 "bison_parser.y"
- {
- (yyval.show_stmt) = new ShowStatement(kShowColumns);
- (yyval.show_stmt)->schema = (yyvsp[0].table_name).schema;
- (yyval.show_stmt)->name = (yyvsp[0].table_name).name;
-}
+ case 43:
+#line 475 "bison_parser.y"
+ {
+ (yyval.show_stmt) = new ShowStatement(kShowColumns);
+ (yyval.show_stmt)->schema = (yyvsp[0].table_name).schema;
+ (yyval.show_stmt)->name = (yyvsp[0].table_name).name;
+ }
#line 3458 "bison_parser.cpp"
break;
- case 44: /* show_statement: DESCRIBE table_name */
-#line 470 "bison_parser.y"
- {
- (yyval.show_stmt) = new ShowStatement(kShowColumns);
- (yyval.show_stmt)->schema = (yyvsp[0].table_name).schema;
- (yyval.show_stmt)->name = (yyvsp[0].table_name).name;
-}
+ case 44:
+#line 480 "bison_parser.y"
+ {
+ (yyval.show_stmt) = new ShowStatement(kShowColumns);
+ (yyval.show_stmt)->schema = (yyvsp[0].table_name).schema;
+ (yyval.show_stmt)->name = (yyvsp[0].table_name).name;
+ }
#line 3468 "bison_parser.cpp"
break;
- case 45: /* create_statement: CREATE TABLE opt_not_exists table_name FROM IDENTIFIER FILE file_path */
-#line 481 "bison_parser.y"
- {
- (yyval.create_stmt) = new CreateStatement(kCreateTableFromTbl);
- (yyval.create_stmt)->ifNotExists = (yyvsp[-5].bval);
- (yyval.create_stmt)->schema = (yyvsp[-4].table_name).schema;
- (yyval.create_stmt)->tableName = (yyvsp[-4].table_name).name;
- if (strcasecmp((yyvsp[-2].sval), "tbl") != 0) {
- free((yyvsp[-2].sval));
- yyerror(&yyloc, result, scanner, "File type is unknown.");
- YYERROR;
- }
- free((yyvsp[-2].sval));
- (yyval.create_stmt)->filePath = (yyvsp[0].sval);
-}
+ case 45:
+#line 491 "bison_parser.y"
+ {
+ (yyval.create_stmt) = new CreateStatement(kCreateTableFromTbl);
+ (yyval.create_stmt)->ifNotExists = (yyvsp[-5].bval);
+ (yyval.create_stmt)->schema = (yyvsp[-4].table_name).schema;
+ (yyval.create_stmt)->tableName = (yyvsp[-4].table_name).name;
+ if (strcasecmp((yyvsp[-2].sval), "tbl") != 0) {
+ free((yyvsp[-2].sval));
+ yyerror(&yyloc, result, scanner, "File type is unknown.");
+ YYERROR;
+ }
+ free((yyvsp[-2].sval));
+ (yyval.create_stmt)->filePath = (yyvsp[0].sval);
+ }
#line 3486 "bison_parser.cpp"
break;
- case 46: /* create_statement: CREATE TABLE opt_not_exists table_name '(' table_elem_commalist ')' */
-#line 494 "bison_parser.y"
- {
- (yyval.create_stmt) = new CreateStatement(kCreateTable);
- (yyval.create_stmt)->ifNotExists = (yyvsp[-4].bval);
- (yyval.create_stmt)->schema = (yyvsp[-3].table_name).schema;
- (yyval.create_stmt)->tableName = (yyvsp[-3].table_name).name;
- (yyval.create_stmt)->setColumnDefsAndConstraints((yyvsp[-1].table_element_vec));
- delete (yyvsp[-1].table_element_vec);
-}
+ case 46:
+#line 504 "bison_parser.y"
+ {
+ (yyval.create_stmt) = new CreateStatement(kCreateTable);
+ (yyval.create_stmt)->ifNotExists = (yyvsp[-4].bval);
+ (yyval.create_stmt)->schema = (yyvsp[-3].table_name).schema;
+ (yyval.create_stmt)->tableName = (yyvsp[-3].table_name).name;
+ (yyval.create_stmt)->setColumnDefsAndConstraints((yyvsp[-1].table_element_vec));
+ delete (yyvsp[-1].table_element_vec);
+ }
#line 3499 "bison_parser.cpp"
break;
- case 47: /* create_statement: CREATE TABLE opt_not_exists table_name AS select_statement */
-#line 502 "bison_parser.y"
- {
- (yyval.create_stmt) = new CreateStatement(kCreateTable);
- (yyval.create_stmt)->ifNotExists = (yyvsp[-3].bval);
- (yyval.create_stmt)->schema = (yyvsp[-2].table_name).schema;
- (yyval.create_stmt)->tableName = (yyvsp[-2].table_name).name;
- (yyval.create_stmt)->select = (yyvsp[0].select_stmt);
-}
+ case 47:
+#line 512 "bison_parser.y"
+ {
+ (yyval.create_stmt) = new CreateStatement(kCreateTable);
+ (yyval.create_stmt)->ifNotExists = (yyvsp[-3].bval);
+ (yyval.create_stmt)->schema = (yyvsp[-2].table_name).schema;
+ (yyval.create_stmt)->tableName = (yyvsp[-2].table_name).name;
+ (yyval.create_stmt)->select = (yyvsp[0].select_stmt);
+ }
#line 3511 "bison_parser.cpp"
break;
- case 48: /* create_statement: CREATE INDEX opt_not_exists opt_index_name ON table_name '(' ident_commalist ')' */
-#line 509 "bison_parser.y"
- {
- (yyval.create_stmt) = new CreateStatement(kCreateIndex);
- (yyval.create_stmt)->indexName = (yyvsp[-5].sval);
- (yyval.create_stmt)->ifNotExists = (yyvsp[-6].bval);
- (yyval.create_stmt)->tableName = (yyvsp[-3].table_name).name;
- (yyval.create_stmt)->indexColumns = (yyvsp[-1].str_vec);
-}
+ case 48:
+#line 519 "bison_parser.y"
+ {
+ (yyval.create_stmt) = new CreateStatement(kCreateIndex);
+ (yyval.create_stmt)->indexName = (yyvsp[-5].sval);
+ (yyval.create_stmt)->ifNotExists = (yyvsp[-6].bval);
+ (yyval.create_stmt)->tableName = (yyvsp[-3].table_name).name;
+ (yyval.create_stmt)->indexColumns = (yyvsp[-1].str_vec);
+ }
#line 3523 "bison_parser.cpp"
break;
- case 49: /* create_statement: CREATE VIEW opt_not_exists table_name opt_column_list AS select_statement */
-#line 516 "bison_parser.y"
- {
- (yyval.create_stmt) = new CreateStatement(kCreateView);
- (yyval.create_stmt)->ifNotExists = (yyvsp[-4].bval);
- (yyval.create_stmt)->schema = (yyvsp[-3].table_name).schema;
- (yyval.create_stmt)->tableName = (yyvsp[-3].table_name).name;
- (yyval.create_stmt)->viewColumns = (yyvsp[-2].str_vec);
- (yyval.create_stmt)->select = (yyvsp[0].select_stmt);
-}
+ case 49:
+#line 526 "bison_parser.y"
+ {
+ (yyval.create_stmt) = new CreateStatement(kCreateView);
+ (yyval.create_stmt)->ifNotExists = (yyvsp[-4].bval);
+ (yyval.create_stmt)->schema = (yyvsp[-3].table_name).schema;
+ (yyval.create_stmt)->tableName = (yyvsp[-3].table_name).name;
+ (yyval.create_stmt)->viewColumns = (yyvsp[-2].str_vec);
+ (yyval.create_stmt)->select = (yyvsp[0].select_stmt);
+ }
#line 3536 "bison_parser.cpp"
break;
- case 50: /* opt_not_exists: IF NOT EXISTS */
-#line 525 "bison_parser.y"
- { (yyval.bval) = true; }
+ case 50:
+#line 535 "bison_parser.y"
+ {
+ (yyval.bval) = true;
+ }
#line 3542 "bison_parser.cpp"
break;
- case 51: /* opt_not_exists: %empty */
-#line 526 "bison_parser.y"
- { (yyval.bval) = false; }
+ case 51:
+#line 536 "bison_parser.y"
+ {
+ (yyval.bval) = false;
+ }
#line 3548 "bison_parser.cpp"
break;
- case 52: /* table_elem_commalist: table_elem */
-#line 528 "bison_parser.y"
- {
- (yyval.table_element_vec) = new std::vector();
- (yyval.table_element_vec)->push_back((yyvsp[0].table_element_t));
-}
+ case 52:
+#line 538 "bison_parser.y"
+ {
+ (yyval.table_element_vec) = new std::vector();
+ (yyval.table_element_vec)->push_back((yyvsp[0].table_element_t));
+ }
#line 3557 "bison_parser.cpp"
break;
- case 53: /* table_elem_commalist: table_elem_commalist ',' table_elem */
-#line 532 "bison_parser.y"
- {
- (yyvsp[-2].table_element_vec)->push_back((yyvsp[0].table_element_t));
- (yyval.table_element_vec) = (yyvsp[-2].table_element_vec);
-}
+ case 53:
+#line 542 "bison_parser.y"
+ {
+ (yyvsp[-2].table_element_vec)->push_back((yyvsp[0].table_element_t));
+ (yyval.table_element_vec) = (yyvsp[-2].table_element_vec);
+ }
#line 3566 "bison_parser.cpp"
break;
- case 54: /* table_elem: column_def */
-#line 537 "bison_parser.y"
- { (yyval.table_element_t) = (yyvsp[0].column_t); }
+ case 54:
+#line 547 "bison_parser.y"
+ {
+ (yyval.table_element_t) = (yyvsp[0].column_t);
+ }
#line 3572 "bison_parser.cpp"
break;
- case 55: /* table_elem: table_constraint */
-#line 538 "bison_parser.y"
- { (yyval.table_element_t) = (yyvsp[0].table_constraint_t); }
+ case 55:
+#line 548 "bison_parser.y"
+ {
+ (yyval.table_element_t) = (yyvsp[0].table_constraint_t);
+ }
#line 3578 "bison_parser.cpp"
break;
- case 56: /* column_def: IDENTIFIER column_type opt_column_constraints */
-#line 540 "bison_parser.y"
- {
- (yyval.column_t) = new ColumnDefinition((yyvsp[-2].sval), (yyvsp[-1].column_type_t), (yyvsp[0].column_constraint_vec));
- (yyval.column_t)->setNullableExplicit();
-}
+ case 56:
+#line 550 "bison_parser.y"
+ {
+ (yyval.column_t) =
+ new ColumnDefinition((yyvsp[-2].sval), (yyvsp[-1].column_type_t), (yyvsp[0].column_constraint_vec));
+ (yyval.column_t)->setNullableExplicit();
+ }
#line 3587 "bison_parser.cpp"
break;
- case 57: /* column_type: INT */
-#line 545 "bison_parser.y"
- { (yyval.column_type_t) = ColumnType{DataType::INT}; }
+ case 57:
+#line 555 "bison_parser.y"
+ {
+ (yyval.column_type_t) = ColumnType{DataType::INT};
+ }
#line 3593 "bison_parser.cpp"
break;
- case 58: /* column_type: CHAR '(' INTVAL ')' */
-#line 546 "bison_parser.y"
- { (yyval.column_type_t) = ColumnType{DataType::CHAR, (yyvsp[-1].ival)}; }
+ case 58:
+#line 556 "bison_parser.y"
+ {
+ (yyval.column_type_t) = ColumnType{DataType::CHAR, (yyvsp[-1].ival)};
+ }
#line 3599 "bison_parser.cpp"
break;
- case 59: /* column_type: CHARACTER_VARYING '(' INTVAL ')' */
-#line 547 "bison_parser.y"
- { (yyval.column_type_t) = ColumnType{DataType::VARCHAR, (yyvsp[-1].ival)}; }
+ case 59:
+#line 557 "bison_parser.y"
+ {
+ (yyval.column_type_t) = ColumnType{DataType::VARCHAR, (yyvsp[-1].ival)};
+ }
#line 3605 "bison_parser.cpp"
break;
- case 60: /* column_type: DATE */
-#line 548 "bison_parser.y"
- { (yyval.column_type_t) = ColumnType{DataType::DATE}; }
+ case 60:
+#line 558 "bison_parser.y"
+ {
+ (yyval.column_type_t) = ColumnType{DataType::DATE};
+ }
#line 3611 "bison_parser.cpp"
break;
- case 61: /* column_type: DATETIME */
-#line 549 "bison_parser.y"
- { (yyval.column_type_t) = ColumnType{DataType::DATETIME}; }
+ case 61:
+#line 559 "bison_parser.y"
+ {
+ (yyval.column_type_t) = ColumnType{DataType::DATETIME};
+ }
#line 3617 "bison_parser.cpp"
break;
- case 62: /* column_type: DECIMAL opt_decimal_specification */
-#line 550 "bison_parser.y"
- {
- (yyval.column_type_t) = ColumnType{DataType::DECIMAL, 0, (yyvsp[0].ival_pair)->first, (yyvsp[0].ival_pair)->second};
- delete (yyvsp[0].ival_pair);
-}
+ case 62:
+#line 560 "bison_parser.y"
+ {
+ (yyval.column_type_t) =
+ ColumnType{DataType::DECIMAL, 0, (yyvsp[0].ival_pair)->first, (yyvsp[0].ival_pair)->second};
+ delete (yyvsp[0].ival_pair);
+ }
#line 3626 "bison_parser.cpp"
break;
- case 63: /* column_type: DOUBLE */
-#line 554 "bison_parser.y"
- { (yyval.column_type_t) = ColumnType{DataType::DOUBLE}; }
+ case 63:
+#line 564 "bison_parser.y"
+ {
+ (yyval.column_type_t) = ColumnType{DataType::DOUBLE};
+ }
#line 3632 "bison_parser.cpp"
break;
- case 64: /* column_type: FLOAT */
-#line 555 "bison_parser.y"
- { (yyval.column_type_t) = ColumnType{DataType::FLOAT}; }
+ case 64:
+#line 565 "bison_parser.y"
+ {
+ (yyval.column_type_t) = ColumnType{DataType::FLOAT};
+ }
#line 3638 "bison_parser.cpp"
break;
- case 65: /* column_type: INTEGER */
-#line 556 "bison_parser.y"
- { (yyval.column_type_t) = ColumnType{DataType::INT}; }
+ case 65:
+#line 566 "bison_parser.y"
+ {
+ (yyval.column_type_t) = ColumnType{DataType::INT};
+ }
#line 3644 "bison_parser.cpp"
break;
- case 66: /* column_type: LONG */
-#line 557 "bison_parser.y"
- { (yyval.column_type_t) = ColumnType{DataType::LONG}; }
+ case 66:
+#line 567 "bison_parser.y"
+ {
+ (yyval.column_type_t) = ColumnType{DataType::LONG};
+ }
#line 3650 "bison_parser.cpp"
break;
- case 67: /* column_type: REAL */
-#line 558 "bison_parser.y"
- { (yyval.column_type_t) = ColumnType{DataType::REAL}; }
+ case 67:
+#line 568 "bison_parser.y"
+ {
+ (yyval.column_type_t) = ColumnType{DataType::REAL};
+ }
#line 3656 "bison_parser.cpp"
break;
- case 68: /* column_type: SMALLINT */
-#line 559 "bison_parser.y"
- { (yyval.column_type_t) = ColumnType{DataType::SMALLINT}; }
+ case 68:
+#line 569 "bison_parser.y"
+ {
+ (yyval.column_type_t) = ColumnType{DataType::SMALLINT};
+ }
#line 3662 "bison_parser.cpp"
break;
- case 69: /* column_type: TEXT */
-#line 560 "bison_parser.y"
- { (yyval.column_type_t) = ColumnType{DataType::TEXT}; }
+ case 69:
+#line 570 "bison_parser.y"
+ {
+ (yyval.column_type_t) = ColumnType{DataType::TEXT};
+ }
#line 3668 "bison_parser.cpp"
break;
- case 70: /* column_type: TIME opt_time_precision */
-#line 561 "bison_parser.y"
- { (yyval.column_type_t) = ColumnType{DataType::TIME, 0, (yyvsp[0].ival)}; }
+ case 70:
+#line 571 "bison_parser.y"
+ {
+ (yyval.column_type_t) = ColumnType{DataType::TIME, 0, (yyvsp[0].ival)};
+ }
#line 3674 "bison_parser.cpp"
break;
- case 71: /* column_type: VARCHAR '(' INTVAL ')' */
-#line 562 "bison_parser.y"
- { (yyval.column_type_t) = ColumnType{DataType::VARCHAR, (yyvsp[-1].ival)}; }
+ case 71:
+#line 572 "bison_parser.y"
+ {
+ (yyval.column_type_t) = ColumnType{DataType::VARCHAR, (yyvsp[-1].ival)};
+ }
#line 3680 "bison_parser.cpp"
break;
- case 72: /* opt_time_precision: '(' INTVAL ')' */
-#line 564 "bison_parser.y"
- { (yyval.ival) = (yyvsp[-1].ival); }
+ case 72:
+#line 574 "bison_parser.y"
+ {
+ (yyval.ival) = (yyvsp[-1].ival);
+ }
#line 3686 "bison_parser.cpp"
break;
- case 73: /* opt_time_precision: %empty */
-#line 565 "bison_parser.y"
- { (yyval.ival) = 0; }
+ case 73:
+#line 575 "bison_parser.y"
+ {
+ (yyval.ival) = 0;
+ }
#line 3692 "bison_parser.cpp"
break;
- case 74: /* opt_decimal_specification: '(' INTVAL ',' INTVAL ')' */
-#line 567 "bison_parser.y"
- { (yyval.ival_pair) = new std::pair{(yyvsp[-3].ival), (yyvsp[-1].ival)}; }
+ case 74:
+#line 577 "bison_parser.y"
+ {
+ (yyval.ival_pair) = new std::pair{(yyvsp[-3].ival), (yyvsp[-1].ival)};
+ }
#line 3698 "bison_parser.cpp"
break;
- case 75: /* opt_decimal_specification: '(' INTVAL ')' */
-#line 568 "bison_parser.y"
- { (yyval.ival_pair) = new std::pair{(yyvsp[-1].ival), 0}; }
+ case 75:
+#line 578 "bison_parser.y"
+ {
+ (yyval.ival_pair) = new std::pair{(yyvsp[-1].ival), 0};
+ }
#line 3704 "bison_parser.cpp"
break;
- case 76: /* opt_decimal_specification: %empty */
-#line 569 "bison_parser.y"
- { (yyval.ival_pair) = new std::pair{0, 0}; }
+ case 76:
+#line 579 "bison_parser.y"
+ {
+ (yyval.ival_pair) = new std::pair{0, 0};
+ }
#line 3710 "bison_parser.cpp"
break;
- case 77: /* opt_column_constraints: column_constraint_list */
-#line 571 "bison_parser.y"
- { (yyval.column_constraint_vec) = (yyvsp[0].column_constraint_vec); }
+ case 77:
+#line 581 "bison_parser.y"
+ {
+ (yyval.column_constraint_vec) = (yyvsp[0].column_constraint_vec);
+ }
#line 3716 "bison_parser.cpp"
break;
- case 78: /* opt_column_constraints: %empty */
-#line 572 "bison_parser.y"
- { (yyval.column_constraint_vec) = new std::vector(); }
+ case 78:
+#line 582 "bison_parser.y"
+ {
+ (yyval.column_constraint_vec) = new std::vector();
+ }
#line 3722 "bison_parser.cpp"
break;
- case 79: /* column_constraint_list: column_constraint */
-#line 574 "bison_parser.y"
- {
- (yyval.column_constraint_vec) = new std::vector();
- (yyval.column_constraint_vec)->push_back((yyvsp[0].column_constraint_t));
-}
+ case 79:
+#line 584 "bison_parser.y"
+ {
+ (yyval.column_constraint_vec) = new std::vector();
+ (yyval.column_constraint_vec)->push_back((yyvsp[0].column_constraint_t));
+ }
#line 3731 "bison_parser.cpp"
break;
- case 80: /* column_constraint_list: column_constraint_list column_constraint */
-#line 578 "bison_parser.y"
- {
- (yyvsp[-1].column_constraint_vec)->push_back((yyvsp[0].column_constraint_t));
- (yyval.column_constraint_vec) = (yyvsp[-1].column_constraint_vec);
-}
+ case 80:
+#line 588 "bison_parser.y"
+ {
+ (yyvsp[-1].column_constraint_vec)->push_back((yyvsp[0].column_constraint_t));
+ (yyval.column_constraint_vec) = (yyvsp[-1].column_constraint_vec);
+ }
#line 3740 "bison_parser.cpp"
break;
- case 81: /* column_constraint: PRIMARY KEY */
-#line 583 "bison_parser.y"
- { (yyval.column_constraint_t) = ConstraintType::PrimaryKey; }
+ case 81:
+#line 593 "bison_parser.y"
+ {
+ (yyval.column_constraint_t) = ConstraintType::PrimaryKey;
+ }
#line 3746 "bison_parser.cpp"
break;
- case 82: /* column_constraint: UNIQUE */
-#line 584 "bison_parser.y"
- { (yyval.column_constraint_t) = ConstraintType::Unique; }
+ case 82:
+#line 594 "bison_parser.y"
+ {
+ (yyval.column_constraint_t) = ConstraintType::Unique;
+ }
#line 3752 "bison_parser.cpp"
break;
- case 83: /* column_constraint: NULL */
-#line 585 "bison_parser.y"
- { (yyval.column_constraint_t) = ConstraintType::Null; }
+ case 83:
+#line 595 "bison_parser.y"
+ {
+ (yyval.column_constraint_t) = ConstraintType::Null;
+ }
#line 3758 "bison_parser.cpp"
break;
- case 84: /* column_constraint: NOT NULL */
-#line 586 "bison_parser.y"
- { (yyval.column_constraint_t) = ConstraintType::NotNull; }
+ case 84:
+#line 596 "bison_parser.y"
+ {
+ (yyval.column_constraint_t) = ConstraintType::NotNull;
+ }
#line 3764 "bison_parser.cpp"
break;
- case 85: /* table_constraint: PRIMARY KEY '(' ident_commalist ')' */
-#line 588 "bison_parser.y"
- { (yyval.table_constraint_t) = new TableConstraint(ConstraintType::PrimaryKey, (yyvsp[-1].str_vec)); }
+ case 85:
+#line 598 "bison_parser.y"
+ {
+ (yyval.table_constraint_t) = new TableConstraint(ConstraintType::PrimaryKey, (yyvsp[-1].str_vec));
+ }
#line 3770 "bison_parser.cpp"
break;
- case 86: /* table_constraint: UNIQUE '(' ident_commalist ')' */
-#line 589 "bison_parser.y"
- { (yyval.table_constraint_t) = new TableConstraint(ConstraintType::Unique, (yyvsp[-1].str_vec)); }
+ case 86:
+#line 599 "bison_parser.y"
+ {
+ (yyval.table_constraint_t) = new TableConstraint(ConstraintType::Unique, (yyvsp[-1].str_vec));
+ }
#line 3776 "bison_parser.cpp"
break;
- case 87: /* drop_statement: DROP TABLE opt_exists table_name */
-#line 597 "bison_parser.y"
- {
- (yyval.drop_stmt) = new DropStatement(kDropTable);
- (yyval.drop_stmt)->ifExists = (yyvsp[-1].bval);
- (yyval.drop_stmt)->schema = (yyvsp[0].table_name).schema;
- (yyval.drop_stmt)->name = (yyvsp[0].table_name).name;
-}
+ case 87:
+#line 607 "bison_parser.y"
+ {
+ (yyval.drop_stmt) = new DropStatement(kDropTable);
+ (yyval.drop_stmt)->ifExists = (yyvsp[-1].bval);
+ (yyval.drop_stmt)->schema = (yyvsp[0].table_name).schema;
+ (yyval.drop_stmt)->name = (yyvsp[0].table_name).name;
+ }
#line 3787 "bison_parser.cpp"
break;
- case 88: /* drop_statement: DROP VIEW opt_exists table_name */
-#line 603 "bison_parser.y"
- {
- (yyval.drop_stmt) = new DropStatement(kDropView);
- (yyval.drop_stmt)->ifExists = (yyvsp[-1].bval);
- (yyval.drop_stmt)->schema = (yyvsp[0].table_name).schema;
- (yyval.drop_stmt)->name = (yyvsp[0].table_name).name;
-}
+ case 88:
+#line 613 "bison_parser.y"
+ {
+ (yyval.drop_stmt) = new DropStatement(kDropView);
+ (yyval.drop_stmt)->ifExists = (yyvsp[-1].bval);
+ (yyval.drop_stmt)->schema = (yyvsp[0].table_name).schema;
+ (yyval.drop_stmt)->name = (yyvsp[0].table_name).name;
+ }
#line 3798 "bison_parser.cpp"
break;
- case 89: /* drop_statement: DEALLOCATE PREPARE IDENTIFIER */
-#line 609 "bison_parser.y"
- {
- (yyval.drop_stmt) = new DropStatement(kDropPreparedStatement);
- (yyval.drop_stmt)->ifExists = false;
- (yyval.drop_stmt)->name = (yyvsp[0].sval);
-}
+ case 89:
+#line 619 "bison_parser.y"
+ {
+ (yyval.drop_stmt) = new DropStatement(kDropPreparedStatement);
+ (yyval.drop_stmt)->ifExists = false;
+ (yyval.drop_stmt)->name = (yyvsp[0].sval);
+ }
#line 3808 "bison_parser.cpp"
break;
- case 90: /* drop_statement: DROP INDEX opt_exists IDENTIFIER */
-#line 615 "bison_parser.y"
- {
- (yyval.drop_stmt) = new DropStatement(kDropIndex);
- (yyval.drop_stmt)->ifExists = (yyvsp[-1].bval);
- (yyval.drop_stmt)->indexName = (yyvsp[0].sval);
-}
+ case 90:
+#line 625 "bison_parser.y"
+ {
+ (yyval.drop_stmt) = new DropStatement(kDropIndex);
+ (yyval.drop_stmt)->ifExists = (yyvsp[-1].bval);
+ (yyval.drop_stmt)->indexName = (yyvsp[0].sval);
+ }
#line 3818 "bison_parser.cpp"
break;
- case 91: /* opt_exists: IF EXISTS */
-#line 621 "bison_parser.y"
- { (yyval.bval) = true; }
+ case 91:
+#line 631 "bison_parser.y"
+ {
+ (yyval.bval) = true;
+ }
#line 3824 "bison_parser.cpp"
break;
- case 92: /* opt_exists: %empty */
-#line 622 "bison_parser.y"
- { (yyval.bval) = false; }
+ case 92:
+#line 632 "bison_parser.y"
+ {
+ (yyval.bval) = false;
+ }
#line 3830 "bison_parser.cpp"
break;
- case 93: /* alter_statement: ALTER TABLE opt_exists table_name alter_action */
-#line 629 "bison_parser.y"
- {
- (yyval.alter_stmt) = new AlterStatement((yyvsp[-1].table_name).name, (yyvsp[0].alter_action_t));
- (yyval.alter_stmt)->ifTableExists = (yyvsp[-2].bval);
- (yyval.alter_stmt)->schema = (yyvsp[-1].table_name).schema;
-}
+ case 93:
+#line 639 "bison_parser.y"
+ {
+ (yyval.alter_stmt) = new AlterStatement((yyvsp[-1].table_name).name, (yyvsp[0].alter_action_t));
+ (yyval.alter_stmt)->ifTableExists = (yyvsp[-2].bval);
+ (yyval.alter_stmt)->schema = (yyvsp[-1].table_name).schema;
+ }
#line 3840 "bison_parser.cpp"
break;
- case 94: /* alter_action: drop_action */
-#line 635 "bison_parser.y"
- { (yyval.alter_action_t) = (yyvsp[0].drop_action_t); }
+ case 94:
+#line 645 "bison_parser.y"
+ {
+ (yyval.alter_action_t) = (yyvsp[0].drop_action_t);
+ }
#line 3846 "bison_parser.cpp"
break;
- case 95: /* drop_action: DROP COLUMN opt_exists IDENTIFIER */
-#line 637 "bison_parser.y"
- {
- (yyval.drop_action_t) = new DropColumnAction((yyvsp[0].sval));
- (yyval.drop_action_t)->ifExists = (yyvsp[-1].bval);
-}
+ case 95:
+#line 647 "bison_parser.y"
+ {
+ (yyval.drop_action_t) = new DropColumnAction((yyvsp[0].sval));
+ (yyval.drop_action_t)->ifExists = (yyvsp[-1].bval);
+ }
#line 3855 "bison_parser.cpp"
break;
- case 96: /* delete_statement: DELETE FROM table_name opt_where */
-#line 647 "bison_parser.y"
- {
- (yyval.delete_stmt) = new DeleteStatement();
- (yyval.delete_stmt)->schema = (yyvsp[-1].table_name).schema;
- (yyval.delete_stmt)->tableName = (yyvsp[-1].table_name).name;
- (yyval.delete_stmt)->expr = (yyvsp[0].expr);
-}
+ case 96:
+#line 657 "bison_parser.y"
+ {
+ (yyval.delete_stmt) = new DeleteStatement();
+ (yyval.delete_stmt)->schema = (yyvsp[-1].table_name).schema;
+ (yyval.delete_stmt)->tableName = (yyvsp[-1].table_name).name;
+ (yyval.delete_stmt)->expr = (yyvsp[0].expr);
+ }
#line 3866 "bison_parser.cpp"
break;
- case 97: /* truncate_statement: TRUNCATE table_name */
-#line 654 "bison_parser.y"
- {
- (yyval.delete_stmt) = new DeleteStatement();
- (yyval.delete_stmt)->schema = (yyvsp[0].table_name).schema;
- (yyval.delete_stmt)->tableName = (yyvsp[0].table_name).name;
-}
+ case 97:
+#line 664 "bison_parser.y"
+ {
+ (yyval.delete_stmt) = new DeleteStatement();
+ (yyval.delete_stmt)->schema = (yyvsp[0].table_name).schema;
+ (yyval.delete_stmt)->tableName = (yyvsp[0].table_name).name;
+ }
#line 3876 "bison_parser.cpp"
break;
- case 98: /* insert_statement: INSERT INTO table_name opt_column_list VALUES '(' literal_list ')' */
-#line 665 "bison_parser.y"
- {
- (yyval.insert_stmt) = new InsertStatement(kInsertValues);
- (yyval.insert_stmt)->schema = (yyvsp[-5].table_name).schema;
- (yyval.insert_stmt)->tableName = (yyvsp[-5].table_name).name;
- (yyval.insert_stmt)->columns = (yyvsp[-4].str_vec);
- (yyval.insert_stmt)->values = (yyvsp[-1].expr_vec);
-}
+ case 98:
+#line 675 "bison_parser.y"
+ {
+ (yyval.insert_stmt) = new InsertStatement(kInsertValues);
+ (yyval.insert_stmt)->schema = (yyvsp[-5].table_name).schema;
+ (yyval.insert_stmt)->tableName = (yyvsp[-5].table_name).name;
+ (yyval.insert_stmt)->columns = (yyvsp[-4].str_vec);
+ (yyval.insert_stmt)->values = (yyvsp[-1].expr_vec);
+ }
#line 3888 "bison_parser.cpp"
break;
- case 99: /* insert_statement: INSERT INTO table_name opt_column_list select_no_paren */
-#line 672 "bison_parser.y"
- {
- (yyval.insert_stmt) = new InsertStatement(kInsertSelect);
- (yyval.insert_stmt)->schema = (yyvsp[-2].table_name).schema;
- (yyval.insert_stmt)->tableName = (yyvsp[-2].table_name).name;
- (yyval.insert_stmt)->columns = (yyvsp[-1].str_vec);
- (yyval.insert_stmt)->select = (yyvsp[0].select_stmt);
-}
+ case 99:
+#line 682 "bison_parser.y"
+ {
+ (yyval.insert_stmt) = new InsertStatement(kInsertSelect);
+ (yyval.insert_stmt)->schema = (yyvsp[-2].table_name).schema;
+ (yyval.insert_stmt)->tableName = (yyvsp[-2].table_name).name;
+ (yyval.insert_stmt)->columns = (yyvsp[-1].str_vec);
+ (yyval.insert_stmt)->select = (yyvsp[0].select_stmt);
+ }
#line 3900 "bison_parser.cpp"
break;
- case 100: /* opt_column_list: '(' ident_commalist ')' */
-#line 680 "bison_parser.y"
- { (yyval.str_vec) = (yyvsp[-1].str_vec); }
+ case 100:
+#line 690 "bison_parser.y"
+ {
+ (yyval.str_vec) = (yyvsp[-1].str_vec);
+ }
#line 3906 "bison_parser.cpp"
break;
- case 101: /* opt_column_list: %empty */
-#line 681 "bison_parser.y"
- { (yyval.str_vec) = nullptr; }
+ case 101:
+#line 691 "bison_parser.y"
+ {
+ (yyval.str_vec) = nullptr;
+ }
#line 3912 "bison_parser.cpp"
break;
- case 102: /* update_statement: UPDATE table_ref_name_no_alias SET update_clause_commalist opt_where */
-#line 688 "bison_parser.y"
- {
- (yyval.update_stmt) = new UpdateStatement();
- (yyval.update_stmt)->table = (yyvsp[-3].table);
- (yyval.update_stmt)->updates = (yyvsp[-1].update_vec);
- (yyval.update_stmt)->where = (yyvsp[0].expr);
-}
+ case 102:
+#line 698 "bison_parser.y"
+ {
+ (yyval.update_stmt) = new UpdateStatement();
+ (yyval.update_stmt)->table = (yyvsp[-3].table);
+ (yyval.update_stmt)->updates = (yyvsp[-1].update_vec);
+ (yyval.update_stmt)->where = (yyvsp[0].expr);
+ }
#line 3923 "bison_parser.cpp"
break;
- case 103: /* update_clause_commalist: update_clause */
-#line 695 "bison_parser.y"
- {
- (yyval.update_vec) = new std::vector();
- (yyval.update_vec)->push_back((yyvsp[0].update_t));
-}
+ case 103:
+#line 705 "bison_parser.y"
+ {
+ (yyval.update_vec) = new std::vector();
+ (yyval.update_vec)->push_back((yyvsp[0].update_t));
+ }
#line 3932 "bison_parser.cpp"
break;
- case 104: /* update_clause_commalist: update_clause_commalist ',' update_clause */
-#line 699 "bison_parser.y"
- {
- (yyvsp[-2].update_vec)->push_back((yyvsp[0].update_t));
- (yyval.update_vec) = (yyvsp[-2].update_vec);
-}
+ case 104:
+#line 709 "bison_parser.y"
+ {
+ (yyvsp[-2].update_vec)->push_back((yyvsp[0].update_t));
+ (yyval.update_vec) = (yyvsp[-2].update_vec);
+ }
#line 3941 "bison_parser.cpp"
break;
- case 105: /* update_clause: IDENTIFIER '=' expr */
-#line 704 "bison_parser.y"
- {
- (yyval.update_t) = new UpdateClause();
- (yyval.update_t)->column = (yyvsp[-2].sval);
- (yyval.update_t)->value = (yyvsp[0].expr);
-}
+ case 105:
+#line 714 "bison_parser.y"
+ {
+ (yyval.update_t) = new UpdateClause();
+ (yyval.update_t)->column = (yyvsp[-2].sval);
+ (yyval.update_t)->value = (yyvsp[0].expr);
+ }
#line 3951 "bison_parser.cpp"
break;
- case 106: /* select_statement: opt_with_clause select_with_paren */
-#line 714 "bison_parser.y"
- {
- (yyval.select_stmt) = (yyvsp[0].select_stmt);
- (yyval.select_stmt)->withDescriptions = (yyvsp[-1].with_description_vec);
-}
+ case 106:
+#line 724 "bison_parser.y"
+ {
+ (yyval.select_stmt) = (yyvsp[0].select_stmt);
+ (yyval.select_stmt)->withDescriptions = (yyvsp[-1].with_description_vec);
+ }
#line 3960 "bison_parser.cpp"
break;
- case 107: /* select_statement: opt_with_clause select_no_paren */
-#line 718 "bison_parser.y"
- {
- (yyval.select_stmt) = (yyvsp[0].select_stmt);
- (yyval.select_stmt)->withDescriptions = (yyvsp[-1].with_description_vec);
-}
+ case 107:
+#line 728 "bison_parser.y"
+ {
+ (yyval.select_stmt) = (yyvsp[0].select_stmt);
+ (yyval.select_stmt)->withDescriptions = (yyvsp[-1].with_description_vec);
+ }
#line 3969 "bison_parser.cpp"
break;
- case 108: /* select_statement: opt_with_clause select_with_paren set_operator select_within_set_operation opt_order opt_limit */
-#line 722 "bison_parser.y"
- {
- (yyval.select_stmt) = (yyvsp[-4].select_stmt);
- if ((yyval.select_stmt)->setOperations == nullptr) {
- (yyval.select_stmt)->setOperations = new std::vector();
- }
- (yyval.select_stmt)->setOperations->push_back((yyvsp[-3].set_operator_t));
- (yyval.select_stmt)->setOperations->back()->nestedSelectStatement = (yyvsp[-2].select_stmt);
- (yyval.select_stmt)->setOperations->back()->resultOrder = (yyvsp[-1].order_vec);
- (yyval.select_stmt)->setOperations->back()->resultLimit = (yyvsp[0].limit);
- (yyval.select_stmt)->withDescriptions = (yyvsp[-5].with_description_vec);
-}
+ case 108:
+#line 732 "bison_parser.y"
+ {
+ (yyval.select_stmt) = (yyvsp[-4].select_stmt);
+ if ((yyval.select_stmt)->setOperations == nullptr) {
+ (yyval.select_stmt)->setOperations = new std::vector();
+ }
+ (yyval.select_stmt)->setOperations->push_back((yyvsp[-3].set_operator_t));
+ (yyval.select_stmt)->setOperations->back()->nestedSelectStatement = (yyvsp[-2].select_stmt);
+ (yyval.select_stmt)->setOperations->back()->resultOrder = (yyvsp[-1].order_vec);
+ (yyval.select_stmt)->setOperations->back()->resultLimit = (yyvsp[0].limit);
+ (yyval.select_stmt)->withDescriptions = (yyvsp[-5].with_description_vec);
+ }
#line 3985 "bison_parser.cpp"
break;
- case 111: /* select_within_set_operation_no_parentheses: select_clause */
-#line 736 "bison_parser.y"
- { (yyval.select_stmt) = (yyvsp[0].select_stmt); }
+ case 111:
+#line 746 "bison_parser.y"
+ {
+ (yyval.select_stmt) = (yyvsp[0].select_stmt);
+ }
#line 3991 "bison_parser.cpp"
break;
- case 112: /* select_within_set_operation_no_parentheses: select_clause set_operator select_within_set_operation */
-#line 737 "bison_parser.y"
- {
- (yyval.select_stmt) = (yyvsp[-2].select_stmt);
- if ((yyval.select_stmt)->setOperations == nullptr) {
- (yyval.select_stmt)->setOperations = new std::vector();
- }
- (yyval.select_stmt)->setOperations->push_back((yyvsp[-1].set_operator_t));
- (yyval.select_stmt)->setOperations->back()->nestedSelectStatement = (yyvsp[0].select_stmt);
-}
+ case 112:
+#line 747 "bison_parser.y"
+ {
+ (yyval.select_stmt) = (yyvsp[-2].select_stmt);
+ if ((yyval.select_stmt)->setOperations == nullptr) {
+ (yyval.select_stmt)->setOperations = new std::vector();
+ }
+ (yyval.select_stmt)->setOperations->push_back((yyvsp[-1].set_operator_t));
+ (yyval.select_stmt)->setOperations->back()->nestedSelectStatement = (yyvsp[0].select_stmt);
+ }
#line 4004 "bison_parser.cpp"
break;
- case 113: /* select_with_paren: '(' select_no_paren ')' */
-#line 746 "bison_parser.y"
- { (yyval.select_stmt) = (yyvsp[-1].select_stmt); }
+ case 113:
+#line 756 "bison_parser.y"
+ {
+ (yyval.select_stmt) = (yyvsp[-1].select_stmt);
+ }
#line 4010 "bison_parser.cpp"
break;
- case 114: /* select_with_paren: '(' select_with_paren ')' */
-#line 747 "bison_parser.y"
- { (yyval.select_stmt) = (yyvsp[-1].select_stmt); }
+ case 114:
+#line 757 "bison_parser.y"
+ {
+ (yyval.select_stmt) = (yyvsp[-1].select_stmt);
+ }
#line 4016 "bison_parser.cpp"
break;
- case 115: /* select_no_paren: select_clause opt_order opt_limit */
-#line 749 "bison_parser.y"
- {
- (yyval.select_stmt) = (yyvsp[-2].select_stmt);
- (yyval.select_stmt)->order = (yyvsp[-1].order_vec);
+ case 115:
+#line 759 "bison_parser.y"
+ {
+ (yyval.select_stmt) = (yyvsp[-3].select_stmt);
+ (yyval.select_stmt)->order = (yyvsp[-2].order_vec);
- // Limit could have been set by TOP.
- if ((yyvsp[0].limit) != nullptr) {
- delete (yyval.select_stmt)->limit;
- (yyval.select_stmt)->limit = (yyvsp[0].limit);
- }
-}
-#line 4031 "bison_parser.cpp"
+ // Limit could have been set by TOP.
+ if ((yyvsp[-1].limit) != nullptr) {
+ delete (yyval.select_stmt)->limit;
+ (yyval.select_stmt)->limit = (yyvsp[-1].limit);
+ }
+
+ if ((yyvsp[0].locking_clause_vec) != nullptr) {
+ (yyval.select_stmt)->lockings = (yyvsp[0].locking_clause_vec);
+ }
+ }
+#line 4035 "bison_parser.cpp"
+ break;
+
+ case 116:
+#line 773 "bison_parser.y"
+ {
+ (yyval.select_stmt) = (yyvsp[-5].select_stmt);
+ if ((yyval.select_stmt)->setOperations == nullptr) {
+ (yyval.select_stmt)->setOperations = new std::vector();
+ }
+ (yyval.select_stmt)->setOperations->push_back((yyvsp[-4].set_operator_t));
+ (yyval.select_stmt)->setOperations->back()->nestedSelectStatement = (yyvsp[-3].select_stmt);
+ (yyval.select_stmt)->setOperations->back()->resultOrder = (yyvsp[-2].order_vec);
+ (yyval.select_stmt)->setOperations->back()->resultLimit = (yyvsp[-1].limit);
+ (yyval.select_stmt)->lockings = (yyvsp[0].locking_clause_vec);
+ }
+#line 4051 "bison_parser.cpp"
+ break;
+
+ case 117:
+#line 785 "bison_parser.y"
+ {
+ (yyval.set_operator_t) = (yyvsp[-1].set_operator_t);
+ (yyval.set_operator_t)->isAll = (yyvsp[0].bval);
+ }
+#line 4060 "bison_parser.cpp"
+ break;
+
+ case 118:
+#line 790 "bison_parser.y"
+ {
+ (yyval.set_operator_t) = new SetOperation();
+ (yyval.set_operator_t)->setType = SetType::kSetUnion;
+ }
+#line 4069 "bison_parser.cpp"
+ break;
+
+ case 119:
+#line 794 "bison_parser.y"
+ {
+ (yyval.set_operator_t) = new SetOperation();
+ (yyval.set_operator_t)->setType = SetType::kSetIntersect;
+ }
+#line 4078 "bison_parser.cpp"
+ break;
+
+ case 120:
+#line 798 "bison_parser.y"
+ {
+ (yyval.set_operator_t) = new SetOperation();
+ (yyval.set_operator_t)->setType = SetType::kSetExcept;
+ }
+#line 4087 "bison_parser.cpp"
+ break;
+
+ case 121:
+#line 803 "bison_parser.y"
+ {
+ (yyval.bval) = true;
+ }
+#line 4093 "bison_parser.cpp"
+ break;
+
+ case 122:
+#line 804 "bison_parser.y"
+ {
+ (yyval.bval) = false;
+ }
+#line 4099 "bison_parser.cpp"
+ break;
+
+ case 123:
+#line 806 "bison_parser.y"
+ {
+ (yyval.select_stmt) = new SelectStatement();
+ (yyval.select_stmt)->limit = (yyvsp[-5].limit);
+ (yyval.select_stmt)->selectDistinct = (yyvsp[-4].bval);
+ (yyval.select_stmt)->selectList = (yyvsp[-3].expr_vec);
+ (yyval.select_stmt)->fromTable = (yyvsp[-2].table);
+ (yyval.select_stmt)->whereClause = (yyvsp[-1].expr);
+ (yyval.select_stmt)->groupBy = (yyvsp[0].group_t);
+ }
+#line 4113 "bison_parser.cpp"
+ break;
+
+ case 124:
+#line 816 "bison_parser.y"
+ {
+ (yyval.bval) = true;
+ }
+#line 4119 "bison_parser.cpp"
+ break;
+
+ case 125:
+#line 817 "bison_parser.y"
+ {
+ (yyval.bval) = false;
+ }
+#line 4125 "bison_parser.cpp"
+ break;
+
+ case 127:
+#line 821 "bison_parser.y"
+ {
+ (yyval.table) = (yyvsp[0].table);
+ }
+#line 4131 "bison_parser.cpp"
+ break;
+
+ case 128:
+#line 822 "bison_parser.y"
+ {
+ (yyval.table) = nullptr;
+ }
+#line 4137 "bison_parser.cpp"
+ break;
+
+ case 129:
+#line 824 "bison_parser.y"
+ {
+ (yyval.table) = (yyvsp[0].table);
+ }
+#line 4143 "bison_parser.cpp"
+ break;
+
+ case 130:
+#line 826 "bison_parser.y"
+ {
+ (yyval.expr) = (yyvsp[0].expr);
+ }
+#line 4149 "bison_parser.cpp"
+ break;
+
+ case 131:
+#line 827 "bison_parser.y"
+ {
+ (yyval.expr) = nullptr;
+ }
+#line 4155 "bison_parser.cpp"
break;
- case 116: /* select_no_paren: select_clause set_operator select_within_set_operation opt_order opt_limit */
-#line 759 "bison_parser.y"
- {
- (yyval.select_stmt) = (yyvsp[-4].select_stmt);
- if ((yyval.select_stmt)->setOperations == nullptr) {
- (yyval.select_stmt)->setOperations = new std::vector();
- }
- (yyval.select_stmt)->setOperations->push_back((yyvsp[-3].set_operator_t));
- (yyval.select_stmt)->setOperations->back()->nestedSelectStatement = (yyvsp[-2].select_stmt);
- (yyval.select_stmt)->setOperations->back()->resultOrder = (yyvsp[-1].order_vec);
- (yyval.select_stmt)->setOperations->back()->resultLimit = (yyvsp[0].limit);
-}
-#line 4046 "bison_parser.cpp"
+ case 132:
+#line 829 "bison_parser.y"
+ {
+ (yyval.group_t) = new GroupByDescription();
+ (yyval.group_t)->columns = (yyvsp[-1].expr_vec);
+ (yyval.group_t)->having = (yyvsp[0].expr);
+ }
+#line 4165 "bison_parser.cpp"
break;
- case 117: /* set_operator: set_type opt_all */
-#line 770 "bison_parser.y"
- {
- (yyval.set_operator_t) = (yyvsp[-1].set_operator_t);
- (yyval.set_operator_t)->isAll = (yyvsp[0].bval);
-}
-#line 4055 "bison_parser.cpp"
+ case 133:
+#line 834 "bison_parser.y"
+ {
+ (yyval.group_t) = nullptr;
+ }
+#line 4171 "bison_parser.cpp"
break;
- case 118: /* set_type: UNION */
-#line 775 "bison_parser.y"
- {
- (yyval.set_operator_t) = new SetOperation();
- (yyval.set_operator_t)->setType = SetType::kSetUnion;
-}
-#line 4064 "bison_parser.cpp"
+ case 134:
+#line 836 "bison_parser.y"
+ {
+ (yyval.expr) = (yyvsp[0].expr);
+ }
+#line 4177 "bison_parser.cpp"
break;
- case 119: /* set_type: INTERSECT */
-#line 779 "bison_parser.y"
- {
- (yyval.set_operator_t) = new SetOperation();
- (yyval.set_operator_t)->setType = SetType::kSetIntersect;
-}
-#line 4073 "bison_parser.cpp"
+ case 135:
+#line 837 "bison_parser.y"
+ {
+ (yyval.expr) = nullptr;
+ }
+#line 4183 "bison_parser.cpp"
break;
- case 120: /* set_type: EXCEPT */
-#line 783 "bison_parser.y"
- {
- (yyval.set_operator_t) = new SetOperation();
- (yyval.set_operator_t)->setType = SetType::kSetExcept;
-}
-#line 4082 "bison_parser.cpp"
+ case 136:
+#line 839 "bison_parser.y"
+ {
+ (yyval.order_vec) = (yyvsp[0].order_vec);
+ }
+#line 4189 "bison_parser.cpp"
break;
- case 121: /* opt_all: ALL */
-#line 788 "bison_parser.y"
- { (yyval.bval) = true; }
-#line 4088 "bison_parser.cpp"
+ case 137:
+#line 840 "bison_parser.y"
+ {
+ (yyval.order_vec) = nullptr;
+ }
+#line 4195 "bison_parser.cpp"
break;
- case 122: /* opt_all: %empty */
-#line 789 "bison_parser.y"
- { (yyval.bval) = false; }
-#line 4094 "bison_parser.cpp"
+ case 138:
+#line 842 "bison_parser.y"
+ {
+ (yyval.order_vec) = new std::vector();
+ (yyval.order_vec)->push_back((yyvsp[0].order));
+ }
+#line 4204 "bison_parser.cpp"
break;
- case 123: /* select_clause: SELECT opt_top opt_distinct select_list opt_from_clause opt_where opt_group */
-#line 791 "bison_parser.y"
- {
- (yyval.select_stmt) = new SelectStatement();
- (yyval.select_stmt)->limit = (yyvsp[-5].limit);
- (yyval.select_stmt)->selectDistinct = (yyvsp[-4].bval);
- (yyval.select_stmt)->selectList = (yyvsp[-3].expr_vec);
- (yyval.select_stmt)->fromTable = (yyvsp[-2].table);
- (yyval.select_stmt)->whereClause = (yyvsp[-1].expr);
- (yyval.select_stmt)->groupBy = (yyvsp[0].group_t);
-}
-#line 4108 "bison_parser.cpp"
+ case 139:
+#line 846 "bison_parser.y"
+ {
+ (yyvsp[-2].order_vec)->push_back((yyvsp[0].order));
+ (yyval.order_vec) = (yyvsp[-2].order_vec);
+ }
+#line 4213 "bison_parser.cpp"
break;
- case 124: /* opt_distinct: DISTINCT */
-#line 801 "bison_parser.y"
- { (yyval.bval) = true; }
-#line 4114 "bison_parser.cpp"
+ case 140:
+#line 851 "bison_parser.y"
+ {
+ (yyval.order) = new OrderDescription((yyvsp[0].order_type), (yyvsp[-1].expr));
+ }
+#line 4219 "bison_parser.cpp"
break;
- case 125: /* opt_distinct: %empty */
-#line 802 "bison_parser.y"
- { (yyval.bval) = false; }
-#line 4120 "bison_parser.cpp"
+ case 141:
+#line 853 "bison_parser.y"
+ {
+ (yyval.order_type) = kOrderAsc;
+ }
+#line 4225 "bison_parser.cpp"
break;
- case 127: /* opt_from_clause: from_clause */
-#line 806 "bison_parser.y"
- { (yyval.table) = (yyvsp[0].table); }
-#line 4126 "bison_parser.cpp"
+ case 142:
+#line 854 "bison_parser.y"
+ {
+ (yyval.order_type) = kOrderDesc;
+ }
+#line 4231 "bison_parser.cpp"
break;
- case 128: /* opt_from_clause: %empty */
-#line 807 "bison_parser.y"
- { (yyval.table) = nullptr; }
-#line 4132 "bison_parser.cpp"
+ case 143:
+#line 855 "bison_parser.y"
+ {
+ (yyval.order_type) = kOrderAsc;
+ }
+#line 4237 "bison_parser.cpp"
break;
- case 129: /* from_clause: FROM table_ref */
-#line 809 "bison_parser.y"
- { (yyval.table) = (yyvsp[0].table); }
-#line 4138 "bison_parser.cpp"
+ case 144:
+#line 859 "bison_parser.y"
+ {
+ (yyval.limit) = new LimitDescription((yyvsp[0].expr), nullptr);
+ }
+#line 4243 "bison_parser.cpp"
break;
- case 130: /* opt_where: WHERE expr */
-#line 811 "bison_parser.y"
- { (yyval.expr) = (yyvsp[0].expr); }
-#line 4144 "bison_parser.cpp"
+ case 145:
+#line 860 "bison_parser.y"
+ {
+ (yyval.limit) = nullptr;
+ }
+#line 4249 "bison_parser.cpp"
break;
- case 131: /* opt_where: %empty */
-#line 812 "bison_parser.y"
- { (yyval.expr) = nullptr; }
-#line 4150 "bison_parser.cpp"
+ case 146:
+#line 862 "bison_parser.y"
+ {
+ (yyval.limit) = new LimitDescription((yyvsp[0].expr), nullptr);
+ }
+#line 4255 "bison_parser.cpp"
break;
- case 132: /* opt_group: GROUP BY expr_list opt_having */
-#line 814 "bison_parser.y"
- {
- (yyval.group_t) = new GroupByDescription();
- (yyval.group_t)->columns = (yyvsp[-1].expr_vec);
- (yyval.group_t)->having = (yyvsp[0].expr);
-}
-#line 4160 "bison_parser.cpp"
+ case 147:
+#line 863 "bison_parser.y"
+ {
+ (yyval.limit) = new LimitDescription(nullptr, (yyvsp[0].expr));
+ }
+#line 4261 "bison_parser.cpp"
break;
- case 133: /* opt_group: %empty */
-#line 819 "bison_parser.y"
- { (yyval.group_t) = nullptr; }
-#line 4166 "bison_parser.cpp"
+ case 148:
+#line 864 "bison_parser.y"
+ {
+ (yyval.limit) = new LimitDescription((yyvsp[-2].expr), (yyvsp[0].expr));
+ }
+#line 4267 "bison_parser.cpp"
break;
- case 134: /* opt_having: HAVING expr */
-#line 821 "bison_parser.y"
- { (yyval.expr) = (yyvsp[0].expr); }
-#line 4172 "bison_parser.cpp"
+ case 149:
+#line 865 "bison_parser.y"
+ {
+ (yyval.limit) = new LimitDescription(nullptr, nullptr);
+ }
+#line 4273 "bison_parser.cpp"
break;
- case 135: /* opt_having: %empty */
-#line 822 "bison_parser.y"
- { (yyval.expr) = nullptr; }
-#line 4178 "bison_parser.cpp"
+ case 150:
+#line 866 "bison_parser.y"
+ {
+ (yyval.limit) = new LimitDescription(nullptr, (yyvsp[0].expr));
+ }
+#line 4279 "bison_parser.cpp"
break;
- case 136: /* opt_order: ORDER BY order_list */
-#line 824 "bison_parser.y"
- { (yyval.order_vec) = (yyvsp[0].order_vec); }
-#line 4184 "bison_parser.cpp"
+ case 151:
+#line 867 "bison_parser.y"
+ {
+ (yyval.limit) = nullptr;
+ }
+#line 4285 "bison_parser.cpp"
break;
- case 137: /* opt_order: %empty */
-#line 825 "bison_parser.y"
- { (yyval.order_vec) = nullptr; }
-#line 4190 "bison_parser.cpp"
+ case 152:
+#line 872 "bison_parser.y"
+ {
+ (yyval.expr_vec) = new std::vector();
+ (yyval.expr_vec)->push_back((yyvsp[0].expr));
+ }
+#line 4294 "bison_parser.cpp"
break;
- case 138: /* order_list: order_desc */
-#line 827 "bison_parser.y"
- {
- (yyval.order_vec) = new std::vector();
- (yyval.order_vec)->push_back((yyvsp[0].order));
-}
-#line 4199 "bison_parser.cpp"
+ case 153:
+#line 876 "bison_parser.y"
+ {
+ (yyvsp[-2].expr_vec)->push_back((yyvsp[0].expr));
+ (yyval.expr_vec) = (yyvsp[-2].expr_vec);
+ }
+#line 4303 "bison_parser.cpp"
break;
- case 139: /* order_list: order_list ',' order_desc */
-#line 831 "bison_parser.y"
- {
- (yyvsp[-2].order_vec)->push_back((yyvsp[0].order));
- (yyval.order_vec) = (yyvsp[-2].order_vec);
-}
-#line 4208 "bison_parser.cpp"
+ case 154:
+#line 881 "bison_parser.y"
+ {
+ (yyval.expr_vec) = (yyvsp[0].expr_vec);
+ }
+#line 4309 "bison_parser.cpp"
break;
- case 140: /* order_desc: expr opt_order_type */
-#line 836 "bison_parser.y"
- { (yyval.order) = new OrderDescription((yyvsp[0].order_type), (yyvsp[-1].expr)); }
-#line 4214 "bison_parser.cpp"
+ case 155:
+#line 882 "bison_parser.y"
+ {
+ (yyval.expr_vec) = nullptr;
+ }
+#line 4315 "bison_parser.cpp"
break;
- case 141: /* opt_order_type: ASC */
-#line 838 "bison_parser.y"
- { (yyval.order_type) = kOrderAsc; }
-#line 4220 "bison_parser.cpp"
+ case 156:
+#line 884 "bison_parser.y"
+ {
+ (yyval.expr_vec) = new std::vector();
+ (yyval.expr_vec)->push_back((yyvsp[0].expr));
+ }
+#line 4324 "bison_parser.cpp"
break;
- case 142: /* opt_order_type: DESC */
-#line 839 "bison_parser.y"
- { (yyval.order_type) = kOrderDesc; }
-#line 4226 "bison_parser.cpp"
+ case 157:
+#line 888 "bison_parser.y"
+ {
+ (yyvsp[-2].expr_vec)->push_back((yyvsp[0].expr));
+ (yyval.expr_vec) = (yyvsp[-2].expr_vec);
+ }
+#line 4333 "bison_parser.cpp"
break;
- case 143: /* opt_order_type: %empty */
-#line 840 "bison_parser.y"
- { (yyval.order_type) = kOrderAsc; }
-#line 4232 "bison_parser.cpp"
+ case 158:
+#line 893 "bison_parser.y"
+ {
+ (yyval.expr) = (yyvsp[-1].expr);
+ if ((yyvsp[0].alias_t)) {
+ (yyval.expr)->alias = strdup((yyvsp[0].alias_t)->name);
+ delete (yyvsp[0].alias_t);
+ }
+ }
+#line 4345 "bison_parser.cpp"
break;
- case 144: /* opt_top: TOP int_literal */
-#line 844 "bison_parser.y"
- { (yyval.limit) = new LimitDescription((yyvsp[0].expr), nullptr); }
-#line 4238 "bison_parser.cpp"
+ case 164:
+#line 903 "bison_parser.y"
+ {
+ (yyval.expr) = (yyvsp[-1].expr);
+ }
+#line 4351 "bison_parser.cpp"
break;
- case 145: /* opt_top: %empty */
-#line 845 "bison_parser.y"
- { (yyval.limit) = nullptr; }
-#line 4244 "bison_parser.cpp"
+ case 174:
+#line 905 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeSelect((yyvsp[-1].select_stmt));
+ }
+#line 4359 "bison_parser.cpp"
break;
- case 146: /* opt_limit: LIMIT expr */
-#line 847 "bison_parser.y"
- { (yyval.limit) = new LimitDescription((yyvsp[0].expr), nullptr); }
-#line 4250 "bison_parser.cpp"
+ case 177:
+#line 911 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeOpUnary(kOpUnaryMinus, (yyvsp[0].expr));
+ }
+#line 4365 "bison_parser.cpp"
break;
- case 147: /* opt_limit: OFFSET expr */
-#line 848 "bison_parser.y"
- { (yyval.limit) = new LimitDescription(nullptr, (yyvsp[0].expr)); }
-#line 4256 "bison_parser.cpp"
+ case 178:
+#line 912 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeOpUnary(kOpNot, (yyvsp[0].expr));
+ }
+#line 4371 "bison_parser.cpp"
break;
- case 148: /* opt_limit: LIMIT expr OFFSET expr */
-#line 849 "bison_parser.y"
- { (yyval.limit) = new LimitDescription((yyvsp[-2].expr), (yyvsp[0].expr)); }
-#line 4262 "bison_parser.cpp"
+ case 179:
+#line 913 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeOpUnary(kOpIsNull, (yyvsp[-1].expr));
+ }
+#line 4377 "bison_parser.cpp"
break;
- case 149: /* opt_limit: LIMIT ALL */
-#line 850 "bison_parser.y"
- { (yyval.limit) = new LimitDescription(nullptr, nullptr); }
-#line 4268 "bison_parser.cpp"
+ case 180:
+#line 914 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeOpUnary(kOpIsNull, (yyvsp[-2].expr));
+ }
+#line 4383 "bison_parser.cpp"
break;
- case 150: /* opt_limit: LIMIT ALL OFFSET expr */
-#line 851 "bison_parser.y"
- { (yyval.limit) = new LimitDescription(nullptr, (yyvsp[0].expr)); }
-#line 4274 "bison_parser.cpp"
+ case 181:
+#line 915 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeOpUnary(kOpNot, Expr::makeOpUnary(kOpIsNull, (yyvsp[-3].expr)));
+ }
+#line 4389 "bison_parser.cpp"
break;
- case 151: /* opt_limit: %empty */
-#line 852 "bison_parser.y"
- { (yyval.limit) = nullptr; }
-#line 4280 "bison_parser.cpp"
+ case 183:
+#line 917 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeOpBinary((yyvsp[-2].expr), kOpMinus, (yyvsp[0].expr));
+ }
+#line 4395 "bison_parser.cpp"
break;
- case 152: /* expr_list: expr_alias */
-#line 857 "bison_parser.y"
- {
- (yyval.expr_vec) = new std::vector();
- (yyval.expr_vec)->push_back((yyvsp[0].expr));
-}
-#line 4289 "bison_parser.cpp"
+ case 184:
+#line 918 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeOpBinary((yyvsp[-2].expr), kOpPlus, (yyvsp[0].expr));
+ }
+#line 4401 "bison_parser.cpp"
break;
- case 153: /* expr_list: expr_list ',' expr_alias */
-#line 861 "bison_parser.y"
- {
- (yyvsp[-2].expr_vec)->push_back((yyvsp[0].expr));
- (yyval.expr_vec) = (yyvsp[-2].expr_vec);
-}
-#line 4298 "bison_parser.cpp"
+ case 185:
+#line 919 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeOpBinary((yyvsp[-2].expr), kOpSlash, (yyvsp[0].expr));
+ }
+#line 4407 "bison_parser.cpp"
break;
- case 154: /* opt_literal_list: literal_list */
-#line 866 "bison_parser.y"
- { (yyval.expr_vec) = (yyvsp[0].expr_vec); }
-#line 4304 "bison_parser.cpp"
+ case 186:
+#line 920 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeOpBinary((yyvsp[-2].expr), kOpAsterisk, (yyvsp[0].expr));
+ }
+#line 4413 "bison_parser.cpp"
break;
- case 155: /* opt_literal_list: %empty */
-#line 867 "bison_parser.y"
- { (yyval.expr_vec) = nullptr; }
-#line 4310 "bison_parser.cpp"
+ case 187:
+#line 921 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeOpBinary((yyvsp[-2].expr), kOpPercentage, (yyvsp[0].expr));
+ }
+#line 4419 "bison_parser.cpp"
break;
- case 156: /* literal_list: literal */
-#line 869 "bison_parser.y"
- {
- (yyval.expr_vec) = new std::vector();
- (yyval.expr_vec)->push_back((yyvsp[0].expr));
-}
-#line 4319 "bison_parser.cpp"
+ case 188:
+#line 922 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeOpBinary((yyvsp[-2].expr), kOpCaret, (yyvsp[0].expr));
+ }
+#line 4425 "bison_parser.cpp"
break;
- case 157: /* literal_list: literal_list ',' literal */
-#line 873 "bison_parser.y"
- {
- (yyvsp[-2].expr_vec)->push_back((yyvsp[0].expr));
- (yyval.expr_vec) = (yyvsp[-2].expr_vec);
-}
-#line 4328 "bison_parser.cpp"
+ case 189:
+#line 923 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeOpBinary((yyvsp[-2].expr), kOpLike, (yyvsp[0].expr));
+ }
+#line 4431 "bison_parser.cpp"
break;
- case 158: /* expr_alias: expr opt_alias */
-#line 878 "bison_parser.y"
- {
- (yyval.expr) = (yyvsp[-1].expr);
- if ((yyvsp[0].alias_t)) {
- (yyval.expr)->alias = strdup((yyvsp[0].alias_t)->name);
- delete (yyvsp[0].alias_t);
- }
-}
-#line 4340 "bison_parser.cpp"
+ case 190:
+#line 924 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeOpBinary((yyvsp[-3].expr), kOpNotLike, (yyvsp[0].expr));
+ }
+#line 4437 "bison_parser.cpp"
break;
- case 164: /* operand: '(' expr ')' */
-#line 888 "bison_parser.y"
- { (yyval.expr) = (yyvsp[-1].expr); }
-#line 4346 "bison_parser.cpp"
+ case 191:
+#line 925 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeOpBinary((yyvsp[-2].expr), kOpILike, (yyvsp[0].expr));
+ }
+#line 4443 "bison_parser.cpp"
break;
- case 174: /* operand: '(' select_no_paren ')' */
-#line 890 "bison_parser.y"
- {
- (yyval.expr) = Expr::makeSelect((yyvsp[-1].select_stmt));
-}
-#line 4354 "bison_parser.cpp"
+ case 192:
+#line 926 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeOpBinary((yyvsp[-2].expr), kOpConcat, (yyvsp[0].expr));
+ }
+#line 4449 "bison_parser.cpp"
break;
- case 177: /* unary_expr: '-' operand */
-#line 896 "bison_parser.y"
- { (yyval.expr) = Expr::makeOpUnary(kOpUnaryMinus, (yyvsp[0].expr)); }
-#line 4360 "bison_parser.cpp"
+ case 193:
+#line 928 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeOpBinary((yyvsp[-2].expr), kOpAnd, (yyvsp[0].expr));
+ }
+#line 4455 "bison_parser.cpp"
break;
- case 178: /* unary_expr: NOT operand */
-#line 897 "bison_parser.y"
- { (yyval.expr) = Expr::makeOpUnary(kOpNot, (yyvsp[0].expr)); }
-#line 4366 "bison_parser.cpp"
+ case 194:
+#line 929 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeOpBinary((yyvsp[-2].expr), kOpOr, (yyvsp[0].expr));
+ }
+#line 4461 "bison_parser.cpp"
break;
- case 179: /* unary_expr: operand ISNULL */
-#line 898 "bison_parser.y"
- { (yyval.expr) = Expr::makeOpUnary(kOpIsNull, (yyvsp[-1].expr)); }
-#line 4372 "bison_parser.cpp"
+ case 195:
+#line 931 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeInOperator((yyvsp[-4].expr), (yyvsp[-1].expr_vec));
+ }
+#line 4467 "bison_parser.cpp"
break;
- case 180: /* unary_expr: operand IS NULL */
-#line 899 "bison_parser.y"
- { (yyval.expr) = Expr::makeOpUnary(kOpIsNull, (yyvsp[-2].expr)); }
-#line 4378 "bison_parser.cpp"
+ case 196:
+#line 932 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeOpUnary(kOpNot, Expr::makeInOperator((yyvsp[-5].expr), (yyvsp[-1].expr_vec)));
+ }
+#line 4473 "bison_parser.cpp"
break;
- case 181: /* unary_expr: operand IS NOT NULL */
-#line 900 "bison_parser.y"
- { (yyval.expr) = Expr::makeOpUnary(kOpNot, Expr::makeOpUnary(kOpIsNull, (yyvsp[-3].expr))); }
-#line 4384 "bison_parser.cpp"
+ case 197:
+#line 933 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeInOperator((yyvsp[-4].expr), (yyvsp[-1].select_stmt));
+ }
+#line 4479 "bison_parser.cpp"
break;
- case 183: /* binary_expr: operand '-' operand */
-#line 902 "bison_parser.y"
- { (yyval.expr) = Expr::makeOpBinary((yyvsp[-2].expr), kOpMinus, (yyvsp[0].expr)); }
-#line 4390 "bison_parser.cpp"
+ case 198:
+#line 934 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeOpUnary(kOpNot, Expr::makeInOperator((yyvsp[-5].expr), (yyvsp[-1].select_stmt)));
+ }
+#line 4485 "bison_parser.cpp"
break;
- case 184: /* binary_expr: operand '+' operand */
-#line 903 "bison_parser.y"
- { (yyval.expr) = Expr::makeOpBinary((yyvsp[-2].expr), kOpPlus, (yyvsp[0].expr)); }
-#line 4396 "bison_parser.cpp"
+ case 199:
+#line 938 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeCase((yyvsp[-2].expr), (yyvsp[-1].expr), nullptr);
+ }
+#line 4491 "bison_parser.cpp"
break;
- case 185: /* binary_expr: operand '/' operand */
-#line 904 "bison_parser.y"
- { (yyval.expr) = Expr::makeOpBinary((yyvsp[-2].expr), kOpSlash, (yyvsp[0].expr)); }
-#line 4402 "bison_parser.cpp"
+ case 200:
+#line 939 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeCase((yyvsp[-4].expr), (yyvsp[-3].expr), (yyvsp[-1].expr));
+ }
+#line 4497 "bison_parser.cpp"
break;
- case 186: /* binary_expr: operand '*' operand */
-#line 905 "bison_parser.y"
- { (yyval.expr) = Expr::makeOpBinary((yyvsp[-2].expr), kOpAsterisk, (yyvsp[0].expr)); }
-#line 4408 "bison_parser.cpp"
+ case 201:
+#line 940 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeCase(nullptr, (yyvsp[-1].expr), nullptr);
+ }
+#line 4503 "bison_parser.cpp"
break;
- case 187: /* binary_expr: operand '%' operand */
-#line 906 "bison_parser.y"
- { (yyval.expr) = Expr::makeOpBinary((yyvsp[-2].expr), kOpPercentage, (yyvsp[0].expr)); }
-#line 4414 "bison_parser.cpp"
+ case 202:
+#line 941 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeCase(nullptr, (yyvsp[-3].expr), (yyvsp[-1].expr));
+ }
+#line 4509 "bison_parser.cpp"
break;
- case 188: /* binary_expr: operand '^' operand */
-#line 907 "bison_parser.y"
- { (yyval.expr) = Expr::makeOpBinary((yyvsp[-2].expr), kOpCaret, (yyvsp[0].expr)); }
-#line 4420 "bison_parser.cpp"
+ case 203:
+#line 943 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeCaseList(Expr::makeCaseListElement((yyvsp[-2].expr), (yyvsp[0].expr)));
+ }
+#line 4515 "bison_parser.cpp"
break;
- case 189: /* binary_expr: operand LIKE operand */
-#line 908 "bison_parser.y"
- { (yyval.expr) = Expr::makeOpBinary((yyvsp[-2].expr), kOpLike, (yyvsp[0].expr)); }
-#line 4426 "bison_parser.cpp"
+ case 204:
+#line 944 "bison_parser.y"
+ {
+ (yyval.expr) =
+ Expr::caseListAppend((yyvsp[-4].expr), Expr::makeCaseListElement((yyvsp[-2].expr), (yyvsp[0].expr)));
+ }
+#line 4521 "bison_parser.cpp"
break;
- case 190: /* binary_expr: operand NOT LIKE operand */
-#line 909 "bison_parser.y"
- { (yyval.expr) = Expr::makeOpBinary((yyvsp[-3].expr), kOpNotLike, (yyvsp[0].expr)); }
-#line 4432 "bison_parser.cpp"
+ case 205:
+#line 946 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeExists((yyvsp[-1].select_stmt));
+ }
+#line 4527 "bison_parser.cpp"
break;
- case 191: /* binary_expr: operand ILIKE operand */
-#line 910 "bison_parser.y"
- { (yyval.expr) = Expr::makeOpBinary((yyvsp[-2].expr), kOpILike, (yyvsp[0].expr)); }
-#line 4438 "bison_parser.cpp"
+ case 206:
+#line 947 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeOpUnary(kOpNot, Expr::makeExists((yyvsp[-1].select_stmt)));
+ }
+#line 4533 "bison_parser.cpp"
break;
- case 192: /* binary_expr: operand CONCAT operand */
-#line 911 "bison_parser.y"
- { (yyval.expr) = Expr::makeOpBinary((yyvsp[-2].expr), kOpConcat, (yyvsp[0].expr)); }
-#line 4444 "bison_parser.cpp"
+ case 207:
+#line 949 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeOpBinary((yyvsp[-2].expr), kOpEquals, (yyvsp[0].expr));
+ }
+#line 4539 "bison_parser.cpp"
break;
- case 193: /* logic_expr: expr AND expr */
-#line 913 "bison_parser.y"
- { (yyval.expr) = Expr::makeOpBinary((yyvsp[-2].expr), kOpAnd, (yyvsp[0].expr)); }
-#line 4450 "bison_parser.cpp"
+ case 208:
+#line 950 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeOpBinary((yyvsp[-2].expr), kOpEquals, (yyvsp[0].expr));
+ }
+#line 4545 "bison_parser.cpp"
break;
- case 194: /* logic_expr: expr OR expr */
-#line 914 "bison_parser.y"
- { (yyval.expr) = Expr::makeOpBinary((yyvsp[-2].expr), kOpOr, (yyvsp[0].expr)); }
-#line 4456 "bison_parser.cpp"
+ case 209:
+#line 951 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeOpBinary((yyvsp[-2].expr), kOpNotEquals, (yyvsp[0].expr));
+ }
+#line 4551 "bison_parser.cpp"
break;
- case 195: /* in_expr: operand IN '(' expr_list ')' */
-#line 916 "bison_parser.y"
- { (yyval.expr) = Expr::makeInOperator((yyvsp[-4].expr), (yyvsp[-1].expr_vec)); }
-#line 4462 "bison_parser.cpp"
+ case 210:
+#line 952 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeOpBinary((yyvsp[-2].expr), kOpLess, (yyvsp[0].expr));
+ }
+#line 4557 "bison_parser.cpp"
break;
- case 196: /* in_expr: operand NOT IN '(' expr_list ')' */
-#line 917 "bison_parser.y"
- { (yyval.expr) = Expr::makeOpUnary(kOpNot, Expr::makeInOperator((yyvsp[-5].expr), (yyvsp[-1].expr_vec))); }
-#line 4468 "bison_parser.cpp"
+ case 211:
+#line 953 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeOpBinary((yyvsp[-2].expr), kOpGreater, (yyvsp[0].expr));
+ }
+#line 4563 "bison_parser.cpp"
break;
- case 197: /* in_expr: operand IN '(' select_no_paren ')' */
-#line 918 "bison_parser.y"
- { (yyval.expr) = Expr::makeInOperator((yyvsp[-4].expr), (yyvsp[-1].select_stmt)); }
-#line 4474 "bison_parser.cpp"
+ case 212:
+#line 954 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeOpBinary((yyvsp[-2].expr), kOpLessEq, (yyvsp[0].expr));
+ }
+#line 4569 "bison_parser.cpp"
break;
- case 198: /* in_expr: operand NOT IN '(' select_no_paren ')' */
-#line 919 "bison_parser.y"
- { (yyval.expr) = Expr::makeOpUnary(kOpNot, Expr::makeInOperator((yyvsp[-5].expr), (yyvsp[-1].select_stmt))); }
-#line 4480 "bison_parser.cpp"
+ case 213:
+#line 955 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeOpBinary((yyvsp[-2].expr), kOpGreaterEq, (yyvsp[0].expr));
+ }
+#line 4575 "bison_parser.cpp"
break;
- case 199: /* case_expr: CASE expr case_list END */
-#line 923 "bison_parser.y"
- { (yyval.expr) = Expr::makeCase((yyvsp[-2].expr), (yyvsp[-1].expr), nullptr); }
-#line 4486 "bison_parser.cpp"
+ case 214:
+#line 957 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeFunctionRef((yyvsp[-2].sval), new std::vector(), false);
+ }
+#line 4581 "bison_parser.cpp"
break;
- case 200: /* case_expr: CASE expr case_list ELSE expr END */
-#line 924 "bison_parser.y"
- { (yyval.expr) = Expr::makeCase((yyvsp[-4].expr), (yyvsp[-3].expr), (yyvsp[-1].expr)); }
-#line 4492 "bison_parser.cpp"
+ case 215:
+#line 958 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeFunctionRef((yyvsp[-4].sval), (yyvsp[-1].expr_vec), (yyvsp[-2].bval));
+ }
+#line 4587 "bison_parser.cpp"
break;
- case 201: /* case_expr: CASE case_list END */
-#line 925 "bison_parser.y"
- { (yyval.expr) = Expr::makeCase(nullptr, (yyvsp[-1].expr), nullptr); }
-#line 4498 "bison_parser.cpp"
+ case 216:
+#line 960 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeExtract((yyvsp[-3].datetime_field), (yyvsp[-1].expr));
+ }
+#line 4593 "bison_parser.cpp"
break;
- case 202: /* case_expr: CASE case_list ELSE expr END */
-#line 926 "bison_parser.y"
- { (yyval.expr) = Expr::makeCase(nullptr, (yyvsp[-3].expr), (yyvsp[-1].expr)); }
-#line 4504 "bison_parser.cpp"
+ case 217:
+#line 962 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeCast((yyvsp[-3].expr), (yyvsp[-1].column_type_t));
+ }
+#line 4599 "bison_parser.cpp"
break;
- case 203: /* case_list: WHEN expr THEN expr */
-#line 928 "bison_parser.y"
- { (yyval.expr) = Expr::makeCaseList(Expr::makeCaseListElement((yyvsp[-2].expr), (yyvsp[0].expr))); }
-#line 4510 "bison_parser.cpp"
+ case 218:
+#line 964 "bison_parser.y"
+ {
+ (yyval.datetime_field) = kDatetimeSecond;
+ }
+#line 4605 "bison_parser.cpp"
break;
- case 204: /* case_list: case_list WHEN expr THEN expr */
-#line 929 "bison_parser.y"
- { (yyval.expr) = Expr::caseListAppend((yyvsp[-4].expr), Expr::makeCaseListElement((yyvsp[-2].expr), (yyvsp[0].expr))); }
-#line 4516 "bison_parser.cpp"
+ case 219:
+#line 965 "bison_parser.y"
+ {
+ (yyval.datetime_field) = kDatetimeMinute;
+ }
+#line 4611 "bison_parser.cpp"
break;
- case 205: /* exists_expr: EXISTS '(' select_no_paren ')' */
-#line 931 "bison_parser.y"
- { (yyval.expr) = Expr::makeExists((yyvsp[-1].select_stmt)); }
-#line 4522 "bison_parser.cpp"
+ case 220:
+#line 966 "bison_parser.y"
+ {
+ (yyval.datetime_field) = kDatetimeHour;
+ }
+#line 4617 "bison_parser.cpp"
break;
- case 206: /* exists_expr: NOT EXISTS '(' select_no_paren ')' */
-#line 932 "bison_parser.y"
- { (yyval.expr) = Expr::makeOpUnary(kOpNot, Expr::makeExists((yyvsp[-1].select_stmt))); }
-#line 4528 "bison_parser.cpp"
+ case 221:
+#line 967 "bison_parser.y"
+ {
+ (yyval.datetime_field) = kDatetimeDay;
+ }
+#line 4623 "bison_parser.cpp"
break;
- case 207: /* comp_expr: operand '=' operand */
-#line 934 "bison_parser.y"
- { (yyval.expr) = Expr::makeOpBinary((yyvsp[-2].expr), kOpEquals, (yyvsp[0].expr)); }
-#line 4534 "bison_parser.cpp"
+ case 222:
+#line 968 "bison_parser.y"
+ {
+ (yyval.datetime_field) = kDatetimeMonth;
+ }
+#line 4629 "bison_parser.cpp"
break;
- case 208: /* comp_expr: operand EQUALS operand */
-#line 935 "bison_parser.y"
- { (yyval.expr) = Expr::makeOpBinary((yyvsp[-2].expr), kOpEquals, (yyvsp[0].expr)); }
-#line 4540 "bison_parser.cpp"
+ case 223:
+#line 969 "bison_parser.y"
+ {
+ (yyval.datetime_field) = kDatetimeYear;
+ }
+#line 4635 "bison_parser.cpp"
break;
- case 209: /* comp_expr: operand NOTEQUALS operand */
-#line 936 "bison_parser.y"
- { (yyval.expr) = Expr::makeOpBinary((yyvsp[-2].expr), kOpNotEquals, (yyvsp[0].expr)); }
-#line 4546 "bison_parser.cpp"
+ case 224:
+#line 971 "bison_parser.y"
+ {
+ (yyval.datetime_field) = kDatetimeSecond;
+ }
+#line 4641 "bison_parser.cpp"
break;
- case 210: /* comp_expr: operand '<' operand */
-#line 937 "bison_parser.y"
- { (yyval.expr) = Expr::makeOpBinary((yyvsp[-2].expr), kOpLess, (yyvsp[0].expr)); }
-#line 4552 "bison_parser.cpp"
+ case 225:
+#line 972 "bison_parser.y"
+ {
+ (yyval.datetime_field) = kDatetimeMinute;
+ }
+#line 4647 "bison_parser.cpp"
break;
- case 211: /* comp_expr: operand '>' operand */
-#line 938 "bison_parser.y"
- { (yyval.expr) = Expr::makeOpBinary((yyvsp[-2].expr), kOpGreater, (yyvsp[0].expr)); }
-#line 4558 "bison_parser.cpp"
+ case 226:
+#line 973 "bison_parser.y"
+ {
+ (yyval.datetime_field) = kDatetimeHour;
+ }
+#line 4653 "bison_parser.cpp"
break;
- case 212: /* comp_expr: operand LESSEQ operand */
-#line 939 "bison_parser.y"
- { (yyval.expr) = Expr::makeOpBinary((yyvsp[-2].expr), kOpLessEq, (yyvsp[0].expr)); }
-#line 4564 "bison_parser.cpp"
+ case 227:
+#line 974 "bison_parser.y"
+ {
+ (yyval.datetime_field) = kDatetimeDay;
+ }
+#line 4659 "bison_parser.cpp"
break;
- case 213: /* comp_expr: operand GREATEREQ operand */
-#line 940 "bison_parser.y"
- { (yyval.expr) = Expr::makeOpBinary((yyvsp[-2].expr), kOpGreaterEq, (yyvsp[0].expr)); }
-#line 4570 "bison_parser.cpp"
+ case 228:
+#line 975 "bison_parser.y"
+ {
+ (yyval.datetime_field) = kDatetimeMonth;
+ }
+#line 4665 "bison_parser.cpp"
break;
- case 214: /* function_expr: IDENTIFIER '(' ')' */
-#line 942 "bison_parser.y"
- { (yyval.expr) = Expr::makeFunctionRef((yyvsp[-2].sval), new std::vector(), false); }
-#line 4576 "bison_parser.cpp"
+ case 229:
+#line 976 "bison_parser.y"
+ {
+ (yyval.datetime_field) = kDatetimeYear;
+ }
+#line 4671 "bison_parser.cpp"
break;
- case 215: /* function_expr: IDENTIFIER '(' opt_distinct expr_list ')' */
-#line 943 "bison_parser.y"
- { (yyval.expr) = Expr::makeFunctionRef((yyvsp[-4].sval), (yyvsp[-1].expr_vec), (yyvsp[-2].bval)); }
-#line 4582 "bison_parser.cpp"
+ case 232:
+#line 980 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeArray((yyvsp[-1].expr_vec));
+ }
+#line 4677 "bison_parser.cpp"
break;
- case 216: /* extract_expr: EXTRACT '(' datetime_field FROM expr ')' */
-#line 945 "bison_parser.y"
- { (yyval.expr) = Expr::makeExtract((yyvsp[-3].datetime_field), (yyvsp[-1].expr)); }
-#line 4588 "bison_parser.cpp"
+ case 233:
+#line 982 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeArrayIndex((yyvsp[-3].expr), (yyvsp[-1].expr)->ival);
+ }
+#line 4683 "bison_parser.cpp"
break;
- case 217: /* cast_expr: CAST '(' expr AS column_type ')' */
-#line 947 "bison_parser.y"
- { (yyval.expr) = Expr::makeCast((yyvsp[-3].expr), (yyvsp[-1].column_type_t)); }
-#line 4594 "bison_parser.cpp"
+ case 234:
+#line 984 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeBetween((yyvsp[-4].expr), (yyvsp[-2].expr), (yyvsp[0].expr));
+ }
+#line 4689 "bison_parser.cpp"
break;
- case 218: /* datetime_field: SECOND */
-#line 949 "bison_parser.y"
- { (yyval.datetime_field) = kDatetimeSecond; }
-#line 4600 "bison_parser.cpp"
+ case 235:
+#line 986 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeColumnRef((yyvsp[0].sval));
+ }
+#line 4695 "bison_parser.cpp"
break;
- case 219: /* datetime_field: MINUTE */
-#line 950 "bison_parser.y"
- { (yyval.datetime_field) = kDatetimeMinute; }
-#line 4606 "bison_parser.cpp"
+ case 236:
+#line 987 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeColumnRef((yyvsp[-2].sval), (yyvsp[0].sval));
+ }
+#line 4701 "bison_parser.cpp"
break;
- case 220: /* datetime_field: HOUR */
-#line 951 "bison_parser.y"
- { (yyval.datetime_field) = kDatetimeHour; }
-#line 4612 "bison_parser.cpp"
+ case 237:
+#line 988 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeStar();
+ }
+#line 4707 "bison_parser.cpp"
break;
- case 221: /* datetime_field: DAY */
-#line 952 "bison_parser.y"
- { (yyval.datetime_field) = kDatetimeDay; }
-#line 4618 "bison_parser.cpp"
+ case 238:
+#line 989 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeStar((yyvsp[-2].sval));
+ }
+#line 4713 "bison_parser.cpp"
break;
- case 222: /* datetime_field: MONTH */
-#line 953 "bison_parser.y"
- { (yyval.datetime_field) = kDatetimeMonth; }
-#line 4624 "bison_parser.cpp"
+ case 246:
+#line 993 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeLiteral((yyvsp[0].sval));
+ }
+#line 4719 "bison_parser.cpp"
break;
- case 223: /* datetime_field: YEAR */
-#line 954 "bison_parser.y"
- { (yyval.datetime_field) = kDatetimeYear; }
-#line 4630 "bison_parser.cpp"
+ case 247:
+#line 995 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeLiteral(true);
+ }
+#line 4725 "bison_parser.cpp"
break;
- case 224: /* datetime_field_plural: SECONDS */
-#line 956 "bison_parser.y"
- { (yyval.datetime_field) = kDatetimeSecond; }
-#line 4636 "bison_parser.cpp"
+ case 248:
+#line 996 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeLiteral(false);
+ }
+#line 4731 "bison_parser.cpp"
break;
- case 225: /* datetime_field_plural: MINUTES */
-#line 957 "bison_parser.y"
- { (yyval.datetime_field) = kDatetimeMinute; }
-#line 4642 "bison_parser.cpp"
+ case 249:
+#line 998 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeLiteral((yyvsp[0].fval));
+ }
+#line 4737 "bison_parser.cpp"
break;
- case 226: /* datetime_field_plural: HOURS */
-#line 958 "bison_parser.y"
- { (yyval.datetime_field) = kDatetimeHour; }
-#line 4648 "bison_parser.cpp"
+ case 251:
+#line 1001 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeLiteral((yyvsp[0].ival));
+ }
+#line 4743 "bison_parser.cpp"
break;
- case 227: /* datetime_field_plural: DAYS */
-#line 959 "bison_parser.y"
- { (yyval.datetime_field) = kDatetimeDay; }
-#line 4654 "bison_parser.cpp"
+ case 252:
+#line 1003 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeNullLiteral();
+ }
+#line 4749 "bison_parser.cpp"
break;
- case 228: /* datetime_field_plural: MONTHS */
-#line 960 "bison_parser.y"
- { (yyval.datetime_field) = kDatetimeMonth; }
-#line 4660 "bison_parser.cpp"
+ case 253:
+#line 1005 "bison_parser.y"
+ {
+ int day{0}, month{0}, year{0}, chars_parsed{0};
+ // If the whole string is parsed, chars_parsed points to the terminating null byte after the last character
+ if (sscanf((yyvsp[0].sval), "%4d-%2d-%2d%n", &day, &month, &year, &chars_parsed) != 3 ||
+ (yyvsp[0].sval)[chars_parsed] != 0) {
+ free((yyvsp[0].sval));
+ yyerror(&yyloc, result, scanner, "Found incorrect date format. Expected format: YYYY-MM-DD");
+ YYERROR;
+ }
+ (yyval.expr) = Expr::makeDateLiteral((yyvsp[0].sval));
+ }
+#line 4764 "bison_parser.cpp"
break;
- case 229: /* datetime_field_plural: YEARS */
-#line 961 "bison_parser.y"
- { (yyval.datetime_field) = kDatetimeYear; }
-#line 4666 "bison_parser.cpp"
+ case 254:
+#line 1016 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeIntervalLiteral((yyvsp[-1].expr)->ival, (yyvsp[0].datetime_field));
+ delete (yyvsp[-1].expr);
+ }
+#line 4773 "bison_parser.cpp"
break;
- case 232: /* array_expr: ARRAY '[' expr_list ']' */
-#line 965 "bison_parser.y"
- { (yyval.expr) = Expr::makeArray((yyvsp[-1].expr_vec)); }
-#line 4672 "bison_parser.cpp"
+ case 255:
+#line 1020 "bison_parser.y"
+ {
+ int duration{0}, chars_parsed{0};
+ // If the whole string is parsed, chars_parsed points to the terminating null byte after the last character
+ if (sscanf((yyvsp[-1].sval), "%d%n", &duration, &chars_parsed) != 1 || (yyvsp[-1].sval)[chars_parsed] != 0) {
+ free((yyvsp[-1].sval));
+ yyerror(&yyloc, result, scanner, "Found incorrect interval format. Expected format: INTEGER");
+ YYERROR;
+ }
+ free((yyvsp[-1].sval));
+ (yyval.expr) = Expr::makeIntervalLiteral(duration, (yyvsp[0].datetime_field));
+ }
+#line 4789 "bison_parser.cpp"
break;
- case 233: /* array_index: operand '[' int_literal ']' */
-#line 967 "bison_parser.y"
- { (yyval.expr) = Expr::makeArrayIndex((yyvsp[-3].expr), (yyvsp[-1].expr)->ival); }
-#line 4678 "bison_parser.cpp"
+ case 256:
+#line 1031 "bison_parser.y"
+ {
+ int duration{0}, chars_parsed{0};
+ // 'seconds' and 'minutes' are the longest accepted interval qualifiers (7 chars) + null byte
+ char unit_string[8];
+ // If the whole string is parsed, chars_parsed points to the terminating null byte after the last character
+ if (sscanf((yyvsp[0].sval), "%d %7s%n", &duration, unit_string, &chars_parsed) != 2 ||
+ (yyvsp[0].sval)[chars_parsed] != 0) {
+ free((yyvsp[0].sval));
+ yyerror(&yyloc, result, scanner,
+ "Found incorrect interval format. Expected format: INTEGER INTERVAL_QUALIIFIER");
+ YYERROR;
+ }
+ free((yyvsp[0].sval));
+
+ DatetimeField unit;
+ if (strcasecmp(unit_string, "second") == 0 || strcasecmp(unit_string, "seconds") == 0) {
+ unit = kDatetimeSecond;
+ } else if (strcasecmp(unit_string, "minute") == 0 || strcasecmp(unit_string, "minutes") == 0) {
+ unit = kDatetimeMinute;
+ } else if (strcasecmp(unit_string, "hour") == 0 || strcasecmp(unit_string, "hours") == 0) {
+ unit = kDatetimeHour;
+ } else if (strcasecmp(unit_string, "day") == 0 || strcasecmp(unit_string, "days") == 0) {
+ unit = kDatetimeDay;
+ } else if (strcasecmp(unit_string, "month") == 0 || strcasecmp(unit_string, "months") == 0) {
+ unit = kDatetimeMonth;
+ } else if (strcasecmp(unit_string, "year") == 0 || strcasecmp(unit_string, "years") == 0) {
+ unit = kDatetimeYear;
+ } else {
+ yyerror(&yyloc, result, scanner, "Interval qualifier is unknown.");
+ YYERROR;
+ }
+ (yyval.expr) = Expr::makeIntervalLiteral(duration, unit);
+ }
+#line 4825 "bison_parser.cpp"
break;
- case 234: /* between_expr: operand BETWEEN operand AND operand */
-#line 969 "bison_parser.y"
- { (yyval.expr) = Expr::makeBetween((yyvsp[-4].expr), (yyvsp[-2].expr), (yyvsp[0].expr)); }
-#line 4684 "bison_parser.cpp"
+ case 257:
+#line 1063 "bison_parser.y"
+ {
+ (yyval.expr) = Expr::makeParameter(yylloc.total_column);
+ (yyval.expr)->ival2 = yyloc.param_list.size();
+ yyloc.param_list.push_back((yyval.expr));
+ }
+#line 4835 "bison_parser.cpp"
break;
- case 235: /* column_name: IDENTIFIER */
-#line 971 "bison_parser.y"
- { (yyval.expr) = Expr::makeColumnRef((yyvsp[0].sval)); }
-#line 4690 "bison_parser.cpp"
+ case 259:
+#line 1072 "bison_parser.y"
+ {
+ (yyvsp[-2].table_vec)->push_back((yyvsp[0].table));
+ auto tbl = new TableRef(kTableCrossProduct);
+ tbl->list = (yyvsp[-2].table_vec);
+ (yyval.table) = tbl;
+ }
+#line 4846 "bison_parser.cpp"
break;
- case 236: /* column_name: IDENTIFIER '.' IDENTIFIER */
-#line 972 "bison_parser.y"
- { (yyval.expr) = Expr::makeColumnRef((yyvsp[-2].sval), (yyvsp[0].sval)); }
-#line 4696 "bison_parser.cpp"
+ case 263:
+#line 1081 "bison_parser.y"
+ {
+ auto tbl = new TableRef(kTableSelect);
+ tbl->select = (yyvsp[-2].select_stmt);
+ tbl->alias = (yyvsp[0].alias_t);
+ (yyval.table) = tbl;
+ }
+#line 4857 "bison_parser.cpp"
break;
- case 237: /* column_name: '*' */
-#line 973 "bison_parser.y"
- { (yyval.expr) = Expr::makeStar(); }
-#line 4702 "bison_parser.cpp"
+ case 264:
+#line 1088 "bison_parser.y"
+ {
+ (yyval.table_vec) = new std::vector();
+ (yyval.table_vec)->push_back((yyvsp[0].table));
+ }
+#line 4866 "bison_parser.cpp"
break;
- case 238: /* column_name: IDENTIFIER '.' '*' */
-#line 974 "bison_parser.y"
- { (yyval.expr) = Expr::makeStar((yyvsp[-2].sval)); }
-#line 4708 "bison_parser.cpp"
+ case 265:
+#line 1092 "bison_parser.y"
+ {
+ (yyvsp[-2].table_vec)->push_back((yyvsp[0].table));
+ (yyval.table_vec) = (yyvsp[-2].table_vec);
+ }
+#line 4875 "bison_parser.cpp"
break;
- case 246: /* string_literal: STRING */
-#line 978 "bison_parser.y"
- { (yyval.expr) = Expr::makeLiteral((yyvsp[0].sval)); }
-#line 4714 "bison_parser.cpp"
+ case 266:
+#line 1097 "bison_parser.y"
+ {
+ auto tbl = new TableRef(kTableName);
+ tbl->schema = (yyvsp[-1].table_name).schema;
+ tbl->name = (yyvsp[-1].table_name).name;
+ tbl->alias = (yyvsp[0].alias_t);
+ (yyval.table) = tbl;
+ }
+#line 4887 "bison_parser.cpp"
break;
- case 247: /* bool_literal: TRUE */
-#line 980 "bison_parser.y"
- { (yyval.expr) = Expr::makeLiteral(true); }
-#line 4720 "bison_parser.cpp"
+ case 267:
+#line 1105 "bison_parser.y"
+ {
+ (yyval.table) = new TableRef(kTableName);
+ (yyval.table)->schema = (yyvsp[0].table_name).schema;
+ (yyval.table)->name = (yyvsp[0].table_name).name;
+ }
+#line 4897 "bison_parser.cpp"
break;
- case 248: /* bool_literal: FALSE */
-#line 981 "bison_parser.y"
- { (yyval.expr) = Expr::makeLiteral(false); }
-#line 4726 "bison_parser.cpp"
+ case 268:
+#line 1111 "bison_parser.y"
+ {
+ (yyval.table_name).schema = nullptr;
+ (yyval.table_name).name = (yyvsp[0].sval);
+ }
+#line 4906 "bison_parser.cpp"
break;
- case 249: /* num_literal: FLOATVAL */
-#line 983 "bison_parser.y"
- { (yyval.expr) = Expr::makeLiteral((yyvsp[0].fval)); }
-#line 4732 "bison_parser.cpp"
+ case 269:
+#line 1115 "bison_parser.y"
+ {
+ (yyval.table_name).schema = (yyvsp[-2].sval);
+ (yyval.table_name).name = (yyvsp[0].sval);
+ }
+#line 4915 "bison_parser.cpp"
break;
- case 251: /* int_literal: INTVAL */
-#line 986 "bison_parser.y"
- { (yyval.expr) = Expr::makeLiteral((yyvsp[0].ival)); }
-#line 4738 "bison_parser.cpp"
+ case 270:
+#line 1120 "bison_parser.y"
+ {
+ (yyval.sval) = (yyvsp[0].sval);
+ }
+#line 4921 "bison_parser.cpp"
break;
- case 252: /* null_literal: NULL */
-#line 988 "bison_parser.y"
- { (yyval.expr) = Expr::makeNullLiteral(); }
-#line 4744 "bison_parser.cpp"
- break;
-
- case 253: /* date_literal: DATE STRING */
-#line 990 "bison_parser.y"
- {
- int day{0}, month{0}, year{0}, chars_parsed{0};
- // If the whole string is parsed, chars_parsed points to the terminating null byte after the last character
- if (sscanf((yyvsp[0].sval), "%4d-%2d-%2d%n", &day, &month, &year, &chars_parsed) != 3 || (yyvsp[0].sval)[chars_parsed] != 0) {
- free((yyvsp[0].sval));
- yyerror(&yyloc, result, scanner, "Found incorrect date format. Expected format: YYYY-MM-DD");
- YYERROR;
- }
- (yyval.expr) = Expr::makeDateLiteral((yyvsp[0].sval));
-}
-#line 4759 "bison_parser.cpp"
+ case 271:
+#line 1121 "bison_parser.y"
+ {
+ (yyval.sval) = nullptr;
+ }
+#line 4927 "bison_parser.cpp"
break;
- case 254: /* interval_literal: int_literal duration_field */
-#line 1001 "bison_parser.y"
- {
- (yyval.expr) = Expr::makeIntervalLiteral((yyvsp[-1].expr)->ival, (yyvsp[0].datetime_field));
- delete (yyvsp[-1].expr);
-}
-#line 4768 "bison_parser.cpp"
+ case 273:
+#line 1123 "bison_parser.y"
+ {
+ (yyval.alias_t) = new Alias((yyvsp[-3].sval), (yyvsp[-1].str_vec));
+ }
+#line 4933 "bison_parser.cpp"
break;
- case 255: /* interval_literal: INTERVAL STRING datetime_field */
-#line 1005 "bison_parser.y"
- {
- int duration{0}, chars_parsed{0};
- // If the whole string is parsed, chars_parsed points to the terminating null byte after the last character
- if (sscanf((yyvsp[-1].sval), "%d%n", &duration, &chars_parsed) != 1 || (yyvsp[-1].sval)[chars_parsed] != 0) {
- free((yyvsp[-1].sval));
- yyerror(&yyloc, result, scanner, "Found incorrect interval format. Expected format: INTEGER");
- YYERROR;
- }
- free((yyvsp[-1].sval));
- (yyval.expr) = Expr::makeIntervalLiteral(duration, (yyvsp[0].datetime_field));
-}
-#line 4784 "bison_parser.cpp"
+ case 275:
+#line 1125 "bison_parser.y"
+ {
+ (yyval.alias_t) = nullptr;
+ }
+#line 4939 "bison_parser.cpp"
break;
- case 256: /* interval_literal: INTERVAL STRING */
-#line 1016 "bison_parser.y"
- {
- int duration{0}, chars_parsed{0};
- // 'seconds' and 'minutes' are the longest accepted interval qualifiers (7 chars) + null byte
- char unit_string[8];
- // If the whole string is parsed, chars_parsed points to the terminating null byte after the last character
- if (sscanf((yyvsp[0].sval), "%d %7s%n", &duration, unit_string, &chars_parsed) != 2 || (yyvsp[0].sval)[chars_parsed] != 0) {
- free((yyvsp[0].sval));
- yyerror(&yyloc, result, scanner, "Found incorrect interval format. Expected format: INTEGER INTERVAL_QUALIIFIER");
- YYERROR;
- }
- free((yyvsp[0].sval));
-
- DatetimeField unit;
- if (strcasecmp(unit_string, "second") == 0 || strcasecmp(unit_string, "seconds") == 0) {
- unit = kDatetimeSecond;
- } else if (strcasecmp(unit_string, "minute") == 0 || strcasecmp(unit_string, "minutes") == 0) {
- unit = kDatetimeMinute;
- } else if (strcasecmp(unit_string, "hour") == 0 || strcasecmp(unit_string, "hours") == 0) {
- unit = kDatetimeHour;
- } else if (strcasecmp(unit_string, "day") == 0 || strcasecmp(unit_string, "days") == 0) {
- unit = kDatetimeDay;
- } else if (strcasecmp(unit_string, "month") == 0 || strcasecmp(unit_string, "months") == 0) {
- unit = kDatetimeMonth;
- } else if (strcasecmp(unit_string, "year") == 0 || strcasecmp(unit_string, "years") == 0) {
- unit = kDatetimeYear;
- } else {
- yyerror(&yyloc, result, scanner, "Interval qualifier is unknown.");
- YYERROR;
- }
- (yyval.expr) = Expr::makeIntervalLiteral(duration, unit);
-}
-#line 4820 "bison_parser.cpp"
+ case 276:
+#line 1127 "bison_parser.y"
+ {
+ (yyval.alias_t) = new Alias((yyvsp[0].sval));
+ }
+#line 4945 "bison_parser.cpp"
break;
- case 257: /* param_expr: '?' */
-#line 1048 "bison_parser.y"
- {
- (yyval.expr) = Expr::makeParameter(yylloc.total_column);
- (yyval.expr)->ival2 = yyloc.param_list.size();
- yyloc.param_list.push_back((yyval.expr));
-}
-#line 4830 "bison_parser.cpp"
+ case 277:
+#line 1128 "bison_parser.y"
+ {
+ (yyval.alias_t) = new Alias((yyvsp[0].sval));
+ }
+#line 4951 "bison_parser.cpp"
break;
- case 259: /* table_ref: table_ref_commalist ',' table_ref_atomic */
-#line 1057 "bison_parser.y"
- {
- (yyvsp[-2].table_vec)->push_back((yyvsp[0].table));
- auto tbl = new TableRef(kTableCrossProduct);
- tbl->list = (yyvsp[-2].table_vec);
- (yyval.table) = tbl;
-}
-#line 4841 "bison_parser.cpp"
+ case 279:
+#line 1130 "bison_parser.y"
+ {
+ (yyval.alias_t) = nullptr;
+ }
+#line 4957 "bison_parser.cpp"
break;
- case 263: /* nonjoin_table_ref_atomic: '(' select_statement ')' opt_table_alias */
-#line 1066 "bison_parser.y"
- {
- auto tbl = new TableRef(kTableSelect);
- tbl->select = (yyvsp[-2].select_stmt);
- tbl->alias = (yyvsp[0].alias_t);
- (yyval.table) = tbl;
-}
-#line 4852 "bison_parser.cpp"
+ case 280:
+#line 1136 "bison_parser.y"
+ {
+ (yyval.locking_clause_vec) = (yyvsp[0].locking_clause_vec);
+ }
+#line 4963 "bison_parser.cpp"
break;
- case 264: /* table_ref_commalist: table_ref_atomic */
-#line 1073 "bison_parser.y"
- {
- (yyval.table_vec) = new std::vector();
- (yyval.table_vec)->push_back((yyvsp[0].table));
-}
-#line 4861 "bison_parser.cpp"
+ case 281:
+#line 1137 "bison_parser.y"
+ {
+ (yyval.locking_clause_vec) = nullptr;
+ }
+#line 4969 "bison_parser.cpp"
break;
- case 265: /* table_ref_commalist: table_ref_commalist ',' table_ref_atomic */
-#line 1077 "bison_parser.y"
- {
- (yyvsp[-2].table_vec)->push_back((yyvsp[0].table));
- (yyval.table_vec) = (yyvsp[-2].table_vec);
-}
-#line 4870 "bison_parser.cpp"
+ case 282:
+#line 1139 "bison_parser.y"
+ {
+ (yyval.locking_clause_vec) = new std::vector();
+ (yyval.locking_clause_vec)->push_back((yyvsp[0].locking_t));
+ }
+#line 4978 "bison_parser.cpp"
break;
- case 266: /* table_ref_name: table_name opt_table_alias */
-#line 1082 "bison_parser.y"
- {
- auto tbl = new TableRef(kTableName);
- tbl->schema = (yyvsp[-1].table_name).schema;
- tbl->name = (yyvsp[-1].table_name).name;
- tbl->alias = (yyvsp[0].alias_t);
- (yyval.table) = tbl;
-}
-#line 4882 "bison_parser.cpp"
+ case 283:
+#line 1143 "bison_parser.y"
+ {
+ (yyvsp[-1].locking_clause_vec)->push_back((yyvsp[0].locking_t));
+ (yyval.locking_clause_vec) = (yyvsp[-1].locking_clause_vec);
+ }
+#line 4987 "bison_parser.cpp"
break;
- case 267: /* table_ref_name_no_alias: table_name */
-#line 1090 "bison_parser.y"
- {
- (yyval.table) = new TableRef(kTableName);
- (yyval.table)->schema = (yyvsp[0].table_name).schema;
- (yyval.table)->name = (yyvsp[0].table_name).name;
-}
-#line 4892 "bison_parser.cpp"
+ case 284:
+#line 1148 "bison_parser.y"
+ {
+ (yyval.locking_t) = new LockingClause();
+ (yyval.locking_t)->rowLockMode = (yyvsp[-1].lock_mode_t);
+ (yyval.locking_t)->rowLockWaitPolicy = (yyvsp[0].lock_wait_policy_t);
+ (yyval.locking_t)->tables = nullptr;
+ }
+#line 4998 "bison_parser.cpp"
break;
- case 268: /* table_name: IDENTIFIER */
-#line 1096 "bison_parser.y"
- {
- (yyval.table_name).schema = nullptr;
- (yyval.table_name).name = (yyvsp[0].sval);
-}
-#line 4901 "bison_parser.cpp"
+ case 285:
+#line 1154 "bison_parser.y"
+ {
+ (yyval.locking_t) = new LockingClause();
+ (yyval.locking_t)->rowLockMode = (yyvsp[-3].lock_mode_t);
+ (yyval.locking_t)->tables = (yyvsp[-1].str_vec);
+ (yyval.locking_t)->rowLockWaitPolicy = (yyvsp[0].lock_wait_policy_t);
+ }
+#line 5009 "bison_parser.cpp"
break;
- case 269: /* table_name: IDENTIFIER '.' IDENTIFIER */
-#line 1100 "bison_parser.y"
- {
- (yyval.table_name).schema = (yyvsp[-2].sval);
- (yyval.table_name).name = (yyvsp[0].sval);
-}
-#line 4910 "bison_parser.cpp"
+ case 286:
+#line 1161 "bison_parser.y"
+ {
+ (yyval.lock_mode_t) = RowLockMode::ForUpdate;
+ }
+#line 5015 "bison_parser.cpp"
break;
- case 270: /* opt_index_name: IDENTIFIER */
-#line 1105 "bison_parser.y"
- { (yyval.sval) = (yyvsp[0].sval); }
-#line 4916 "bison_parser.cpp"
+ case 287:
+#line 1162 "bison_parser.y"
+ {
+ (yyval.lock_mode_t) = RowLockMode::ForNoKeyUpdate;
+ }
+#line 5021 "bison_parser.cpp"
break;
- case 271: /* opt_index_name: %empty */
-#line 1106 "bison_parser.y"
- { (yyval.sval) = nullptr; }
-#line 4922 "bison_parser.cpp"
+ case 288:
+#line 1163 "bison_parser.y"
+ {
+ (yyval.lock_mode_t) = RowLockMode::ForShare;
+ }
+#line 5027 "bison_parser.cpp"
break;
- case 273: /* table_alias: AS IDENTIFIER '(' ident_commalist ')' */
-#line 1108 "bison_parser.y"
- { (yyval.alias_t) = new Alias((yyvsp[-3].sval), (yyvsp[-1].str_vec)); }
-#line 4928 "bison_parser.cpp"
+ case 289:
+#line 1164 "bison_parser.y"
+ {
+ (yyval.lock_mode_t) = RowLockMode::ForKeyShare;
+ }
+#line 5033 "bison_parser.cpp"
break;
- case 275: /* opt_table_alias: %empty */
-#line 1110 "bison_parser.y"
- { (yyval.alias_t) = nullptr; }
-#line 4934 "bison_parser.cpp"
+ case 290:
+#line 1166 "bison_parser.y"
+ {
+ (yyval.lock_wait_policy_t) = RowLockWaitPolicy::SkipLocked;
+ }
+#line 5039 "bison_parser.cpp"
break;
- case 276: /* alias: AS IDENTIFIER */
-#line 1112 "bison_parser.y"
- { (yyval.alias_t) = new Alias((yyvsp[0].sval)); }
-#line 4940 "bison_parser.cpp"
+ case 291:
+#line 1167 "bison_parser.y"
+ {
+ (yyval.lock_wait_policy_t) = RowLockWaitPolicy::NoWait;
+ }
+#line 5045 "bison_parser.cpp"
break;
- case 277: /* alias: IDENTIFIER */
-#line 1113 "bison_parser.y"
- { (yyval.alias_t) = new Alias((yyvsp[0].sval)); }
-#line 4946 "bison_parser.cpp"
+ case 292:
+#line 1168 "bison_parser.y"
+ {
+ (yyval.lock_wait_policy_t) = RowLockWaitPolicy::None;
+ }
+#line 5051 "bison_parser.cpp"
break;
- case 279: /* opt_alias: %empty */
-#line 1115 "bison_parser.y"
- { (yyval.alias_t) = nullptr; }
-#line 4952 "bison_parser.cpp"
+ case 294:
+#line 1174 "bison_parser.y"
+ {
+ (yyval.with_description_vec) = nullptr;
+ }
+#line 5057 "bison_parser.cpp"
break;
- case 281: /* opt_with_clause: %empty */
-#line 1121 "bison_parser.y"
- { (yyval.with_description_vec) = nullptr; }
-#line 4958 "bison_parser.cpp"
+ case 295:
+#line 1176 "bison_parser.y"
+ {
+ (yyval.with_description_vec) = (yyvsp[0].with_description_vec);
+ }
+#line 5063 "bison_parser.cpp"
break;
- case 282: /* with_clause: WITH with_description_list */
-#line 1123 "bison_parser.y"
- { (yyval.with_description_vec) = (yyvsp[0].with_description_vec); }
-#line 4964 "bison_parser.cpp"
+ case 296:
+#line 1178 "bison_parser.y"
+ {
+ (yyval.with_description_vec) = new std::vector();
+ (yyval.with_description_vec)->push_back((yyvsp[0].with_description_t));
+ }
+#line 5072 "bison_parser.cpp"
break;
- case 283: /* with_description_list: with_description */
-#line 1125 "bison_parser.y"
- {
- (yyval.with_description_vec) = new std::vector();
- (yyval.with_description_vec)->push_back((yyvsp[0].with_description_t));
-}
-#line 4973 "bison_parser.cpp"
+ case 297:
+#line 1182 "bison_parser.y"
+ {
+ (yyvsp[-2].with_description_vec)->push_back((yyvsp[0].with_description_t));
+ (yyval.with_description_vec) = (yyvsp[-2].with_description_vec);
+ }
+#line 5081 "bison_parser.cpp"
break;
- case 284: /* with_description_list: with_description_list ',' with_description */
-#line 1129 "bison_parser.y"
- {
- (yyvsp[-2].with_description_vec)->push_back((yyvsp[0].with_description_t));
- (yyval.with_description_vec) = (yyvsp[-2].with_description_vec);
-}
-#line 4982 "bison_parser.cpp"
+ case 298:
+#line 1187 "bison_parser.y"
+ {
+ (yyval.with_description_t) = new WithDescription();
+ (yyval.with_description_t)->alias = (yyvsp[-2].sval);
+ (yyval.with_description_t)->select = (yyvsp[0].select_stmt);
+ }
+#line 5091 "bison_parser.cpp"
break;
- case 285: /* with_description: IDENTIFIER AS select_with_paren */
-#line 1134 "bison_parser.y"
- {
- (yyval.with_description_t) = new WithDescription();
- (yyval.with_description_t)->alias = (yyvsp[-2].sval);
- (yyval.with_description_t)->select = (yyvsp[0].select_stmt);
-}
-#line 4992 "bison_parser.cpp"
+ case 299:
+#line 1197 "bison_parser.y"
+ {
+ (yyval.table) = new TableRef(kTableJoin);
+ (yyval.table)->join = new JoinDefinition();
+ (yyval.table)->join->type = kJoinNatural;
+ (yyval.table)->join->left = (yyvsp[-3].table);
+ (yyval.table)->join->right = (yyvsp[0].table);
+ }
+#line 5103 "bison_parser.cpp"
break;
- case 286: /* join_clause: table_ref_atomic NATURAL JOIN nonjoin_table_ref_atomic */
-#line 1144 "bison_parser.y"
- {
- (yyval.table) = new TableRef(kTableJoin);
- (yyval.table)->join = new JoinDefinition();
- (yyval.table)->join->type = kJoinNatural;
- (yyval.table)->join->left = (yyvsp[-3].table);
- (yyval.table)->join->right = (yyvsp[0].table);
-}
-#line 5004 "bison_parser.cpp"
- break;
-
- case 287: /* join_clause: table_ref_atomic opt_join_type JOIN table_ref_atomic ON join_condition */
-#line 1151 "bison_parser.y"
- {
- (yyval.table) = new TableRef(kTableJoin);
- (yyval.table)->join = new JoinDefinition();
- (yyval.table)->join->type = (JoinType)(yyvsp[-4].join_type);
- (yyval.table)->join->left = (yyvsp[-5].table);
- (yyval.table)->join->right = (yyvsp[-2].table);
- (yyval.table)->join->condition = (yyvsp[0].expr);
-}
-#line 5017 "bison_parser.cpp"
- break;
-
- case 288: /* join_clause: table_ref_atomic opt_join_type JOIN table_ref_atomic USING '(' column_name ')' */
-#line 1159 "bison_parser.y"
- {
- (yyval.table) = new TableRef(kTableJoin);
- (yyval.table)->join = new JoinDefinition();
- (yyval.table)->join->type = (JoinType)(yyvsp[-6].join_type);
- (yyval.table)->join->left = (yyvsp[-7].table);
- (yyval.table)->join->right = (yyvsp[-4].table);
- auto left_col = Expr::makeColumnRef(strdup((yyvsp[-1].expr)->name));
- if ((yyvsp[-1].expr)->alias != nullptr) left_col->alias = strdup((yyvsp[-1].expr)->alias);
- if ((yyvsp[-7].table)->getName() != nullptr) left_col->table = strdup((yyvsp[-7].table)->getName());
- auto right_col = Expr::makeColumnRef(strdup((yyvsp[-1].expr)->name));
- if ((yyvsp[-1].expr)->alias != nullptr) right_col->alias = strdup((yyvsp[-1].expr)->alias);
- if ((yyvsp[-4].table)->getName() != nullptr) right_col->table = strdup((yyvsp[-4].table)->getName());
- (yyval.table)->join->condition = Expr::makeOpBinary(left_col, kOpEquals, right_col);
- delete (yyvsp[-1].expr);
-}
-#line 5037 "bison_parser.cpp"
+ case 300:
+#line 1204 "bison_parser.y"
+ {
+ (yyval.table) = new TableRef(kTableJoin);
+ (yyval.table)->join = new JoinDefinition();
+ (yyval.table)->join->type = (JoinType)(yyvsp[-4].join_type);
+ (yyval.table)->join->left = (yyvsp[-5].table);
+ (yyval.table)->join->right = (yyvsp[-2].table);
+ (yyval.table)->join->condition = (yyvsp[0].expr);
+ }
+#line 5116 "bison_parser.cpp"
break;
- case 289: /* opt_join_type: INNER */
-#line 1175 "bison_parser.y"
- { (yyval.join_type) = kJoinInner; }
-#line 5043 "bison_parser.cpp"
+ case 301:
+#line 1212 "bison_parser.y"
+ {
+ (yyval.table) = new TableRef(kTableJoin);
+ (yyval.table)->join = new JoinDefinition();
+ (yyval.table)->join->type = (JoinType)(yyvsp[-6].join_type);
+ (yyval.table)->join->left = (yyvsp[-7].table);
+ (yyval.table)->join->right = (yyvsp[-4].table);
+ auto left_col = Expr::makeColumnRef(strdup((yyvsp[-1].expr)->name));
+ if ((yyvsp[-1].expr)->alias != nullptr) left_col->alias = strdup((yyvsp[-1].expr)->alias);
+ if ((yyvsp[-7].table)->getName() != nullptr) left_col->table = strdup((yyvsp[-7].table)->getName());
+ auto right_col = Expr::makeColumnRef(strdup((yyvsp[-1].expr)->name));
+ if ((yyvsp[-1].expr)->alias != nullptr) right_col->alias = strdup((yyvsp[-1].expr)->alias);
+ if ((yyvsp[-4].table)->getName() != nullptr) right_col->table = strdup((yyvsp[-4].table)->getName());
+ (yyval.table)->join->condition = Expr::makeOpBinary(left_col, kOpEquals, right_col);
+ delete (yyvsp[-1].expr);
+ }
+#line 5136 "bison_parser.cpp"
break;
- case 290: /* opt_join_type: LEFT OUTER */
-#line 1176 "bison_parser.y"
- { (yyval.join_type) = kJoinLeft; }
-#line 5049 "bison_parser.cpp"
+ case 302:
+#line 1228 "bison_parser.y"
+ {
+ (yyval.join_type) = kJoinInner;
+ }
+#line 5142 "bison_parser.cpp"
break;
- case 291: /* opt_join_type: LEFT */
-#line 1177 "bison_parser.y"
- { (yyval.join_type) = kJoinLeft; }
-#line 5055 "bison_parser.cpp"
+ case 303:
+#line 1229 "bison_parser.y"
+ {
+ (yyval.join_type) = kJoinLeft;
+ }
+#line 5148 "bison_parser.cpp"
break;
- case 292: /* opt_join_type: RIGHT OUTER */
-#line 1178 "bison_parser.y"
- { (yyval.join_type) = kJoinRight; }
-#line 5061 "bison_parser.cpp"
+ case 304:
+#line 1230 "bison_parser.y"
+ {
+ (yyval.join_type) = kJoinLeft;
+ }
+#line 5154 "bison_parser.cpp"
break;
- case 293: /* opt_join_type: RIGHT */
-#line 1179 "bison_parser.y"
- { (yyval.join_type) = kJoinRight; }
-#line 5067 "bison_parser.cpp"
+ case 305:
+#line 1231 "bison_parser.y"
+ {
+ (yyval.join_type) = kJoinRight;
+ }
+#line 5160 "bison_parser.cpp"
break;
- case 294: /* opt_join_type: FULL OUTER */
-#line 1180 "bison_parser.y"
- { (yyval.join_type) = kJoinFull; }
-#line 5073 "bison_parser.cpp"
+ case 306:
+#line 1232 "bison_parser.y"
+ {
+ (yyval.join_type) = kJoinRight;
+ }
+#line 5166 "bison_parser.cpp"
break;
- case 295: /* opt_join_type: OUTER */
-#line 1181 "bison_parser.y"
- { (yyval.join_type) = kJoinFull; }
-#line 5079 "bison_parser.cpp"
+ case 307:
+#line 1233 "bison_parser.y"
+ {
+ (yyval.join_type) = kJoinFull;
+ }
+#line 5172 "bison_parser.cpp"
break;
- case 296: /* opt_join_type: FULL */
-#line 1182 "bison_parser.y"
- { (yyval.join_type) = kJoinFull; }
-#line 5085 "bison_parser.cpp"
+ case 308:
+#line 1234 "bison_parser.y"
+ {
+ (yyval.join_type) = kJoinFull;
+ }
+#line 5178 "bison_parser.cpp"
break;
- case 297: /* opt_join_type: CROSS */
-#line 1183 "bison_parser.y"
- { (yyval.join_type) = kJoinCross; }
-#line 5091 "bison_parser.cpp"
+ case 309:
+#line 1235 "bison_parser.y"
+ {
+ (yyval.join_type) = kJoinFull;
+ }
+#line 5184 "bison_parser.cpp"
break;
- case 298: /* opt_join_type: %empty */
-#line 1184 "bison_parser.y"
- { (yyval.join_type) = kJoinInner; }
-#line 5097 "bison_parser.cpp"
+ case 310:
+#line 1236 "bison_parser.y"
+ {
+ (yyval.join_type) = kJoinCross;
+ }
+#line 5190 "bison_parser.cpp"
break;
- case 302: /* ident_commalist: IDENTIFIER */
-#line 1195 "bison_parser.y"
- {
- (yyval.str_vec) = new std::vector();
- (yyval.str_vec)->push_back((yyvsp[0].sval));
-}
-#line 5106 "bison_parser.cpp"
+ case 311:
+#line 1237 "bison_parser.y"
+ {
+ (yyval.join_type) = kJoinInner;
+ }
+#line 5196 "bison_parser.cpp"
break;
- case 303: /* ident_commalist: ident_commalist ',' IDENTIFIER */
-#line 1199 "bison_parser.y"
- {
- (yyvsp[-2].str_vec)->push_back((yyvsp[0].sval));
- (yyval.str_vec) = (yyvsp[-2].str_vec);
-}
-#line 5115 "bison_parser.cpp"
+ case 315:
+#line 1248 "bison_parser.y"
+ {
+ (yyval.str_vec) = new std::vector();
+ (yyval.str_vec)->push_back((yyvsp[0].sval));
+ }
+#line 5205 "bison_parser.cpp"
break;
+ case 316:
+#line 1252 "bison_parser.y"
+ {
+ (yyvsp[-2].str_vec)->push_back((yyvsp[0].sval));
+ (yyval.str_vec) = (yyvsp[-2].str_vec);
+ }
+#line 5214 "bison_parser.cpp"
+ break;
-#line 5119 "bison_parser.cpp"
+#line 5218 "bison_parser.cpp"
- default: break;
- }
+ default:
+ break;
+ }
/* User semantic actions sometimes alter yychar, and that requires
that yytoken be updated with the new translation. We take the
approach of translating immediately before every use of yytoken.
@@ -5130,10 +5590,11 @@ YYLTYPE yylloc = yyloc_default;
case of YYERROR or YYBACKUP, subsequent parser actions might lead
to an incorrect destructor call or verbose syntax error message
before the lookahead is translated. */
- YY_SYMBOL_PRINT ("-> $$ =", YY_CAST (yysymbol_kind_t, yyr1[yyn]), &yyval, &yyloc);
+ YY_SYMBOL_PRINT("-> $$ =", yyr1[yyn], &yyval, &yyloc);
- YYPOPSTACK (yylen);
+ YYPOPSTACK(yylen);
yylen = 0;
+ YY_STACK_PRINT(yyss, yyssp);
*++yyvsp = yyval;
*++yylsp = yyloc;
@@ -5144,207 +5605,179 @@ YYLTYPE yylloc = yyloc_default;
{
const int yylhs = yyr1[yyn] - YYNTOKENS;
const int yyi = yypgoto[yylhs] + *yyssp;
- yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp
- ? yytable[yyi]
- : yydefgoto[yylhs]);
+ yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp ? yytable[yyi] : yydefgoto[yylhs]);
}
goto yynewstate;
-
/*--------------------------------------.
| yyerrlab -- here on detecting error. |
`--------------------------------------*/
yyerrlab:
/* Make sure we have latest lookahead translation. See comments at
user semantic actions for why this is necessary. */
- yytoken = yychar == SQL_HSQL_EMPTY ? YYSYMBOL_YYEMPTY : YYTRANSLATE (yychar);
+ yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE(yychar);
+
/* If not already recovering from an error, report this error. */
- if (!yyerrstatus)
- {
- ++yynerrs;
- {
- yypcontext_t yyctx
- = {yyssp, yytoken, &yylloc};
- char const *yymsgp = YY_("syntax error");
- int yysyntax_error_status;
- yysyntax_error_status = yysyntax_error (&yymsg_alloc, &yymsg, &yyctx);
- if (yysyntax_error_status == 0)
+ if (!yyerrstatus) {
+ ++yynerrs;
+#if !YYERROR_VERBOSE
+ yyerror(&yylloc, result, scanner, YY_("syntax error"));
+#else
+#define YYSYNTAX_ERROR yysyntax_error(&yymsg_alloc, &yymsg, yyssp, yytoken)
+ {
+ char const* yymsgp = YY_("syntax error");
+ int yysyntax_error_status;
+ yysyntax_error_status = YYSYNTAX_ERROR;
+ if (yysyntax_error_status == 0)
+ yymsgp = yymsg;
+ else if (yysyntax_error_status == 1) {
+ if (yymsg != yymsgbuf) YYSTACK_FREE(yymsg);
+ yymsg = YY_CAST(char*, YYSTACK_ALLOC(YY_CAST(YYSIZE_T, yymsg_alloc)));
+ if (!yymsg) {
+ yymsg = yymsgbuf;
+ yymsg_alloc = sizeof yymsgbuf;
+ yysyntax_error_status = 2;
+ } else {
+ yysyntax_error_status = YYSYNTAX_ERROR;
yymsgp = yymsg;
- else if (yysyntax_error_status == -1)
- {
- if (yymsg != yymsgbuf)
- YYSTACK_FREE (yymsg);
- yymsg = YY_CAST (char *,
- YYSTACK_ALLOC (YY_CAST (YYSIZE_T, yymsg_alloc)));
- if (yymsg)
- {
- yysyntax_error_status
- = yysyntax_error (&yymsg_alloc, &yymsg, &yyctx);
- yymsgp = yymsg;
- }
- else
- {
- yymsg = yymsgbuf;
- yymsg_alloc = sizeof yymsgbuf;
- yysyntax_error_status = YYENOMEM;
- }
- }
- yyerror (&yylloc, result, scanner, yymsgp);
- if (yysyntax_error_status == YYENOMEM)
- YYNOMEM;
+ }
}
+ yyerror(&yylloc, result, scanner, yymsgp);
+ if (yysyntax_error_status == 2) goto yyexhaustedlab;
}
+#undef YYSYNTAX_ERROR
+#endif
+ }
yyerror_range[1] = yylloc;
- if (yyerrstatus == 3)
- {
- /* If just tried and failed to reuse lookahead token after an
+
+ if (yyerrstatus == 3) {
+ /* If just tried and failed to reuse lookahead token after an
error, discard it. */
- if (yychar <= SQL_YYEOF)
- {
- /* Return failure if at end of input. */
- if (yychar == SQL_YYEOF)
- YYABORT;
- }
- else
- {
- yydestruct ("Error: discarding",
- yytoken, &yylval, &yylloc, result, scanner);
- yychar = SQL_HSQL_EMPTY;
- }
+ if (yychar <= YYEOF) {
+ /* Return failure if at end of input. */
+ if (yychar == YYEOF) YYABORT;
+ } else {
+ yydestruct("Error: discarding", yytoken, &yylval, &yylloc, result, scanner);
+ yychar = YYEMPTY;
}
+ }
/* Else will try to reuse lookahead token after shifting the error
token. */
goto yyerrlab1;
-
/*---------------------------------------------------.
| yyerrorlab -- error raised explicitly by YYERROR. |
`---------------------------------------------------*/
yyerrorlab:
/* Pacify compilers when the user code never invokes YYERROR and the
label yyerrorlab therefore never appears in user code. */
- if (0)
- YYERROR;
- ++yynerrs;
+ if (0) YYERROR;
/* Do not reclaim the symbols of the rule whose action triggered
this YYERROR. */
- YYPOPSTACK (yylen);
+ YYPOPSTACK(yylen);
yylen = 0;
- YY_STACK_PRINT (yyss, yyssp);
+ 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. */
-
- /* Pop stack until we find a state that shifts the error token. */
- for (;;)
- {
- yyn = yypact[yystate];
- if (!yypact_value_is_default (yyn))
- {
- yyn += YYSYMBOL_YYerror;
- if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror)
- {
- yyn = yytable[yyn];
- if (0 < yyn)
- break;
- }
- }
+ yyerrstatus = 3; /* Each real token shifted decrements this. */
+
+ for (;;) {
+ yyn = yypact[yystate];
+ if (!yypact_value_is_default(yyn)) {
+ 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;
+ /* Pop the current state because it cannot handle the error token. */
+ if (yyssp == yyss) YYABORT;
- yyerror_range[1] = *yylsp;
- yydestruct ("Error: popping",
- YY_ACCESSING_SYMBOL (yystate), yyvsp, yylsp, result, scanner);
- YYPOPSTACK (1);
- yystate = *yyssp;
- YY_STACK_PRINT (yyss, yyssp);
- }
+ yyerror_range[1] = *yylsp;
+ yydestruct("Error: popping", yystos[yystate], yyvsp, yylsp, result, scanner);
+ YYPOPSTACK(1);
+ yystate = *yyssp;
+ YY_STACK_PRINT(yyss, yyssp);
+ }
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
*++yyvsp = yylval;
YY_IGNORE_MAYBE_UNINITIALIZED_END
yyerror_range[2] = yylloc;
- ++yylsp;
- YYLLOC_DEFAULT (*yylsp, yyerror_range, 2);
+ /* Using YYLLOC is tempting, but would change the location of
+ the lookahead. YYLOC is available though. */
+ YYLLOC_DEFAULT(yyloc, yyerror_range, 2);
+ *++yylsp = yyloc;
/* Shift the error token. */
- YY_SYMBOL_PRINT ("Shifting", YY_ACCESSING_SYMBOL (yyn), yyvsp, yylsp);
+ YY_SYMBOL_PRINT("Shifting", yystos[yyn], yyvsp, yylsp);
yystate = yyn;
goto yynewstate;
-
/*-------------------------------------.
| yyacceptlab -- YYACCEPT comes here. |
`-------------------------------------*/
yyacceptlab:
yyresult = 0;
- goto yyreturnlab;
-
+ goto yyreturn;
/*-----------------------------------.
| yyabortlab -- YYABORT comes here. |
`-----------------------------------*/
yyabortlab:
yyresult = 1;
- goto yyreturnlab;
-
+ goto yyreturn;
-/*-----------------------------------------------------------.
-| yyexhaustedlab -- YYNOMEM (memory exhaustion) comes here. |
-`-----------------------------------------------------------*/
+#if !defined yyoverflow || YYERROR_VERBOSE
+/*-------------------------------------------------.
+| yyexhaustedlab -- memory exhaustion comes here. |
+`-------------------------------------------------*/
yyexhaustedlab:
- yyerror (&yylloc, result, scanner, YY_("memory exhausted"));
+ yyerror(&yylloc, result, scanner, YY_("memory exhausted"));
yyresult = 2;
- goto yyreturnlab;
-
+ /* Fall through. */
+#endif
-/*----------------------------------------------------------.
-| yyreturnlab -- parsing is finished, clean up and return. |
-`----------------------------------------------------------*/
-yyreturnlab:
- if (yychar != SQL_HSQL_EMPTY)
- {
- /* Make sure we have latest lookahead translation. See comments at
+/*-----------------------------------------------------.
+| yyreturn -- parsing is finished, return the result. |
+`-----------------------------------------------------*/
+yyreturn:
+ if (yychar != YYEMPTY) {
+ /* Make sure we have latest lookahead translation. See comments at
user semantic actions for why this is necessary. */
- yytoken = YYTRANSLATE (yychar);
- yydestruct ("Cleanup: discarding lookahead",
- yytoken, &yylval, &yylloc, result, scanner);
- }
+ yytoken = YYTRANSLATE(yychar);
+ yydestruct("Cleanup: discarding lookahead", yytoken, &yylval, &yylloc, result, scanner);
+ }
/* Do not reclaim the symbols of the rule whose action triggered
this YYABORT or YYACCEPT. */
- YYPOPSTACK (yylen);
- YY_STACK_PRINT (yyss, yyssp);
- while (yyssp != yyss)
- {
- yydestruct ("Cleanup: popping",
- YY_ACCESSING_SYMBOL (+*yyssp), yyvsp, yylsp, result, scanner);
- YYPOPSTACK (1);
- }
+ YYPOPSTACK(yylen);
+ YY_STACK_PRINT(yyss, yyssp);
+ while (yyssp != yyss) {
+ yydestruct("Cleanup: popping", yystos[+*yyssp], yyvsp, yylsp, result, scanner);
+ YYPOPSTACK(1);
+ }
#ifndef yyoverflow
- if (yyss != yyssa)
- YYSTACK_FREE (yyss);
+ if (yyss != yyssa) YYSTACK_FREE(yyss);
+#endif
+#if YYERROR_VERBOSE
+ if (yymsg != yymsgbuf) YYSTACK_FREE(yymsg);
#endif
- if (yymsg != yymsgbuf)
- YYSTACK_FREE (yymsg);
return yyresult;
}
-
-#line 1205 "bison_parser.y"
+#line 1258 "bison_parser.y"
// clang-format on
/*********************************
diff --git a/src/parser/bison_parser.h b/src/parser/bison_parser.h
index c6be1f95..4d59cfcb 100644
--- a/src/parser/bison_parser.h
+++ b/src/parser/bison_parser.h
@@ -1,8 +1,8 @@
-/* A Bison parser, made by GNU Bison 3.8.2. */
+/* A Bison parser, made by GNU Bison 3.5.1. */
/* Bison interface for Yacc-like parsers in C
- Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation,
+ Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2020 Free Software Foundation,
Inc.
This program is free software: you can redistribute it and/or modify
@@ -16,7 +16,7 @@
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, see . */
+ along with this program. If not, see . */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
@@ -31,9 +31,8 @@
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
-/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
- especially those whose name start with YY_ or yy_. They are
- private implementation details that can be changed or removed. */
+/* Undocumented macros, especially those whose name start with YY_,
+ are private implementation details. Do not rely on them. */
#ifndef YY_HSQL_BISON_PARSER_H_INCLUDED
#define YY_HSQL_BISON_PARSER_H_INCLUDED
@@ -77,178 +76,178 @@ extern int hsql_debug;
} \
}
-#line 81 "bison_parser.h"
+#line 80 "bison_parser.h"
-/* Token kinds. */
+/* Token type. */
#ifndef HSQL_TOKENTYPE
#define HSQL_TOKENTYPE
enum hsql_tokentype {
- SQL_HSQL_EMPTY = -2,
- SQL_YYEOF = 0, /* "end of file" */
- SQL_HSQL_error = 256, /* error */
- SQL_HSQL_UNDEF = 257, /* "invalid token" */
- SQL_IDENTIFIER = 258, /* IDENTIFIER */
- SQL_STRING = 259, /* STRING */
- SQL_FLOATVAL = 260, /* FLOATVAL */
- SQL_INTVAL = 261, /* INTVAL */
- SQL_DEALLOCATE = 262, /* DEALLOCATE */
- SQL_PARAMETERS = 263, /* PARAMETERS */
- SQL_INTERSECT = 264, /* INTERSECT */
- SQL_TEMPORARY = 265, /* TEMPORARY */
- SQL_TIMESTAMP = 266, /* TIMESTAMP */
- SQL_DISTINCT = 267, /* DISTINCT */
- SQL_NVARCHAR = 268, /* NVARCHAR */
- SQL_RESTRICT = 269, /* RESTRICT */
- SQL_TRUNCATE = 270, /* TRUNCATE */
- SQL_ANALYZE = 271, /* ANALYZE */
- SQL_BETWEEN = 272, /* BETWEEN */
- SQL_CASCADE = 273, /* CASCADE */
- SQL_COLUMNS = 274, /* COLUMNS */
- SQL_CONTROL = 275, /* CONTROL */
- SQL_DEFAULT = 276, /* DEFAULT */
- SQL_EXECUTE = 277, /* EXECUTE */
- SQL_EXPLAIN = 278, /* EXPLAIN */
- SQL_INTEGER = 279, /* INTEGER */
- SQL_NATURAL = 280, /* NATURAL */
- SQL_PREPARE = 281, /* PREPARE */
- SQL_PRIMARY = 282, /* PRIMARY */
- SQL_SCHEMAS = 283, /* SCHEMAS */
- SQL_CHARACTER_VARYING = 284, /* CHARACTER_VARYING */
- SQL_REAL = 285, /* REAL */
- SQL_DECIMAL = 286, /* DECIMAL */
- SQL_SMALLINT = 287, /* SMALLINT */
- SQL_SPATIAL = 288, /* SPATIAL */
- SQL_VARCHAR = 289, /* VARCHAR */
- SQL_VIRTUAL = 290, /* VIRTUAL */
- SQL_DESCRIBE = 291, /* DESCRIBE */
- SQL_BEFORE = 292, /* BEFORE */
- SQL_COLUMN = 293, /* COLUMN */
- SQL_CREATE = 294, /* CREATE */
- SQL_DELETE = 295, /* DELETE */
- SQL_DIRECT = 296, /* DIRECT */
- SQL_DOUBLE = 297, /* DOUBLE */
- SQL_ESCAPE = 298, /* ESCAPE */
- SQL_EXCEPT = 299, /* EXCEPT */
- SQL_EXISTS = 300, /* EXISTS */
- SQL_EXTRACT = 301, /* EXTRACT */
- SQL_CAST = 302, /* CAST */
- SQL_FORMAT = 303, /* FORMAT */
- SQL_GLOBAL = 304, /* GLOBAL */
- SQL_HAVING = 305, /* HAVING */
- SQL_IMPORT = 306, /* IMPORT */
- SQL_INSERT = 307, /* INSERT */
- SQL_ISNULL = 308, /* ISNULL */
- SQL_OFFSET = 309, /* OFFSET */
- SQL_RENAME = 310, /* RENAME */
- SQL_SCHEMA = 311, /* SCHEMA */
- SQL_SELECT = 312, /* SELECT */
- SQL_SORTED = 313, /* SORTED */
- SQL_TABLES = 314, /* TABLES */
- SQL_UNIQUE = 315, /* UNIQUE */
- SQL_UNLOAD = 316, /* UNLOAD */
- SQL_UPDATE = 317, /* UPDATE */
- SQL_VALUES = 318, /* VALUES */
- SQL_AFTER = 319, /* AFTER */
- SQL_ALTER = 320, /* ALTER */
- SQL_CROSS = 321, /* CROSS */
- SQL_DELTA = 322, /* DELTA */
- SQL_FLOAT = 323, /* FLOAT */
- SQL_GROUP = 324, /* GROUP */
- SQL_INDEX = 325, /* INDEX */
- SQL_INNER = 326, /* INNER */
- SQL_LIMIT = 327, /* LIMIT */
- SQL_LOCAL = 328, /* LOCAL */
- SQL_MERGE = 329, /* MERGE */
- SQL_MINUS = 330, /* MINUS */
- SQL_ORDER = 331, /* ORDER */
- SQL_OUTER = 332, /* OUTER */
- SQL_RIGHT = 333, /* RIGHT */
- SQL_TABLE = 334, /* TABLE */
- SQL_UNION = 335, /* UNION */
- SQL_USING = 336, /* USING */
- SQL_WHERE = 337, /* WHERE */
- SQL_CALL = 338, /* CALL */
- SQL_CASE = 339, /* CASE */
- SQL_CHAR = 340, /* CHAR */
- SQL_COPY = 341, /* COPY */
- SQL_DATE = 342, /* DATE */
- SQL_DATETIME = 343, /* DATETIME */
- SQL_DESC = 344, /* DESC */
- SQL_DROP = 345, /* DROP */
- SQL_ELSE = 346, /* ELSE */
- SQL_FILE = 347, /* FILE */
- SQL_FROM = 348, /* FROM */
- SQL_FULL = 349, /* FULL */
- SQL_HASH = 350, /* HASH */
- SQL_HINT = 351, /* HINT */
- SQL_INTO = 352, /* INTO */
- SQL_JOIN = 353, /* JOIN */
- SQL_LEFT = 354, /* LEFT */
- SQL_LIKE = 355, /* LIKE */
- SQL_LOAD = 356, /* LOAD */
- SQL_LONG = 357, /* LONG */
- SQL_NULL = 358, /* NULL */
- SQL_PLAN = 359, /* PLAN */
- SQL_SHOW = 360, /* SHOW */
- SQL_TEXT = 361, /* TEXT */
- SQL_THEN = 362, /* THEN */
- SQL_TIME = 363, /* TIME */
- SQL_VIEW = 364, /* VIEW */
- SQL_WHEN = 365, /* WHEN */
- SQL_WITH = 366, /* WITH */
- SQL_ADD = 367, /* ADD */
- SQL_ALL = 368, /* ALL */
- SQL_AND = 369, /* AND */
- SQL_ASC = 370, /* ASC */
- SQL_END = 371, /* END */
- SQL_FOR = 372, /* FOR */
- SQL_INT = 373, /* INT */
- SQL_KEY = 374, /* KEY */
- SQL_NOT = 375, /* NOT */
- SQL_OFF = 376, /* OFF */
- SQL_SET = 377, /* SET */
- SQL_TOP = 378, /* TOP */
- SQL_AS = 379, /* AS */
- SQL_BY = 380, /* BY */
- SQL_IF = 381, /* IF */
- SQL_IN = 382, /* IN */
- SQL_IS = 383, /* IS */
- SQL_OF = 384, /* OF */
- SQL_ON = 385, /* ON */
- SQL_OR = 386, /* OR */
- SQL_TO = 387, /* TO */
- SQL_ARRAY = 388, /* ARRAY */
- SQL_CONCAT = 389, /* CONCAT */
- SQL_ILIKE = 390, /* ILIKE */
- SQL_SECOND = 391, /* SECOND */
- SQL_MINUTE = 392, /* MINUTE */
- SQL_HOUR = 393, /* HOUR */
- SQL_DAY = 394, /* DAY */
- SQL_MONTH = 395, /* MONTH */
- SQL_YEAR = 396, /* YEAR */
- SQL_SECONDS = 397, /* SECONDS */
- SQL_MINUTES = 398, /* MINUTES */
- SQL_HOURS = 399, /* HOURS */
- SQL_DAYS = 400, /* DAYS */
- SQL_MONTHS = 401, /* MONTHS */
- SQL_YEARS = 402, /* YEARS */
- SQL_INTERVAL = 403, /* INTERVAL */
- SQL_TRUE = 404, /* TRUE */
- SQL_FALSE = 405, /* FALSE */
- SQL_TRANSACTION = 406, /* TRANSACTION */
- SQL_BEGIN = 407, /* BEGIN */
- SQL_COMMIT = 408, /* COMMIT */
- SQL_ROLLBACK = 409, /* ROLLBACK */
- SQL_EQUALS = 410, /* EQUALS */
- SQL_NOTEQUALS = 411, /* NOTEQUALS */
- SQL_LESS = 412, /* LESS */
- SQL_GREATER = 413, /* GREATER */
- SQL_LESSEQ = 414, /* LESSEQ */
- SQL_GREATEREQ = 415, /* GREATEREQ */
- SQL_NOTNULL = 416, /* NOTNULL */
- SQL_UMINUS = 417 /* UMINUS */
+ SQL_IDENTIFIER = 258,
+ SQL_STRING = 259,
+ SQL_FLOATVAL = 260,
+ SQL_INTVAL = 261,
+ SQL_DEALLOCATE = 262,
+ SQL_PARAMETERS = 263,
+ SQL_INTERSECT = 264,
+ SQL_TEMPORARY = 265,
+ SQL_TIMESTAMP = 266,
+ SQL_DISTINCT = 267,
+ SQL_NVARCHAR = 268,
+ SQL_RESTRICT = 269,
+ SQL_TRUNCATE = 270,
+ SQL_ANALYZE = 271,
+ SQL_BETWEEN = 272,
+ SQL_CASCADE = 273,
+ SQL_COLUMNS = 274,
+ SQL_CONTROL = 275,
+ SQL_DEFAULT = 276,
+ SQL_EXECUTE = 277,
+ SQL_EXPLAIN = 278,
+ SQL_INTEGER = 279,
+ SQL_NATURAL = 280,
+ SQL_PREPARE = 281,
+ SQL_PRIMARY = 282,
+ SQL_SCHEMAS = 283,
+ SQL_CHARACTER_VARYING = 284,
+ SQL_REAL = 285,
+ SQL_DECIMAL = 286,
+ SQL_SMALLINT = 287,
+ SQL_SPATIAL = 288,
+ SQL_VARCHAR = 289,
+ SQL_VIRTUAL = 290,
+ SQL_DESCRIBE = 291,
+ SQL_BEFORE = 292,
+ SQL_COLUMN = 293,
+ SQL_CREATE = 294,
+ SQL_DELETE = 295,
+ SQL_DIRECT = 296,
+ SQL_DOUBLE = 297,
+ SQL_ESCAPE = 298,
+ SQL_EXCEPT = 299,
+ SQL_EXISTS = 300,
+ SQL_EXTRACT = 301,
+ SQL_CAST = 302,
+ SQL_FORMAT = 303,
+ SQL_GLOBAL = 304,
+ SQL_HAVING = 305,
+ SQL_IMPORT = 306,
+ SQL_INSERT = 307,
+ SQL_ISNULL = 308,
+ SQL_OFFSET = 309,
+ SQL_RENAME = 310,
+ SQL_SCHEMA = 311,
+ SQL_SELECT = 312,
+ SQL_SORTED = 313,
+ SQL_TABLES = 314,
+ SQL_UNIQUE = 315,
+ SQL_UNLOAD = 316,
+ SQL_UPDATE = 317,
+ SQL_VALUES = 318,
+ SQL_AFTER = 319,
+ SQL_ALTER = 320,
+ SQL_CROSS = 321,
+ SQL_DELTA = 322,
+ SQL_FLOAT = 323,
+ SQL_GROUP = 324,
+ SQL_INDEX = 325,
+ SQL_INNER = 326,
+ SQL_LIMIT = 327,
+ SQL_LOCAL = 328,
+ SQL_MERGE = 329,
+ SQL_MINUS = 330,
+ SQL_ORDER = 331,
+ SQL_OUTER = 332,
+ SQL_RIGHT = 333,
+ SQL_TABLE = 334,
+ SQL_UNION = 335,
+ SQL_USING = 336,
+ SQL_WHERE = 337,
+ SQL_CALL = 338,
+ SQL_CASE = 339,
+ SQL_CHAR = 340,
+ SQL_COPY = 341,
+ SQL_DATE = 342,
+ SQL_DATETIME = 343,
+ SQL_DESC = 344,
+ SQL_DROP = 345,
+ SQL_ELSE = 346,
+ SQL_FILE = 347,
+ SQL_FROM = 348,
+ SQL_FULL = 349,
+ SQL_HASH = 350,
+ SQL_HINT = 351,
+ SQL_INTO = 352,
+ SQL_JOIN = 353,
+ SQL_LEFT = 354,
+ SQL_LIKE = 355,
+ SQL_LOAD = 356,
+ SQL_LONG = 357,
+ SQL_NULL = 358,
+ SQL_PLAN = 359,
+ SQL_SHOW = 360,
+ SQL_TEXT = 361,
+ SQL_THEN = 362,
+ SQL_TIME = 363,
+ SQL_VIEW = 364,
+ SQL_WHEN = 365,
+ SQL_WITH = 366,
+ SQL_ADD = 367,
+ SQL_ALL = 368,
+ SQL_AND = 369,
+ SQL_ASC = 370,
+ SQL_END = 371,
+ SQL_FOR = 372,
+ SQL_INT = 373,
+ SQL_KEY = 374,
+ SQL_NOT = 375,
+ SQL_OFF = 376,
+ SQL_SET = 377,
+ SQL_TOP = 378,
+ SQL_AS = 379,
+ SQL_BY = 380,
+ SQL_IF = 381,
+ SQL_IN = 382,
+ SQL_IS = 383,
+ SQL_OF = 384,
+ SQL_ON = 385,
+ SQL_OR = 386,
+ SQL_TO = 387,
+ SQL_NO = 388,
+ SQL_ARRAY = 389,
+ SQL_CONCAT = 390,
+ SQL_ILIKE = 391,
+ SQL_SECOND = 392,
+ SQL_MINUTE = 393,
+ SQL_HOUR = 394,
+ SQL_DAY = 395,
+ SQL_MONTH = 396,
+ SQL_YEAR = 397,
+ SQL_SECONDS = 398,
+ SQL_MINUTES = 399,
+ SQL_HOURS = 400,
+ SQL_DAYS = 401,
+ SQL_MONTHS = 402,
+ SQL_YEARS = 403,
+ SQL_INTERVAL = 404,
+ SQL_TRUE = 405,
+ SQL_FALSE = 406,
+ SQL_TRANSACTION = 407,
+ SQL_BEGIN = 408,
+ SQL_COMMIT = 409,
+ SQL_ROLLBACK = 410,
+ SQL_NOWAIT = 411,
+ SQL_SKIP = 412,
+ SQL_LOCKED = 413,
+ SQL_SHARE = 414,
+ SQL_EQUALS = 415,
+ SQL_NOTEQUALS = 416,
+ SQL_LESS = 417,
+ SQL_GREATER = 418,
+ SQL_LESSEQ = 419,
+ SQL_GREATEREQ = 420,
+ SQL_NOTNULL = 421,
+ SQL_UMINUS = 422
};
-typedef enum hsql_tokentype hsql_token_kind_t;
#endif
/* Value type. */
@@ -300,6 +299,7 @@ union HSQL_STYPE {
hsql::TableRef* table;
hsql::UpdateClause* update_t;
hsql::WithDescription* with_description_t;
+ hsql::LockingClause* locking_t;
std::vector* str_vec;
std::vector* column_constraint_vec;
@@ -310,10 +310,14 @@ union HSQL_STYPE {
std::vector* table_vec;
std::vector* update_vec;
std::vector* with_description_vec;
+ std::vector* locking_clause_vec;
std::pair* ival_pair;
-#line 319 "bison_parser.h"
+ hsql::RowLockMode lock_mode_t;
+ hsql::RowLockWaitPolicy lock_wait_policy_t;
+
+#line 323 "bison_parser.h"
};
typedef union HSQL_STYPE HSQL_STYPE;
#define HSQL_STYPE_IS_TRIVIAL 1
diff --git a/src/parser/bison_parser.y b/src/parser/bison_parser.y
index 72fe81bf..d2b35e59 100644
--- a/src/parser/bison_parser.y
+++ b/src/parser/bison_parser.y
@@ -140,6 +140,7 @@
hsql::TableRef* table;
hsql::UpdateClause* update_t;
hsql::WithDescription* with_description_t;
+ hsql::LockingClause* locking_t;
std::vector* str_vec;
std::vector* column_constraint_vec;
@@ -150,15 +151,19 @@
std::vector* table_vec;
std::vector* update_vec;
std::vector* with_description_vec;
+ std::vector* locking_clause_vec;
std::pair* ival_pair;
+
+ hsql::RowLockMode lock_mode_t;
+ hsql::RowLockWaitPolicy lock_wait_policy_t;
}
/*********************************
** Destructor symbols
*********************************/
// clang-format off
- %destructor { }
+ %destructor { }
%destructor { free( ($$.name) ); free( ($$.schema) ); }
%destructor { free( ($$) ); }
%destructor {
@@ -193,11 +198,12 @@
%token DESC DROP ELSE FILE FROM FULL HASH HINT INTO JOIN
%token LEFT LIKE LOAD LONG NULL PLAN SHOW TEXT THEN TIME
%token VIEW WHEN WITH ADD ALL AND ASC END FOR INT KEY
- %token NOT OFF SET TOP AS BY IF IN IS OF ON OR TO
+ %token NOT OFF SET TOP AS BY IF IN IS OF ON OR TO NO
%token ARRAY CONCAT ILIKE SECOND MINUTE HOUR DAY MONTH YEAR
%token SECONDS MINUTES HOURS DAYS MONTHS YEARS INTERVAL
%token TRUE FALSE
%token TRANSACTION BEGIN COMMIT ROLLBACK
+ %token NOWAIT SKIP LOCKED SHARE
/*********************************
** Non-Terminal types (http://www.gnu.org/software/bison/manual/html_node/Type-Decl.html)
@@ -240,6 +246,7 @@
%type column_type
%type table_constraint
%type update_clause
+ %type locking_clause
%type opt_group
%type opt_table_alias table_alias opt_alias alias
%type with_description
@@ -249,6 +256,8 @@
%type opt_column_constraints
%type alter_action
%type drop_action
+ %type opt_row_lock_policy
+ %type row_lock_mode
// ImportType is used for compatibility reasons
%type opt_file_type file_type
@@ -260,6 +269,7 @@
%type opt_with_clause with_clause with_description_list
%type update_clause_commalist
%type table_elem_commalist
+ %type opt_locking_clause_list opt_locking_clause
/******************************
** Token Precedence and Associativity
@@ -746,7 +756,7 @@ select_within_set_operation_no_parentheses : select_clause { $$ = $1; }
select_with_paren : '(' select_no_paren ')' { $$ = $2; }
| '(' select_with_paren ')' { $$ = $2; };
-select_no_paren : select_clause opt_order opt_limit {
+select_no_paren : select_clause opt_order opt_limit opt_locking_clause {
$$ = $1;
$$->order = $2;
@@ -755,8 +765,12 @@ select_no_paren : select_clause opt_order opt_limit {
delete $$->limit;
$$->limit = $3;
}
+
+ if ($4 != nullptr) {
+ $$->lockings = $4;
+ }
}
-| select_clause set_operator select_within_set_operation opt_order opt_limit {
+| select_clause set_operator select_within_set_operation opt_order opt_limit opt_locking_clause {
$$ = $1;
if ($$->setOperations == nullptr) {
$$->setOperations = new std::vector();
@@ -765,6 +779,7 @@ select_no_paren : select_clause opt_order opt_limit {
$$->setOperations->back()->nestedSelectStatement = $3;
$$->setOperations->back()->resultOrder = $4;
$$->setOperations->back()->resultLimit = $5;
+ $$->lockings = $6;
};
set_operator : set_type opt_all {
@@ -1114,6 +1129,44 @@ alias : AS IDENTIFIER { $$ = new Alias($2); }
opt_alias : alias | /* empty */ { $$ = nullptr; };
+/******************************
+ * Row Locking Descriptions
+ ******************************/
+
+opt_locking_clause : opt_locking_clause_list { $$ = $1; }
+| /* empty */ { $$ = nullptr; };
+
+opt_locking_clause_list : locking_clause {
+ $$ = new std::vector();
+ $$->push_back($1);
+}
+| opt_locking_clause_list locking_clause {
+ $1->push_back($2);
+ $$ = $1;
+};
+
+locking_clause : FOR row_lock_mode opt_row_lock_policy {
+ $$ = new LockingClause();
+ $$->rowLockMode = $2;
+ $$->rowLockWaitPolicy = $3;
+ $$->tables = nullptr;
+}
+| FOR row_lock_mode OF ident_commalist opt_row_lock_policy {
+ $$ = new LockingClause();
+ $$->rowLockMode = $2;
+ $$->tables = $4;
+ $$->rowLockWaitPolicy = $5;
+};
+
+row_lock_mode : UPDATE { $$ = RowLockMode::ForUpdate; }
+| NO KEY UPDATE { $$ = RowLockMode::ForNoKeyUpdate; }
+| SHARE { $$ = RowLockMode::ForShare; }
+| KEY SHARE { $$ = RowLockMode::ForKeyShare; };
+
+opt_row_lock_policy : SKIP LOCKED { $$ = RowLockWaitPolicy::SkipLocked; }
+| NOWAIT { $$ = RowLockWaitPolicy::NoWait; }
+| /* empty */ { $$ = RowLockWaitPolicy::None; };
+
/******************************
* With Descriptions
******************************/
diff --git a/src/parser/flex_lexer.cpp b/src/parser/flex_lexer.cpp
index ff716c32..e9cdb676 100644
--- a/src/parser/flex_lexer.cpp
+++ b/src/parser/flex_lexer.cpp
@@ -1,6 +1,6 @@
-#line 1 "flex_lexer.cpp"
+#line 2 "flex_lexer.cpp"
-#line 3 "flex_lexer.cpp"
+#line 4 "flex_lexer.cpp"
#define YY_INT_ALIGNED short int
@@ -565,87 +565,88 @@ static void yynoreturn yy_fatal_error(const char* msg, yyscan_t yyscanner);
yyg->yy_hold_char = *yy_cp; \
*yy_cp = '\0'; \
yyg->yy_c_buf_p = yy_cp;
-#define YY_NUM_RULES 170
-#define YY_END_OF_BUFFER 171
+#define YY_NUM_RULES 175
+#define YY_END_OF_BUFFER 176
/* This struct is not used in this scanner,
but its presence is necessary. */
struct yy_trans_info {
flex_int32_t yy_verify;
flex_int32_t yy_nxt;
};
-static const flex_int16_t yy_accept[1192] = {
- 0, 0, 0, 167, 167, 2, 2, 171, 169, 4, 4, 169, 169, 158, 165, 158, 158, 162, 158, 158, 158, 164, 164,
- 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 158,
- 167, 168, 2, 2, 3, 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, 4, 153, 0, 1, 0, 160,
- 159, 162, 155, 154, 152, 156, 164, 164, 164,
-
- 164, 164, 164, 123, 164, 124, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164,
- 164, 164, 164, 164, 164, 164, 164, 125, 164, 164, 126, 127, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164,
- 164, 128, 129, 130, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 131, 164,
- 164, 164, 164, 164, 164, 164, 164, 164, 157, 167, 166, 2, 2, 2, 2, 1, 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, 163, 0, 159, 111, 164, 112, 164, 164, 113, 164, 114, 164, 164, 164, 164, 164, 164, 164,
- 164, 164, 164, 164, 164, 164, 135, 164,
-
- 164, 164, 164, 164, 164, 164, 164, 164, 164, 115, 164, 164, 164, 164, 164, 164, 164, 164, 164, 116, 164, 164, 164,
- 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 117, 164, 164, 118, 164, 164, 164, 164, 164, 164, 164, 164, 164,
- 164, 119, 164, 164, 120, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 121, 164, 164, 164,
- 164, 164, 164, 164, 164, 164, 122, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 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, 0, 164, 164, 164, 164, 164, 164, 164, 82, 164, 83, 45, 84, 164, 164, 164, 85, 164, 164,
- 86, 141, 164, 164, 164, 164, 164, 88, 164, 164, 164, 89, 90, 164, 164, 164, 164, 164, 164, 164, 91, 164, 164,
- 92, 93, 164, 164, 94, 164, 95, 134, 164, 164, 164, 164, 164, 164, 96, 164, 97, 98, 99, 164, 101, 164, 102,
- 164, 164, 164, 164, 103, 164, 164, 164, 164, 164, 104, 164, 164, 32, 164, 164, 164, 164, 164, 164, 164, 105, 164,
- 164, 164, 164, 164, 106, 107, 30, 164,
-
- 144, 164, 164, 164, 164, 164, 164, 164, 164, 108, 164, 109, 164, 110, 137, 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, 0, 62, 63, 164, 64, 164, 147, 164, 164, 164, 164, 164, 164, 164, 65, 164, 164, 164, 164, 164,
- 66, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 145, 67, 164, 164, 68, 164, 140, 100, 164, 69, 70, 164,
- 164, 164, 164, 71, 72, 73, 74, 164, 136, 164, 164, 164, 75, 76, 164, 164, 164, 164, 164, 77, 164, 164, 164,
- 164, 164, 164, 164, 78, 164, 164, 164,
-
- 164, 79, 164, 164, 164, 80, 164, 164, 164, 81, 143, 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, 0, 164, 35, 164,
-
- 164, 164, 36, 149, 164, 37, 164, 164, 164, 164, 38, 164, 39, 164, 40, 41, 42, 164, 43, 164, 164, 46, 47,
- 48, 49, 50, 164, 164, 164, 51, 133, 142, 164, 164, 52, 164, 164, 164, 53, 164, 164, 54, 132, 55, 164, 56,
- 164, 57, 164, 164, 164, 164, 58, 59, 60, 61, 164, 164, 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, 0, 15, 16,
- 17, 164, 18, 19, 164, 164, 31, 20, 164, 164, 21, 22, 44, 23, 164, 164, 139, 24, 164, 164, 25, 26, 164,
- 164, 27, 138, 164, 28, 164, 164, 164, 164, 29, 34, 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, 0, 164, 87, 164, 10, 11,
-
- 164, 150, 12, 164, 13, 148, 33, 164, 164, 164, 14, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 0, 164, 164, 7, 164, 8, 9, 164, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0,
- 5, 6, 164, 2, 2, 2, 2, 2, 0, 0, 146, 2, 2, 2, 0, 0, 2, 2, 0, 0, 2, 2, 0,
- 0, 2, 2, 0, 0, 2, 2, 0, 0, 2, 2, 0, 151, 2, 2, 0, 2, 0, 2, 161, 2, 0
-
-};
+static const flex_int16_t yy_accept[1218] = {
+ 0, 0, 0, 172, 172, 2, 2, 176, 174, 4, 4, 174, 174, 163, 170, 163, 163, 167, 163, 163, 163,
+ 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169,
+ 169, 169, 169, 163, 172, 173, 2, 2, 3, 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, 4, 158, 0, 1, 0, 165, 164, 167, 160, 159, 157, 161, 169, 169, 169,
+
+ 169, 169, 169, 123, 169, 124, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169,
+ 169, 169, 169, 169, 169, 169, 169, 169, 169, 125, 169, 169, 126, 127, 169, 169, 169, 169, 169, 169, 169,
+ 169, 169, 132, 169, 169, 128, 129, 130, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169,
+ 169, 169, 169, 169, 169, 131, 169, 169, 169, 169, 169, 169, 169, 169, 169, 162, 172, 171, 2, 2, 2,
+ 2, 1, 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, 168, 0, 164, 111, 169, 112, 169, 169,
+ 113, 169, 114, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169,
+
+ 136, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 115, 169, 169, 169, 169, 169, 169, 169, 169, 169,
+ 116, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 117, 169, 169, 118, 169, 169, 169,
+ 169, 169, 169, 169, 169, 169, 169, 119, 169, 169, 169, 120, 169, 169, 169, 169, 169, 169, 169, 169, 169,
+ 169, 169, 169, 169, 169, 121, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 122, 169, 169, 169,
+ 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 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, 0, 169, 169, 169, 169, 169, 169, 169, 82,
+ 169, 83, 45, 84, 169, 169, 169, 85, 169, 169, 86, 142, 169, 169, 169, 169, 169, 88, 169, 169, 169,
+ 89, 90, 169, 169, 169, 169, 169, 169, 169, 91, 169, 169, 92, 93, 169, 169, 94, 169, 95, 135, 169,
+ 169, 169, 169, 169, 169, 96, 169, 97, 98, 99, 169, 101, 169, 169, 102, 169, 169, 169, 169, 169, 103,
+ 169, 169, 169, 169, 169, 104, 169, 169, 32, 169, 169, 169, 169, 169, 169, 169,
+
+ 169, 105, 154, 169, 169, 169, 169, 169, 106, 107, 30, 169, 145, 169, 169, 169, 169, 169, 169, 169, 169,
+ 108, 169, 109, 169, 110, 138, 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,
+ 0, 62, 63, 169, 64, 169, 148, 169, 169, 169, 169, 169, 169, 169, 65, 169, 169, 169, 169, 169, 66,
+ 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 146, 67, 169, 169, 68, 169, 141, 100, 169, 69, 70,
+ 169, 169, 169, 169, 71, 72, 169, 73, 74, 169, 137, 169, 169, 169, 169, 75,
+
+ 76, 169, 169, 169, 169, 169, 77, 169, 169, 169, 169, 152, 169, 169, 169, 78, 169, 169, 169, 169, 79,
+ 169, 169, 169, 80, 169, 169, 169, 81, 144, 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, 0, 169, 35,
+ 169, 169, 169, 36, 150, 169, 37, 169, 169, 169, 169, 38, 169, 39, 169, 40, 41, 42, 169, 43, 169,
+ 169, 46, 47, 48, 49, 50, 169, 169, 169, 51, 155, 134, 143, 169, 153, 169, 52, 169, 169, 169, 53,
+ 169, 169, 54, 133, 55, 169, 56, 169, 57, 169, 169, 169, 169, 58, 59, 60, 61, 169, 169, 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, 0, 15, 16, 17, 169, 18, 19, 169, 169, 31, 20, 169, 169, 21, 22, 44, 23,
+ 169, 169, 140, 24, 169, 169, 25, 26, 169, 169, 27, 139, 169, 28, 169, 169, 169, 169, 29, 34, 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, 0,
+ 169, 87, 169, 10, 11, 169, 151, 12, 169, 13, 149, 33, 169, 169, 169, 14, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 169, 169, 7, 169, 8, 9, 169, 2,
+ 2, 2, 2, 2, 2, 2, 2, 0, 0, 5, 6, 169, 2, 2, 2, 2, 2, 0, 0, 147, 2,
+ 2, 2, 0, 0, 2, 2, 0, 0, 2, 2, 0, 0, 2, 2, 0, 0,
+
+ 2, 2, 0, 0, 2, 2, 0, 156, 2, 2, 0, 2, 0, 2, 166, 2, 0};
static const YY_CHAR yy_ec[256] = {
0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
@@ -665,121 +666,122 @@ static const YY_CHAR yy_meta[77] = {0, 1, 1, 2, 1, 3, 1, 4, 1, 1, 5, 5, 5, 5, 5,
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 1};
-static const flex_int16_t yy_base[1199] = {
- 0, 0, 0, 581, 574, 76, 0, 573, 4737, 151, 153, 547, 0, 4737, 4737, 149, 148,
- 160, 159, 535, 532, 156, 156, 164, 162, 172, 223, 198, 211, 215, 151, 168, 210, 255,
- 257, 263, 262, 0, 277, 317, 360, 296, 221, 258, 171, 476, 0, 530, 0, 295, 308,
- 515, 516, 0, 0, 317, 418, 429, 317, 499, 496, 448, 524, 578, 630, 678, 730, 338,
- 436, 778, 330, 319, 349, 444, 830, 878, 500, 321, 511, 928, 980, 556, 512, 533, 431,
- 437, 347, 4737, 507, 4737, 485, 1045, 1055, 1066, 4737, 4737, 4737, 4737, 0, 174, 253,
-
- 438, 469, 284, 318, 567, 0, 538, 339, 578, 361, 591, 621, 607, 417, 429, 436, 453,
- 489, 641, 515, 521, 520, 537, 556, 568, 590, 594, 659, 601, 608, 0, 628, 625, 675,
- 633, 650, 644, 674, 674, 697, 673, 679, 685, 681, 689, 701, 722, 726, 0, 729, 714,
- 719, 740, 738, 766, 737, 734, 741, 776, 739, 776, 768, 786, 787, 785, 788, 782, 783,
- 800, 793, 796, 824, 822, 832, 833, 819, 840, 4737, 0, 4737, 0, 399, 0, 491, 0,
- 453, 1076, 1086, 1097, 0, 0, 0, 0, 838, 849, 866, 882, 923, 890, 934,
-
- 967, 868, 971, 1094, 1142, 952, 977, 1194, 1091, 1092, 1093, 1096, 1107, 1146, 1244, 1152, 1184,
- 1196, 1185, 1200, 1229, 1230, 1252, 1270, 1265, 1278, 880, 1296, 1136, 1345, 1293, 1304, 1128, 1306,
- 1322, 1341, 1226, 1347, 1370, 1268, 1358, 1375, 1384, 1398, 1234, 1413, 1401, 1410, 1424, 1415, 1456,
- 1434, 1466, 1455, 1489, 1464, 1498, 1495, 1510, 1520, 1519, 1528, 1541, 1532, 1562, 1573, 1564, 1583,
- 1595, 1586, 1574, 1597, 1596, 0, 4737, 452, 1662, 0, 837, 0, 844, 877, 0, 924, 0,
- 923, 970, 968, 981, 1640, 1082, 1081, 1090, 1084, 1082, 1164, 1147, 1170, 1168, 1217,
-
- 1305, 1323, 1641, 1364, 1376, 1399, 1435, 1442, 1472, 0, 1482, 1507, 1526, 1512, 1522, 1558, 1617,
- 1632, 1638, 1628, 1629, 1650, 1663, 1646, 1663, 1665, 1655, 1658, 1666, 1663, 1674, 1675, 1676, 1678,
- 1661, 1670, 0, 1665, 1681, 1681, 1687, 1694, 1689, 1690, 1678, 1680, 1693, 0, 1703, 1698, 1700,
- 1716, 1720, 1727, 1715, 1714, 1718, 1720, 1732, 1714, 1727, 1724, 1732, 1723, 1734, 0, 1717, 1732,
- 1725, 1727, 1737, 1734, 1731, 1739, 1749, 0, 1754, 1765, 1758, 1754, 1781, 1769, 1763, 1782, 1763,
- 1767, 1774, 1781, 1772, 0, 450, 1832, 1813, 1825, 1826, 1827, 1828, 1829, 1838, 1830,
-
- 1859, 1863, 1864, 1880, 1897, 1888, 1903, 1905, 1851, 1916, 1933, 1931, 1921, 1947, 1942, 1955, 1970,
- 1964, 1983, 1965, 1998, 1999, 2004, 1987, 2000, 2009, 2001, 2035, 2038, 2037, 2041, 2039, 2043, 2073,
- 2067, 2083, 2092, 2077, 2089, 2095, 2107, 2108, 2131, 2137, 2146, 2113, 2121, 2145, 2149, 2147, 2179,
- 2162, 2180, 2177, 2181, 2203, 2191, 2217, 2231, 2205, 2220, 2239, 2216, 2234, 2256, 2257, 2245, 2253,
- 2274, 2279, 2291, 2285, 2307, 2313, 2308, 2319, 2310, 2325, 2343, 2331, 2342, 2347, 2361, 2356, 2364,
- 2393, 2385, 2382, 2401, 2387, 2399, 2416, 2422, 2435, 2441, 2457, 2456, 2444, 2475, 2479,
-
- 2439, 2485, 2490, 2496, 448, 1828, 1830, 1879, 1975, 2036, 2280, 2348, 0, 2363, 0, 0, 2381,
- 2493, 2503, 2495, 0, 2496, 2499, 2499, 0, 2508, 2510, 2503, 2512, 2533, 2517, 2533, 2529, 2532,
- 0, 0, 2533, 2536, 2532, 2534, 2554, 2555, 2552, 0, 2538, 2559, 0, 0, 2563, 2550, 0,
- 2553, 0, 2549, 2564, 2552, 2548, 2555, 2556, 2568, 0, 2565, 0, 0, 0, 2558, 0, 2576,
- 0, 2584, 2587, 2582, 2574, 0, 2595, 2598, 2590, 2591, 2597, 0, 2610, 2611, 0, 2601, 2600,
- 2600, 2619, 2609, 2609, 2621, 0, 2614, 2622, 2619, 2624, 2616, 0, 0, 2613, 2621,
-
- 0, 2639, 2629, 2623, 2645, 2632, 2650, 2655, 2653, 0, 2641, 0, 2658, 0, 2645, 438, 2660,
- 2675, 2669, 2670, 2678, 2672, 2693, 2694, 2710, 2704, 2709, 2727, 2726, 2728, 2745, 2742, 2763, 2766,
- 2764, 2767, 2781, 2796, 2782, 2797, 2799, 2820, 2832, 2834, 2835, 2821, 2836, 2853, 2866, 2858, 2872,
- 2875, 2888, 2870, 2876, 2906, 2916, 2907, 2910, 2924, 2918, 2932, 2940, 2941, 2950, 2942, 2972, 2955,
- 2973, 2983, 3004, 2978, 3007, 2995, 3008, 3009, 3032, 3018, 3043, 3026, 3037, 3061, 3066, 3058, 3040,
- 3091, 3072, 3094, 3097, 3112, 3095, 3129, 3130, 3128, 3143, 3145, 3146, 3167, 3154, 3186,
-
- 3182, 3183, 3197, 3196, 3208, 3198, 3226, 3200, 3221, 3237, 3238, 3234, 3242, 3250, 3256, 3275, 3290,
- 3280, 3274, 3288, 3292, 3304, 3296, 3306, 3314, 3328, 413, 0, 0, 2655, 0, 2711, 0, 2712,
- 2744, 2746, 2740, 2785, 2808, 2931, 0, 2980, 2984, 3086, 3093, 3104, 0, 3102, 3169, 3196, 3260,
- 3266, 3296, 3298, 3311, 3325, 3332, 0, 0, 3321, 3337, 0, 3343, 0, 0, 3331, 0, 0,
- 3334, 3350, 3345, 3347, 0, 0, 0, 0, 3358, 3346, 3368, 3362, 3351, 0, 0, 3367, 3355,
- 3357, 3374, 3374, 0, 3383, 3384, 3383, 3368, 3380, 3389, 3394, 3382, 3385, 3384, 3404,
-
- 3406, 0, 3403, 3405, 3408, 0, 3398, 3417, 3418, 0, 0, 409, 3416, 3418, 3428, 3424, 3432,
- 3433, 3434, 3447, 3458, 3457, 3472, 3486, 3442, 3468, 3497, 3498, 3507, 3502, 3511, 3512, 3537, 3540,
- 3542, 3526, 3543, 3556, 3565, 3552, 3577, 3596, 3575, 3586, 3600, 3610, 3591, 3626, 3605, 3609, 3634,
- 3631, 3639, 3645, 3648, 3650, 3662, 3663, 3679, 3680, 3684, 3685, 3688, 3717, 3698, 3719, 3703, 3716,
- 3721, 3738, 3742, 3733, 3752, 3747, 3775, 3777, 3787, 3776, 3788, 3806, 3816, 3811, 3817, 3827, 3845,
- 3850, 3801, 3829, 3860, 3851, 3855, 3879, 3885, 3894, 3883, 3884, 404, 3437, 0, 3511,
-
- 3521, 3546, 3560, 0, 3607, 0, 3685, 3724, 3747, 3742, 0, 3796, 0, 3842, 0, 0, 0,
- 3861, 0, 3853, 3876, 0, 0, 0, 0, 0, 3882, 3896, 3904, 0, 3887, 0, 3902, 3917,
- 0, 3900, 3916, 3899, 0, 3926, 3927, 3915, 3919, 0, 3925, 0, 3928, 0, 3941, 3942, 3941,
- 3929, 0, 0, 0, 0, 3932, 3940, 403, 3948, 3949, 3950, 3953, 3963, 3967, 3979, 3982, 3984,
- 3993, 4017, 4012, 4003, 4007, 4036, 4021, 4049, 4035, 4038, 4051, 4052, 4053, 4057, 4075, 4061, 4067,
- 4086, 4089, 4091, 4092, 4101, 4107, 4115, 4123, 4120, 4124, 4129, 4126, 4145, 4141, 4155,
-
- 4157, 4180, 4181, 4169, 4195, 4166, 4194, 4191, 4212, 4197, 4229, 4235, 4245, 4233, 4220, 4234, 4237,
- 4251, 4266, 4283, 407, 0, 0, 0, 3958, 0, 0, 3998, 4047, 0, 0, 4163, 4184, 0,
- 0, 0, 0, 4225, 4261, 0, 0, 4256, 4273, 0, 0, 4259, 4271, 0, 0, 4270, 0,
- 4274, 4280, 4274, 4291, 0, 0, 404, 4299, 4302, 4305, 4307, 4308, 4311, 4320, 4337, 4321, 4323,
- 4324, 4359, 4336, 4342, 4345, 4353, 4377, 4378, 4361, 4376, 4394, 4390, 4391, 4393, 4415, 4416, 4399,
- 4427, 4433, 4431, 4432, 4456, 4450, 4461, 4466, 4467, 401, 4326, 0, 4367, 0, 0,
-
- 4413, 0, 0, 4431, 0, 0, 0, 4448, 4458, 4469, 0, 399, 4485, 4482, 4484, 4490, 4501,
- 4507, 4515, 4516, 4520, 4518, 4519, 4524, 4530, 4541, 4555, 4553, 395, 404, 4556, 0, 4544, 0,
- 0, 4554, 350, 4594, 4570, 4572, 4581, 4576, 4578, 4606, 344, 4612, 0, 0, 4575, 342, 4614,
- 4593, 4607, 4615, 338, 4613, 0, 335, 4614, 4612, 330, 4605, 325, 4617, 306, 4618, 303, 4624,
- 288, 4642, 255, 4643, 250, 4639, 245, 4640, 243, 4648, 240, 4650, 235, 4737, 221, 0, 226,
- 197, 187, 173, 4737, 0, 4737, 4706, 4711, 181, 4716, 4721, 4726, 4731
-
-};
-
-static const flex_int16_t yy_def[1199] = {
- 0, 1191, 1, 1192, 1192, 1191, 5, 1191, 1191, 1191, 1191, 1191, 1193, 1191, 1191, 1191, 1191,
- 1191, 1191, 1191, 1191, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194,
- 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1191, 1195, 1191, 1196, 1196, 1191,
- 1196, 1197, 1196, 1196, 1196, 1196, 1196, 1196, 1196, 1196, 1198, 1198, 62, 62, 62, 62, 62,
+static const flex_int16_t yy_base[1225] = {
+ 0, 0, 0, 667, 649, 76, 0, 650, 4821, 151, 153, 605, 0, 4821, 4821, 149, 148,
+ 160, 159, 596, 570, 156, 156, 164, 162, 172, 223, 198, 211, 215, 151, 168, 210, 255,
+ 257, 263, 262, 0, 277, 317, 360, 296, 221, 258, 171, 497, 0, 536, 0, 295, 308,
+ 515, 530, 0, 0, 317, 418, 429, 317, 513, 506, 448, 524, 578, 630, 678, 730, 338,
+ 436, 778, 339, 321, 444, 510, 830, 878, 515, 431, 523, 928, 980, 525, 580, 465, 433,
+ 445, 343, 4821, 515, 4821, 505, 1045, 1055, 1066, 4821, 4821, 4821, 4821, 0, 174, 253,
+
+ 346, 317, 284, 332, 567, 0, 355, 371, 578, 521, 430, 621, 580, 355, 429, 438, 487,
+ 528, 641, 522, 525, 530, 552, 565, 570, 569, 573, 619, 588, 615, 0, 628, 626, 675,
+ 629, 638, 628, 653, 674, 695, 660, 667, 677, 673, 714, 687, 699, 695, 0, 707, 693,
+ 714, 732, 738, 766, 734, 732, 738, 776, 780, 740, 749, 768, 786, 787, 785, 788, 786,
+ 784, 800, 793, 829, 825, 825, 835, 833, 819, 840, 4821, 0, 4821, 0, 360, 0, 509,
+ 0, 485, 1076, 1086, 1097, 0, 0, 0, 0, 849, 882, 868, 917, 893, 922,
+
+ 947, 977, 880, 1090, 1095, 1143, 923, 971, 1195, 968, 1092, 1093, 1114, 1106, 1147, 1245, 1180,
+ 1185, 1201, 1186, 1224, 1230, 1253, 1258, 1274, 1129, 1239, 1269, 1293, 1299, 1348, 1302, 1303, 1308,
+ 1331, 1361, 1401, 1353, 1356, 1382, 1405, 1415, 1407, 1416, 1444, 1325, 1450, 1431, 1455, 1465, 1479,
+ 1484, 1467, 1501, 1513, 1517, 1545, 1519, 1534, 1509, 1567, 1573, 1569, 1558, 1571, 1575, 1603, 1617,
+ 1608, 1625, 1640, 1641, 1611, 1642, 1643, 0, 4821, 453, 1708, 0, 837, 0, 839, 837, 0,
+ 849, 0, 848, 866, 866, 896, 1703, 933, 969, 979, 974, 976, 1003, 1080, 1096,
+
+ 1084, 1093, 1105, 1148, 1183, 1148, 1148, 1142, 1165, 1193, 1208, 0, 1244, 1252, 1256, 1292, 1302,
+ 1299, 1300, 1317, 1331, 1335, 1352, 1364, 1380, 1363, 1383, 1407, 1444, 1487, 1541, 1543, 1583, 1609,
+ 1632, 1675, 1633, 1668, 0, 1663, 1679, 1678, 1684, 1711, 1684, 1706, 1695, 1699, 1699, 0, 1720,
+ 1712, 1707, 1707, 1722, 1723, 1728, 1716, 1715, 1719, 1722, 1735, 1717, 1730, 1729, 1737, 1729, 1740,
+ 0, 1742, 1739, 1750, 1755, 1750, 1753, 1762, 1759, 1756, 1763, 1773, 0, 1765, 1776, 1765, 1768,
+ 1783, 1771, 1765, 1785, 1768, 1772, 1781, 1788, 1780, 0, 452, 1839, 1815, 1816, 1819,
+
+ 1832, 1833, 1834, 1845, 1837, 1873, 1851, 1869, 1870, 1888, 1899, 1875, 1901, 1923, 1905, 1931, 1933,
+ 1929, 1941, 1937, 1959, 1973, 1972, 1977, 1981, 1983, 2012, 2007, 1995, 2011, 2017, 2021, 2035, 2029,
+ 2046, 2052, 2047, 2051, 2081, 2075, 2089, 2100, 2106, 2105, 2111, 2115, 2129, 2137, 2139, 2155, 2140,
+ 2143, 2154, 2168, 2169, 2191, 2179, 2183, 2193, 2204, 2222, 2223, 2232, 2237, 2247, 2245, 2255, 2253,
+ 2258, 2276, 2286, 2277, 2268, 2289, 2311, 2308, 2319, 2321, 2320, 2349, 2350, 2359, 2353, 2351, 2364,
+ 2361, 2363, 2382, 2385, 2393, 2407, 2418, 2424, 2416, 2415, 2437, 2447, 2428, 2449, 2461,
+
+ 2473, 2491, 2458, 2490, 2506, 2507, 2504, 2521, 2472, 2536, 2532, 2544, 449, 1798, 1834, 1829, 1838,
+ 1894, 1931, 1962, 0, 2027, 0, 0, 2061, 2055, 2065, 2072, 0, 2071, 2077, 2165, 0, 2202,
+ 2206, 2201, 2310, 2398, 2406, 2491, 2494, 2533, 0, 0, 2532, 2535, 2531, 2540, 2562, 2564, 2561,
+ 0, 2550, 2573, 0, 0, 2579, 2566, 0, 2569, 0, 2566, 2581, 2573, 2570, 2577, 2580, 2593,
+ 0, 2587, 0, 0, 0, 2582, 0, 2591, 2599, 0, 2600, 2595, 2598, 2590, 2607, 0, 2614,
+ 2614, 2602, 2605, 2611, 0, 2627, 2633, 0, 2623, 2619, 2619, 2638, 2632, 2634, 2646,
+
+ 2647, 0, 0, 2641, 2649, 2647, 2652, 2643, 0, 0, 2640, 2641, 0, 2659, 2651, 2647, 2668,
+ 2650, 2664, 2668, 2666, 0, 2656, 0, 2673, 0, 2663, 448, 2685, 2688, 2683, 2686, 2689, 2711,
+ 2694, 2697, 2722, 2707, 2719, 2752, 2743, 2753, 2761, 2740, 2756, 2777, 2792, 2762, 2786, 2794, 2795,
+ 2810, 2827, 2831, 2828, 2836, 2859, 2845, 2849, 2862, 2870, 2864, 2895, 2898, 2903, 2885, 2904, 2913,
+ 2938, 2916, 2919, 2948, 2953, 2927, 2967, 2952, 2969, 2957, 2988, 2978, 2993, 3009, 3017, 3007, 3011,
+ 3012, 3021, 3023, 3047, 3051, 3053, 3052, 3055, 3061, 3076, 3092, 3084, 3101, 3066, 3109,
+
+ 3106, 3125, 3127, 3135, 3110, 3146, 3163, 3141, 3171, 3176, 3160, 3181, 3177, 3200, 3194, 3195, 3211,
+ 3213, 3225, 3217, 3226, 3229, 3251, 3235, 3243, 3254, 3265, 3266, 3269, 3291, 3283, 3308, 3287, 3317,
+ 3305, 3320, 3321, 3333, 3336, 3339, 3342, 3351, 438, 0, 0, 2702, 0, 2737, 0, 2805, 2817,
+ 2862, 2852, 2887, 2904, 2935, 0, 2955, 3032, 3252, 3243, 3297, 0, 3339, 3330, 3345, 3357, 3358,
+ 3346, 3358, 3360, 3371, 3379, 0, 0, 3364, 3375, 0, 3385, 0, 0, 3375, 0, 0, 3376,
+ 3393, 3380, 3388, 0, 0, 3397, 0, 0, 3399, 3389, 3409, 3392, 3405, 3395, 0,
+
+ 0, 3411, 3399, 3400, 3415, 3412, 0, 3423, 3429, 3428, 3413, 0, 3425, 3432, 3437, 3422, 3428,
+ 3429, 3449, 3451, 0, 3448, 3450, 3450, 0, 3437, 3457, 3461, 0, 0, 413, 3459, 3461, 3462,
+ 3465, 3467, 3470, 3473, 3496, 3501, 3498, 3504, 3527, 3513, 3515, 3532, 3529, 3557, 3558, 3541, 3555,
+ 3567, 3581, 3586, 3570, 3573, 3609, 3610, 3607, 3611, 3641, 3599, 3635, 3644, 3640, 3643, 3673, 3645,
+ 3649, 3679, 3677, 3678, 3695, 3681, 3713, 3709, 3711, 3712, 3735, 3744, 3745, 3746, 3749, 3774, 3768,
+ 3778, 3784, 3780, 3786, 3789, 3817, 3819, 3802, 3814, 3820, 3828, 3842, 3853, 3843, 3854,
+
+ 3856, 3872, 3882, 3877, 3893, 3895, 3911, 3912, 3894, 3896, 3926, 3927, 3928, 3930, 3949, 3960, 3961,
+ 3962, 405, 3464, 0, 3494, 3511, 3574, 3577, 0, 3646, 0, 3706, 3725, 3741, 3737, 0, 3788,
+ 0, 3825, 0, 0, 0, 3936, 0, 3942, 3949, 0, 0, 0, 0, 0, 3952, 3966, 3971,
+ 0, 0, 3954, 0, 3963, 0, 3983, 0, 3969, 3985, 3966, 0, 3992, 4000, 3985, 3986, 0,
+ 3992, 0, 3995, 0, 4007, 4008, 4007, 3995, 0, 0, 0, 0, 4001, 4008, 403, 4016, 4018,
+ 4024, 4019, 4020, 4034, 4049, 4050, 4052, 4074, 4058, 4073, 4088, 4086, 4090, 4091, 4104,
+
+ 4092, 4116, 4122, 4125, 4126, 4141, 4140, 4127, 4144, 4156, 4158, 4159, 4180, 4170, 4196, 4175, 4181,
+ 4184, 4194, 4226, 4209, 4234, 4212, 4235, 4218, 4224, 4247, 4266, 4270, 4258, 4269, 4280, 4292, 4284,
+ 4302, 4288, 4318, 4324, 4323, 4337, 4306, 4334, 4340, 4342, 4346, 4356, 407, 0, 0, 0, 4068,
+ 0, 0, 4162, 4214, 0, 0, 4213, 4200, 0, 0, 0, 0, 4250, 4242, 0, 0, 4239,
+ 4298, 0, 0, 4288, 4349, 0, 0, 4343, 0, 4355, 4364, 4359, 4375, 0, 0, 399, 4377,
+ 4378, 4380, 4388, 4391, 4392, 4394, 4410, 4396, 4409, 4420, 4431, 4422, 4428, 4432, 4434,
+
+ 4462, 4463, 4444, 4445, 4480, 4468, 4474, 4476, 4484, 4502, 4485, 4486, 4519, 4498, 4517, 4516, 4538,
+ 4528, 4540, 4542, 399, 4413, 0, 4435, 0, 0, 4499, 0, 0, 4534, 0, 0, 0, 4530,
+ 4541, 4550, 0, 398, 4570, 4568, 4571, 4572, 4573, 4594, 4576, 4584, 4612, 4602, 4606, 4607, 4608,
+ 4637, 4638, 4624, 393, 399, 4578, 0, 4602, 0, 0, 4630, 391, 4670, 4656, 4660, 4668, 4666,
+ 4672, 4681, 357, 4687, 0, 0, 4638, 344, 4703, 4694, 4696, 4702, 340, 4654, 0, 338, 4677,
+ 4705, 338, 4693, 334, 4697, 306, 4692, 303, 4704, 288, 4722, 255, 4723, 250, 4721,
+
+ 245, 4725, 243, 4733, 240, 4734, 235, 4821, 221, 0, 226, 197, 187, 173, 4821, 0, 4821,
+ 4790, 4795, 181, 4800, 4805, 4810, 4815};
+
+static const flex_int16_t yy_def[1225] = {
+ 0, 1217, 1, 1218, 1218, 1217, 5, 1217, 1217, 1217, 1217, 1217, 1219, 1217, 1217, 1217, 1217,
+ 1217, 1217, 1217, 1217, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220,
+ 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1217, 1221, 1217, 1222, 1222, 1217,
+ 1222, 1223, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1224, 1224, 62, 62, 62, 62, 62,
62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
- 1196, 1191, 1191, 1193, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1194, 1194, 1194,
+ 1222, 1217, 1217, 1219, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1220, 1220, 1220,
- 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194,
- 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194,
- 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194,
- 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194,
- 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1191, 1195, 1191, 1196, 1196, 1196, 1197, 1196,
- 1196, 1196, 1196, 1196, 1196, 1196, 1196, 1196, 62, 62, 62, 62, 62, 62, 62,
+ 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220,
+ 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220,
+ 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220,
+ 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220,
+ 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1217, 1221, 1217, 1222, 1222, 1222, 1223,
+ 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 1222, 62, 62, 62, 62, 62, 62,
62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
- 62, 62, 62, 62, 62, 1196, 1191, 1191, 1191, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194,
- 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194,
+ 62, 62, 62, 62, 62, 62, 62, 1222, 1217, 1217, 1217, 1220, 1220, 1220, 1220, 1220, 1220,
+ 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220,
- 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194,
- 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194,
- 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194,
- 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194,
- 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194,
- 1194, 1194, 1194, 1194, 1196, 1196, 1196, 62, 62, 62, 62, 62, 62, 62, 62,
+ 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220,
+ 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220,
+ 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220,
+ 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220,
+ 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220,
+ 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1222, 1222, 1222, 62, 62, 62,
62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
@@ -788,58 +790,59 @@ static const flex_int16_t yy_def[1199] = {
62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
- 62, 62, 62, 62, 1191, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194,
- 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194,
- 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194,
- 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194,
- 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194,
- 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194,
+ 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 1217, 1220, 1220, 1220, 1220,
+ 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220,
+ 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220,
+ 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220,
+ 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220,
+ 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220,
- 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1196, 62,
- 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
+ 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220,
+ 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1222, 62, 62, 62, 62, 62, 62,
62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
- 62, 62, 62, 62, 62, 62, 62, 62, 62, 1191, 1194, 1194, 1194, 1194, 1194, 1194, 1194,
- 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194,
- 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194,
- 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194,
- 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194,
-
- 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1196, 62, 62, 62, 62, 62,
62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
+ 62, 62, 62, 62, 62, 62, 62, 62, 1217, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220,
+ 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220,
+ 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220,
+ 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220,
+
+ 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220,
+ 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1222, 62, 62, 62,
62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
- 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 1191, 1194, 1194, 1194,
+ 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
- 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194,
- 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194,
- 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194,
- 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1196, 62, 62, 62, 62, 62, 62, 62, 62, 62,
62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
+ 62, 1217, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220,
+ 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220,
+ 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220,
+ 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1222, 62, 62,
62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
- 62, 62, 62, 1191, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194,
- 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194,
- 1194, 1194, 1194, 1194, 1194, 1194, 1196, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
- 62, 62, 62, 62, 62, 62, 62, 62, 62, 1191, 1194, 1194, 1194, 1194, 1194,
+ 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 1217, 1220, 1220, 1220, 1220,
+ 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220,
+ 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1222, 62,
+ 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
- 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1194, 1196, 62, 62, 62, 62, 62,
- 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 1191, 1194, 1194, 1194, 1194, 1194,
- 1194, 1194, 1196, 62, 62, 62, 62, 62, 62, 62, 1191, 1191, 1194, 1194, 1194, 1196, 1196,
- 62, 62, 62, 1191, 1191, 1194, 1196, 1196, 62, 1191, 1191, 1196, 1196, 1191, 1191, 1196, 1196,
- 1191, 1191, 1196, 1196, 1191, 1191, 1196, 1196, 1191, 1191, 1196, 1196, 1191, 1191, 1196, 1196, 1191,
- 1196, 1191, 1196, 1191, 1196, 0, 1191, 1191, 1191, 1191, 1191, 1191, 1191
+ 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
+ 62, 62, 62, 1217, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220,
+ 1220, 1220, 1220, 1222, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
+ 62, 62, 62, 1217, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1222, 62, 62, 62, 62, 62,
+ 62, 62, 1217, 1217, 1220, 1220, 1220, 1222, 1222, 62, 62, 62, 1217, 1217, 1220, 1222, 1222,
+ 62, 1217, 1217, 1222, 1222, 1217, 1217, 1222, 1222, 1217, 1217, 1222, 1222, 1217, 1217,
-};
+ 1222, 1222, 1217, 1217, 1222, 1222, 1217, 1217, 1222, 1222, 1217, 1222, 1217, 1222, 1217, 1222, 0,
+ 1217, 1217, 1217, 1217, 1217, 1217, 1217};
-static const flex_int16_t yy_nxt[4814] = {
+static const flex_int16_t yy_nxt[4898] = {
0, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 17, 17, 17, 17, 17, 17,
17, 17, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 37, 44, 37, 8, 21,
@@ -852,333 +855,340 @@ static const flex_int16_t yy_nxt[4814] = {
70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 77, 84, 77,
85, 86, 86, 86, 86, 89, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 90,
92, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 94, 95, 99, 105, 100, 111,
- 98, 107, 136, 112, 101, 1190, 102, 113, 108, 137, 103, 104, 177, 114, 278,
-
- 109, 115, 106, 110, 1189, 116, 1188, 117, 99, 105, 100, 111, 118, 107, 136, 112, 101,
- 119, 102, 113, 108, 137, 103, 104, 177, 114, 278, 109, 115, 106, 110, 126, 116, 128,
- 117, 1187, 138, 127, 1186, 118, 139, 129, 131, 173, 119, 120, 140, 130, 132, 133, 134,
- 174, 1185, 121, 1183, 135, 122, 1181, 126, 123, 128, 1179, 124, 138, 127, 125, 1177, 139,
- 129, 131, 173, 1175, 120, 140, 130, 132, 133, 134, 174, 144, 121, 141, 135, 122, 152,
- 142, 123, 175, 176, 124, 148, 143, 125, 145, 279, 153, 182, 86, 149, 146,
-
- 147, 154, 150, 155, 1173, 151, 144, 156, 141, 86, 86, 152, 142, 157, 175, 176, 1171,
- 148, 143, 1169, 145, 279, 153, 284, 185, 149, 146, 147, 154, 150, 155, 170, 151, 171,
- 156, 186, 172, 190, 191, 1167, 157, 158, 285, 159, 1165, 233, 160, 194, 86, 86, 284,
- 161, 1163, 162, 163, 1161, 194, 1158, 170, 1155, 171, 291, 1150, 172, 194, 194, 232, 194,
- 158, 285, 159, 222, 233, 160, 194, 234, 194, 223, 161, 235, 162, 163, 164, 194, 194,
- 236, 165, 296, 291, 166, 167, 194, 194, 232, 194, 194, 168, 297, 222, 169,
-
- 182, 86, 234, 194, 223, 1146, 235, 1145, 1137, 164, 1129, 194, 236, 165, 296, 1112, 166,
- 167, 1095, 1058, 1021, 959, 194, 168, 297, 897, 169, 187, 187, 187, 187, 187, 187, 187,
- 187, 187, 187, 188, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 181, 181, 812,
- 181, 181, 181, 181, 181, 181, 273, 224, 307, 727, 616, 194, 505, 391, 308, 225, 181,
- 181, 181, 237, 280, 226, 195, 238, 196, 309, 194, 310, 281, 239, 197, 194, 198, 273,
- 224, 307, 199, 200, 194, 194, 282, 308, 225, 283, 390, 276, 237, 280, 226,
-
- 195, 238, 196, 309, 194, 310, 281, 239, 197, 194, 198, 275, 274, 311, 199, 200, 193,
- 194, 282, 192, 181, 283, 248, 181, 181, 181, 194, 181, 181, 181, 181, 181, 181, 249,
- 269, 183, 180, 251, 194, 250, 311, 252, 270, 181, 181, 181, 194, 253, 317, 248, 201,
- 178, 97, 194, 318, 96, 319, 194, 194, 194, 249, 269, 271, 272, 251, 194, 250, 87,
- 252, 270, 202, 289, 1191, 194, 253, 317, 320, 201, 290, 194, 47, 318, 194, 319, 194,
- 194, 194, 47, 1191, 271, 272, 266, 321, 267, 286, 287, 268, 202, 289, 181,
-
- 203, 322, 194, 320, 194, 290, 194, 204, 288, 194, 1191, 292, 293, 294, 205, 295, 1191,
- 206, 266, 321, 267, 286, 287, 268, 194, 1191, 323, 203, 322, 194, 324, 194, 298, 1191,
- 204, 288, 327, 299, 292, 293, 294, 205, 295, 300, 206, 301, 305, 306, 302, 1191, 328,
- 194, 207, 323, 303, 1191, 208, 324, 329, 298, 209, 304, 330, 327, 299, 312, 210, 313,
- 335, 211, 300, 314, 301, 305, 306, 302, 194, 328, 315, 207, 336, 303, 316, 208, 1191,
- 329, 1191, 209, 304, 330, 337, 1191, 312, 210, 313, 335, 211, 1191, 314, 325,
-
- 331, 338, 326, 194, 194, 315, 339, 336, 340, 316, 332, 212, 344, 213, 345, 333, 334,
- 337, 214, 341, 346, 342, 347, 215, 194, 1191, 325, 331, 338, 326, 348, 194, 343, 339,
- 349, 340, 1191, 332, 212, 344, 213, 345, 333, 334, 350, 214, 341, 346, 342, 347, 215,
- 194, 216, 351, 352, 353, 194, 348, 354, 343, 217, 349, 355, 218, 356, 361, 219, 362,
- 357, 220, 363, 350, 221, 1191, 1191, 367, 194, 1191, 1191, 216, 351, 352, 353, 194, 1191,
- 354, 1191, 217, 358, 355, 218, 356, 361, 219, 362, 357, 220, 363, 368, 221,
-
- 364, 359, 367, 194, 194, 227, 360, 369, 370, 365, 371, 228, 229, 230, 374, 358, 375,
- 366, 231, 372, 376, 381, 377, 379, 194, 368, 380, 364, 359, 1191, 373, 194, 227, 360,
- 369, 370, 365, 371, 228, 229, 230, 374, 378, 375, 366, 231, 372, 376, 381, 377, 379,
- 194, 240, 380, 382, 383, 194, 373, 385, 387, 388, 384, 389, 506, 194, 1191, 241, 1191,
- 1191, 378, 507, 386, 242, 243, 393, 194, 194, 1191, 1191, 240, 1191, 382, 383, 194, 194,
- 385, 387, 388, 384, 389, 506, 194, 194, 241, 194, 194, 1191, 507, 386, 242,
-
- 243, 393, 194, 194, 194, 244, 194, 394, 194, 1191, 508, 194, 194, 245, 194, 395, 194,
- 246, 1191, 194, 247, 194, 194, 396, 194, 1191, 194, 1191, 194, 399, 1191, 194, 244, 194,
- 394, 194, 194, 508, 1191, 194, 245, 194, 395, 194, 246, 397, 509, 247, 398, 194, 396,
- 194, 254, 194, 255, 194, 399, 256, 400, 510, 194, 1191, 257, 194, 258, 259, 1191, 1191,
- 1191, 194, 1191, 1191, 397, 509, 194, 398, 194, 1191, 411, 254, 194, 255, 1191, 1191, 256,
- 400, 510, 194, 412, 257, 1191, 258, 259, 194, 401, 402, 194, 194, 194, 1191,
-
- 511, 194, 260, 194, 404, 411, 261, 194, 403, 262, 263, 405, 512, 194, 513, 412, 264,
- 194, 413, 265, 194, 401, 402, 414, 194, 194, 194, 511, 1191, 260, 194, 404, 1191, 261,
- 1191, 403, 262, 263, 405, 512, 194, 513, 1191, 264, 194, 413, 265, 1191, 1191, 1191, 414,
- 1191, 1191, 194, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 277, 277, 277, 277,
- 277, 277, 277, 277, 277, 277, 92, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93,
- 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 392, 392, 392, 392, 392,
-
- 392, 392, 392, 392, 392, 188, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 406,
- 194, 194, 194, 194, 517, 194, 518, 519, 520, 1191, 1191, 521, 423, 420, 421, 425, 194,
- 422, 1191, 424, 194, 194, 194, 194, 1191, 194, 406, 194, 194, 194, 194, 517, 194, 518,
- 519, 520, 194, 194, 521, 423, 420, 421, 425, 194, 422, 194, 424, 194, 194, 194, 194,
- 194, 194, 426, 1191, 194, 445, 452, 407, 408, 409, 194, 410, 194, 194, 194, 1191, 1191,
- 432, 522, 523, 194, 194, 1191, 1191, 194, 1191, 1191, 194, 524, 426, 194, 194,
-
- 445, 452, 407, 408, 409, 194, 410, 1191, 525, 194, 194, 194, 432, 522, 523, 194, 415,
- 433, 416, 194, 194, 417, 194, 524, 435, 194, 194, 418, 1191, 1191, 194, 194, 434, 1191,
- 419, 525, 436, 194, 194, 1191, 194, 1191, 194, 415, 433, 416, 194, 194, 417, 194, 526,
- 435, 194, 194, 418, 194, 194, 194, 194, 434, 194, 419, 437, 436, 1191, 459, 438, 194,
- 427, 194, 428, 1191, 194, 194, 429, 194, 194, 526, 194, 194, 194, 430, 194, 194, 1191,
- 431, 1191, 194, 439, 437, 194, 194, 459, 438, 194, 427, 194, 428, 194, 194,
-
- 442, 429, 194, 194, 194, 194, 1191, 194, 430, 462, 440, 194, 431, 441, 194, 439, 194,
- 194, 194, 194, 443, 194, 194, 194, 194, 194, 444, 442, 450, 1191, 194, 194, 194, 453,
- 451, 527, 462, 440, 194, 194, 441, 194, 194, 194, 1191, 528, 194, 443, 194, 194, 194,
- 194, 194, 444, 454, 450, 455, 194, 1191, 194, 453, 451, 527, 456, 1191, 457, 194, 194,
- 194, 194, 446, 194, 528, 194, 1191, 194, 458, 194, 1191, 194, 447, 454, 460, 455, 194,
- 448, 449, 194, 531, 1191, 456, 194, 457, 194, 194, 194, 194, 446, 194, 463,
-
- 194, 194, 532, 458, 194, 461, 465, 447, 464, 460, 194, 194, 448, 449, 194, 531, 194,
- 1191, 194, 1191, 194, 194, 1191, 194, 194, 466, 463, 194, 194, 532, 194, 194, 461, 465,
- 1191, 464, 194, 194, 467, 194, 533, 471, 468, 194, 194, 472, 470, 194, 194, 469, 194,
- 194, 466, 1191, 194, 1191, 194, 194, 534, 194, 194, 194, 476, 194, 1191, 467, 194, 533,
- 471, 468, 194, 194, 472, 470, 194, 1191, 469, 194, 473, 535, 194, 194, 194, 194, 478,
- 534, 194, 194, 194, 476, 194, 474, 194, 1191, 1191, 1191, 475, 194, 536, 477,
-
- 482, 194, 194, 1191, 537, 473, 535, 194, 194, 194, 194, 478, 194, 479, 1191, 194, 1191,
- 194, 474, 194, 483, 194, 480, 475, 194, 536, 477, 482, 194, 194, 481, 537, 485, 538,
- 484, 194, 194, 194, 1191, 194, 479, 194, 194, 486, 194, 194, 194, 483, 194, 480, 539,
- 194, 540, 487, 489, 541, 194, 481, 194, 485, 538, 484, 194, 194, 488, 194, 194, 194,
- 194, 491, 486, 194, 194, 194, 194, 490, 1191, 539, 194, 540, 487, 489, 541, 194, 492,
- 194, 1191, 194, 194, 496, 194, 488, 194, 194, 194, 1191, 491, 542, 1191, 194,
-
- 502, 194, 490, 494, 493, 194, 495, 1191, 194, 194, 194, 492, 500, 497, 194, 194, 496,
- 194, 504, 194, 194, 194, 194, 194, 542, 501, 194, 502, 498, 194, 494, 493, 194, 495,
- 499, 194, 194, 194, 503, 500, 497, 194, 194, 194, 1191, 504, 194, 194, 194, 194, 194,
- 1191, 501, 1191, 1191, 498, 194, 543, 544, 194, 545, 499, 546, 547, 514, 503, 515, 529,
- 194, 194, 194, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 516, 530, 548, 543,
- 544, 549, 545, 550, 546, 547, 514, 551, 515, 529, 552, 553, 554, 555, 556,
-
- 557, 558, 559, 562, 560, 563, 564, 565, 516, 530, 548, 566, 567, 549, 561, 550, 568,
- 569, 570, 551, 571, 572, 552, 553, 554, 555, 556, 557, 558, 559, 562, 560, 563, 564,
- 565, 573, 574, 575, 566, 567, 576, 561, 577, 568, 569, 570, 578, 571, 572, 579, 580,
- 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 573, 574, 575, 592, 593, 576,
- 594, 577, 595, 596, 597, 578, 598, 599, 579, 580, 581, 582, 583, 584, 585, 586, 587,
- 588, 589, 590, 591, 600, 605, 601, 592, 593, 603, 594, 604, 595, 596, 597,
-
- 602, 598, 599, 606, 607, 608, 609, 610, 611, 612, 614, 615, 1191, 613, 1191, 1191, 600,
- 605, 601, 1191, 1191, 603, 1191, 604, 1191, 1191, 1191, 602, 1191, 1191, 606, 607, 608, 609,
- 610, 611, 612, 614, 615, 194, 613, 392, 392, 392, 392, 392, 392, 392, 392, 392, 392,
- 617, 194, 618, 194, 194, 194, 1191, 1191, 194, 620, 619, 1191, 1191, 194, 1191, 194, 728,
- 1191, 729, 1191, 194, 194, 194, 194, 194, 194, 194, 617, 194, 618, 194, 194, 194, 194,
- 194, 194, 620, 619, 194, 194, 194, 631, 622, 728, 621, 729, 194, 194, 194,
-
- 194, 194, 194, 194, 194, 194, 194, 1191, 623, 194, 194, 194, 194, 624, 194, 1191, 194,
- 194, 1191, 631, 622, 625, 621, 626, 194, 730, 194, 628, 1191, 194, 1191, 194, 194, 194,
- 194, 623, 194, 194, 627, 630, 624, 194, 194, 194, 1191, 629, 1191, 635, 625, 194, 626,
- 194, 730, 194, 628, 633, 194, 194, 194, 194, 1191, 194, 632, 1191, 1191, 627, 630, 194,
- 194, 194, 194, 634, 629, 194, 635, 637, 194, 194, 194, 194, 1191, 194, 633, 1191, 194,
- 638, 194, 636, 194, 632, 640, 643, 639, 194, 194, 194, 194, 1191, 634, 1191,
-
- 194, 194, 637, 1191, 194, 641, 194, 642, 194, 194, 194, 194, 638, 647, 636, 194, 194,
- 640, 643, 639, 194, 731, 645, 194, 194, 194, 194, 649, 194, 194, 194, 648, 641, 194,
- 642, 194, 194, 194, 194, 644, 647, 646, 1191, 194, 194, 194, 194, 194, 731, 645, 194,
- 194, 194, 194, 649, 194, 194, 194, 648, 650, 194, 194, 194, 194, 194, 194, 644, 194,
- 646, 655, 652, 194, 194, 194, 194, 732, 1191, 194, 651, 654, 653, 194, 194, 194, 194,
- 194, 650, 194, 194, 194, 194, 194, 194, 194, 194, 656, 655, 652, 1191, 194,
-
- 660, 657, 732, 194, 1191, 651, 654, 653, 194, 194, 194, 194, 194, 194, 194, 194, 194,
- 658, 194, 194, 194, 194, 656, 194, 662, 659, 194, 660, 657, 194, 194, 661, 1191, 194,
- 194, 194, 194, 663, 194, 668, 194, 194, 194, 1191, 658, 194, 194, 669, 194, 664, 194,
- 662, 659, 194, 194, 1191, 194, 194, 661, 194, 194, 194, 194, 194, 663, 194, 668, 194,
- 194, 666, 665, 670, 194, 194, 669, 671, 664, 194, 1191, 1191, 194, 194, 667, 194, 194,
- 672, 194, 1191, 194, 673, 194, 194, 194, 194, 194, 194, 666, 665, 670, 194,
-
- 194, 1191, 671, 676, 194, 194, 194, 194, 194, 667, 194, 677, 672, 679, 674, 194, 673,
- 194, 194, 194, 194, 675, 194, 194, 1191, 194, 194, 194, 678, 194, 676, 194, 194, 194,
- 194, 194, 1191, 194, 677, 1191, 679, 674, 194, 194, 194, 680, 194, 682, 675, 194, 194,
- 194, 194, 194, 194, 678, 194, 194, 194, 681, 194, 683, 194, 194, 194, 194, 194, 685,
- 1191, 194, 194, 688, 680, 194, 682, 1191, 194, 194, 194, 689, 194, 684, 194, 194, 194,
- 194, 681, 194, 683, 194, 194, 194, 194, 194, 685, 686, 690, 687, 688, 194,
-
- 194, 1191, 194, 194, 194, 194, 689, 194, 684, 194, 194, 194, 194, 1191, 691, 733, 1191,
- 194, 194, 693, 194, 1191, 686, 690, 687, 194, 194, 194, 692, 194, 194, 194, 194, 194,
- 194, 695, 194, 194, 194, 194, 694, 691, 733, 698, 194, 194, 693, 194, 697, 696, 1191,
- 699, 194, 194, 194, 692, 194, 701, 194, 194, 194, 194, 695, 194, 194, 194, 194, 694,
- 194, 194, 698, 194, 194, 194, 734, 697, 696, 194, 699, 700, 194, 194, 194, 194, 701,
- 735, 194, 194, 194, 194, 194, 702, 194, 194, 703, 194, 194, 704, 194, 1191,
-
- 194, 734, 194, 736, 194, 705, 700, 194, 194, 194, 194, 194, 735, 710, 194, 194, 194,
- 194, 702, 194, 194, 703, 707, 708, 704, 194, 706, 194, 194, 194, 736, 194, 705, 194,
- 194, 194, 709, 194, 194, 194, 710, 1191, 194, 1191, 1191, 194, 194, 194, 712, 707, 708,
- 711, 194, 706, 194, 194, 1191, 713, 194, 1191, 194, 194, 194, 709, 1191, 194, 194, 194,
- 194, 194, 194, 714, 194, 715, 194, 712, 1191, 716, 711, 717, 722, 194, 194, 194, 713,
- 194, 719, 194, 194, 194, 194, 718, 194, 1191, 194, 194, 1191, 194, 714, 720,
-
- 715, 194, 194, 194, 716, 194, 717, 722, 194, 194, 194, 194, 194, 719, 194, 1191, 194,
- 194, 718, 725, 723, 194, 194, 721, 724, 194, 720, 737, 194, 194, 194, 194, 194, 738,
- 739, 726, 194, 740, 194, 741, 742, 743, 194, 194, 744, 745, 725, 723, 194, 194, 721,
- 724, 194, 746, 737, 747, 748, 749, 194, 750, 738, 739, 726, 194, 740, 751, 741, 742,
- 743, 194, 752, 744, 745, 753, 754, 755, 756, 757, 758, 759, 746, 760, 747, 748, 749,
- 761, 750, 762, 763, 764, 765, 766, 751, 767, 768, 769, 770, 752, 772, 773,
-
- 753, 754, 755, 756, 757, 758, 759, 771, 760, 774, 775, 778, 761, 779, 762, 763, 764,
- 765, 766, 780, 767, 768, 769, 770, 781, 772, 773, 776, 777, 782, 783, 784, 785, 786,
- 771, 787, 774, 775, 778, 788, 779, 789, 790, 791, 792, 793, 780, 794, 795, 796, 797,
- 781, 798, 799, 776, 777, 782, 783, 784, 785, 786, 800, 787, 801, 802, 803, 788, 804,
- 789, 790, 791, 792, 793, 805, 794, 795, 796, 797, 806, 798, 799, 807, 808, 809, 810,
- 811, 194, 1191, 800, 1191, 801, 802, 803, 1191, 804, 194, 194, 1191, 194, 813,
-
- 805, 194, 898, 1191, 194, 806, 194, 818, 807, 808, 809, 810, 811, 194, 814, 815, 816,
- 817, 194, 819, 194, 194, 194, 194, 194, 194, 813, 1191, 194, 898, 194, 194, 820, 194,
- 818, 194, 194, 899, 900, 194, 194, 814, 815, 816, 817, 194, 819, 194, 194, 821, 194,
- 194, 194, 194, 194, 194, 194, 194, 823, 820, 822, 1191, 194, 194, 899, 900, 194, 194,
- 194, 901, 902, 194, 194, 194, 194, 903, 821, 194, 1191, 194, 194, 194, 194, 194, 824,
- 823, 1191, 822, 194, 194, 194, 194, 194, 194, 1191, 194, 901, 902, 194, 194,
-
- 194, 194, 903, 1191, 825, 827, 826, 194, 194, 194, 194, 824, 194, 194, 828, 194, 194,
- 194, 194, 194, 194, 832, 194, 194, 830, 194, 904, 194, 194, 1191, 829, 825, 827, 826,
- 194, 194, 194, 194, 831, 194, 194, 828, 194, 194, 905, 194, 194, 194, 832, 194, 194,
- 830, 194, 904, 194, 194, 834, 829, 194, 833, 194, 194, 194, 1191, 835, 831, 194, 194,
- 836, 194, 194, 905, 194, 194, 194, 1191, 1191, 1191, 194, 194, 194, 194, 194, 834, 194,
- 194, 833, 194, 194, 194, 837, 835, 194, 194, 194, 836, 843, 841, 194, 194,
-
- 839, 194, 194, 838, 194, 194, 194, 194, 194, 194, 842, 194, 194, 840, 194, 1191, 194,
- 837, 194, 194, 1191, 194, 194, 843, 841, 194, 194, 839, 194, 194, 838, 194, 194, 194,
- 194, 1191, 194, 842, 845, 194, 840, 194, 194, 194, 194, 194, 846, 844, 194, 194, 194,
- 1191, 194, 194, 1191, 847, 194, 906, 194, 194, 194, 194, 194, 194, 194, 845, 194, 194,
- 850, 194, 194, 194, 1191, 846, 844, 848, 194, 194, 194, 194, 194, 194, 847, 194, 906,
- 194, 194, 194, 194, 194, 849, 194, 1191, 194, 194, 850, 194, 194, 194, 194,
-
- 852, 194, 848, 194, 194, 194, 1191, 1191, 194, 194, 907, 851, 853, 194, 194, 194, 1191,
- 849, 194, 194, 908, 194, 854, 194, 194, 194, 194, 852, 194, 194, 194, 194, 855, 194,
- 194, 194, 194, 907, 851, 853, 857, 194, 1191, 856, 194, 194, 194, 908, 194, 854, 194,
- 194, 194, 194, 194, 194, 194, 194, 194, 855, 194, 194, 194, 860, 194, 1191, 194, 857,
- 194, 194, 856, 194, 194, 858, 1191, 1191, 859, 194, 194, 194, 194, 194, 194, 194, 194,
- 194, 194, 194, 1191, 194, 860, 194, 194, 194, 1191, 863, 194, 864, 866, 194,
-
- 858, 861, 862, 859, 194, 194, 1191, 194, 909, 1191, 194, 194, 194, 194, 194, 865, 194,
- 194, 194, 194, 194, 194, 863, 194, 864, 866, 910, 1191, 861, 862, 911, 194, 912, 867,
- 194, 909, 868, 194, 194, 194, 194, 194, 865, 194, 194, 194, 869, 194, 194, 1191, 194,
- 870, 871, 910, 194, 194, 194, 911, 194, 912, 867, 1191, 1191, 868, 194, 194, 1191, 194,
- 194, 194, 194, 194, 194, 869, 194, 194, 194, 872, 870, 871, 194, 194, 194, 194, 873,
- 194, 1191, 874, 876, 194, 875, 194, 194, 194, 1191, 1191, 194, 1191, 194, 194,
-
- 194, 194, 194, 194, 872, 1191, 878, 194, 194, 194, 913, 873, 194, 194, 874, 876, 194,
- 875, 194, 194, 194, 877, 880, 194, 882, 1191, 194, 194, 194, 194, 879, 914, 194, 878,
- 194, 194, 194, 913, 881, 194, 194, 1191, 194, 194, 194, 1191, 194, 194, 877, 880, 194,
- 882, 194, 194, 194, 194, 194, 879, 914, 194, 194, 194, 883, 194, 194, 881, 886, 194,
- 194, 194, 194, 194, 194, 194, 194, 1191, 194, 884, 885, 194, 194, 194, 194, 194, 194,
- 887, 915, 194, 194, 883, 194, 194, 916, 886, 194, 194, 194, 889, 888, 194,
-
- 892, 194, 194, 194, 884, 885, 194, 194, 891, 194, 194, 194, 887, 915, 194, 194, 194,
- 893, 194, 916, 194, 194, 194, 194, 889, 888, 194, 892, 194, 194, 194, 890, 895, 194,
- 194, 891, 194, 917, 194, 918, 194, 194, 194, 194, 893, 194, 894, 194, 194, 194, 194,
- 919, 194, 194, 194, 920, 921, 194, 890, 895, 194, 194, 922, 194, 917, 194, 918, 194,
- 896, 194, 923, 924, 925, 894, 194, 926, 927, 194, 919, 194, 930, 194, 920, 921, 931,
- 928, 932, 194, 929, 922, 933, 934, 935, 936, 937, 896, 938, 923, 924, 925,
-
- 939, 194, 926, 927, 940, 941, 942, 930, 943, 944, 945, 931, 928, 932, 946, 929, 947,
- 933, 934, 935, 936, 937, 948, 938, 949, 950, 951, 939, 952, 953, 954, 940, 941, 942,
- 955, 943, 944, 945, 956, 957, 958, 946, 194, 947, 194, 1191, 1191, 1191, 1191, 948, 194,
- 949, 950, 951, 194, 952, 953, 954, 961, 194, 962, 955, 194, 1022, 194, 956, 957, 958,
- 968, 194, 194, 194, 963, 194, 194, 960, 1191, 194, 194, 194, 194, 194, 964, 194, 194,
- 961, 194, 962, 194, 194, 1022, 194, 965, 194, 194, 968, 1191, 194, 194, 963,
-
- 194, 194, 960, 194, 194, 194, 194, 194, 1191, 964, 194, 194, 194, 966, 194, 194, 1191,
- 1191, 194, 965, 194, 194, 967, 194, 194, 194, 1191, 969, 194, 971, 194, 194, 194, 194,
- 970, 972, 1191, 973, 194, 194, 966, 194, 1191, 194, 194, 194, 1023, 1024, 194, 967, 194,
- 194, 977, 194, 969, 194, 971, 194, 194, 194, 194, 970, 972, 194, 973, 194, 194, 974,
- 194, 978, 194, 194, 194, 1023, 1024, 194, 1191, 976, 194, 977, 194, 975, 194, 194, 194,
- 194, 194, 1025, 194, 194, 194, 194, 981, 194, 974, 194, 978, 979, 194, 194,
-
- 1026, 194, 194, 194, 976, 194, 980, 982, 975, 194, 194, 194, 194, 194, 1025, 194, 194,
- 194, 194, 981, 983, 194, 194, 194, 979, 194, 194, 1026, 194, 194, 194, 194, 194, 980,
- 982, 194, 194, 194, 194, 194, 1027, 984, 194, 985, 194, 1191, 194, 983, 194, 194, 194,
- 194, 194, 194, 986, 194, 194, 194, 194, 194, 194, 1191, 194, 194, 194, 194, 1191, 1027,
- 984, 194, 985, 194, 194, 194, 989, 987, 194, 194, 194, 194, 194, 986, 194, 194, 194,
- 194, 988, 194, 194, 194, 990, 194, 194, 991, 194, 992, 194, 1191, 194, 194,
-
- 1191, 989, 987, 194, 194, 194, 194, 194, 194, 194, 194, 993, 194, 988, 194, 194, 194,
- 990, 194, 1028, 991, 194, 992, 194, 194, 194, 194, 996, 994, 194, 194, 194, 194, 194,
- 194, 194, 194, 194, 993, 995, 1191, 194, 194, 194, 194, 194, 1028, 998, 1029, 194, 1191,
- 194, 194, 194, 996, 994, 194, 194, 194, 1001, 997, 194, 194, 194, 194, 194, 995, 194,
- 194, 194, 194, 194, 194, 194, 998, 1029, 194, 999, 194, 194, 1030, 1000, 1002, 1031, 194,
- 1191, 1001, 997, 194, 194, 194, 194, 194, 194, 194, 194, 1191, 1003, 194, 1004,
-
- 194, 194, 194, 194, 999, 194, 194, 1030, 1000, 1002, 1031, 194, 1005, 194, 194, 194, 1191,
- 1006, 1007, 1032, 194, 194, 194, 194, 1003, 194, 1004, 194, 194, 194, 194, 1008, 194, 194,
- 194, 1191, 1191, 194, 1009, 1005, 194, 194, 194, 194, 1006, 1007, 1032, 194, 194, 194, 194,
- 1010, 194, 194, 194, 1015, 1011, 194, 1008, 194, 194, 194, 194, 194, 194, 1009, 1033, 1013,
- 1012, 194, 194, 194, 1014, 194, 194, 194, 194, 1017, 1010, 194, 194, 194, 1015, 1011, 194,
- 1016, 194, 1034, 1035, 194, 194, 194, 1191, 1033, 1013, 1012, 194, 194, 194, 1014,
-
- 194, 194, 194, 194, 1017, 194, 194, 1019, 194, 194, 194, 194, 1016, 194, 1034, 1035, 1020,
- 1036, 194, 1018, 194, 1037, 1038, 194, 194, 194, 1039, 1040, 194, 194, 194, 194, 194, 194,
- 1019, 1041, 194, 194, 194, 1042, 194, 1043, 1044, 1020, 1036, 1045, 1018, 194, 1037, 1038, 1046,
- 1047, 194, 1039, 1040, 1048, 194, 194, 194, 1049, 1050, 1051, 1041, 1052, 1053, 1054, 1042, 194,
- 1043, 1044, 1055, 1056, 1045, 1057, 1059, 194, 194, 1046, 1047, 1061, 1191, 1191, 1048, 1191, 1096,
- 1060, 1049, 1050, 1051, 194, 1052, 1053, 1054, 194, 194, 194, 194, 1055, 1056, 194,
-
- 1057, 1059, 194, 194, 1062, 194, 1061, 1063, 194, 194, 194, 1096, 1060, 194, 1191, 1064, 194,
- 1191, 1191, 194, 194, 194, 194, 194, 1097, 194, 194, 1065, 194, 194, 194, 1062, 194, 194,
- 1063, 194, 194, 194, 194, 194, 194, 1066, 1064, 194, 1068, 1067, 194, 194, 1191, 194, 1191,
- 1097, 194, 194, 1065, 194, 194, 194, 194, 1069, 194, 194, 194, 194, 194, 194, 194, 194,
- 1066, 1098, 194, 1068, 1067, 1070, 194, 194, 194, 194, 1071, 194, 194, 194, 194, 194, 194,
- 194, 1069, 194, 194, 194, 194, 194, 1072, 194, 194, 194, 1098, 194, 194, 194,
-
- 1070, 194, 194, 194, 194, 1071, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 1073,
- 194, 194, 1072, 194, 194, 194, 1191, 194, 194, 194, 1075, 194, 1076, 194, 1074, 194, 194,
- 194, 194, 1191, 194, 194, 194, 194, 194, 194, 1073, 194, 194, 194, 194, 194, 194, 194,
- 1079, 194, 194, 1075, 194, 1076, 1078, 1074, 194, 194, 194, 194, 1077, 194, 194, 194, 1081,
- 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 1079, 194, 194, 194, 194, 194, 1078,
- 1191, 1080, 194, 194, 1099, 1077, 194, 194, 194, 1081, 194, 194, 194, 194, 194,
-
- 1191, 1082, 194, 194, 1083, 1084, 194, 194, 194, 1085, 194, 1191, 194, 1080, 194, 194, 1099,
- 194, 194, 194, 194, 194, 194, 194, 1191, 1100, 194, 194, 1082, 1087, 194, 1083, 1084, 194,
- 194, 1086, 1085, 194, 194, 194, 194, 194, 194, 194, 194, 1088, 194, 194, 194, 1101, 194,
- 1089, 1100, 194, 194, 194, 1087, 1090, 194, 194, 194, 194, 1086, 194, 194, 194, 194, 194,
- 194, 1091, 194, 194, 1088, 194, 1092, 194, 1101, 194, 1089, 194, 194, 194, 194, 194, 1090,
- 194, 194, 194, 194, 1191, 194, 194, 194, 194, 1102, 1103, 1091, 194, 194, 1104,
-
- 1105, 1092, 194, 1106, 194, 1093, 194, 194, 194, 194, 194, 1107, 194, 1108, 1109, 1110, 1094,
- 1111, 194, 194, 1191, 1102, 1103, 1191, 194, 194, 1104, 1105, 194, 194, 1106, 194, 1093, 1113,
- 194, 1191, 194, 194, 1107, 194, 1108, 1109, 1110, 1094, 1111, 194, 1114, 194, 194, 194, 1116,
- 194, 194, 194, 194, 194, 194, 194, 194, 1115, 1113, 194, 194, 194, 194, 1130, 194, 194,
- 194, 194, 194, 194, 194, 1114, 194, 194, 194, 1116, 194, 194, 194, 194, 194, 194, 194,
- 194, 1115, 194, 194, 194, 194, 194, 1130, 194, 194, 194, 194, 194, 194, 194,
-
- 1117, 1118, 194, 194, 194, 194, 194, 194, 1131, 194, 194, 1119, 194, 1191, 194, 194, 1121,
- 194, 194, 194, 194, 1191, 194, 194, 194, 194, 194, 1117, 1118, 194, 194, 194, 194, 1120,
- 194, 1131, 194, 194, 1119, 194, 194, 194, 194, 1121, 194, 194, 194, 194, 1123, 194, 194,
- 194, 194, 194, 1132, 1191, 1122, 194, 194, 194, 1120, 194, 194, 194, 194, 1191, 194, 194,
- 194, 194, 1133, 1125, 194, 194, 1124, 1123, 194, 194, 194, 194, 194, 1132, 194, 1122, 194,
- 194, 194, 1128, 194, 194, 1126, 1127, 194, 194, 1134, 1135, 194, 1133, 1125, 1136,
-
- 194, 1124, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 1128, 1191, 194,
- 1126, 1127, 194, 194, 1134, 1135, 194, 1138, 1139, 1136, 194, 194, 194, 194, 194, 1191, 194,
- 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 1140, 1191, 194,
- 1138, 1139, 194, 194, 194, 194, 194, 194, 1141, 194, 194, 194, 194, 194, 194, 194, 194,
- 194, 194, 194, 194, 194, 194, 194, 1140, 1142, 194, 1143, 194, 194, 194, 1147, 194, 1148,
- 1144, 1141, 194, 194, 194, 1149, 194, 194, 194, 194, 1151, 1152, 194, 194, 194,
-
- 1191, 194, 194, 1142, 194, 1143, 194, 194, 194, 1147, 1157, 1148, 1144, 1146, 194, 1151, 194,
- 1149, 194, 194, 194, 1153, 194, 1152, 194, 194, 194, 194, 194, 194, 1191, 194, 194, 194,
- 194, 1162, 1164, 1157, 194, 194, 194, 194, 1154, 194, 1166, 194, 194, 194, 1153, 194, 1160,
- 194, 194, 194, 194, 1156, 1168, 1159, 194, 194, 194, 194, 1162, 1164, 1170, 194, 194, 194,
- 194, 1154, 1172, 1166, 1174, 1176, 1178, 1180, 1182, 1160, 1184, 194, 194, 1191, 1156, 1168, 1159,
- 194, 1191, 1191, 194, 1191, 1191, 1170, 1191, 1191, 1191, 1191, 1191, 1172, 1191, 1174,
-
- 1176, 1178, 1180, 1182, 1191, 1184, 46, 46, 46, 46, 46, 88, 1191, 1191, 88, 88, 179,
- 179, 179, 1191, 179, 181, 1191, 181, 181, 181, 184, 1191, 184, 184, 184, 194, 1191, 194,
- 194, 194, 7, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191,
- 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191,
- 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191,
- 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191,
-
- 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191};
-
-static const flex_int16_t yy_chk[4814] = {
+ 98, 107, 136, 112, 101, 1216, 102, 113, 108, 137, 103, 104, 178, 114, 280,
+
+ 109, 115, 106, 110, 1215, 116, 1214, 117, 99, 105, 100, 111, 118, 107, 136, 112, 101,
+ 119, 102, 113, 108, 137, 103, 104, 178, 114, 280, 109, 115, 106, 110, 126, 116, 128,
+ 117, 1213, 138, 127, 1212, 118, 139, 129, 131, 174, 119, 120, 140, 130, 132, 133, 134,
+ 175, 1211, 121, 1209, 135, 122, 1207, 126, 123, 128, 1205, 124, 138, 127, 125, 1203, 139,
+ 129, 131, 174, 1201, 120, 140, 130, 132, 133, 134, 175, 144, 121, 141, 135, 122, 152,
+ 142, 123, 176, 177, 124, 148, 143, 125, 145, 281, 153, 183, 86, 149, 146,
+
+ 147, 154, 150, 155, 1199, 151, 144, 156, 141, 86, 86, 152, 142, 157, 176, 177, 1197,
+ 148, 143, 1195, 145, 281, 153, 286, 186, 149, 146, 147, 154, 150, 155, 171, 151, 172,
+ 156, 187, 173, 191, 192, 284, 157, 158, 285, 159, 86, 86, 160, 234, 1193, 161, 286,
+ 162, 1191, 163, 164, 1189, 287, 1187, 171, 1184, 172, 183, 86, 173, 195, 195, 284, 195,
+ 158, 285, 159, 223, 1181, 160, 234, 233, 161, 224, 162, 282, 163, 164, 165, 287, 195,
+ 195, 166, 283, 291, 167, 168, 195, 195, 293, 195, 292, 169, 309, 223, 170,
+
+ 1172, 1172, 233, 1176, 224, 1171, 282, 1163, 1155, 165, 1138, 195, 195, 166, 283, 291, 167,
+ 168, 1121, 1084, 293, 1047, 292, 169, 309, 983, 170, 188, 188, 188, 188, 188, 188, 188,
+ 188, 188, 188, 189, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 182, 182, 919,
+ 182, 182, 182, 182, 182, 182, 195, 225, 275, 831, 743, 195, 628, 513, 310, 226, 182,
+ 182, 182, 235, 300, 227, 196, 236, 197, 301, 195, 311, 195, 237, 198, 195, 199, 195,
+ 225, 275, 200, 201, 195, 195, 195, 310, 226, 273, 274, 396, 235, 300, 227,
+
+ 196, 236, 197, 301, 195, 311, 195, 237, 198, 195, 199, 195, 312, 395, 200, 201, 278,
+ 195, 195, 277, 276, 273, 274, 182, 182, 182, 194, 182, 182, 182, 182, 182, 182, 193,
+ 182, 184, 238, 249, 195, 312, 239, 195, 181, 182, 182, 182, 240, 298, 250, 252, 202,
+ 195, 313, 253, 251, 319, 195, 299, 320, 254, 268, 195, 269, 238, 249, 270, 321, 239,
+ 195, 195, 203, 195, 179, 240, 298, 250, 252, 202, 195, 313, 253, 251, 319, 195, 299,
+ 320, 254, 268, 195, 269, 97, 322, 270, 321, 288, 289, 195, 203, 195, 182,
+
+ 204, 323, 271, 324, 195, 325, 195, 205, 290, 326, 272, 294, 295, 296, 206, 297, 96,
+ 207, 322, 307, 308, 288, 289, 329, 195, 87, 195, 204, 323, 271, 324, 195, 325, 195,
+ 205, 290, 326, 272, 294, 295, 296, 206, 297, 302, 207, 303, 307, 308, 304, 1217, 329,
+ 195, 208, 195, 305, 47, 209, 330, 331, 327, 210, 306, 328, 332, 337, 314, 211, 315,
+ 338, 212, 302, 316, 303, 47, 339, 304, 195, 1217, 317, 208, 340, 305, 318, 209, 330,
+ 331, 327, 210, 306, 328, 332, 337, 314, 211, 315, 338, 212, 1217, 316, 346,
+
+ 333, 339, 347, 195, 195, 317, 341, 340, 342, 318, 334, 213, 348, 214, 349, 335, 336,
+ 343, 215, 344, 352, 353, 354, 216, 195, 1217, 346, 333, 1217, 347, 345, 195, 355, 341,
+ 356, 342, 1217, 334, 213, 348, 214, 349, 335, 336, 343, 215, 344, 352, 353, 354, 216,
+ 195, 217, 357, 358, 350, 195, 345, 351, 355, 218, 356, 364, 219, 359, 365, 220, 366,
+ 360, 221, 372, 373, 222, 1217, 1217, 1217, 195, 1217, 1217, 217, 357, 358, 350, 195, 1217,
+ 351, 1217, 218, 361, 364, 219, 359, 365, 220, 366, 360, 221, 372, 373, 222,
+
+ 367, 362, 370, 195, 195, 228, 363, 374, 375, 368, 376, 229, 230, 231, 379, 361, 371,
+ 369, 232, 377, 380, 381, 382, 384, 195, 1217, 385, 367, 362, 370, 378, 195, 228, 363,
+ 374, 375, 368, 376, 229, 230, 231, 379, 383, 371, 369, 232, 377, 380, 381, 382, 384,
+ 195, 241, 385, 386, 387, 195, 378, 388, 392, 393, 390, 394, 514, 389, 515, 242, 1217,
+ 1217, 383, 516, 517, 243, 244, 391, 195, 195, 1217, 1217, 241, 1217, 386, 387, 195, 518,
+ 388, 392, 393, 390, 394, 514, 389, 515, 242, 195, 195, 519, 516, 517, 243,
+
+ 244, 391, 195, 195, 195, 245, 195, 398, 195, 399, 520, 518, 1217, 246, 195, 402, 1217,
+ 247, 403, 195, 248, 195, 195, 519, 195, 1217, 195, 1217, 195, 521, 1217, 195, 245, 195,
+ 398, 195, 399, 520, 1217, 195, 246, 195, 402, 195, 247, 403, 195, 248, 195, 416, 400,
+ 195, 255, 195, 256, 195, 521, 257, 401, 417, 258, 404, 259, 195, 260, 261, 195, 1217,
+ 195, 195, 195, 405, 525, 195, 195, 195, 416, 400, 1217, 255, 1217, 256, 1217, 1217, 257,
+ 401, 417, 258, 404, 259, 195, 260, 261, 195, 195, 195, 195, 195, 405, 525,
+
+ 195, 195, 262, 195, 406, 407, 263, 425, 426, 264, 265, 526, 418, 527, 195, 528, 266,
+ 419, 408, 267, 195, 195, 529, 195, 195, 530, 195, 1217, 1217, 262, 195, 406, 407, 263,
+ 425, 426, 264, 265, 526, 418, 527, 195, 528, 266, 419, 408, 267, 1217, 1217, 529, 195,
+ 1217, 530, 195, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 279, 279, 279, 279,
+ 279, 279, 279, 279, 279, 279, 92, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93,
+ 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 397, 397, 397, 397, 397,
+
+ 397, 397, 397, 397, 397, 189, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 195,
+ 411, 195, 195, 531, 195, 532, 409, 533, 1217, 534, 1217, 1217, 428, 410, 430, 195, 1217,
+ 427, 535, 195, 1217, 195, 195, 195, 195, 1217, 195, 411, 195, 195, 531, 195, 532, 409,
+ 533, 195, 534, 429, 195, 428, 410, 430, 195, 195, 427, 535, 195, 447, 195, 195, 195,
+ 195, 195, 536, 431, 539, 195, 540, 195, 412, 413, 414, 195, 415, 429, 195, 541, 1217,
+ 1217, 1217, 195, 542, 195, 1217, 447, 1217, 195, 1217, 1217, 195, 536, 431, 539,
+
+ 195, 540, 195, 412, 413, 414, 195, 415, 1217, 537, 541, 195, 195, 437, 1217, 542, 195,
+ 420, 438, 421, 195, 195, 422, 1217, 538, 440, 195, 195, 423, 1217, 543, 195, 195, 195,
+ 544, 424, 537, 439, 195, 195, 437, 195, 1217, 1217, 420, 438, 421, 195, 195, 422, 195,
+ 538, 440, 195, 195, 423, 195, 543, 195, 195, 441, 544, 424, 442, 439, 195, 545, 1217,
+ 195, 432, 195, 433, 1217, 1217, 195, 434, 195, 195, 546, 195, 547, 448, 435, 195, 195,
+ 195, 436, 441, 1217, 443, 442, 195, 195, 545, 444, 195, 432, 195, 433, 195,
+
+ 195, 1217, 434, 195, 195, 546, 195, 547, 448, 435, 1217, 195, 195, 436, 445, 195, 443,
+ 446, 195, 195, 195, 444, 195, 449, 1217, 195, 195, 195, 195, 195, 1217, 195, 548, 456,
+ 195, 549, 450, 455, 550, 195, 551, 445, 195, 552, 446, 195, 195, 195, 195, 195, 449,
+ 195, 195, 553, 457, 195, 195, 195, 458, 548, 456, 195, 549, 450, 455, 550, 195, 551,
+ 1217, 554, 552, 195, 195, 451, 195, 195, 195, 195, 195, 195, 553, 457, 195, 452, 195,
+ 458, 555, 195, 453, 454, 1217, 465, 464, 459, 195, 460, 554, 556, 195, 195,
+
+ 451, 195, 195, 557, 195, 558, 195, 195, 195, 195, 452, 1217, 559, 555, 195, 453, 454,
+ 466, 465, 464, 459, 195, 460, 461, 556, 462, 195, 195, 195, 195, 557, 195, 558, 195,
+ 195, 195, 463, 560, 471, 559, 470, 195, 195, 1217, 466, 1217, 467, 195, 1217, 1217, 461,
+ 195, 462, 195, 195, 195, 468, 195, 195, 469, 195, 195, 195, 463, 560, 471, 1217, 470,
+ 195, 195, 195, 472, 474, 467, 195, 473, 195, 195, 195, 1217, 195, 195, 1217, 468, 195,
+ 561, 469, 476, 195, 195, 195, 195, 1217, 195, 475, 482, 195, 195, 472, 474,
+
+ 1217, 195, 473, 195, 195, 477, 479, 1217, 195, 478, 195, 195, 561, 195, 476, 1217, 1217,
+ 195, 195, 480, 195, 475, 482, 195, 481, 195, 562, 195, 195, 1217, 195, 1217, 477, 479,
+ 483, 195, 478, 195, 195, 195, 195, 485, 484, 195, 1217, 195, 480, 195, 492, 490, 486,
+ 481, 195, 562, 195, 195, 491, 195, 487, 195, 195, 483, 195, 195, 1217, 195, 195, 488,
+ 485, 484, 195, 195, 195, 563, 195, 492, 490, 486, 1217, 564, 195, 489, 195, 491, 497,
+ 487, 195, 195, 1217, 493, 195, 195, 195, 195, 488, 195, 494, 195, 195, 195,
+
+ 563, 195, 1217, 495, 195, 498, 564, 195, 489, 565, 1217, 497, 499, 195, 496, 195, 493,
+ 195, 195, 195, 195, 195, 195, 494, 195, 500, 195, 1217, 195, 195, 495, 195, 498, 504,
+ 195, 566, 565, 510, 1217, 499, 195, 496, 195, 195, 195, 501, 195, 502, 195, 195, 503,
+ 195, 500, 1217, 195, 505, 195, 195, 567, 1217, 504, 195, 566, 195, 510, 512, 195, 508,
+ 195, 195, 195, 195, 501, 506, 502, 570, 195, 503, 195, 507, 509, 195, 505, 511, 195,
+ 567, 195, 195, 195, 195, 195, 1217, 512, 195, 508, 195, 195, 1217, 195, 1217,
+
+ 506, 568, 570, 571, 572, 573, 507, 509, 574, 575, 511, 569, 578, 195, 195, 195, 195,
+ 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 522, 568, 523, 571, 572, 573, 576,
+ 579, 574, 575, 580, 569, 578, 581, 582, 583, 577, 524, 584, 585, 586, 587, 588, 589,
+ 590, 591, 592, 522, 593, 523, 594, 595, 596, 576, 579, 597, 598, 580, 599, 600, 581,
+ 582, 583, 577, 524, 584, 585, 586, 587, 588, 589, 590, 591, 592, 601, 593, 602, 594,
+ 595, 596, 603, 604, 597, 598, 605, 599, 600, 606, 607, 608, 609, 610, 611,
+
+ 612, 615, 613, 616, 617, 618, 619, 620, 601, 621, 602, 614, 622, 623, 603, 604, 624,
+ 626, 605, 627, 625, 606, 607, 608, 609, 610, 611, 612, 615, 613, 616, 617, 618, 619,
+ 620, 1217, 621, 744, 614, 622, 623, 195, 629, 624, 626, 195, 627, 625, 397, 397, 397,
+ 397, 397, 397, 397, 397, 397, 397, 630, 195, 195, 195, 195, 195, 744, 195, 631, 632,
+ 195, 629, 1217, 195, 195, 745, 1217, 746, 1217, 195, 195, 195, 195, 634, 1217, 195, 747,
+ 630, 195, 195, 195, 195, 195, 195, 195, 631, 632, 195, 195, 195, 195, 195,
+
+ 745, 195, 746, 636, 195, 195, 195, 195, 634, 633, 195, 747, 637, 635, 638, 195, 195,
+ 641, 195, 195, 1217, 195, 195, 195, 195, 195, 195, 195, 195, 639, 636, 195, 1217, 748,
+ 195, 642, 633, 1217, 640, 637, 635, 638, 195, 195, 641, 195, 195, 195, 195, 195, 1217,
+ 644, 195, 645, 195, 647, 639, 195, 195, 195, 748, 195, 642, 195, 643, 640, 749, 195,
+ 1217, 195, 649, 1217, 195, 646, 195, 195, 195, 195, 644, 195, 645, 648, 647, 195, 195,
+ 195, 195, 195, 750, 650, 195, 643, 1217, 749, 195, 651, 195, 649, 652, 195,
+
+ 646, 654, 195, 195, 195, 195, 195, 655, 648, 195, 195, 1217, 195, 653, 195, 750, 650,
+ 1217, 195, 195, 1217, 659, 651, 195, 656, 652, 195, 195, 654, 195, 195, 1217, 195, 195,
+ 655, 657, 195, 195, 195, 660, 653, 195, 1217, 195, 658, 195, 195, 661, 659, 751, 195,
+ 656, 1217, 195, 195, 195, 195, 195, 195, 662, 195, 195, 657, 195, 195, 195, 660, 195,
+ 195, 663, 195, 658, 195, 195, 661, 195, 751, 667, 195, 664, 195, 195, 195, 752, 195,
+ 195, 662, 666, 195, 753, 195, 665, 195, 195, 195, 754, 663, 195, 195, 195,
+
+ 195, 195, 195, 668, 667, 195, 664, 195, 195, 669, 752, 755, 756, 1217, 666, 195, 753,
+ 757, 665, 195, 195, 195, 754, 670, 195, 195, 195, 195, 195, 672, 668, 195, 195, 671,
+ 195, 195, 669, 195, 755, 756, 674, 195, 195, 1217, 757, 675, 195, 673, 195, 1217, 670,
+ 195, 195, 195, 195, 195, 672, 195, 195, 195, 671, 195, 195, 195, 195, 195, 680, 674,
+ 195, 681, 676, 678, 675, 195, 673, 195, 677, 1217, 195, 195, 682, 195, 195, 195, 195,
+ 195, 195, 1217, 195, 195, 195, 679, 195, 680, 683, 195, 681, 676, 678, 1217,
+
+ 195, 195, 195, 677, 684, 195, 758, 682, 195, 195, 195, 685, 195, 195, 195, 195, 195,
+ 195, 679, 688, 1217, 683, 195, 1217, 687, 195, 686, 195, 195, 195, 195, 684, 195, 758,
+ 689, 759, 195, 195, 685, 195, 760, 195, 195, 761, 195, 691, 688, 690, 195, 195, 195,
+ 687, 195, 686, 1217, 692, 195, 195, 195, 1217, 693, 689, 759, 195, 195, 694, 195, 760,
+ 195, 195, 761, 195, 691, 195, 690, 195, 195, 195, 195, 195, 698, 195, 692, 195, 195,
+ 195, 696, 693, 1217, 695, 195, 195, 694, 195, 702, 195, 195, 697, 195, 195,
+
+ 195, 195, 195, 195, 195, 195, 195, 698, 195, 699, 195, 195, 195, 696, 195, 703, 695,
+ 701, 195, 1217, 195, 702, 195, 195, 697, 700, 195, 1217, 195, 195, 195, 195, 195, 704,
+ 195, 195, 699, 195, 1217, 195, 1217, 195, 703, 705, 701, 195, 195, 195, 1217, 195, 195,
+ 762, 700, 708, 195, 707, 706, 195, 1217, 195, 704, 195, 195, 1217, 195, 195, 195, 195,
+ 1217, 1217, 705, 709, 195, 195, 195, 195, 195, 713, 762, 195, 708, 195, 707, 706, 195,
+ 195, 712, 715, 711, 195, 195, 710, 195, 195, 195, 195, 195, 195, 709, 195,
+
+ 714, 1217, 195, 195, 713, 195, 195, 195, 195, 195, 195, 195, 195, 712, 715, 711, 195,
+ 195, 710, 195, 763, 716, 195, 195, 195, 1217, 195, 714, 195, 717, 718, 195, 195, 195,
+ 195, 195, 195, 195, 195, 195, 719, 195, 195, 1217, 195, 764, 195, 763, 716, 722, 195,
+ 1217, 723, 195, 726, 195, 717, 718, 195, 720, 195, 195, 195, 195, 195, 721, 195, 719,
+ 195, 195, 195, 195, 764, 195, 195, 195, 722, 195, 724, 723, 195, 726, 725, 195, 195,
+ 1217, 720, 195, 195, 195, 195, 195, 721, 195, 732, 195, 727, 195, 195, 728,
+
+ 195, 195, 195, 1217, 195, 724, 1217, 195, 729, 725, 195, 195, 733, 738, 195, 765, 195,
+ 195, 195, 195, 195, 732, 195, 727, 766, 195, 728, 730, 736, 731, 195, 195, 195, 195,
+ 195, 729, 195, 195, 1217, 733, 738, 734, 765, 195, 195, 195, 195, 195, 1217, 735, 195,
+ 766, 195, 195, 730, 736, 731, 195, 195, 195, 195, 741, 195, 195, 195, 737, 767, 195,
+ 734, 768, 195, 739, 769, 770, 195, 740, 735, 195, 195, 195, 195, 771, 195, 742, 772,
+ 195, 773, 774, 741, 195, 195, 775, 737, 767, 195, 776, 768, 195, 739, 769,
+
+ 770, 777, 740, 778, 779, 195, 780, 781, 771, 195, 742, 772, 782, 773, 774, 783, 784,
+ 195, 775, 785, 788, 786, 776, 789, 790, 791, 792, 795, 777, 796, 778, 779, 787, 780,
+ 781, 793, 794, 797, 798, 782, 799, 800, 783, 784, 801, 802, 785, 788, 786, 803, 789,
+ 790, 791, 792, 795, 804, 796, 805, 806, 787, 807, 808, 793, 794, 797, 798, 809, 799,
+ 800, 810, 811, 801, 802, 812, 813, 814, 803, 815, 816, 817, 818, 819, 804, 820, 805,
+ 806, 821, 807, 808, 822, 823, 824, 825, 809, 826, 827, 810, 811, 828, 829,
+
+ 812, 813, 814, 830, 815, 816, 817, 818, 819, 195, 820, 195, 195, 821, 195, 195, 822,
+ 823, 824, 825, 838, 826, 827, 195, 832, 828, 829, 833, 836, 834, 830, 195, 835, 195,
+ 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 839, 195, 837, 838, 195, 920, 195,
+ 832, 1217, 195, 833, 836, 834, 195, 195, 835, 195, 195, 195, 921, 195, 195, 195, 195,
+ 195, 195, 195, 839, 195, 837, 840, 195, 920, 841, 195, 195, 195, 1217, 195, 842, 195,
+ 1217, 195, 195, 195, 195, 921, 1217, 195, 195, 1217, 195, 195, 844, 195, 195,
+
+ 843, 840, 195, 195, 841, 195, 195, 195, 195, 195, 842, 1217, 195, 195, 195, 195, 195,
+ 845, 195, 847, 195, 195, 1217, 195, 844, 195, 195, 843, 848, 195, 195, 922, 195, 846,
+ 195, 195, 195, 849, 195, 195, 195, 195, 923, 1217, 845, 195, 847, 195, 195, 851, 195,
+ 850, 853, 195, 195, 848, 195, 195, 922, 195, 846, 1217, 195, 195, 849, 195, 854, 195,
+ 195, 923, 852, 195, 1217, 195, 195, 195, 851, 195, 850, 853, 195, 195, 195, 195, 195,
+ 195, 924, 925, 195, 195, 195, 195, 855, 854, 1217, 195, 195, 852, 195, 856,
+
+ 195, 195, 195, 1217, 195, 195, 858, 857, 195, 195, 195, 862, 195, 924, 925, 195, 195,
+ 195, 195, 855, 860, 195, 195, 195, 195, 861, 856, 1217, 926, 195, 195, 195, 195, 858,
+ 857, 195, 859, 195, 862, 195, 927, 195, 195, 195, 195, 195, 1217, 860, 195, 195, 195,
+ 195, 861, 195, 863, 926, 195, 195, 195, 195, 864, 928, 195, 859, 195, 195, 195, 927,
+ 195, 195, 865, 195, 195, 195, 195, 1217, 195, 195, 195, 195, 195, 863, 1217, 869, 195,
+ 929, 195, 864, 928, 195, 866, 195, 195, 195, 195, 195, 1217, 865, 195, 195,
+
+ 195, 195, 867, 195, 195, 195, 195, 1217, 1217, 868, 869, 195, 929, 195, 195, 195, 1217,
+ 866, 1217, 195, 195, 195, 195, 871, 195, 195, 195, 870, 1217, 867, 195, 195, 872, 195,
+ 195, 195, 868, 195, 195, 195, 195, 195, 195, 195, 876, 874, 195, 195, 873, 195, 871,
+ 195, 1217, 195, 870, 195, 875, 195, 195, 872, 195, 195, 195, 195, 195, 195, 195, 195,
+ 930, 195, 195, 876, 874, 195, 195, 873, 195, 195, 879, 195, 195, 195, 195, 875, 195,
+ 195, 878, 880, 877, 1217, 195, 1217, 195, 195, 195, 930, 195, 195, 195, 195,
+
+ 195, 195, 195, 1217, 195, 879, 195, 195, 195, 1217, 195, 1217, 195, 878, 880, 877, 881,
+ 882, 195, 195, 195, 883, 195, 884, 195, 195, 195, 195, 195, 195, 195, 885, 887, 886,
+ 195, 195, 195, 195, 195, 195, 1217, 1217, 1217, 881, 882, 195, 1217, 195, 883, 195, 884,
+ 195, 195, 195, 195, 195, 195, 195, 885, 887, 886, 195, 195, 195, 888, 195, 889, 195,
+ 891, 890, 1217, 195, 195, 195, 195, 1217, 1217, 1217, 195, 195, 195, 195, 195, 195, 1217,
+ 892, 195, 195, 195, 195, 1217, 888, 195, 889, 195, 891, 890, 195, 195, 195,
+
+ 195, 895, 195, 195, 896, 893, 195, 195, 195, 195, 1217, 897, 892, 195, 195, 894, 195,
+ 195, 899, 195, 195, 900, 195, 195, 195, 1217, 195, 195, 895, 195, 195, 896, 893, 195,
+ 195, 898, 195, 195, 897, 195, 195, 195, 894, 902, 195, 899, 195, 195, 900, 195, 195,
+ 195, 195, 195, 195, 904, 903, 195, 901, 195, 1217, 195, 898, 195, 195, 1217, 195, 195,
+ 195, 195, 902, 195, 195, 195, 931, 195, 932, 195, 195, 195, 195, 195, 904, 903, 195,
+ 901, 195, 905, 195, 195, 195, 195, 195, 908, 906, 195, 195, 195, 195, 195,
+
+ 195, 931, 195, 932, 195, 907, 1217, 195, 195, 195, 1217, 195, 195, 195, 905, 195, 195,
+ 195, 195, 195, 908, 906, 195, 933, 195, 910, 909, 195, 912, 195, 911, 914, 907, 195,
+ 195, 1217, 195, 195, 195, 195, 195, 1217, 195, 195, 195, 913, 195, 195, 1217, 915, 933,
+ 195, 910, 909, 195, 912, 195, 911, 914, 195, 195, 195, 195, 195, 195, 917, 195, 195,
+ 195, 934, 195, 935, 913, 195, 195, 916, 915, 195, 195, 195, 936, 195, 195, 937, 938,
+ 195, 195, 939, 195, 195, 195, 918, 917, 195, 195, 195, 934, 195, 935, 940,
+
+ 941, 942, 916, 943, 195, 944, 195, 936, 945, 195, 937, 938, 195, 946, 939, 195, 947,
+ 948, 918, 949, 950, 952, 953, 951, 195, 954, 940, 941, 942, 955, 943, 956, 944, 957,
+ 958, 945, 959, 960, 961, 962, 946, 963, 964, 947, 948, 965, 949, 950, 952, 953, 951,
+ 966, 954, 967, 968, 969, 955, 970, 956, 971, 957, 958, 972, 959, 960, 961, 962, 973,
+ 963, 964, 974, 975, 965, 976, 977, 978, 979, 980, 966, 981, 967, 968, 969, 982, 970,
+ 195, 971, 195, 195, 972, 1048, 195, 1217, 985, 973, 1217, 195, 974, 975, 986,
+
+ 976, 977, 978, 979, 980, 195, 981, 195, 195, 984, 982, 195, 195, 195, 195, 195, 195,
+ 1048, 195, 195, 985, 987, 195, 195, 195, 988, 986, 195, 1217, 1049, 195, 1217, 195, 989,
+ 195, 195, 984, 1050, 195, 992, 195, 195, 195, 195, 195, 990, 195, 195, 987, 195, 195,
+ 195, 988, 195, 195, 195, 1049, 195, 195, 195, 989, 195, 993, 991, 1050, 994, 992, 997,
+ 195, 195, 1217, 195, 990, 195, 195, 195, 1217, 195, 195, 995, 195, 195, 195, 195, 195,
+ 195, 195, 195, 195, 993, 991, 996, 994, 195, 997, 1217, 1001, 998, 1217, 1002,
+
+ 195, 195, 195, 195, 195, 195, 995, 195, 195, 1217, 195, 195, 195, 195, 195, 1051, 195,
+ 1052, 996, 195, 195, 1000, 999, 1001, 998, 195, 1002, 195, 195, 1217, 195, 195, 195, 195,
+ 195, 195, 195, 195, 1217, 195, 195, 1006, 1051, 195, 1052, 195, 195, 1005, 1000, 999, 1003,
+ 1004, 195, 195, 195, 195, 195, 195, 1217, 195, 195, 195, 195, 195, 195, 1007, 195, 195,
+ 1006, 195, 195, 195, 195, 1009, 1005, 195, 1217, 1003, 1004, 1053, 195, 195, 195, 195, 195,
+ 1008, 195, 195, 195, 195, 195, 195, 1007, 195, 195, 195, 195, 195, 195, 195,
+
+ 1009, 1010, 195, 195, 195, 195, 1053, 1013, 195, 1217, 1217, 1217, 1008, 195, 195, 1217, 195,
+ 195, 195, 195, 1011, 195, 195, 195, 195, 195, 195, 195, 1010, 1217, 195, 195, 195, 1217,
+ 1013, 195, 1012, 195, 195, 195, 1054, 195, 1016, 1217, 1217, 1217, 195, 1011, 195, 1055, 195,
+ 195, 195, 1014, 195, 195, 1015, 195, 195, 195, 1017, 195, 195, 1012, 195, 195, 195, 1054,
+ 195, 1016, 195, 195, 1018, 1217, 1056, 195, 1055, 1217, 1057, 1217, 1014, 195, 195, 1015, 195,
+ 195, 195, 1017, 195, 1019, 195, 195, 195, 1217, 195, 195, 1020, 195, 195, 1018,
+
+ 195, 1056, 195, 1217, 195, 1057, 195, 1022, 195, 1021, 195, 1058, 195, 1217, 195, 1024, 1019,
+ 195, 195, 195, 195, 195, 195, 1020, 195, 1023, 195, 195, 1027, 1217, 195, 195, 195, 195,
+ 1022, 195, 1021, 195, 1058, 195, 195, 195, 1024, 195, 1028, 195, 195, 195, 195, 1059, 1029,
+ 195, 1023, 195, 195, 1027, 1025, 195, 1026, 195, 195, 1217, 195, 195, 1030, 195, 195, 195,
+ 195, 195, 195, 1028, 195, 195, 195, 195, 1059, 1029, 1031, 195, 195, 195, 195, 1025, 1032,
+ 1026, 1033, 195, 195, 195, 195, 1030, 195, 195, 1217, 195, 195, 1034, 195, 195,
+
+ 195, 195, 195, 195, 1035, 1031, 195, 195, 195, 195, 1217, 1032, 1217, 1033, 1217, 195, 195,
+ 1036, 195, 195, 195, 195, 1041, 195, 1034, 195, 195, 195, 195, 195, 195, 1035, 1037, 1039,
+ 1040, 195, 1038, 195, 195, 195, 195, 195, 195, 1217, 1036, 195, 195, 195, 195, 1041, 195,
+ 1042, 195, 1043, 195, 195, 195, 195, 195, 1037, 1039, 1040, 1060, 1038, 195, 195, 195, 195,
+ 195, 195, 1044, 1045, 195, 195, 195, 195, 195, 1061, 1042, 195, 1043, 195, 1046, 195, 195,
+ 195, 195, 195, 195, 1060, 1062, 1063, 1064, 1065, 1066, 195, 1067, 1044, 1045, 195,
+
+ 195, 195, 195, 195, 1061, 1068, 195, 195, 195, 1046, 1069, 1070, 1071, 195, 195, 195, 1072,
+ 1062, 1063, 1064, 1065, 1066, 195, 1067, 1073, 1074, 1075, 1076, 1077, 1078, 1079, 1080, 1068, 195,
+ 195, 195, 1081, 1069, 1070, 1071, 1082, 1083, 1085, 1072, 195, 1087, 195, 1217, 1217, 1217, 195,
+ 1073, 1074, 1075, 1076, 1077, 1078, 1079, 1080, 1086, 195, 1088, 195, 1081, 195, 195, 195, 1082,
+ 1083, 1085, 195, 195, 1087, 195, 1089, 195, 195, 195, 195, 1217, 195, 1217, 1092, 1090, 195,
+ 1217, 1086, 195, 1088, 195, 1217, 195, 195, 195, 1122, 195, 195, 195, 195, 195,
+
+ 195, 1089, 195, 195, 195, 195, 1093, 195, 1091, 1092, 1090, 195, 195, 1095, 195, 1217, 195,
+ 195, 195, 195, 195, 1122, 195, 195, 1217, 195, 195, 195, 1096, 1094, 195, 195, 195, 1093,
+ 195, 1091, 195, 195, 195, 195, 1095, 195, 195, 195, 195, 195, 195, 195, 195, 1217, 195,
+ 1097, 195, 195, 1217, 1096, 1094, 195, 1217, 195, 1217, 195, 195, 195, 195, 195, 195, 195,
+ 195, 195, 195, 195, 195, 195, 1217, 195, 1098, 195, 1097, 195, 195, 1099, 195, 1217, 195,
+ 195, 195, 195, 1123, 195, 195, 1217, 1217, 195, 195, 195, 1101, 195, 195, 195,
+
+ 195, 195, 195, 1098, 195, 195, 195, 195, 1099, 195, 195, 195, 195, 195, 195, 1123, 195,
+ 195, 1102, 1100, 195, 195, 195, 1101, 1103, 1217, 195, 195, 195, 195, 195, 195, 195, 195,
+ 195, 195, 1124, 195, 195, 1125, 195, 1126, 195, 195, 1107, 1102, 1100, 195, 195, 195, 195,
+ 1103, 195, 195, 195, 195, 1105, 195, 195, 1104, 195, 195, 195, 1124, 195, 195, 1125, 195,
+ 1126, 195, 1108, 1107, 195, 195, 1127, 1128, 1106, 195, 1129, 195, 195, 195, 195, 1105, 195,
+ 195, 1104, 195, 195, 1217, 1109, 195, 195, 195, 1110, 195, 195, 1108, 1111, 195,
+
+ 195, 1127, 1128, 1106, 195, 1129, 195, 195, 195, 1112, 195, 195, 195, 1217, 195, 195, 195,
+ 1109, 195, 195, 195, 1110, 195, 195, 1130, 1111, 195, 1113, 195, 1131, 195, 195, 195, 195,
+ 195, 1114, 1112, 195, 195, 195, 1115, 195, 195, 195, 195, 195, 1116, 1117, 195, 195, 195,
+ 1130, 195, 195, 1113, 195, 1131, 195, 1217, 195, 195, 195, 1114, 195, 195, 195, 195, 1115,
+ 195, 195, 195, 195, 195, 1116, 1117, 195, 195, 195, 1118, 195, 195, 1132, 195, 195, 1133,
+ 1119, 195, 195, 195, 1120, 195, 195, 195, 195, 1134, 195, 195, 195, 1135, 195,
+
+ 1136, 1137, 195, 195, 195, 1118, 195, 195, 1132, 195, 195, 1133, 1119, 195, 1139, 195, 1120,
+ 195, 195, 195, 1140, 1134, 195, 195, 195, 1135, 195, 1136, 1137, 195, 195, 195, 1141, 195,
+ 195, 195, 195, 195, 195, 1217, 195, 1139, 195, 1217, 195, 195, 1142, 1140, 195, 195, 195,
+ 195, 1156, 195, 195, 195, 195, 195, 195, 1141, 195, 195, 195, 195, 195, 195, 195, 195,
+ 195, 195, 195, 195, 1143, 1142, 195, 195, 1157, 195, 195, 1156, 195, 195, 195, 195, 195,
+ 195, 1144, 195, 195, 195, 195, 195, 1217, 195, 1147, 195, 1145, 195, 195, 1143,
+
+ 195, 195, 195, 1157, 195, 195, 195, 195, 195, 195, 195, 195, 195, 1144, 195, 195, 195,
+ 195, 195, 1146, 195, 1147, 195, 1145, 195, 1148, 195, 195, 195, 195, 195, 195, 195, 195,
+ 1149, 195, 195, 195, 195, 195, 1158, 195, 195, 195, 195, 195, 1146, 195, 195, 195, 1152,
+ 195, 1148, 195, 1154, 195, 1151, 195, 195, 195, 1150, 1149, 195, 195, 195, 195, 195, 1158,
+ 195, 195, 195, 195, 195, 1159, 195, 195, 1160, 1152, 1161, 1153, 1162, 1154, 1217, 1151, 195,
+ 1217, 195, 1150, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
+
+ 1159, 195, 195, 1160, 1173, 1161, 1153, 1162, 1217, 1164, 195, 195, 1165, 195, 195, 195, 195,
+ 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 1217, 195, 195, 195, 1173, 195, 195,
+ 195, 1166, 1164, 195, 195, 1165, 195, 195, 1174, 195, 195, 195, 195, 195, 195, 195, 195,
+ 1167, 195, 195, 1168, 195, 1217, 195, 195, 195, 195, 195, 1166, 195, 195, 195, 1175, 195,
+ 1170, 1174, 195, 1177, 1172, 1183, 1169, 195, 1188, 195, 1167, 195, 195, 1168, 1178, 195, 195,
+ 195, 195, 1217, 1172, 1172, 195, 195, 195, 1175, 195, 1170, 195, 195, 195, 1190,
+
+ 1183, 1169, 195, 1188, 1177, 1172, 195, 195, 1179, 1178, 195, 195, 195, 195, 195, 1217, 195,
+ 1180, 195, 195, 195, 195, 195, 195, 1217, 195, 1190, 195, 195, 195, 1182, 195, 1192, 195,
+ 195, 1179, 1194, 1186, 1196, 195, 195, 195, 195, 195, 1180, 195, 1185, 195, 195, 195, 1198,
+ 195, 1200, 1202, 195, 195, 1204, 1182, 195, 1192, 1206, 1208, 1210, 1194, 1186, 1196, 1217, 195,
+ 1217, 195, 1217, 1217, 1217, 1185, 1217, 195, 1217, 1198, 195, 1200, 1202, 1217, 1217, 1204, 1217,
+ 1217, 1217, 1206, 1208, 1210, 46, 46, 46, 46, 46, 88, 1217, 1217, 88, 88,
+
+ 180, 180, 180, 1217, 180, 182, 1217, 182, 182, 182, 185, 1217, 185, 185, 185, 195, 1217,
+ 195, 195, 195, 7, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217,
+ 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217,
+ 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217,
+ 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217,
+ 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217
+
+};
+
+static const flex_int16_t yy_chk[4898] = {
0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
@@ -1191,331 +1201,338 @@ static const flex_int16_t yy_chk[4814] = {
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
5, 9, 9, 10, 10, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 15,
17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 21, 22, 21, 24,
- 1194, 23, 30, 24, 21, 1188, 21, 24, 23, 31, 21, 21, 44, 24, 99,
+ 1220, 23, 30, 24, 21, 1214, 21, 24, 23, 31, 21, 21, 44, 24, 99,
- 23, 24, 22, 23, 1187, 25, 1186, 25, 21, 22, 21, 24, 25, 23, 30, 24, 21,
+ 23, 24, 22, 23, 1213, 25, 1212, 25, 21, 22, 21, 24, 25, 23, 30, 24, 21,
25, 21, 24, 23, 31, 21, 21, 44, 24, 99, 23, 24, 22, 23, 27, 25, 28,
- 25, 1185, 32, 27, 1183, 25, 32, 28, 29, 42, 25, 26, 32, 28, 29, 29, 29,
- 42, 1181, 26, 1179, 29, 26, 1177, 27, 26, 28, 1175, 26, 32, 27, 26, 1173, 32,
- 28, 29, 42, 1171, 26, 32, 28, 29, 29, 29, 42, 34, 26, 33, 29, 26, 36,
+ 25, 1211, 32, 27, 1209, 25, 32, 28, 29, 42, 25, 26, 32, 28, 29, 29, 29,
+ 42, 1207, 26, 1205, 29, 26, 1203, 27, 26, 28, 1201, 26, 32, 27, 26, 1199, 32,
+ 28, 29, 42, 1197, 26, 32, 28, 29, 29, 29, 42, 34, 26, 33, 29, 26, 36,
33, 26, 43, 43, 26, 35, 33, 26, 34, 100, 36, 49, 49, 35, 34,
- 34, 36, 35, 38, 1169, 35, 34, 38, 33, 50, 50, 36, 33, 38, 43, 43, 1167,
- 35, 33, 1165, 34, 100, 36, 103, 55, 35, 34, 34, 36, 35, 38, 41, 35, 41,
- 38, 55, 41, 58, 58, 1163, 38, 39, 104, 39, 1161, 71, 39, 77, 86, 86, 103,
- 39, 1158, 39, 39, 1155, 70, 1150, 41, 1145, 41, 108, 1137, 41, 67, 71, 70, 77,
- 39, 104, 39, 67, 71, 39, 77, 72, 70, 67, 39, 72, 39, 39, 40, 70, 67,
- 72, 40, 110, 108, 40, 40, 67, 71, 70, 77, 72, 40, 110, 67, 40,
-
- 182, 182, 72, 70, 67, 1130, 72, 1129, 1112, 40, 1095, 67, 72, 40, 110, 1058, 40,
- 40, 1021, 959, 897, 812, 72, 40, 110, 727, 40, 56, 56, 56, 56, 56, 56, 56,
- 56, 56, 56, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 61, 61, 616,
- 61, 61, 61, 61, 61, 61, 84, 68, 114, 505, 391, 68, 276, 186, 115, 68, 61,
- 61, 61, 73, 101, 68, 61, 73, 61, 116, 84, 117, 101, 73, 61, 68, 61, 84,
- 68, 114, 61, 61, 68, 73, 102, 115, 68, 102, 184, 90, 73, 101, 68,
-
- 61, 73, 61, 116, 84, 117, 101, 73, 61, 68, 61, 88, 85, 118, 61, 61, 60,
- 73, 102, 59, 52, 102, 76, 61, 62, 62, 76, 62, 62, 62, 62, 62, 62, 76,
- 82, 51, 47, 78, 82, 76, 118, 78, 82, 62, 62, 62, 76, 78, 120, 76, 62,
- 45, 20, 76, 121, 19, 122, 78, 82, 83, 76, 82, 83, 83, 78, 82, 76, 11,
- 78, 82, 62, 107, 7, 76, 78, 120, 123, 62, 107, 83, 4, 121, 81, 122, 78,
- 82, 83, 3, 0, 83, 83, 81, 124, 81, 105, 105, 81, 62, 107, 62,
-
- 63, 125, 81, 123, 63, 107, 83, 63, 105, 81, 0, 109, 109, 109, 63, 109, 0,
- 63, 81, 124, 81, 105, 105, 81, 63, 0, 126, 63, 125, 81, 127, 63, 111, 0,
- 63, 105, 129, 111, 109, 109, 109, 63, 109, 112, 63, 112, 113, 113, 112, 0, 130,
- 63, 64, 126, 112, 0, 64, 127, 132, 111, 64, 112, 133, 129, 111, 119, 64, 119,
- 135, 64, 112, 119, 112, 113, 113, 112, 64, 130, 119, 64, 136, 112, 119, 64, 0,
- 132, 0, 64, 112, 133, 137, 0, 119, 64, 119, 135, 64, 0, 119, 128,
-
- 134, 138, 128, 64, 65, 119, 139, 136, 139, 119, 134, 65, 141, 65, 142, 134, 134,
- 137, 65, 140, 143, 140, 144, 65, 65, 0, 128, 134, 138, 128, 145, 65, 140, 139,
- 146, 139, 0, 134, 65, 141, 65, 142, 134, 134, 147, 65, 140, 143, 140, 144, 65,
- 65, 66, 148, 150, 151, 66, 145, 152, 140, 66, 146, 153, 66, 154, 156, 66, 157,
- 154, 66, 158, 147, 66, 0, 0, 160, 66, 0, 0, 66, 148, 150, 151, 66, 0,
- 152, 0, 66, 155, 153, 66, 154, 156, 66, 157, 154, 66, 158, 161, 66,
-
- 159, 155, 160, 66, 69, 69, 155, 162, 163, 159, 164, 69, 69, 69, 166, 155, 167,
- 159, 69, 165, 168, 171, 169, 170, 69, 161, 170, 159, 155, 0, 165, 69, 69, 155,
- 162, 163, 159, 164, 69, 69, 69, 166, 169, 167, 159, 69, 165, 168, 171, 169, 170,
- 69, 74, 170, 172, 173, 74, 165, 174, 175, 176, 173, 177, 279, 194, 0, 74, 0,
- 0, 169, 281, 174, 74, 74, 195, 195, 74, 0, 0, 74, 0, 172, 173, 74, 194,
- 174, 175, 176, 173, 177, 279, 194, 196, 74, 202, 195, 0, 281, 174, 74,
-
- 74, 195, 195, 74, 75, 75, 227, 196, 197, 0, 282, 194, 196, 75, 202, 197, 199,
- 75, 0, 196, 75, 202, 195, 197, 75, 0, 227, 0, 197, 199, 0, 75, 75, 227,
- 196, 197, 199, 282, 0, 196, 75, 202, 197, 199, 75, 198, 284, 75, 198, 198, 197,
- 75, 79, 227, 79, 197, 199, 79, 200, 286, 200, 0, 79, 199, 79, 79, 0, 0,
- 0, 198, 0, 0, 198, 284, 79, 198, 198, 0, 206, 79, 200, 79, 0, 0, 79,
- 200, 286, 200, 206, 79, 0, 79, 79, 201, 201, 201, 198, 203, 206, 0,
-
- 287, 79, 80, 207, 203, 206, 80, 200, 201, 80, 80, 203, 288, 201, 289, 206, 80,
- 203, 207, 80, 201, 201, 201, 207, 203, 206, 80, 287, 0, 80, 207, 203, 0, 80,
- 0, 201, 80, 80, 203, 288, 201, 289, 0, 80, 203, 207, 80, 0, 0, 0, 207,
- 0, 0, 80, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 92, 92, 92, 92,
+ 34, 36, 35, 38, 1195, 35, 34, 38, 33, 50, 50, 36, 33, 38, 43, 43, 1193,
+ 35, 33, 1191, 34, 100, 36, 103, 55, 35, 34, 34, 36, 35, 38, 41, 35, 41,
+ 38, 55, 41, 58, 58, 102, 38, 39, 102, 39, 86, 86, 39, 71, 1189, 39, 103,
+ 39, 1187, 39, 39, 1184, 104, 1181, 41, 1176, 41, 183, 183, 41, 67, 70, 102, 71,
+ 39, 102, 39, 67, 1171, 39, 71, 70, 39, 67, 39, 101, 39, 39, 40, 104, 67,
+ 70, 40, 101, 107, 40, 40, 67, 70, 108, 71, 107, 40, 114, 67, 40,
+
+ 1156, 1156, 70, 1163, 67, 1155, 101, 1138, 1121, 40, 1084, 67, 70, 40, 101, 107, 40,
+ 40, 1047, 983, 108, 919, 107, 40, 114, 831, 40, 56, 56, 56, 56, 56, 56, 56,
+ 56, 56, 56, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 61, 61, 743,
+ 61, 61, 61, 61, 61, 61, 77, 68, 84, 628, 513, 68, 396, 278, 115, 68, 61,
+ 61, 61, 72, 111, 68, 61, 72, 61, 111, 77, 116, 84, 72, 61, 68, 61, 77,
+ 68, 84, 61, 61, 68, 72, 83, 115, 68, 83, 83, 187, 72, 111, 68,
+
+ 61, 72, 61, 111, 77, 116, 84, 72, 61, 68, 61, 83, 117, 185, 61, 61, 90,
+ 72, 83, 88, 85, 83, 83, 61, 62, 62, 60, 62, 62, 62, 62, 62, 62, 59,
+ 52, 51, 73, 76, 83, 117, 73, 76, 47, 62, 62, 62, 73, 110, 76, 78, 62,
+ 81, 118, 78, 76, 120, 73, 110, 121, 78, 81, 76, 81, 73, 76, 81, 122, 73,
+ 76, 78, 62, 81, 45, 73, 110, 76, 78, 62, 81, 118, 78, 76, 120, 73, 110,
+ 121, 78, 81, 76, 81, 20, 123, 81, 122, 105, 105, 78, 62, 81, 62,
+
+ 63, 124, 82, 125, 63, 126, 82, 63, 105, 127, 82, 109, 109, 109, 63, 109, 19,
+ 63, 123, 113, 113, 105, 105, 129, 63, 11, 82, 63, 124, 82, 125, 63, 126, 82,
+ 63, 105, 127, 82, 109, 109, 109, 63, 109, 112, 63, 112, 113, 113, 112, 7, 129,
+ 63, 64, 82, 112, 4, 64, 130, 132, 128, 64, 112, 128, 133, 135, 119, 64, 119,
+ 136, 64, 112, 119, 112, 3, 137, 112, 64, 0, 119, 64, 138, 112, 119, 64, 130,
+ 132, 128, 64, 112, 128, 133, 135, 119, 64, 119, 136, 64, 0, 119, 141,
+
+ 134, 137, 142, 64, 65, 119, 139, 138, 139, 119, 134, 65, 143, 65, 144, 134, 134,
+ 140, 65, 140, 146, 147, 148, 65, 65, 0, 141, 134, 0, 142, 140, 65, 150, 139,
+ 151, 139, 0, 134, 65, 143, 65, 144, 134, 134, 140, 65, 140, 146, 147, 148, 65,
+ 65, 66, 152, 153, 145, 66, 140, 145, 150, 66, 151, 156, 66, 154, 157, 66, 158,
+ 154, 66, 161, 162, 66, 0, 0, 0, 66, 0, 0, 66, 152, 153, 145, 66, 0,
+ 145, 0, 66, 155, 156, 66, 154, 157, 66, 158, 154, 66, 161, 162, 66,
+
+ 159, 155, 160, 66, 69, 69, 155, 163, 164, 159, 165, 69, 69, 69, 167, 155, 160,
+ 159, 69, 166, 168, 169, 170, 171, 69, 0, 171, 159, 155, 160, 166, 69, 69, 155,
+ 163, 164, 159, 165, 69, 69, 69, 167, 170, 160, 159, 69, 166, 168, 169, 170, 171,
+ 69, 74, 171, 172, 173, 74, 166, 174, 176, 177, 175, 178, 281, 174, 283, 74, 0,
+ 0, 170, 284, 286, 74, 74, 175, 195, 74, 0, 0, 74, 0, 172, 173, 74, 288,
+ 174, 176, 177, 175, 178, 281, 174, 283, 74, 197, 195, 289, 284, 286, 74,
+
+ 74, 175, 195, 74, 75, 75, 203, 196, 196, 197, 290, 288, 0, 75, 197, 199, 0,
+ 75, 199, 199, 75, 197, 195, 289, 75, 0, 203, 0, 196, 291, 0, 75, 75, 203,
+ 196, 196, 197, 290, 0, 199, 75, 197, 199, 198, 75, 199, 199, 75, 200, 207, 198,
+ 75, 79, 203, 79, 196, 291, 79, 198, 207, 79, 200, 79, 198, 79, 79, 199, 0,
+ 200, 207, 198, 201, 293, 201, 79, 200, 207, 198, 0, 79, 0, 79, 0, 0, 79,
+ 198, 207, 79, 200, 79, 198, 79, 79, 201, 210, 200, 207, 208, 201, 293,
+
+ 201, 79, 80, 202, 202, 202, 80, 210, 210, 80, 80, 294, 208, 295, 210, 296, 80,
+ 208, 202, 80, 201, 210, 297, 202, 208, 298, 80, 0, 0, 80, 202, 202, 202, 80,
+ 210, 210, 80, 80, 294, 208, 295, 210, 296, 80, 208, 202, 80, 0, 0, 297, 202,
+ 0, 298, 80, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 92, 92, 92, 92,
92, 92, 92, 92, 92, 92, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93,
- 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 188, 188, 188, 188, 188,
-
- 188, 188, 188, 188, 188, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 204,
- 209, 210, 211, 204, 291, 212, 292, 293, 294, 0, 0, 295, 211, 209, 209, 213, 213,
- 210, 0, 212, 209, 210, 211, 204, 0, 212, 204, 209, 210, 211, 204, 291, 212, 292,
- 293, 294, 213, 233, 295, 211, 209, 209, 213, 213, 210, 229, 212, 209, 210, 211, 204,
- 205, 212, 214, 0, 214, 229, 233, 205, 205, 205, 216, 205, 213, 233, 229, 0, 0,
- 216, 296, 297, 205, 229, 0, 0, 214, 0, 0, 205, 298, 214, 216, 214,
-
- 229, 233, 205, 205, 205, 216, 205, 0, 299, 229, 217, 219, 216, 296, 297, 205, 208,
- 217, 208, 214, 208, 208, 218, 298, 219, 216, 220, 208, 0, 0, 217, 219, 218, 0,
- 208, 299, 220, 217, 219, 0, 208, 0, 218, 208, 217, 208, 220, 208, 208, 218, 300,
- 219, 237, 220, 208, 221, 222, 217, 219, 218, 245, 208, 221, 220, 0, 237, 222, 208,
- 215, 218, 215, 0, 237, 220, 215, 221, 222, 300, 223, 237, 245, 215, 221, 222, 0,
- 215, 0, 245, 223, 221, 215, 225, 237, 222, 240, 215, 224, 215, 223, 237,
-
- 225, 215, 221, 222, 226, 223, 0, 245, 215, 240, 224, 225, 215, 224, 240, 223, 224,
- 215, 225, 231, 226, 240, 228, 224, 226, 223, 228, 225, 231, 0, 232, 226, 234, 234,
- 232, 301, 240, 224, 225, 231, 224, 240, 228, 224, 0, 302, 231, 226, 235, 228, 232,
- 226, 234, 228, 235, 231, 235, 232, 0, 234, 234, 232, 301, 236, 0, 236, 231, 236,
- 235, 228, 230, 230, 302, 238, 0, 235, 236, 232, 0, 234, 230, 235, 238, 235, 241,
- 230, 230, 236, 304, 0, 236, 230, 236, 238, 236, 235, 239, 230, 230, 241,
-
- 238, 242, 305, 236, 241, 239, 243, 230, 242, 238, 243, 241, 230, 230, 236, 304, 239,
- 0, 230, 0, 238, 242, 0, 239, 244, 244, 241, 247, 242, 305, 243, 241, 239, 243,
- 0, 242, 248, 243, 246, 246, 306, 250, 247, 239, 244, 250, 249, 247, 242, 248, 249,
- 244, 244, 0, 247, 0, 248, 243, 307, 246, 252, 250, 252, 248, 0, 246, 246, 306,
- 250, 247, 249, 244, 250, 249, 247, 0, 248, 249, 251, 308, 252, 254, 251, 248, 254,
- 307, 246, 252, 250, 252, 256, 251, 253, 0, 0, 0, 251, 249, 309, 253,
-
- 256, 254, 251, 0, 311, 251, 308, 252, 254, 251, 256, 254, 253, 255, 0, 255, 0,
- 256, 251, 253, 257, 258, 255, 251, 257, 309, 253, 256, 254, 251, 255, 311, 259, 312,
- 258, 255, 259, 256, 0, 253, 255, 258, 255, 260, 257, 261, 260, 257, 258, 255, 313,
- 257, 314, 261, 262, 315, 259, 255, 264, 259, 312, 258, 255, 259, 261, 261, 260, 263,
- 258, 264, 260, 257, 261, 260, 262, 263, 0, 313, 264, 314, 261, 262, 315, 259, 265,
- 264, 0, 263, 265, 267, 267, 261, 261, 260, 263, 0, 264, 316, 0, 266,
-
- 271, 262, 263, 266, 265, 264, 266, 0, 265, 268, 267, 265, 270, 268, 263, 265, 267,
- 267, 273, 266, 271, 269, 273, 272, 316, 270, 266, 271, 269, 268, 266, 265, 270, 266,
- 269, 265, 268, 267, 272, 270, 268, 269, 273, 272, 0, 273, 266, 271, 269, 273, 272,
- 0, 270, 0, 0, 269, 268, 317, 318, 270, 319, 269, 320, 321, 290, 272, 290, 303,
- 269, 273, 272, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 290, 303, 322, 317,
- 318, 323, 319, 324, 320, 321, 290, 325, 290, 303, 326, 327, 328, 329, 330,
-
- 331, 332, 333, 335, 334, 336, 338, 339, 290, 303, 322, 340, 341, 323, 334, 324, 342,
- 343, 344, 325, 345, 346, 326, 327, 328, 329, 330, 331, 332, 333, 335, 334, 336, 338,
- 339, 347, 349, 350, 340, 341, 351, 334, 352, 342, 343, 344, 353, 345, 346, 354, 355,
- 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 367, 347, 349, 350, 368, 369, 351,
- 370, 352, 371, 372, 373, 353, 374, 375, 354, 355, 356, 357, 358, 359, 360, 361, 362,
- 363, 364, 365, 367, 377, 380, 378, 368, 369, 379, 370, 379, 371, 372, 373,
-
- 378, 374, 375, 381, 382, 383, 384, 385, 386, 387, 388, 389, 0, 387, 0, 0, 377,
- 380, 378, 0, 0, 379, 0, 379, 0, 0, 0, 378, 0, 0, 381, 382, 383, 384,
- 385, 386, 387, 388, 389, 393, 387, 392, 392, 392, 392, 392, 392, 392, 392, 392, 392,
- 394, 395, 396, 397, 398, 400, 0, 0, 393, 399, 397, 0, 0, 399, 0, 393, 506,
- 0, 507, 0, 394, 395, 396, 397, 398, 400, 409, 394, 395, 396, 397, 398, 400, 399,
- 401, 393, 399, 397, 402, 403, 399, 409, 402, 506, 401, 507, 409, 394, 395,
-
- 396, 397, 398, 400, 409, 401, 404, 0, 403, 402, 403, 399, 401, 404, 406, 0, 402,
- 403, 0, 409, 402, 405, 401, 405, 409, 508, 404, 406, 0, 407, 0, 408, 401, 404,
- 406, 403, 402, 403, 405, 408, 404, 406, 410, 405, 0, 407, 0, 413, 405, 407, 405,
- 408, 508, 404, 406, 411, 407, 412, 408, 411, 0, 406, 410, 0, 0, 405, 408, 413,
- 415, 410, 405, 412, 407, 414, 413, 415, 407, 412, 408, 411, 0, 416, 411, 0, 412,
- 416, 411, 414, 415, 410, 418, 420, 417, 414, 413, 415, 417, 0, 412, 0,
-
- 414, 416, 415, 0, 412, 418, 411, 419, 416, 419, 418, 420, 416, 424, 414, 415, 417,
- 418, 420, 417, 414, 509, 422, 417, 421, 422, 425, 427, 416, 419, 423, 426, 418, 424,
- 419, 426, 419, 418, 420, 421, 424, 423, 0, 417, 421, 422, 425, 427, 509, 422, 423,
- 421, 422, 425, 427, 426, 419, 423, 426, 428, 424, 428, 426, 430, 429, 432, 421, 431,
- 423, 433, 430, 421, 422, 425, 427, 510, 0, 423, 429, 432, 431, 428, 426, 430, 429,
- 432, 428, 431, 428, 433, 430, 429, 432, 435, 431, 434, 433, 430, 0, 434,
-
- 438, 435, 510, 438, 0, 429, 432, 431, 428, 436, 430, 429, 432, 435, 431, 439, 433,
- 436, 437, 434, 435, 440, 434, 438, 440, 437, 434, 438, 435, 436, 438, 439, 0, 441,
- 442, 439, 436, 441, 437, 446, 435, 440, 439, 0, 436, 437, 434, 447, 440, 442, 438,
- 440, 437, 441, 442, 0, 436, 443, 439, 446, 441, 442, 439, 444, 441, 437, 446, 447,
- 440, 444, 443, 448, 445, 450, 447, 449, 442, 443, 0, 0, 441, 442, 445, 444, 443,
- 449, 446, 0, 452, 450, 444, 448, 445, 450, 447, 449, 444, 443, 448, 445,
-
- 450, 0, 449, 454, 443, 451, 453, 455, 452, 445, 444, 455, 449, 457, 451, 452, 450,
- 457, 448, 445, 450, 453, 449, 454, 0, 451, 453, 455, 456, 456, 454, 460, 451, 453,
- 455, 452, 0, 457, 455, 0, 457, 451, 463, 458, 457, 458, 461, 460, 453, 456, 454,
- 460, 451, 453, 455, 456, 456, 459, 460, 459, 464, 461, 463, 458, 457, 462, 461, 464,
- 0, 463, 458, 467, 458, 461, 460, 0, 456, 459, 460, 468, 464, 462, 465, 466, 459,
- 462, 459, 464, 461, 463, 458, 467, 462, 461, 464, 465, 469, 466, 467, 468,
-
- 469, 0, 465, 466, 459, 470, 468, 464, 462, 465, 466, 472, 462, 0, 470, 511, 0,
- 471, 467, 472, 469, 0, 465, 469, 466, 470, 468, 469, 471, 465, 466, 472, 470, 473,
- 475, 474, 477, 471, 472, 474, 473, 470, 511, 477, 471, 476, 472, 469, 476, 475, 0,
- 478, 470, 473, 475, 471, 477, 480, 472, 474, 473, 475, 474, 477, 471, 476, 474, 473,
- 481, 479, 477, 478, 476, 482, 512, 476, 475, 480, 478, 479, 473, 475, 484, 477, 480,
- 514, 474, 483, 481, 479, 485, 482, 476, 482, 483, 481, 479, 484, 478, 0,
-
- 482, 512, 484, 517, 480, 485, 479, 483, 488, 484, 485, 487, 514, 490, 483, 481, 479,
- 485, 482, 486, 482, 483, 487, 488, 484, 491, 486, 489, 488, 484, 517, 487, 485, 490,
- 483, 488, 489, 485, 487, 486, 490, 0, 492, 0, 0, 491, 486, 489, 493, 487, 488,
- 492, 491, 486, 489, 488, 0, 493, 487, 0, 490, 494, 492, 489, 0, 501, 486, 495,
- 493, 492, 498, 494, 491, 494, 489, 493, 0, 495, 492, 496, 501, 494, 497, 496, 493,
- 501, 498, 495, 494, 492, 498, 497, 501, 0, 495, 493, 0, 498, 494, 499,
-
- 494, 499, 497, 496, 495, 500, 496, 501, 494, 497, 496, 502, 501, 498, 495, 0, 503,
- 498, 497, 503, 502, 499, 504, 500, 502, 500, 499, 518, 499, 497, 496, 502, 500, 519,
- 520, 504, 503, 522, 502, 523, 524, 526, 504, 503, 527, 528, 503, 502, 499, 504, 500,
- 502, 500, 529, 518, 530, 531, 532, 502, 533, 519, 520, 504, 503, 522, 534, 523, 524,
- 526, 504, 537, 527, 528, 538, 539, 540, 541, 542, 543, 545, 529, 546, 530, 531, 532,
- 549, 533, 550, 552, 554, 555, 556, 534, 557, 558, 559, 560, 537, 562, 566,
-
- 538, 539, 540, 541, 542, 543, 545, 560, 546, 568, 570, 572, 549, 573, 550, 552, 554,
- 555, 556, 575, 557, 558, 559, 560, 576, 562, 566, 571, 571, 577, 578, 579, 581, 582,
- 560, 584, 568, 570, 572, 585, 573, 586, 587, 588, 589, 590, 575, 592, 593, 594, 595,
- 576, 596, 599, 571, 571, 577, 578, 579, 581, 582, 600, 584, 602, 603, 604, 585, 605,
- 586, 587, 588, 589, 590, 606, 592, 593, 594, 595, 607, 596, 599, 608, 609, 611, 613,
- 615, 617, 0, 600, 0, 602, 603, 604, 0, 605, 619, 620, 0, 622, 617,
-
- 606, 618, 730, 0, 621, 607, 617, 622, 608, 609, 611, 613, 615, 617, 618, 619, 620,
- 621, 622, 623, 624, 618, 619, 620, 621, 622, 617, 0, 618, 730, 626, 621, 625, 617,
- 622, 627, 625, 732, 734, 623, 624, 618, 619, 620, 621, 622, 623, 624, 618, 628, 626,
- 621, 629, 628, 630, 627, 625, 626, 630, 625, 629, 0, 627, 625, 732, 734, 623, 624,
- 632, 735, 736, 631, 629, 628, 630, 737, 628, 626, 0, 629, 628, 630, 627, 625, 631,
- 630, 0, 629, 632, 633, 635, 631, 634, 636, 0, 632, 735, 736, 631, 629,
-
- 628, 630, 737, 0, 633, 635, 634, 637, 639, 633, 635, 631, 634, 636, 637, 632, 633,
- 635, 631, 634, 636, 641, 638, 640, 639, 641, 738, 637, 639, 0, 638, 633, 635, 634,
- 637, 639, 633, 635, 640, 634, 636, 637, 638, 640, 739, 641, 642, 646, 641, 638, 640,
- 639, 641, 738, 637, 639, 643, 638, 643, 642, 644, 645, 647, 0, 644, 640, 642, 646,
- 645, 638, 640, 739, 641, 642, 646, 0, 0, 0, 643, 648, 644, 645, 647, 643, 650,
- 643, 642, 644, 645, 647, 648, 644, 649, 642, 646, 645, 654, 652, 651, 648,
-
- 650, 652, 655, 649, 650, 643, 648, 644, 645, 647, 653, 650, 649, 651, 653, 0, 654,
- 648, 651, 649, 0, 652, 655, 654, 652, 651, 648, 650, 652, 655, 649, 650, 656, 658,
- 653, 0, 659, 653, 657, 649, 651, 653, 657, 654, 661, 651, 660, 656, 652, 655, 660,
- 0, 656, 658, 0, 661, 659, 740, 662, 656, 658, 653, 657, 659, 661, 657, 663, 664,
- 666, 657, 660, 661, 0, 660, 656, 663, 665, 660, 662, 656, 658, 668, 661, 659, 740,
- 662, 663, 664, 666, 657, 665, 661, 0, 663, 664, 666, 665, 660, 667, 669,
-
- 668, 668, 663, 665, 672, 662, 0, 0, 668, 670, 742, 667, 669, 663, 664, 666, 0,
- 665, 667, 669, 743, 674, 670, 665, 672, 667, 669, 668, 668, 670, 671, 672, 671, 673,
- 675, 676, 670, 742, 667, 669, 673, 674, 0, 671, 678, 667, 669, 743, 674, 670, 671,
- 672, 680, 673, 675, 676, 670, 671, 677, 671, 673, 675, 676, 681, 678, 0, 685, 673,
- 674, 679, 671, 678, 680, 677, 0, 0, 679, 671, 677, 680, 673, 675, 676, 681, 684,
- 677, 685, 682, 0, 679, 681, 678, 683, 685, 0, 683, 679, 684, 687, 680,
-
- 677, 682, 682, 679, 684, 677, 0, 682, 744, 0, 681, 684, 683, 685, 682, 686, 679,
- 686, 687, 683, 688, 691, 683, 689, 684, 687, 745, 0, 682, 682, 746, 684, 748, 688,
- 682, 744, 689, 686, 690, 683, 688, 691, 686, 689, 686, 687, 690, 688, 691, 0, 689,
- 692, 693, 745, 694, 692, 693, 746, 690, 748, 688, 0, 0, 689, 686, 690, 0, 688,
- 691, 695, 689, 696, 697, 690, 694, 692, 693, 695, 692, 693, 699, 694, 692, 693, 696,
- 690, 0, 697, 699, 695, 698, 696, 697, 698, 0, 0, 695, 0, 696, 697,
-
- 699, 694, 692, 693, 695, 0, 701, 699, 701, 702, 749, 696, 700, 698, 697, 699, 695,
- 698, 696, 697, 698, 700, 704, 703, 706, 0, 708, 699, 701, 702, 703, 750, 700, 701,
- 705, 701, 702, 749, 705, 700, 698, 0, 704, 703, 706, 0, 708, 709, 700, 704, 703,
- 706, 707, 708, 705, 701, 702, 703, 750, 700, 712, 705, 707, 710, 711, 705, 713, 709,
- 713, 704, 703, 706, 707, 708, 709, 0, 714, 710, 711, 707, 712, 705, 715, 710, 711,
- 714, 751, 712, 713, 707, 710, 711, 752, 713, 709, 713, 714, 716, 715, 707,
-
- 719, 716, 715, 714, 710, 711, 718, 712, 718, 715, 710, 711, 714, 751, 720, 713, 717,
- 720, 721, 752, 719, 716, 723, 714, 716, 715, 718, 719, 716, 715, 722, 717, 724, 718,
- 720, 718, 717, 753, 721, 754, 725, 720, 723, 717, 720, 721, 722, 719, 716, 723, 722,
- 755, 724, 718, 726, 756, 757, 722, 717, 724, 725, 720, 760, 717, 753, 721, 754, 725,
- 726, 723, 761, 763, 766, 722, 726, 769, 770, 722, 755, 724, 772, 726, 756, 757, 777,
- 771, 778, 725, 771, 760, 779, 780, 781, 784, 785, 726, 786, 761, 763, 766,
-
- 787, 726, 769, 770, 788, 790, 791, 772, 792, 793, 794, 777, 771, 778, 795, 771, 796,
- 779, 780, 781, 784, 785, 797, 786, 798, 799, 800, 787, 801, 803, 804, 788, 790, 791,
- 805, 792, 793, 794, 807, 808, 809, 795, 813, 796, 814, 0, 0, 0, 0, 797, 816,
- 798, 799, 800, 815, 801, 803, 804, 817, 818, 819, 805, 813, 898, 814, 807, 808, 809,
- 825, 813, 816, 814, 820, 820, 815, 815, 0, 816, 817, 818, 819, 815, 821, 822, 821,
- 817, 818, 819, 825, 813, 898, 814, 822, 820, 826, 825, 0, 816, 823, 820,
-
- 820, 815, 815, 822, 821, 817, 818, 819, 0, 821, 822, 821, 824, 823, 826, 825, 0,
- 0, 823, 822, 820, 826, 824, 827, 828, 823, 0, 827, 830, 829, 822, 821, 824, 829,
- 828, 830, 0, 831, 832, 824, 823, 826, 0, 827, 828, 823, 900, 901, 830, 824, 827,
- 828, 836, 829, 827, 830, 829, 831, 832, 824, 829, 828, 830, 833, 831, 832, 834, 833,
- 835, 837, 827, 828, 836, 900, 901, 830, 0, 835, 840, 836, 829, 834, 838, 833, 831,
- 832, 834, 902, 835, 837, 833, 839, 840, 834, 833, 835, 837, 838, 840, 836,
-
- 903, 843, 838, 841, 835, 840, 839, 841, 834, 838, 833, 839, 844, 834, 902, 835, 837,
- 847, 839, 840, 842, 843, 842, 841, 838, 840, 845, 903, 843, 838, 841, 849, 844, 839,
- 841, 850, 846, 847, 839, 844, 905, 845, 842, 846, 847, 0, 845, 842, 843, 842, 841,
- 849, 848, 845, 848, 850, 846, 852, 849, 844, 851, 0, 850, 846, 847, 853, 0, 905,
- 845, 842, 846, 854, 848, 845, 855, 851, 856, 852, 849, 848, 851, 848, 850, 846, 852,
- 853, 854, 851, 857, 858, 856, 854, 853, 856, 855, 857, 856, 0, 854, 848,
-
- 0, 855, 851, 856, 852, 859, 860, 851, 857, 858, 861, 862, 853, 854, 863, 857, 858,
- 856, 854, 907, 856, 855, 857, 856, 865, 859, 860, 865, 863, 867, 861, 862, 859, 860,
- 863, 857, 858, 861, 862, 864, 0, 863, 868, 864, 865, 866, 907, 869, 908, 867, 0,
- 865, 859, 860, 865, 863, 867, 861, 862, 872, 866, 863, 868, 864, 870, 866, 864, 869,
- 871, 868, 864, 865, 866, 874, 869, 908, 867, 870, 873, 872, 909, 871, 873, 910, 870,
- 0, 872, 866, 871, 868, 864, 870, 866, 874, 869, 871, 0, 875, 873, 876,
-
- 874, 875, 878, 876, 870, 873, 872, 909, 871, 873, 910, 870, 877, 877, 879, 871, 0,
- 878, 879, 912, 874, 875, 878, 876, 875, 873, 876, 887, 875, 878, 876, 880, 880, 877,
- 879, 0, 0, 882, 881, 877, 877, 879, 881, 883, 878, 879, 912, 887, 875, 878, 876,
- 882, 880, 884, 887, 888, 883, 882, 880, 880, 877, 879, 881, 883, 882, 881, 914, 885,
- 884, 881, 883, 885, 886, 884, 887, 888, 886, 890, 882, 880, 884, 891, 888, 883, 882,
- 889, 889, 918, 920, 881, 883, 885, 0, 914, 885, 884, 886, 890, 885, 886,
-
- 884, 891, 888, 886, 890, 892, 889, 893, 891, 895, 896, 893, 889, 889, 918, 920, 894,
- 921, 885, 892, 894, 927, 928, 886, 890, 892, 929, 931, 891, 895, 896, 893, 892, 889,
- 893, 933, 895, 896, 893, 934, 894, 936, 937, 894, 921, 938, 892, 894, 927, 928, 940,
- 941, 892, 929, 931, 942, 895, 896, 893, 943, 945, 947, 933, 949, 950, 951, 934, 894,
- 936, 937, 952, 957, 938, 958, 960, 961, 962, 940, 941, 963, 0, 0, 942, 0, 1025,
- 962, 943, 945, 947, 964, 949, 950, 951, 965, 960, 961, 962, 952, 957, 963,
-
- 958, 960, 961, 962, 964, 966, 963, 965, 967, 964, 968, 1025, 962, 965, 0, 967, 964,
- 0, 0, 969, 965, 960, 961, 962, 1028, 966, 963, 969, 967, 972, 968, 964, 966, 973,
- 965, 967, 964, 968, 971, 969, 965, 970, 967, 970, 972, 971, 969, 975, 0, 972, 0,
- 1028, 966, 973, 969, 967, 972, 968, 971, 974, 973, 977, 974, 970, 978, 971, 969, 975,
- 970, 1029, 970, 972, 971, 976, 975, 976, 972, 979, 980, 981, 973, 977, 974, 982, 978,
- 971, 974, 984, 977, 974, 970, 978, 982, 985, 975, 976, 1029, 979, 980, 981,
-
- 976, 983, 976, 982, 979, 980, 981, 984, 977, 974, 982, 978, 986, 985, 984, 987, 983,
- 988, 989, 982, 985, 983, 976, 0, 979, 980, 981, 990, 983, 991, 982, 989, 986, 991,
- 984, 987, 0, 988, 989, 986, 985, 992, 987, 983, 988, 989, 994, 990, 983, 993, 995,
- 996, 997, 991, 990, 996, 991, 995, 989, 986, 991, 992, 987, 993, 988, 989, 994, 999,
- 992, 993, 995, 998, 997, 994, 990, 996, 993, 995, 996, 997, 991, 1000, 996, 1001, 995,
- 0, 998, 999, 992, 1032, 993, 998, 1006, 994, 999, 1004, 993, 995, 998, 997,
-
- 0, 1000, 996, 1001, 1002, 1003, 1002, 1003, 1000, 1004, 1001, 0, 1006, 998, 999, 1004, 1032,
- 1008, 998, 1006, 1007, 1005, 1004, 1010, 0, 1033, 1002, 1003, 1000, 1007, 1001, 1002, 1003, 1002,
- 1003, 1005, 1004, 1008, 1009, 1006, 1007, 1005, 1004, 1010, 1008, 1009, 1015, 1007, 1005, 1038, 1010,
- 1011, 1033, 1002, 1003, 1011, 1007, 1012, 1009, 1014, 1016, 1012, 1005, 1017, 1008, 1009, 1015, 1007,
- 1005, 1013, 1010, 1013, 1009, 1015, 1014, 1011, 1038, 1018, 1011, 1014, 1016, 1012, 1011, 1017, 1012,
- 1009, 1014, 1016, 1012, 0, 1017, 1013, 1019, 1015, 1039, 1042, 1013, 1018, 1013, 1043,
-
- 1046, 1014, 1011, 1047, 1018, 1019, 1014, 1016, 1012, 1020, 1017, 1050, 1019, 1052, 1053, 1054, 1020,
- 1055, 1013, 1019, 0, 1039, 1042, 0, 1018, 1059, 1043, 1046, 1060, 1020, 1047, 1061, 1019, 1062,
- 1063, 0, 1020, 1064, 1050, 1019, 1052, 1053, 1054, 1020, 1055, 1059, 1065, 1067, 1060, 1068, 1069,
- 1061, 1059, 1062, 1063, 1060, 1020, 1064, 1061, 1066, 1062, 1063, 1071, 1066, 1064, 1096, 1065, 1067,
- 1072, 1068, 1069, 1073, 1059, 1065, 1067, 1060, 1068, 1069, 1061, 1074, 1062, 1063, 1071, 1066, 1064,
- 1070, 1066, 1077, 1072, 1071, 1066, 1073, 1096, 1065, 1067, 1072, 1068, 1069, 1073, 1074,
-
- 1070, 1075, 1078, 1075, 1076, 1070, 1074, 1077, 1098, 1071, 1066, 1076, 1070, 0, 1077, 1072, 1080,
- 1081, 1073, 1082, 1079, 0, 1078, 1075, 1076, 1085, 1074, 1070, 1075, 1078, 1075, 1076, 1070, 1079,
- 1077, 1098, 1080, 1081, 1076, 1082, 1079, 1083, 1084, 1080, 1081, 1085, 1082, 1079, 1084, 1078, 1075,
- 1076, 1085, 1086, 1101, 0, 1083, 1088, 1089, 1087, 1079, 1083, 1084, 1080, 1081, 0, 1082, 1079,
- 1083, 1084, 1104, 1089, 1085, 1086, 1087, 1084, 1091, 1088, 1089, 1087, 1086, 1101, 1090, 1083, 1088,
- 1089, 1087, 1092, 1083, 1084, 1090, 1091, 1093, 1094, 1108, 1109, 1091, 1104, 1089, 1110,
-
- 1086, 1087, 1090, 1091, 1088, 1089, 1087, 1092, 1114, 1090, 1115, 1113, 1093, 1094, 1092, 0, 1116,
- 1090, 1091, 1093, 1094, 1108, 1109, 1091, 1113, 1115, 1110, 1117, 1114, 1090, 1115, 1113, 0, 1118,
- 1092, 1114, 1116, 1115, 1113, 1093, 1094, 1119, 1120, 1116, 1122, 1123, 1121, 1117, 1118, 0, 1124,
- 1113, 1115, 1118, 1117, 1114, 1125, 1115, 1113, 1121, 1118, 1119, 1120, 1116, 1122, 1123, 1121, 1126,
- 1119, 1120, 1124, 1122, 1123, 1121, 1117, 1118, 1125, 1124, 1126, 1128, 1118, 1127, 1131, 1125, 1133,
- 1127, 1121, 1126, 1119, 1120, 1136, 1122, 1123, 1121, 1126, 1138, 1139, 1124, 1140, 1128,
-
- 0, 1127, 1142, 1125, 1143, 1126, 1128, 1141, 1127, 1131, 1149, 1133, 1127, 1146, 1126, 1151, 1139,
- 1136, 1140, 1152, 1138, 1141, 1142, 1139, 1143, 1140, 1128, 1141, 1127, 1142, 0, 1143, 1144, 1153,
- 1141, 1156, 1159, 1149, 1160, 1152, 1138, 1154, 1144, 1139, 1162, 1140, 1152, 1138, 1141, 1142, 1154,
- 1143, 1144, 1153, 1141, 1146, 1164, 1151, 1160, 1144, 1153, 1154, 1156, 1159, 1166, 1160, 1152, 1138,
- 1154, 1144, 1168, 1162, 1170, 1172, 1174, 1176, 1178, 1154, 1180, 1144, 1153, 0, 1146, 1164, 1151,
- 1160, 0, 0, 1154, 0, 0, 1166, 0, 0, 0, 0, 0, 1168, 0, 1170,
-
- 1172, 1174, 1176, 1178, 0, 1180, 1192, 1192, 1192, 1192, 1192, 1193, 0, 0, 1193, 1193, 1195,
- 1195, 1195, 0, 1195, 1196, 0, 1196, 1196, 1196, 1197, 0, 1197, 1197, 1197, 1198, 0, 1198,
- 1198, 1198, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191,
- 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191,
- 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191,
- 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191,
-
- 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191, 1191};
+ 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 189, 189, 189, 189, 189,
+
+ 189, 189, 189, 189, 189, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 204,
+ 205, 211, 212, 299, 205, 300, 204, 301, 0, 302, 0, 0, 212, 204, 214, 214, 0,
+ 211, 303, 204, 0, 211, 212, 213, 205, 0, 204, 205, 211, 212, 299, 205, 300, 204,
+ 301, 214, 302, 213, 226, 212, 204, 214, 214, 213, 211, 303, 204, 226, 211, 212, 213,
+ 205, 206, 304, 215, 306, 215, 307, 226, 206, 206, 206, 214, 206, 213, 226, 308, 0,
+ 0, 0, 213, 309, 206, 0, 226, 0, 215, 0, 0, 206, 304, 215, 306,
+
+ 215, 307, 226, 206, 206, 206, 217, 206, 0, 305, 308, 218, 220, 217, 0, 309, 206,
+ 209, 218, 209, 215, 209, 209, 0, 305, 220, 217, 219, 209, 0, 310, 218, 220, 217,
+ 311, 209, 305, 219, 218, 220, 217, 209, 0, 0, 209, 218, 209, 219, 209, 209, 221,
+ 305, 220, 217, 219, 209, 222, 310, 218, 220, 221, 311, 209, 222, 219, 227, 313, 0,
+ 209, 216, 221, 216, 0, 0, 219, 216, 222, 221, 314, 223, 315, 227, 216, 222, 224,
+ 227, 216, 221, 0, 223, 222, 216, 227, 313, 224, 228, 216, 221, 216, 223,
+
+ 225, 0, 216, 222, 224, 314, 223, 315, 227, 216, 0, 224, 227, 216, 225, 228, 223,
+ 225, 216, 229, 225, 224, 228, 229, 0, 230, 223, 225, 232, 233, 0, 224, 316, 233,
+ 234, 317, 230, 232, 318, 229, 319, 225, 228, 320, 225, 230, 229, 225, 232, 233, 229,
+ 246, 230, 321, 234, 232, 233, 235, 235, 316, 233, 234, 317, 230, 232, 318, 229, 319,
+ 0, 322, 320, 246, 230, 231, 231, 232, 233, 235, 246, 238, 321, 234, 239, 231, 235,
+ 235, 323, 236, 231, 231, 0, 239, 238, 236, 231, 236, 322, 324, 246, 238,
+
+ 231, 231, 239, 325, 235, 326, 238, 236, 240, 239, 231, 0, 327, 323, 236, 231, 231,
+ 240, 239, 238, 236, 231, 236, 237, 324, 237, 238, 237, 240, 239, 325, 241, 326, 243,
+ 236, 240, 237, 328, 244, 327, 243, 242, 244, 0, 240, 0, 241, 237, 0, 0, 237,
+ 241, 237, 243, 237, 240, 242, 248, 241, 242, 243, 242, 244, 237, 328, 244, 0, 243,
+ 242, 244, 245, 245, 248, 241, 237, 247, 247, 248, 241, 0, 243, 249, 0, 242, 248,
+ 329, 242, 250, 242, 244, 245, 250, 0, 253, 249, 253, 247, 245, 245, 248,
+
+ 0, 249, 247, 247, 248, 251, 252, 0, 249, 251, 252, 250, 329, 253, 250, 0, 0,
+ 245, 250, 252, 253, 249, 253, 247, 252, 251, 330, 254, 249, 0, 252, 0, 251, 252,
+ 254, 260, 251, 252, 250, 255, 253, 256, 255, 256, 0, 258, 252, 254, 260, 258, 256,
+ 252, 251, 330, 254, 260, 259, 252, 256, 255, 259, 254, 260, 256, 0, 258, 255, 257,
+ 256, 255, 256, 257, 258, 331, 254, 260, 258, 256, 0, 332, 259, 257, 260, 259, 264,
+ 256, 255, 259, 0, 261, 256, 257, 258, 261, 257, 263, 262, 265, 257, 262,
+
+ 331, 266, 0, 263, 264, 265, 332, 259, 257, 333, 0, 264, 266, 261, 263, 263, 261,
+ 265, 257, 262, 261, 266, 263, 262, 265, 267, 262, 0, 266, 267, 263, 264, 265, 269,
+ 269, 334, 333, 273, 0, 266, 261, 263, 263, 268, 265, 267, 262, 268, 266, 267, 268,
+ 270, 267, 0, 269, 270, 267, 273, 335, 0, 269, 269, 334, 268, 273, 275, 271, 272,
+ 274, 275, 268, 270, 267, 271, 268, 337, 267, 268, 270, 271, 272, 269, 270, 274, 273,
+ 335, 271, 272, 274, 275, 268, 0, 275, 271, 272, 274, 275, 0, 270, 0,
+
+ 271, 336, 337, 338, 340, 341, 271, 272, 342, 343, 274, 336, 345, 271, 272, 274, 275,
+ 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 292, 336, 292, 338, 340, 341, 344,
+ 346, 342, 343, 347, 336, 345, 348, 349, 351, 344, 292, 352, 353, 354, 355, 356, 357,
+ 358, 359, 360, 292, 361, 292, 362, 363, 364, 344, 346, 365, 366, 347, 367, 368, 348,
+ 349, 351, 344, 292, 352, 353, 354, 355, 356, 357, 358, 359, 360, 370, 361, 371, 362,
+ 363, 364, 372, 373, 365, 366, 374, 367, 368, 375, 376, 377, 378, 379, 380,
+
+ 382, 384, 383, 384, 385, 386, 387, 388, 370, 389, 371, 383, 390, 391, 372, 373, 392,
+ 393, 374, 394, 392, 375, 376, 377, 378, 379, 380, 382, 384, 383, 384, 385, 386, 387,
+ 388, 0, 389, 514, 383, 390, 391, 398, 399, 392, 393, 400, 394, 392, 397, 397, 397,
+ 397, 397, 397, 397, 397, 397, 397, 401, 402, 403, 398, 399, 405, 514, 400, 402, 404,
+ 398, 399, 0, 404, 400, 515, 0, 516, 0, 407, 401, 402, 403, 407, 0, 405, 517,
+ 401, 402, 403, 398, 399, 405, 404, 400, 402, 404, 408, 409, 407, 404, 406,
+
+ 515, 412, 516, 409, 407, 401, 402, 403, 407, 406, 405, 517, 410, 408, 410, 408, 409,
+ 412, 404, 406, 0, 412, 408, 409, 407, 411, 406, 413, 412, 410, 409, 415, 0, 518,
+ 410, 413, 406, 0, 411, 410, 408, 410, 408, 409, 412, 411, 406, 413, 412, 414, 0,
+ 415, 411, 416, 413, 418, 410, 416, 415, 417, 518, 410, 413, 420, 414, 411, 519, 419,
+ 0, 414, 420, 0, 411, 417, 413, 418, 414, 416, 415, 417, 416, 419, 418, 420, 416,
+ 421, 417, 419, 520, 421, 420, 414, 0, 519, 419, 422, 414, 420, 423, 422,
+
+ 417, 424, 418, 424, 416, 421, 417, 425, 419, 426, 420, 0, 421, 423, 419, 520, 421,
+ 0, 423, 422, 0, 429, 422, 424, 426, 423, 422, 425, 424, 426, 424, 0, 421, 428,
+ 425, 427, 426, 430, 427, 431, 423, 429, 0, 431, 428, 423, 422, 432, 429, 522, 424,
+ 426, 0, 428, 425, 434, 426, 430, 427, 433, 428, 433, 427, 431, 430, 427, 431, 432,
+ 429, 434, 431, 428, 435, 437, 432, 434, 522, 438, 436, 435, 428, 433, 434, 525, 430,
+ 427, 433, 437, 433, 526, 431, 436, 435, 437, 432, 527, 434, 438, 436, 435,
+
+ 437, 440, 434, 439, 438, 436, 435, 439, 433, 440, 525, 528, 530, 0, 437, 441, 526,
+ 531, 436, 435, 437, 440, 527, 441, 438, 436, 442, 439, 440, 443, 439, 444, 443, 442,
+ 439, 441, 440, 445, 528, 530, 445, 446, 441, 0, 531, 446, 442, 444, 440, 0, 441,
+ 444, 443, 442, 439, 447, 443, 445, 444, 443, 442, 446, 441, 448, 445, 449, 451, 445,
+ 446, 452, 447, 449, 446, 442, 444, 447, 448, 0, 444, 443, 453, 450, 447, 448, 445,
+ 449, 451, 0, 446, 452, 448, 450, 449, 451, 454, 455, 452, 447, 449, 0,
+
+ 453, 450, 447, 448, 454, 457, 532, 453, 450, 458, 448, 455, 449, 451, 454, 455, 452,
+ 456, 450, 459, 0, 454, 455, 0, 458, 457, 456, 453, 450, 458, 460, 454, 457, 532,
+ 460, 534, 458, 456, 455, 459, 535, 454, 455, 536, 456, 462, 459, 461, 461, 462, 460,
+ 458, 457, 456, 0, 462, 458, 460, 463, 0, 463, 460, 534, 464, 456, 464, 459, 535,
+ 461, 462, 536, 466, 462, 465, 461, 461, 462, 460, 463, 468, 469, 467, 462, 464, 469,
+ 463, 466, 463, 0, 465, 464, 466, 464, 465, 473, 461, 462, 467, 466, 468,
+
+ 465, 467, 470, 472, 469, 463, 468, 469, 467, 470, 464, 469, 471, 466, 473, 474, 465,
+ 472, 466, 0, 465, 473, 470, 472, 467, 471, 468, 0, 467, 470, 472, 469, 471, 475,
+ 476, 474, 470, 475, 0, 471, 0, 473, 474, 476, 472, 477, 479, 478, 0, 470, 472,
+ 537, 471, 479, 476, 478, 477, 475, 0, 471, 475, 476, 474, 0, 475, 477, 479, 478,
+ 0, 0, 476, 480, 477, 479, 478, 480, 481, 484, 537, 483, 479, 476, 478, 477, 475,
+ 482, 483, 486, 482, 487, 485, 481, 477, 479, 478, 480, 481, 484, 480, 483,
+
+ 485, 0, 480, 481, 484, 482, 483, 486, 488, 487, 485, 489, 482, 483, 486, 482, 487,
+ 485, 481, 490, 538, 488, 480, 481, 484, 0, 483, 485, 488, 489, 490, 489, 482, 491,
+ 486, 488, 487, 485, 489, 490, 491, 495, 494, 0, 492, 539, 490, 538, 488, 494, 493,
+ 0, 495, 491, 498, 488, 489, 490, 489, 492, 491, 495, 494, 496, 492, 493, 490, 491,
+ 495, 494, 493, 492, 539, 497, 498, 499, 494, 493, 496, 495, 491, 498, 497, 496, 503,
+ 0, 492, 500, 495, 494, 496, 492, 493, 497, 503, 499, 500, 493, 509, 501,
+
+ 497, 498, 499, 0, 503, 496, 0, 500, 501, 497, 496, 503, 504, 509, 500, 540, 504,
+ 502, 509, 501, 497, 503, 499, 500, 541, 509, 501, 502, 507, 502, 507, 503, 505, 506,
+ 500, 501, 504, 502, 0, 504, 509, 505, 540, 504, 502, 509, 501, 508, 0, 506, 507,
+ 541, 505, 506, 502, 507, 502, 507, 511, 505, 506, 511, 510, 504, 502, 508, 542, 508,
+ 505, 545, 512, 510, 546, 547, 508, 510, 506, 507, 511, 505, 506, 548, 510, 512, 549,
+ 511, 550, 551, 511, 510, 512, 553, 508, 542, 508, 554, 545, 512, 510, 546,
+
+ 547, 557, 510, 558, 560, 511, 562, 563, 548, 510, 512, 549, 564, 550, 551, 565, 566,
+ 512, 553, 567, 570, 568, 554, 574, 576, 577, 579, 581, 557, 582, 558, 560, 568, 562,
+ 563, 580, 580, 583, 585, 564, 586, 587, 565, 566, 588, 589, 567, 570, 568, 591, 574,
+ 576, 577, 579, 581, 592, 582, 594, 595, 568, 596, 597, 580, 580, 583, 585, 598, 586,
+ 587, 599, 600, 588, 589, 601, 604, 605, 591, 606, 607, 608, 611, 612, 592, 614, 594,
+ 595, 615, 596, 597, 616, 617, 618, 619, 598, 620, 621, 599, 600, 623, 625,
+
+ 601, 604, 605, 627, 606, 607, 608, 611, 612, 631, 614, 629, 632, 615, 630, 633, 616,
+ 617, 618, 619, 635, 620, 621, 636, 629, 623, 625, 630, 633, 631, 627, 629, 632, 638,
+ 630, 633, 631, 634, 629, 632, 635, 630, 633, 636, 637, 639, 634, 635, 637, 746, 636,
+ 629, 0, 638, 630, 633, 631, 634, 629, 632, 638, 630, 633, 748, 634, 639, 644, 635,
+ 637, 641, 636, 637, 639, 634, 640, 637, 746, 641, 640, 642, 638, 0, 645, 642, 634,
+ 0, 644, 643, 648, 641, 748, 0, 639, 644, 0, 637, 641, 645, 640, 642,
+
+ 643, 640, 645, 646, 641, 640, 642, 643, 648, 645, 642, 0, 649, 644, 643, 648, 641,
+ 646, 647, 649, 650, 651, 0, 646, 645, 640, 642, 643, 650, 645, 646, 750, 649, 647,
+ 643, 648, 652, 651, 647, 649, 650, 651, 751, 0, 646, 647, 649, 650, 651, 653, 646,
+ 652, 655, 653, 655, 650, 652, 654, 750, 649, 647, 0, 656, 652, 651, 647, 656, 650,
+ 651, 751, 654, 658, 0, 653, 655, 659, 653, 654, 652, 655, 653, 655, 656, 652, 654,
+ 657, 752, 753, 660, 656, 662, 658, 657, 656, 0, 659, 661, 654, 658, 660,
+
+ 653, 655, 659, 0, 654, 657, 662, 661, 660, 656, 662, 666, 657, 752, 753, 660, 661,
+ 662, 658, 657, 664, 663, 659, 661, 664, 665, 660, 0, 754, 665, 667, 666, 657, 662,
+ 661, 660, 663, 662, 666, 668, 755, 663, 670, 661, 664, 671, 0, 664, 663, 665, 667,
+ 664, 665, 674, 668, 754, 665, 667, 666, 668, 669, 756, 670, 663, 669, 671, 668, 755,
+ 663, 670, 672, 664, 671, 674, 672, 0, 665, 667, 676, 673, 674, 668, 0, 678, 669,
+ 758, 668, 669, 756, 670, 673, 669, 671, 675, 672, 677, 0, 672, 676, 673,
+
+ 674, 672, 675, 678, 680, 676, 673, 0, 0, 677, 678, 669, 758, 675, 679, 677, 0,
+ 673, 0, 681, 675, 672, 677, 680, 680, 676, 673, 679, 0, 675, 678, 680, 681, 684,
+ 679, 682, 677, 685, 686, 681, 675, 679, 677, 683, 685, 683, 681, 687, 682, 688, 680,
+ 680, 0, 684, 679, 682, 683, 685, 686, 681, 684, 679, 682, 683, 685, 686, 681, 687,
+ 759, 688, 683, 685, 683, 689, 687, 682, 688, 690, 692, 691, 684, 693, 682, 683, 685,
+ 686, 691, 694, 689, 0, 683, 0, 699, 689, 687, 759, 688, 690, 692, 691,
+
+ 689, 693, 695, 0, 690, 692, 691, 694, 693, 0, 697, 0, 699, 691, 694, 689, 695,
+ 695, 696, 699, 689, 696, 695, 697, 690, 692, 691, 698, 693, 695, 697, 698, 701, 700,
+ 694, 700, 705, 697, 696, 699, 0, 0, 0, 695, 695, 696, 0, 698, 696, 695, 697,
+ 702, 701, 703, 698, 700, 705, 697, 698, 701, 700, 704, 700, 705, 702, 696, 703, 708,
+ 706, 704, 0, 702, 706, 703, 698, 0, 0, 0, 702, 701, 703, 704, 700, 705, 0,
+ 707, 711, 708, 704, 707, 0, 702, 706, 703, 708, 706, 704, 709, 702, 706,
+
+ 703, 711, 710, 713, 712, 709, 711, 712, 704, 707, 0, 713, 707, 711, 708, 710, 707,
+ 709, 715, 706, 715, 716, 710, 713, 709, 0, 714, 712, 711, 710, 713, 712, 709, 711,
+ 712, 714, 707, 717, 713, 718, 715, 716, 710, 720, 709, 715, 714, 715, 716, 710, 713,
+ 719, 721, 714, 712, 722, 721, 717, 719, 718, 0, 724, 714, 720, 717, 0, 718, 715,
+ 716, 725, 720, 719, 721, 714, 760, 722, 761, 723, 719, 721, 726, 724, 722, 721, 717,
+ 719, 718, 723, 724, 725, 720, 727, 728, 729, 726, 729, 725, 723, 719, 721,
+
+ 726, 760, 722, 761, 723, 727, 0, 726, 724, 731, 0, 727, 728, 733, 723, 729, 725,
+ 730, 727, 728, 729, 726, 729, 762, 723, 731, 730, 726, 733, 731, 732, 735, 727, 733,
+ 732, 0, 731, 730, 727, 728, 733, 0, 729, 734, 730, 734, 736, 737, 0, 736, 762,
+ 735, 731, 730, 732, 733, 731, 732, 735, 738, 733, 732, 739, 734, 730, 740, 736, 737,
+ 741, 764, 734, 765, 734, 736, 737, 738, 736, 742, 735, 738, 766, 732, 739, 767, 768,
+ 740, 738, 769, 741, 739, 734, 742, 740, 736, 737, 741, 764, 742, 765, 770,
+
+ 771, 772, 738, 773, 742, 776, 738, 766, 777, 739, 767, 768, 740, 779, 769, 741, 782,
+ 785, 742, 786, 787, 788, 791, 787, 742, 794, 770, 771, 772, 795, 773, 796, 776, 797,
+ 798, 777, 799, 802, 803, 804, 779, 805, 806, 782, 785, 808, 786, 787, 788, 791, 787,
+ 809, 794, 810, 811, 813, 795, 814, 796, 815, 797, 798, 816, 799, 802, 803, 804, 817,
+ 805, 806, 818, 819, 808, 820, 822, 823, 824, 826, 809, 827, 810, 811, 813, 828, 814,
+ 832, 815, 833, 834, 816, 920, 835, 0, 836, 817, 0, 837, 818, 819, 838,
+
+ 820, 822, 823, 824, 826, 832, 827, 833, 834, 834, 828, 835, 832, 836, 833, 834, 837,
+ 920, 835, 838, 836, 839, 839, 837, 841, 840, 838, 840, 0, 922, 842, 0, 832, 841,
+ 833, 834, 834, 923, 835, 844, 836, 845, 839, 837, 841, 842, 838, 840, 839, 839, 842,
+ 841, 840, 843, 840, 847, 922, 842, 846, 844, 841, 845, 846, 843, 923, 847, 844, 850,
+ 845, 839, 0, 841, 842, 843, 840, 847, 0, 842, 846, 848, 843, 851, 847, 848, 849,
+ 846, 844, 850, 845, 846, 843, 849, 847, 852, 850, 0, 855, 852, 0, 856,
+
+ 843, 851, 847, 848, 849, 846, 848, 853, 851, 0, 848, 849, 854, 852, 850, 924, 855,
+ 925, 849, 856, 852, 854, 853, 855, 852, 862, 856, 853, 851, 0, 848, 849, 854, 859,
+ 853, 857, 858, 860, 0, 854, 852, 860, 924, 855, 925, 862, 856, 859, 854, 853, 857,
+ 858, 862, 859, 853, 857, 858, 860, 0, 854, 859, 863, 857, 858, 860, 861, 865, 861,
+ 860, 866, 864, 868, 862, 865, 859, 869, 0, 857, 858, 927, 859, 863, 857, 858, 860,
+ 864, 865, 861, 863, 866, 864, 868, 861, 865, 861, 869, 866, 864, 868, 867,
+
+ 865, 867, 869, 871, 872, 870, 927, 874, 863, 0, 0, 0, 864, 865, 861, 0, 866,
+ 864, 868, 867, 870, 873, 869, 871, 872, 870, 867, 874, 867, 0, 871, 872, 870, 0,
+ 874, 876, 873, 877, 878, 875, 929, 873, 876, 0, 0, 0, 867, 870, 873, 930, 871,
+ 872, 870, 875, 874, 876, 875, 877, 878, 875, 879, 879, 876, 873, 877, 878, 875, 929,
+ 873, 876, 880, 881, 882, 0, 931, 883, 930, 0, 932, 0, 875, 879, 876, 875, 877,
+ 878, 875, 879, 879, 883, 880, 881, 882, 0, 885, 883, 884, 880, 881, 882,
+
+ 884, 931, 883, 0, 886, 932, 888, 886, 879, 885, 887, 934, 889, 0, 885, 890, 883,
+ 880, 881, 882, 884, 885, 883, 884, 886, 887, 888, 884, 893, 0, 887, 886, 889, 888,
+ 886, 890, 885, 887, 934, 889, 894, 885, 890, 891, 894, 892, 895, 884, 893, 936, 896,
+ 886, 887, 888, 896, 893, 891, 887, 892, 889, 894, 0, 890, 891, 897, 892, 895, 894,
+ 897, 899, 891, 894, 892, 895, 896, 893, 936, 896, 898, 898, 900, 896, 901, 891, 899,
+ 892, 901, 894, 897, 899, 891, 897, 892, 895, 0, 897, 899, 902, 902, 898,
+
+ 900, 896, 901, 904, 903, 898, 898, 900, 903, 901, 0, 899, 0, 901, 0, 897, 899,
+ 904, 902, 905, 909, 906, 910, 904, 902, 902, 898, 900, 903, 901, 904, 903, 905, 907,
+ 908, 903, 906, 907, 908, 905, 909, 906, 910, 0, 904, 902, 905, 909, 906, 910, 904,
+ 911, 911, 912, 913, 903, 914, 907, 908, 905, 907, 908, 940, 906, 907, 908, 905, 909,
+ 906, 910, 914, 915, 911, 912, 913, 915, 914, 942, 911, 911, 912, 913, 916, 914, 907,
+ 908, 916, 917, 918, 940, 943, 949, 950, 951, 954, 915, 956, 914, 915, 911,
+
+ 912, 913, 915, 914, 942, 958, 916, 917, 918, 916, 960, 961, 962, 916, 917, 918, 964,
+ 943, 949, 950, 951, 954, 915, 956, 965, 966, 967, 969, 971, 973, 974, 975, 958, 916,
+ 917, 918, 976, 960, 961, 962, 981, 982, 984, 964, 985, 987, 988, 0, 0, 0, 986,
+ 965, 966, 967, 969, 971, 973, 974, 975, 986, 989, 988, 984, 976, 985, 987, 988, 981,
+ 982, 984, 986, 985, 987, 988, 989, 990, 991, 986, 992, 0, 989, 0, 994, 991, 994,
+ 0, 986, 989, 988, 984, 0, 985, 987, 988, 1051, 990, 991, 986, 992, 995,
+
+ 993, 989, 990, 991, 994, 992, 995, 989, 993, 994, 991, 994, 997, 998, 996, 0, 998,
+ 999, 1001, 995, 993, 1051, 990, 991, 0, 992, 995, 993, 1000, 996, 1000, 994, 997, 995,
+ 996, 993, 998, 999, 1001, 997, 998, 996, 1002, 998, 999, 1001, 995, 993, 1003, 0, 1000,
+ 1004, 1005, 1008, 0, 1000, 996, 1000, 0, 997, 0, 996, 1002, 998, 999, 1001, 1007, 1006,
+ 1003, 1002, 1009, 1004, 1005, 1008, 0, 1003, 1006, 1000, 1004, 1005, 1008, 1007, 1010, 0, 1011,
+ 1012, 1007, 1006, 1054, 1002, 1009, 0, 0, 1007, 1006, 1003, 1014, 1009, 1004, 1005,
+
+ 1008, 1016, 1010, 1006, 1011, 1012, 1013, 1017, 1007, 1010, 1018, 1011, 1012, 1007, 1006, 1054, 1014,
+ 1009, 1015, 1013, 1019, 1016, 1015, 1014, 1018, 0, 1013, 1017, 1016, 1010, 1018, 1011, 1012, 1013,
+ 1017, 1021, 1055, 1018, 1023, 1058, 1019, 1059, 1015, 1014, 1025, 1015, 1013, 1019, 1016, 1015, 1026,
+ 1018, 1020, 1013, 1017, 1021, 1022, 1018, 1023, 1020, 1022, 1024, 1021, 1055, 1025, 1023, 1058, 1019,
+ 1059, 1015, 1026, 1025, 1020, 1027, 1064, 1065, 1024, 1026, 1068, 1020, 1022, 1024, 1021, 1022, 1030,
+ 1023, 1020, 1022, 1024, 0, 1028, 1025, 1028, 1027, 1029, 1031, 1029, 1026, 1030, 1020,
+
+ 1027, 1064, 1065, 1024, 1030, 1068, 1032, 1022, 1024, 1031, 1034, 1030, 1028, 0, 1036, 1031, 1029,
+ 1028, 1033, 1028, 1027, 1029, 1031, 1029, 1069, 1030, 1032, 1033, 1035, 1072, 1034, 1030, 1041, 1032,
+ 1036, 1035, 1031, 1034, 1033, 1028, 1037, 1036, 1031, 1029, 1037, 1033, 1038, 1039, 1035, 1039, 1038,
+ 1069, 1041, 1032, 1033, 1035, 1072, 1034, 0, 1041, 1042, 1036, 1035, 1040, 1037, 1033, 1043, 1037,
+ 1044, 1039, 1038, 1037, 1045, 1038, 1039, 1035, 1039, 1038, 1040, 1041, 1042, 1073, 1046, 1040, 1076,
+ 1045, 1043, 1042, 1044, 1046, 1040, 1037, 1045, 1043, 1078, 1044, 1039, 1038, 1079, 1045,
+
+ 1080, 1081, 1046, 1085, 1086, 1040, 1087, 1042, 1073, 1046, 1040, 1076, 1045, 1043, 1088, 1044, 1046,
+ 1089, 1090, 1045, 1091, 1078, 1093, 1085, 1086, 1079, 1087, 1080, 1081, 1046, 1085, 1086, 1092, 1087,
+ 1088, 1094, 1092, 1089, 1090, 0, 1091, 1088, 1093, 0, 1089, 1090, 1095, 1091, 1097, 1093, 1085,
+ 1086, 1122, 1087, 1098, 1094, 1092, 1096, 1099, 1092, 1100, 1088, 1094, 1092, 1089, 1090, 1095, 1091,
+ 1097, 1093, 1103, 1104, 1096, 1095, 1098, 1097, 1124, 1096, 1099, 1122, 1100, 1098, 1094, 1092, 1096,
+ 1099, 1101, 1100, 1101, 1102, 1103, 1104, 0, 1095, 1106, 1097, 1102, 1103, 1104, 1096,
+
+ 1107, 1098, 1108, 1124, 1096, 1099, 1105, 1100, 1101, 1102, 1109, 1111, 1112, 1101, 1106, 1101, 1102,
+ 1103, 1104, 1105, 1107, 1106, 1108, 1102, 1114, 1109, 1105, 1107, 1110, 1108, 1109, 1111, 1112, 1105,
+ 1110, 1101, 1102, 1109, 1111, 1112, 1127, 1106, 1116, 1115, 1114, 1113, 1105, 1107, 1110, 1108, 1116,
+ 1114, 1109, 1105, 1118, 1110, 1115, 1109, 1111, 1112, 1113, 1110, 1116, 1115, 1117, 1113, 1119, 1127,
+ 1120, 1116, 1115, 1114, 1113, 1130, 1118, 1110, 1134, 1116, 1135, 1117, 1136, 1118, 0, 1115, 1117,
+ 0, 1119, 1113, 1120, 1116, 1115, 1117, 1113, 1119, 1140, 1120, 1139, 1141, 1142, 1143,
+
+ 1130, 1118, 1145, 1134, 1157, 1135, 1117, 1136, 0, 1139, 1146, 1117, 1141, 1119, 1140, 1120, 1139,
+ 1141, 1142, 1143, 1144, 1140, 1145, 1139, 1141, 1142, 1143, 0, 1148, 1145, 1146, 1157, 1149, 1150,
+ 1151, 1144, 1139, 1146, 1147, 1141, 1144, 1140, 1159, 1139, 1141, 1142, 1143, 1144, 1148, 1145, 1154,
+ 1147, 1149, 1150, 1151, 1148, 0, 1146, 1147, 1149, 1150, 1151, 1144, 1152, 1153, 1147, 1162, 1144,
+ 1153, 1159, 1154, 1164, 1164, 1175, 1152, 1148, 1182, 1154, 1147, 1149, 1150, 1151, 1165, 1152, 1153,
+ 1147, 1166, 0, 1172, 1172, 1152, 1153, 1168, 1162, 1167, 1153, 1164, 1154, 1169, 1185,
+
+ 1175, 1152, 1165, 1182, 1177, 1177, 1166, 1170, 1167, 1165, 1152, 1153, 1168, 1166, 1167, 0, 1164,
+ 1170, 1169, 1168, 1178, 1167, 1179, 1164, 0, 1169, 1185, 1170, 1180, 1165, 1172, 1186, 1188, 1166,
+ 1170, 1167, 1190, 1180, 1192, 1168, 1178, 1167, 1179, 1164, 1170, 1169, 1177, 1178, 1180, 1179, 1194,
+ 1186, 1196, 1198, 1170, 1180, 1200, 1172, 1186, 1188, 1202, 1204, 1206, 1190, 1180, 1192, 0, 1178,
+ 0, 1179, 0, 0, 0, 1177, 0, 1180, 0, 1194, 1186, 1196, 1198, 0, 0, 1200, 0,
+ 0, 0, 1202, 1204, 1206, 1218, 1218, 1218, 1218, 1218, 1219, 0, 0, 1219, 1219,
+
+ 1221, 1221, 1221, 0, 1221, 1222, 0, 1222, 1222, 1222, 1223, 0, 1223, 1223, 1223, 1224, 0,
+ 1224, 1224, 1224, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217,
+ 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217,
+ 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217,
+ 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217,
+ 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217
+
+};
/* The intent behind this definition is that it'll catch
* any uses of REJECT which flex missed.
@@ -1546,7 +1563,7 @@ static const flex_int16_t yy_chk[4814] = {
static thread_local std::stringstream strbuf;
-#line 2133 "flex_lexer.cpp"
+#line 2160 "flex_lexer.cpp"
/***************************
** Section 2: Rules
@@ -1560,7 +1577,7 @@ static thread_local std::stringstream strbuf;
/***************************
** Section 3: Rules
***************************/
-#line 2147 "flex_lexer.cpp"
+#line 2174 "flex_lexer.cpp"
#define INITIAL 0
#define singlequotedstring 1
@@ -1829,7 +1846,7 @@ YY_DECL {
{
#line 57 "flex_lexer.l"
-#line 2434 "flex_lexer.cpp"
+#line 2461 "flex_lexer.cpp"
while (/*CONSTCOND*/ 1) /* loops until end-of-file is reached */
{
@@ -1853,11 +1870,11 @@ YY_DECL {
}
while (yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state) {
yy_current_state = (int)yy_def[yy_current_state];
- if (yy_current_state >= 1192) yy_c = yy_meta[yy_c];
+ if (yy_current_state >= 1218) yy_c = yy_meta[yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
++yy_cp;
- } while (yy_current_state != 1191);
+ } while (yy_current_state != 1217);
yy_cp = yyg->yy_last_accepting_cpos;
yy_current_state = yyg->yy_last_accepting_state;
@@ -2536,146 +2553,172 @@ YY_DECL {
case 132:
YY_RULE_SETUP
#line 192 "flex_lexer.l"
- TOKEN(SECOND)
+ TOKEN(NO)
YY_BREAK
case 133:
YY_RULE_SETUP
#line 193 "flex_lexer.l"
- TOKEN(MINUTE)
+ TOKEN(SECOND)
YY_BREAK
case 134:
YY_RULE_SETUP
#line 194 "flex_lexer.l"
- TOKEN(HOUR)
+ TOKEN(MINUTE)
YY_BREAK
case 135:
YY_RULE_SETUP
#line 195 "flex_lexer.l"
- TOKEN(DAY)
+ TOKEN(HOUR)
YY_BREAK
case 136:
YY_RULE_SETUP
#line 196 "flex_lexer.l"
- TOKEN(MONTH)
+ TOKEN(DAY)
YY_BREAK
case 137:
YY_RULE_SETUP
#line 197 "flex_lexer.l"
- TOKEN(YEAR)
+ TOKEN(MONTH)
YY_BREAK
case 138:
YY_RULE_SETUP
#line 198 "flex_lexer.l"
- TOKEN(SECONDS)
+ TOKEN(YEAR)
YY_BREAK
case 139:
YY_RULE_SETUP
#line 199 "flex_lexer.l"
- TOKEN(MINUTES)
+ TOKEN(SECONDS)
YY_BREAK
case 140:
YY_RULE_SETUP
#line 200 "flex_lexer.l"
- TOKEN(HOURS)
+ TOKEN(MINUTES)
YY_BREAK
case 141:
YY_RULE_SETUP
#line 201 "flex_lexer.l"
- TOKEN(DAYS)
+ TOKEN(HOURS)
YY_BREAK
case 142:
YY_RULE_SETUP
#line 202 "flex_lexer.l"
- TOKEN(MONTHS)
+ TOKEN(DAYS)
YY_BREAK
case 143:
YY_RULE_SETUP
#line 203 "flex_lexer.l"
- TOKEN(YEARS)
+ TOKEN(MONTHS)
YY_BREAK
case 144:
YY_RULE_SETUP
#line 204 "flex_lexer.l"
- TOKEN(TRUE)
+ TOKEN(YEARS)
YY_BREAK
case 145:
YY_RULE_SETUP
#line 205 "flex_lexer.l"
- TOKEN(FALSE)
+ TOKEN(TRUE)
YY_BREAK
case 146:
YY_RULE_SETUP
#line 206 "flex_lexer.l"
- TOKEN(TRANSACTION)
+ TOKEN(FALSE)
YY_BREAK
case 147:
YY_RULE_SETUP
#line 207 "flex_lexer.l"
- TOKEN(BEGIN)
+ TOKEN(TRANSACTION)
YY_BREAK
case 148:
YY_RULE_SETUP
#line 208 "flex_lexer.l"
- TOKEN(ROLLBACK)
+ TOKEN(BEGIN)
YY_BREAK
case 149:
YY_RULE_SETUP
#line 209 "flex_lexer.l"
- TOKEN(COMMIT)
+ TOKEN(ROLLBACK)
YY_BREAK
case 150:
YY_RULE_SETUP
#line 210 "flex_lexer.l"
- TOKEN(INTERVAL)
+ TOKEN(COMMIT)
YY_BREAK
case 151:
YY_RULE_SETUP
-#line 212 "flex_lexer.l"
- TOKEN(CHARACTER_VARYING)
+#line 211 "flex_lexer.l"
+ TOKEN(INTERVAL)
YY_BREAK
- /* Allow =/== see https://sqlite.org/lang_expr.html#collateop */
case 152:
YY_RULE_SETUP
-#line 215 "flex_lexer.l"
- TOKEN(EQUALS)
+#line 212 "flex_lexer.l"
+ TOKEN(SHARE)
YY_BREAK
case 153:
YY_RULE_SETUP
-#line 216 "flex_lexer.l"
- TOKEN(NOTEQUALS)
+#line 213 "flex_lexer.l"
+ TOKEN(NOWAIT)
YY_BREAK
case 154:
YY_RULE_SETUP
-#line 217 "flex_lexer.l"
- TOKEN(NOTEQUALS)
+#line 214 "flex_lexer.l"
+ TOKEN(SKIP)
YY_BREAK
case 155:
YY_RULE_SETUP
-#line 218 "flex_lexer.l"
- TOKEN(LESSEQ)
+#line 215 "flex_lexer.l"
+ TOKEN(LOCKED)
YY_BREAK
case 156:
+ /* rule 156 can match eol */
YY_RULE_SETUP
-#line 219 "flex_lexer.l"
- TOKEN(GREATEREQ)
+#line 217 "flex_lexer.l"
+ TOKEN(CHARACTER_VARYING)
YY_BREAK
+ /* Allow =/== see https://sqlite.org/lang_expr.html#collateop */
case 157:
YY_RULE_SETUP
#line 220 "flex_lexer.l"
- TOKEN(CONCAT)
+ TOKEN(EQUALS)
YY_BREAK
case 158:
YY_RULE_SETUP
+#line 221 "flex_lexer.l"
+ TOKEN(NOTEQUALS)
+ YY_BREAK
+ case 159:
+ YY_RULE_SETUP
#line 222 "flex_lexer.l"
+ TOKEN(NOTEQUALS)
+ YY_BREAK
+ case 160:
+ YY_RULE_SETUP
+#line 223 "flex_lexer.l"
+ TOKEN(LESSEQ)
+ YY_BREAK
+ case 161:
+ YY_RULE_SETUP
+#line 224 "flex_lexer.l"
+ TOKEN(GREATEREQ)
+ YY_BREAK
+ case 162:
+ YY_RULE_SETUP
+#line 225 "flex_lexer.l"
+ TOKEN(CONCAT)
+ YY_BREAK
+ case 163:
+ YY_RULE_SETUP
+#line 227 "flex_lexer.l"
{
return yytext[0];
}
YY_BREAK
- case 159:
-#line 225 "flex_lexer.l"
- case 160:
+ case 164:
+#line 230 "flex_lexer.l"
+ case 165:
YY_RULE_SETUP
-#line 225 "flex_lexer.l"
+#line 230 "flex_lexer.l"
{
yylval->fval = atof(yytext);
return SQL_FLOATVAL;
@@ -2686,17 +2729,17 @@ YY_DECL {
* positive equivalent. We thus match for LLONG_MIN specifically. This is not an issue for floats, where
* numeric_limits::lowest() == -numeric_limits::max();
*/
- case 161:
+ case 166:
YY_RULE_SETUP
-#line 235 "flex_lexer.l"
+#line 240 "flex_lexer.l"
{
yylval->ival = LLONG_MIN;
return SQL_INTVAL;
}
YY_BREAK
- case 162:
+ case 167:
YY_RULE_SETUP
-#line 240 "flex_lexer.l"
+#line 245 "flex_lexer.l"
{
errno = 0;
yylval->ival = strtoll(yytext, nullptr, 0);
@@ -2707,50 +2750,50 @@ YY_DECL {
return SQL_INTVAL;
}
YY_BREAK
- case 163:
+ case 168:
YY_RULE_SETUP
-#line 250 "flex_lexer.l"
+#line 255 "flex_lexer.l"
{
// Crop the leading and trailing quote char
yylval->sval = hsql::substr(yytext, 1, strlen(yytext) - 1);
return SQL_IDENTIFIER;
}
YY_BREAK
- case 164:
+ case 169:
YY_RULE_SETUP
-#line 256 "flex_lexer.l"
+#line 261 "flex_lexer.l"
{
yylval->sval = strdup(yytext);
return SQL_IDENTIFIER;
}
YY_BREAK
- case 165:
+ case 170:
YY_RULE_SETUP
-#line 261 "flex_lexer.l"
+#line 266 "flex_lexer.l"
{
BEGIN singlequotedstring;
strbuf.clear();
strbuf.str("");
} // Clear strbuf manually, see #170
YY_BREAK
- case 166:
+ case 171:
YY_RULE_SETUP
-#line 262 "flex_lexer.l"
+#line 267 "flex_lexer.l"
{
strbuf << '\'';
}
YY_BREAK
- case 167:
- /* rule 167 can match eol */
+ case 172:
+ /* rule 172 can match eol */
YY_RULE_SETUP
-#line 263 "flex_lexer.l"
+#line 268 "flex_lexer.l"
{
strbuf << yytext;
}
YY_BREAK
- case 168:
+ case 173:
YY_RULE_SETUP
-#line 264 "flex_lexer.l"
+#line 269 "flex_lexer.l"
{
BEGIN 0;
yylval->sval = strdup(strbuf.str().c_str());
@@ -2758,26 +2801,26 @@ YY_DECL {
}
YY_BREAK
case YY_STATE_EOF(singlequotedstring):
-#line 265 "flex_lexer.l"
+#line 270 "flex_lexer.l"
{
fprintf(stderr, "[SQL-Lexer-Error] Unterminated string\n");
return 0;
}
YY_BREAK
- case 169:
+ case 174:
YY_RULE_SETUP
-#line 267 "flex_lexer.l"
+#line 272 "flex_lexer.l"
{
fprintf(stderr, "[SQL-Lexer-Error] Unknown Character: %c\n", yytext[0]);
return 0;
}
YY_BREAK
- case 170:
+ case 175:
YY_RULE_SETUP
-#line 269 "flex_lexer.l"
+#line 274 "flex_lexer.l"
ECHO;
YY_BREAK
-#line 3368 "flex_lexer.cpp"
+#line 3421 "flex_lexer.cpp"
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(COMMENT):
yyterminate();
@@ -3038,7 +3081,7 @@ static yy_state_type yy_get_previous_state(yyscan_t yyscanner) {
}
while (yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state) {
yy_current_state = (int)yy_def[yy_current_state];
- if (yy_current_state >= 1192) yy_c = yy_meta[yy_c];
+ if (yy_current_state >= 1218) yy_c = yy_meta[yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
}
@@ -3063,10 +3106,10 @@ static yy_state_type yy_try_NUL_trans(yy_state_type yy_current_state, yyscan_t y
}
while (yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state) {
yy_current_state = (int)yy_def[yy_current_state];
- if (yy_current_state >= 1192) yy_c = yy_meta[yy_c];
+ if (yy_current_state >= 1218) yy_c = yy_meta[yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
- yy_is_jam = (yy_current_state == 1191);
+ yy_is_jam = (yy_current_state == 1217);
(void)yyg;
return yy_is_jam ? 0 : yy_current_state;
@@ -3806,7 +3849,7 @@ void yyfree(void* ptr, yyscan_t yyscanner) {
#define YYTABLES_NAME "yytables"
-#line 269 "flex_lexer.l"
+#line 274 "flex_lexer.l"
/***************************
** Section 3: User code
diff --git a/src/parser/flex_lexer.h b/src/parser/flex_lexer.h
index a8f8345e..0459edfb 100644
--- a/src/parser/flex_lexer.h
+++ b/src/parser/flex_lexer.h
@@ -2,9 +2,9 @@
#define hsql_HEADER_H 1
#define hsql_IN_HEADER 1
-#line 5 "flex_lexer.h"
+#line 6 "flex_lexer.h"
-#line 7 "flex_lexer.h"
+#line 8 "flex_lexer.h"
#define YY_INT_ALIGNED short int
@@ -726,8 +726,8 @@ extern int yylex(YYSTYPE* yylval_param, YYLTYPE* yylloc_param, yyscan_t yyscanne
#undef yyTABLES_NAME
#endif
-#line 269 "flex_lexer.l"
+#line 274 "flex_lexer.l"
-#line 736 "flex_lexer.h"
+#line 737 "flex_lexer.h"
#undef hsql_IN_HEADER
#endif /* hsql_HEADER_H */
diff --git a/src/parser/flex_lexer.l b/src/parser/flex_lexer.l
index 52e29fc4..1f8add40 100644
--- a/src/parser/flex_lexer.l
+++ b/src/parser/flex_lexer.l
@@ -189,6 +189,7 @@ OF TOKEN(OF)
ON TOKEN(ON)
OR TOKEN(OR)
TO TOKEN(TO)
+NO TOKEN(NO)
SECOND TOKEN(SECOND)
MINUTE TOKEN(MINUTE)
HOUR TOKEN(HOUR)
@@ -208,6 +209,10 @@ BEGIN TOKEN(BEGIN)
ROLLBACK TOKEN(ROLLBACK)
COMMIT TOKEN(COMMIT)
INTERVAL TOKEN(INTERVAL)
+SHARE TOKEN(SHARE)
+NOWAIT TOKEN(NOWAIT)
+SKIP TOKEN(SKIP)
+LOCKED TOKEN(LOCKED)
CHARACTER[ \t\n]+VARYING TOKEN(CHARACTER_VARYING)
diff --git a/src/sql/SelectStatement.h b/src/sql/SelectStatement.h
index 66fc2dcd..7396e796 100644
--- a/src/sql/SelectStatement.h
+++ b/src/sql/SelectStatement.h
@@ -10,6 +10,9 @@ enum OrderType { kOrderAsc, kOrderDesc };
enum SetType { kSetUnion, kSetIntersect, kSetExcept };
+enum RowLockMode { ForUpdate, ForNoKeyUpdate, ForShare, ForKeyShare };
+enum RowLockWaitPolicy { NoWait, SkipLocked, None };
+
// Description of the order by clause within a select statement.
struct OrderDescription {
OrderDescription(OrderType type, Expr* expr);
@@ -56,6 +59,12 @@ struct SetOperation {
LimitDescription* resultLimit;
};
+struct LockingClause {
+ RowLockMode rowLockMode;
+ RowLockWaitPolicy rowLockWaitPolicy;
+ std::vector* tables;
+};
+
// Representation of a full SQL select statement.
struct SelectStatement : SQLStatement {
SelectStatement();
@@ -96,6 +105,7 @@ struct SelectStatement : SQLStatement {
std::vector* order;
std::vector* withDescriptions;
LimitDescription* limit;
+ std::vector* lockings;
};
} // namespace hsql
diff --git a/src/sql/statements.cpp b/src/sql/statements.cpp
old mode 100755
new mode 100644
index a4c3b7dd..b24ad17d
--- a/src/sql/statements.cpp
+++ b/src/sql/statements.cpp
@@ -294,7 +294,8 @@ SelectStatement::SelectStatement()
setOperations(nullptr),
order(nullptr),
withDescriptions(nullptr),
- limit(nullptr){};
+ limit(nullptr),
+ lockings(nullptr){};
SelectStatement::~SelectStatement() {
delete fromTable;
@@ -330,6 +331,19 @@ SelectStatement::~SelectStatement() {
}
delete setOperations;
}
+
+ if (lockings != nullptr) {
+ for (LockingClause* lockingClause : *lockings) {
+ if (lockingClause->tables != nullptr) {
+ for (char* dtable : *lockingClause->tables) {
+ if (dtable != nullptr) free(dtable);
+ }
+ delete lockingClause->tables;
+ }
+ delete lockingClause;
+ }
+ delete lockings;
+ }
}
// UpdateStatement
diff --git a/src/util/sqlhelper.cpp b/src/util/sqlhelper.cpp
old mode 100755
new mode 100644
index 0caf169d..76c104f4
--- a/src/util/sqlhelper.cpp
+++ b/src/util/sqlhelper.cpp
@@ -193,6 +193,34 @@ void printSelectStatementInfo(const SelectStatement* stmt, uintmax_t numIndent)
printExpression(stmt->groupBy->having, numIndent + 2);
}
}
+ if (stmt->lockings != nullptr) {
+ inprint("Lock Info:", numIndent + 1);
+ for (LockingClause* lockingClause : *stmt->lockings) {
+ inprint("Type", numIndent + 2);
+ if (lockingClause->rowLockMode == RowLockMode::ForUpdate) {
+ inprint("FOR UPDATE", numIndent + 3);
+ } else if (lockingClause->rowLockMode == RowLockMode::ForNoKeyUpdate) {
+ inprint("FOR NO KEY UPDATE", numIndent + 3);
+ } else if (lockingClause->rowLockMode == RowLockMode::ForShare) {
+ inprint("FOR SHARE", numIndent + 3);
+ } else if (lockingClause->rowLockMode == RowLockMode::ForKeyShare) {
+ inprint("FOR KEY SHARE", numIndent + 3);
+ }
+ if (lockingClause->tables != nullptr) {
+ inprint("Target tables:", numIndent + 2);
+ for (char* dtable : *lockingClause->tables) {
+ inprint(dtable, numIndent + 3);
+ }
+ }
+ if (lockingClause->rowLockWaitPolicy != RowLockWaitPolicy::None) {
+ inprint("Waiting policy: ", numIndent + 2);
+ if (lockingClause->rowLockWaitPolicy == RowLockWaitPolicy::NoWait)
+ inprint("NOWAIT", numIndent + 3);
+ else
+ inprint("SKIP LOCKED", numIndent + 3);
+ }
+ }
+ }
if (stmt->setOperations != nullptr) {
for (SetOperation* setOperation : *stmt->setOperations) {
diff --git a/test/queries/queries-bad.sql b/test/queries/queries-bad.sql
index 4dc53aee..5c131bcc 100644
--- a/test/queries/queries-bad.sql
+++ b/test/queries/queries-bad.sql
@@ -41,3 +41,7 @@
# ON is not supported by postgres. We follow postgres here since the sql-92 standard does not specify index
# implementation details.
!DROP INDEX myindex ON mytable;
+!SELECT * FROM test WHERE val = 2 FOR KEY UPDATE;
+!SELECT * FROM test WHERE val = 2 FOR SHARE test1;
+!SELECT * FROM test WHERE val = 2 FOR NO KEY SHARE;
+!SELECT * FROM test WHERE val = 2 NOWAIT FOR UPDATE;
diff --git a/test/queries/queries-good.sql b/test/queries/queries-good.sql
index f5e4fbc7..2db88ae8 100755
--- a/test/queries/queries-good.sql
+++ b/test/queries/queries-good.sql
@@ -86,3 +86,13 @@ SELECT * FROM t WHERE a = DATE '2000-01-01' + INTERVAL '10' DAY;
SELECT * FROM t WHERE a BETWEEN '2000-01-01' AND DATE '2000-01-01' - 1 MONTH;
SELECT (CAST('2002-5-01' as DATE) + INTERVAL '60 days');
SELECT student.name AS character FROM student;
+# ROW LOCKING
+SELECT * FROM test WHERE id = 1 FOR UPDATE;
+SELECT * FROM test WHERE id = 1 FOR SHARE;
+SELECT * FROM test WHERE id = 1 FOR NO KEY UPDATE;
+SELECT * FROM test WHERE id = 1 FOR KEY SHARE;
+SELECT * FROM test WHERE id = 1 FOR UPDATE SKIP LOCKED;
+SELECT * FROM test WHERE id = 1 FOR UPDATE NOWAIT;
+SELECT * FROM test1, test2 WHERE test1.id = 10 FOR UPDATE OF test1;
+SELECT * FROM test1, test2 WHERE test2.val = 2 FOR SHARE OF test1, test2;
+SELECT * FROM test1, test2 WHERE test2.val = 2 FOR UPDATE OF test1 FOR SHARE OF test2;
diff --git a/test/select_tests.cpp b/test/select_tests.cpp
index 4e51cd88..578327e2 100644
--- a/test/select_tests.cpp
+++ b/test/select_tests.cpp
@@ -805,3 +805,175 @@ TEST(IntervalLiteral) {
}
}
}
+
+TEST(LockingClauseWithoutWaitPolicy) {
+ SelectStatement* stmt;
+ TEST_PARSE_SQL_QUERY(
+ "SELECT * FROM t WHERE a = 10 FOR UPDATE;"
+ "SELECT * FROM t WHERE a = 10 FOR SHARE;"
+ "SELECT * FROM t WHERE a = 10 FOR NO KEY UPDATE FOR KEY SHARE;",
+ result, 3);
+
+ stmt = (SelectStatement*)result.getStatement(0);
+ ASSERT_EQ(stmt->lockings->size(), 1);
+ ASSERT_TRUE(stmt->lockings->at(0)->tables == nullptr);
+ ASSERT_EQ(stmt->lockings->at(0)->rowLockMode, RowLockMode::ForUpdate);
+ ASSERT_EQ(stmt->lockings->at(0)->rowLockWaitPolicy, RowLockWaitPolicy::None);
+
+ stmt = (SelectStatement*)result.getStatement(1);
+ ASSERT_EQ(stmt->lockings->size(), 1);
+ ASSERT_TRUE(stmt->lockings->at(0)->tables == nullptr);
+ ASSERT_EQ(stmt->lockings->at(0)->rowLockMode, RowLockMode::ForShare);
+ ASSERT_EQ(stmt->lockings->at(0)->rowLockWaitPolicy, RowLockWaitPolicy::None);
+
+ stmt = (SelectStatement*)result.getStatement(2);
+ ASSERT_EQ(stmt->lockings->size(), 2);
+ ASSERT_TRUE(stmt->lockings->at(0)->tables == nullptr);
+ ASSERT_TRUE(stmt->lockings->at(1)->tables == nullptr);
+ ASSERT_EQ(stmt->lockings->at(0)->rowLockMode, RowLockMode::ForNoKeyUpdate);
+ ASSERT_EQ(stmt->lockings->at(0)->rowLockWaitPolicy, RowLockWaitPolicy::None);
+ ASSERT_EQ(stmt->lockings->at(1)->rowLockMode, RowLockMode::ForKeyShare);
+ ASSERT_EQ(stmt->lockings->at(1)->rowLockWaitPolicy, RowLockWaitPolicy::None);
+}
+
+TEST(LockingClauseWithWaitPolicy) {
+ SelectStatement* stmt;
+ TEST_PARSE_SQL_QUERY(
+ "SELECT * FROM t WHERE a = 10 FOR UPDATE NOWAIT;"
+ "SELECT * FROM t WHERE a = 10 FOR SHARE NOWAIT;"
+ "SELECT * FROM t WHERE a = 10 FOR NO KEY UPDATE NOWAIT;"
+ "SELECT * FROM t WHERE a = 10 FOR KEY SHARE NOWAIT;"
+ "SELECT * FROM t WHERE a = 10 FOR UPDATE SKIP LOCKED;"
+ "SELECT * FROM t WHERE a = 10 FOR SHARE SKIP LOCKED;"
+ "SELECT * FROM t WHERE a = 10 FOR NO KEY UPDATE SKIP LOCKED;"
+ "SELECT * FROM t WHERE a = 10 FOR KEY SHARE SKIP LOCKED;",
+ result, 8);
+
+ stmt = (SelectStatement*)result.getStatement(0);
+ ASSERT_EQ(stmt->lockings->size(), 1);
+ ASSERT_TRUE(stmt->lockings->at(0)->tables == nullptr);
+ ASSERT_EQ(stmt->lockings->at(0)->rowLockMode, RowLockMode::ForUpdate);
+ ASSERT_EQ(stmt->lockings->at(0)->rowLockWaitPolicy, RowLockWaitPolicy::NoWait);
+
+ stmt = (SelectStatement*)result.getStatement(1);
+ ASSERT_EQ(stmt->lockings->size(), 1);
+ ASSERT_TRUE(stmt->lockings->at(0)->tables == nullptr);
+ ASSERT_EQ(stmt->lockings->at(0)->rowLockMode, RowLockMode::ForShare);
+ ASSERT_EQ(stmt->lockings->at(0)->rowLockWaitPolicy, RowLockWaitPolicy::NoWait);
+
+ stmt = (SelectStatement*)result.getStatement(2);
+ ASSERT_EQ(stmt->lockings->size(), 1);
+ ASSERT_TRUE(stmt->lockings->at(0)->tables == nullptr);
+ ASSERT_EQ(stmt->lockings->at(0)->rowLockMode, RowLockMode::ForNoKeyUpdate);
+ ASSERT_EQ(stmt->lockings->at(0)->rowLockWaitPolicy, RowLockWaitPolicy::NoWait);
+
+ stmt = (SelectStatement*)result.getStatement(3);
+ ASSERT_EQ(stmt->lockings->size(), 1);
+ ASSERT_TRUE(stmt->lockings->at(0)->tables == nullptr);
+ ASSERT_EQ(stmt->lockings->at(0)->rowLockMode, RowLockMode::ForKeyShare);
+ ASSERT_EQ(stmt->lockings->at(0)->rowLockWaitPolicy, RowLockWaitPolicy::NoWait);
+
+ stmt = (SelectStatement*)result.getStatement(4);
+ ASSERT_EQ(stmt->lockings->size(), 1);
+ ASSERT_TRUE(stmt->lockings->at(0)->tables == nullptr);
+ ASSERT_EQ(stmt->lockings->at(0)->rowLockMode, RowLockMode::ForUpdate);
+ ASSERT_EQ(stmt->lockings->at(0)->rowLockWaitPolicy, RowLockWaitPolicy::SkipLocked);
+
+ stmt = (SelectStatement*)result.getStatement(5);
+ ASSERT_EQ(stmt->lockings->size(), 1);
+ ASSERT_TRUE(stmt->lockings->at(0)->tables == nullptr);
+ ASSERT_EQ(stmt->lockings->at(0)->rowLockMode, RowLockMode::ForShare);
+ ASSERT_EQ(stmt->lockings->at(0)->rowLockWaitPolicy, RowLockWaitPolicy::SkipLocked);
+
+ stmt = (SelectStatement*)result.getStatement(6);
+ ASSERT_EQ(stmt->lockings->size(), 1);
+ ASSERT_TRUE(stmt->lockings->at(0)->tables == nullptr);
+ ASSERT_EQ(stmt->lockings->at(0)->rowLockMode, RowLockMode::ForNoKeyUpdate);
+ ASSERT_EQ(stmt->lockings->at(0)->rowLockWaitPolicy, RowLockWaitPolicy::SkipLocked);
+
+ stmt = (SelectStatement*)result.getStatement(7);
+ ASSERT_EQ(stmt->lockings->size(), 1);
+ ASSERT_TRUE(stmt->lockings->at(0)->tables == nullptr);
+ ASSERT_EQ(stmt->lockings->at(0)->rowLockMode, RowLockMode::ForKeyShare);
+ ASSERT_EQ(stmt->lockings->at(0)->rowLockWaitPolicy, RowLockWaitPolicy::SkipLocked);
+}
+
+TEST(LockingClauseWithTableReference) {
+ SelectStatement* stmt;
+ TEST_PARSE_SQL_QUERY(
+ "SELECT * FROM t WHERE a = 10 FOR UPDATE OF t;"
+ "SELECT * FROM t, c WHERE t.a = 10 FOR SHARE OF t,c;"
+ "SELECT * FROM t, c WHERE t.a = 10 FOR NO KEY UPDATE OF t,c NOWAIT;",
+ result, 3);
+
+ stmt = (SelectStatement*)result.getStatement(0);
+ ASSERT_EQ(stmt->lockings->size(), 1);
+ ASSERT_EQ(stmt->lockings->at(0)->rowLockMode, RowLockMode::ForUpdate);
+ ASSERT_EQ(stmt->lockings->at(0)->rowLockWaitPolicy, RowLockWaitPolicy::None);
+ ASSERT_EQ(stmt->lockings->at(0)->tables->size(), 1);
+ ASSERT_STREQ(stmt->lockings->at(0)->tables->at(0), "t");
+
+ stmt = (SelectStatement*)result.getStatement(1);
+ ASSERT_EQ(stmt->lockings->size(), 1);
+ ASSERT_EQ(stmt->lockings->at(0)->rowLockMode, RowLockMode::ForShare);
+ ASSERT_EQ(stmt->lockings->at(0)->rowLockWaitPolicy, RowLockWaitPolicy::None);
+ ASSERT_EQ(stmt->lockings->at(0)->tables->size(), 2);
+ ASSERT_STREQ(stmt->lockings->at(0)->tables->at(0), "t");
+ ASSERT_STREQ(stmt->lockings->at(0)->tables->at(1), "c");
+
+ stmt = (SelectStatement*)result.getStatement(2);
+ ASSERT_EQ(stmt->lockings->size(), 1);
+ ASSERT_EQ(stmt->lockings->at(0)->rowLockMode, RowLockMode::ForNoKeyUpdate);
+ ASSERT_EQ(stmt->lockings->at(0)->rowLockWaitPolicy, RowLockWaitPolicy::NoWait);
+ ASSERT_EQ(stmt->lockings->at(0)->tables->size(), 2);
+ ASSERT_STREQ(stmt->lockings->at(0)->tables->at(0), "t");
+ ASSERT_STREQ(stmt->lockings->at(0)->tables->at(1), "c");
+}
+
+TEST(MultipleLockingClause) {
+ SelectStatement* stmt;
+ TEST_PARSE_SQL_QUERY(
+ "SELECT * FROM t, c WHERE t.a = 10 FOR NO KEY UPDATE OF t FOR KEY SHARE OF c;"
+ "SELECT * FROM t, c WHERE t.a = 10 FOR SHARE OF t SKIP LOCKED FOR UPDATE OF c NOWAIT;"
+ "SELECT * FROM t, c, s WHERE t.a = 10 FOR NO KEY UPDATE FOR SHARE OF t SKIP LOCKED FOR UPDATE OF c, s NOWAIT;",
+ result, 3);
+
+ stmt = (SelectStatement*)result.getStatement(0);
+ ASSERT_EQ(stmt->lockings->size(), 2);
+ ASSERT_EQ(stmt->lockings->at(0)->rowLockMode, RowLockMode::ForNoKeyUpdate);
+ ASSERT_EQ(stmt->lockings->at(0)->rowLockWaitPolicy, RowLockWaitPolicy::None);
+ ASSERT_EQ(stmt->lockings->at(0)->tables->size(), 1);
+ ASSERT_STREQ(stmt->lockings->at(0)->tables->at(0), "t");
+ ASSERT_EQ(stmt->lockings->at(1)->rowLockMode, RowLockMode::ForKeyShare);
+ ASSERT_EQ(stmt->lockings->at(1)->rowLockWaitPolicy, RowLockWaitPolicy::None);
+ ASSERT_EQ(stmt->lockings->at(1)->tables->size(), 1);
+ ASSERT_STREQ(stmt->lockings->at(1)->tables->at(0), "c");
+
+ stmt = (SelectStatement*)result.getStatement(1);
+ ASSERT_EQ(stmt->lockings->size(), 2);
+ ASSERT_EQ(stmt->lockings->at(0)->rowLockMode, RowLockMode::ForShare);
+ ASSERT_EQ(stmt->lockings->at(0)->rowLockWaitPolicy, RowLockWaitPolicy::SkipLocked);
+ ASSERT_EQ(stmt->lockings->at(0)->tables->size(), 1);
+ ASSERT_STREQ(stmt->lockings->at(0)->tables->at(0), "t");
+ ASSERT_EQ(stmt->lockings->at(1)->rowLockMode, RowLockMode::ForUpdate);
+ ASSERT_EQ(stmt->lockings->at(1)->rowLockWaitPolicy, RowLockWaitPolicy::NoWait);
+ ASSERT_EQ(stmt->lockings->at(0)->tables->size(), 1);
+ ASSERT_STREQ(stmt->lockings->at(1)->tables->at(0), "c");
+
+ stmt = (SelectStatement*)result.getStatement(2);
+ ASSERT_EQ(stmt->lockings->size(), 3);
+ ASSERT_EQ(stmt->lockings->at(0)->rowLockMode, RowLockMode::ForNoKeyUpdate);
+ ASSERT_EQ(stmt->lockings->at(0)->rowLockWaitPolicy, RowLockWaitPolicy::None);
+ ASSERT_TRUE(stmt->lockings->at(0)->tables == nullptr);
+
+ ASSERT_EQ(stmt->lockings->at(1)->rowLockMode, RowLockMode::ForShare);
+ ASSERT_EQ(stmt->lockings->at(1)->rowLockWaitPolicy, RowLockWaitPolicy::SkipLocked);
+ ASSERT_EQ(stmt->lockings->at(1)->tables->size(), 1);
+ ASSERT_STREQ(stmt->lockings->at(1)->tables->at(0), "t");
+
+ ASSERT_EQ(stmt->lockings->at(2)->rowLockMode, RowLockMode::ForUpdate);
+ ASSERT_EQ(stmt->lockings->at(2)->rowLockWaitPolicy, RowLockWaitPolicy::NoWait);
+ ASSERT_EQ(stmt->lockings->at(2)->tables->size(), 2);
+ ASSERT_STREQ(stmt->lockings->at(2)->tables->at(0), "c");
+ ASSERT_STREQ(stmt->lockings->at(2)->tables->at(1), "s");
+}