Commit 727354ae authored by osku's avatar osku

Add support for bound literals in the SQL parser.

parent d643d731
...@@ -32,183 +32,187 @@ ...@@ -32,183 +32,187 @@
PARS_INT_LIT = 258, PARS_INT_LIT = 258,
PARS_FLOAT_LIT = 259, PARS_FLOAT_LIT = 259,
PARS_STR_LIT = 260, PARS_STR_LIT = 260,
PARS_NULL_LIT = 261, PARS_FIXBINARY_LIT = 261,
PARS_ID_TOKEN = 262, PARS_BLOB_LIT = 262,
PARS_AND_TOKEN = 263, PARS_NULL_LIT = 263,
PARS_OR_TOKEN = 264, PARS_ID_TOKEN = 264,
PARS_NOT_TOKEN = 265, PARS_AND_TOKEN = 265,
PARS_GE_TOKEN = 266, PARS_OR_TOKEN = 266,
PARS_LE_TOKEN = 267, PARS_NOT_TOKEN = 267,
PARS_NE_TOKEN = 268, PARS_GE_TOKEN = 268,
PARS_PROCEDURE_TOKEN = 269, PARS_LE_TOKEN = 269,
PARS_IN_TOKEN = 270, PARS_NE_TOKEN = 270,
PARS_OUT_TOKEN = 271, PARS_PROCEDURE_TOKEN = 271,
PARS_BINARY_TOKEN = 272, PARS_IN_TOKEN = 272,
PARS_BLOB_TOKEN = 273, PARS_OUT_TOKEN = 273,
PARS_INT_TOKEN = 274, PARS_BINARY_TOKEN = 274,
PARS_INTEGER_TOKEN = 275, PARS_BLOB_TOKEN = 275,
PARS_FLOAT_TOKEN = 276, PARS_INT_TOKEN = 276,
PARS_CHAR_TOKEN = 277, PARS_INTEGER_TOKEN = 277,
PARS_IS_TOKEN = 278, PARS_FLOAT_TOKEN = 278,
PARS_BEGIN_TOKEN = 279, PARS_CHAR_TOKEN = 279,
PARS_END_TOKEN = 280, PARS_IS_TOKEN = 280,
PARS_IF_TOKEN = 281, PARS_BEGIN_TOKEN = 281,
PARS_THEN_TOKEN = 282, PARS_END_TOKEN = 282,
PARS_ELSE_TOKEN = 283, PARS_IF_TOKEN = 283,
PARS_ELSIF_TOKEN = 284, PARS_THEN_TOKEN = 284,
PARS_LOOP_TOKEN = 285, PARS_ELSE_TOKEN = 285,
PARS_WHILE_TOKEN = 286, PARS_ELSIF_TOKEN = 286,
PARS_RETURN_TOKEN = 287, PARS_LOOP_TOKEN = 287,
PARS_SELECT_TOKEN = 288, PARS_WHILE_TOKEN = 288,
PARS_SUM_TOKEN = 289, PARS_RETURN_TOKEN = 289,
PARS_COUNT_TOKEN = 290, PARS_SELECT_TOKEN = 290,
PARS_DISTINCT_TOKEN = 291, PARS_SUM_TOKEN = 291,
PARS_FROM_TOKEN = 292, PARS_COUNT_TOKEN = 292,
PARS_WHERE_TOKEN = 293, PARS_DISTINCT_TOKEN = 293,
PARS_FOR_TOKEN = 294, PARS_FROM_TOKEN = 294,
PARS_DDOT_TOKEN = 295, PARS_WHERE_TOKEN = 295,
PARS_CONSISTENT_TOKEN = 296, PARS_FOR_TOKEN = 296,
PARS_READ_TOKEN = 297, PARS_DDOT_TOKEN = 297,
PARS_ORDER_TOKEN = 298, PARS_CONSISTENT_TOKEN = 298,
PARS_BY_TOKEN = 299, PARS_READ_TOKEN = 299,
PARS_ASC_TOKEN = 300, PARS_ORDER_TOKEN = 300,
PARS_DESC_TOKEN = 301, PARS_BY_TOKEN = 301,
PARS_INSERT_TOKEN = 302, PARS_ASC_TOKEN = 302,
PARS_INTO_TOKEN = 303, PARS_DESC_TOKEN = 303,
PARS_VALUES_TOKEN = 304, PARS_INSERT_TOKEN = 304,
PARS_UPDATE_TOKEN = 305, PARS_INTO_TOKEN = 305,
PARS_SET_TOKEN = 306, PARS_VALUES_TOKEN = 306,
PARS_DELETE_TOKEN = 307, PARS_UPDATE_TOKEN = 307,
PARS_CURRENT_TOKEN = 308, PARS_SET_TOKEN = 308,
PARS_OF_TOKEN = 309, PARS_DELETE_TOKEN = 309,
PARS_CREATE_TOKEN = 310, PARS_CURRENT_TOKEN = 310,
PARS_TABLE_TOKEN = 311, PARS_OF_TOKEN = 311,
PARS_INDEX_TOKEN = 312, PARS_CREATE_TOKEN = 312,
PARS_UNIQUE_TOKEN = 313, PARS_TABLE_TOKEN = 313,
PARS_CLUSTERED_TOKEN = 314, PARS_INDEX_TOKEN = 314,
PARS_DOES_NOT_FIT_IN_MEM_TOKEN = 315, PARS_UNIQUE_TOKEN = 315,
PARS_ON_TOKEN = 316, PARS_CLUSTERED_TOKEN = 316,
PARS_ASSIGN_TOKEN = 317, PARS_DOES_NOT_FIT_IN_MEM_TOKEN = 317,
PARS_DECLARE_TOKEN = 318, PARS_ON_TOKEN = 318,
PARS_CURSOR_TOKEN = 319, PARS_ASSIGN_TOKEN = 319,
PARS_SQL_TOKEN = 320, PARS_DECLARE_TOKEN = 320,
PARS_OPEN_TOKEN = 321, PARS_CURSOR_TOKEN = 321,
PARS_FETCH_TOKEN = 322, PARS_SQL_TOKEN = 322,
PARS_CLOSE_TOKEN = 323, PARS_OPEN_TOKEN = 323,
PARS_NOTFOUND_TOKEN = 324, PARS_FETCH_TOKEN = 324,
PARS_TO_CHAR_TOKEN = 325, PARS_CLOSE_TOKEN = 325,
PARS_TO_NUMBER_TOKEN = 326, PARS_NOTFOUND_TOKEN = 326,
PARS_TO_BINARY_TOKEN = 327, PARS_TO_CHAR_TOKEN = 327,
PARS_BINARY_TO_NUMBER_TOKEN = 328, PARS_TO_NUMBER_TOKEN = 328,
PARS_SUBSTR_TOKEN = 329, PARS_TO_BINARY_TOKEN = 329,
PARS_REPLSTR_TOKEN = 330, PARS_BINARY_TO_NUMBER_TOKEN = 330,
PARS_CONCAT_TOKEN = 331, PARS_SUBSTR_TOKEN = 331,
PARS_INSTR_TOKEN = 332, PARS_REPLSTR_TOKEN = 332,
PARS_LENGTH_TOKEN = 333, PARS_CONCAT_TOKEN = 333,
PARS_SYSDATE_TOKEN = 334, PARS_INSTR_TOKEN = 334,
PARS_PRINTF_TOKEN = 335, PARS_LENGTH_TOKEN = 335,
PARS_ASSERT_TOKEN = 336, PARS_SYSDATE_TOKEN = 336,
PARS_RND_TOKEN = 337, PARS_PRINTF_TOKEN = 337,
PARS_RND_STR_TOKEN = 338, PARS_ASSERT_TOKEN = 338,
PARS_ROW_PRINTF_TOKEN = 339, PARS_RND_TOKEN = 339,
PARS_COMMIT_TOKEN = 340, PARS_RND_STR_TOKEN = 340,
PARS_ROLLBACK_TOKEN = 341, PARS_ROW_PRINTF_TOKEN = 341,
PARS_WORK_TOKEN = 342, PARS_COMMIT_TOKEN = 342,
PARS_UNSIGNED_TOKEN = 343, PARS_ROLLBACK_TOKEN = 343,
PARS_EXIT_TOKEN = 344, PARS_WORK_TOKEN = 344,
PARS_FUNCTION_TOKEN = 345, PARS_UNSIGNED_TOKEN = 345,
NEG = 346 PARS_EXIT_TOKEN = 346,
PARS_FUNCTION_TOKEN = 347,
NEG = 348
}; };
#endif #endif
#define PARS_INT_LIT 258 #define PARS_INT_LIT 258
#define PARS_FLOAT_LIT 259 #define PARS_FLOAT_LIT 259
#define PARS_STR_LIT 260 #define PARS_STR_LIT 260
#define PARS_NULL_LIT 261 #define PARS_FIXBINARY_LIT 261
#define PARS_ID_TOKEN 262 #define PARS_BLOB_LIT 262
#define PARS_AND_TOKEN 263 #define PARS_NULL_LIT 263
#define PARS_OR_TOKEN 264 #define PARS_ID_TOKEN 264
#define PARS_NOT_TOKEN 265 #define PARS_AND_TOKEN 265
#define PARS_GE_TOKEN 266 #define PARS_OR_TOKEN 266
#define PARS_LE_TOKEN 267 #define PARS_NOT_TOKEN 267
#define PARS_NE_TOKEN 268 #define PARS_GE_TOKEN 268
#define PARS_PROCEDURE_TOKEN 269 #define PARS_LE_TOKEN 269
#define PARS_IN_TOKEN 270 #define PARS_NE_TOKEN 270
#define PARS_OUT_TOKEN 271 #define PARS_PROCEDURE_TOKEN 271
#define PARS_BINARY_TOKEN 272 #define PARS_IN_TOKEN 272
#define PARS_BLOB_TOKEN 273 #define PARS_OUT_TOKEN 273
#define PARS_INT_TOKEN 274 #define PARS_BINARY_TOKEN 274
#define PARS_INTEGER_TOKEN 275 #define PARS_BLOB_TOKEN 275
#define PARS_FLOAT_TOKEN 276 #define PARS_INT_TOKEN 276
#define PARS_CHAR_TOKEN 277 #define PARS_INTEGER_TOKEN 277
#define PARS_IS_TOKEN 278 #define PARS_FLOAT_TOKEN 278
#define PARS_BEGIN_TOKEN 279 #define PARS_CHAR_TOKEN 279
#define PARS_END_TOKEN 280 #define PARS_IS_TOKEN 280
#define PARS_IF_TOKEN 281 #define PARS_BEGIN_TOKEN 281
#define PARS_THEN_TOKEN 282 #define PARS_END_TOKEN 282
#define PARS_ELSE_TOKEN 283 #define PARS_IF_TOKEN 283
#define PARS_ELSIF_TOKEN 284 #define PARS_THEN_TOKEN 284
#define PARS_LOOP_TOKEN 285 #define PARS_ELSE_TOKEN 285
#define PARS_WHILE_TOKEN 286 #define PARS_ELSIF_TOKEN 286
#define PARS_RETURN_TOKEN 287 #define PARS_LOOP_TOKEN 287
#define PARS_SELECT_TOKEN 288 #define PARS_WHILE_TOKEN 288
#define PARS_SUM_TOKEN 289 #define PARS_RETURN_TOKEN 289
#define PARS_COUNT_TOKEN 290 #define PARS_SELECT_TOKEN 290
#define PARS_DISTINCT_TOKEN 291 #define PARS_SUM_TOKEN 291
#define PARS_FROM_TOKEN 292 #define PARS_COUNT_TOKEN 292
#define PARS_WHERE_TOKEN 293 #define PARS_DISTINCT_TOKEN 293
#define PARS_FOR_TOKEN 294 #define PARS_FROM_TOKEN 294
#define PARS_DDOT_TOKEN 295 #define PARS_WHERE_TOKEN 295
#define PARS_CONSISTENT_TOKEN 296 #define PARS_FOR_TOKEN 296
#define PARS_READ_TOKEN 297 #define PARS_DDOT_TOKEN 297
#define PARS_ORDER_TOKEN 298 #define PARS_CONSISTENT_TOKEN 298
#define PARS_BY_TOKEN 299 #define PARS_READ_TOKEN 299
#define PARS_ASC_TOKEN 300 #define PARS_ORDER_TOKEN 300
#define PARS_DESC_TOKEN 301 #define PARS_BY_TOKEN 301
#define PARS_INSERT_TOKEN 302 #define PARS_ASC_TOKEN 302
#define PARS_INTO_TOKEN 303 #define PARS_DESC_TOKEN 303
#define PARS_VALUES_TOKEN 304 #define PARS_INSERT_TOKEN 304
#define PARS_UPDATE_TOKEN 305 #define PARS_INTO_TOKEN 305
#define PARS_SET_TOKEN 306 #define PARS_VALUES_TOKEN 306
#define PARS_DELETE_TOKEN 307 #define PARS_UPDATE_TOKEN 307
#define PARS_CURRENT_TOKEN 308 #define PARS_SET_TOKEN 308
#define PARS_OF_TOKEN 309 #define PARS_DELETE_TOKEN 309
#define PARS_CREATE_TOKEN 310 #define PARS_CURRENT_TOKEN 310
#define PARS_TABLE_TOKEN 311 #define PARS_OF_TOKEN 311
#define PARS_INDEX_TOKEN 312 #define PARS_CREATE_TOKEN 312
#define PARS_UNIQUE_TOKEN 313 #define PARS_TABLE_TOKEN 313
#define PARS_CLUSTERED_TOKEN 314 #define PARS_INDEX_TOKEN 314
#define PARS_DOES_NOT_FIT_IN_MEM_TOKEN 315 #define PARS_UNIQUE_TOKEN 315
#define PARS_ON_TOKEN 316 #define PARS_CLUSTERED_TOKEN 316
#define PARS_ASSIGN_TOKEN 317 #define PARS_DOES_NOT_FIT_IN_MEM_TOKEN 317
#define PARS_DECLARE_TOKEN 318 #define PARS_ON_TOKEN 318
#define PARS_CURSOR_TOKEN 319 #define PARS_ASSIGN_TOKEN 319
#define PARS_SQL_TOKEN 320 #define PARS_DECLARE_TOKEN 320
#define PARS_OPEN_TOKEN 321 #define PARS_CURSOR_TOKEN 321
#define PARS_FETCH_TOKEN 322 #define PARS_SQL_TOKEN 322
#define PARS_CLOSE_TOKEN 323 #define PARS_OPEN_TOKEN 323
#define PARS_NOTFOUND_TOKEN 324 #define PARS_FETCH_TOKEN 324
#define PARS_TO_CHAR_TOKEN 325 #define PARS_CLOSE_TOKEN 325
#define PARS_TO_NUMBER_TOKEN 326 #define PARS_NOTFOUND_TOKEN 326
#define PARS_TO_BINARY_TOKEN 327 #define PARS_TO_CHAR_TOKEN 327
#define PARS_BINARY_TO_NUMBER_TOKEN 328 #define PARS_TO_NUMBER_TOKEN 328
#define PARS_SUBSTR_TOKEN 329 #define PARS_TO_BINARY_TOKEN 329
#define PARS_REPLSTR_TOKEN 330 #define PARS_BINARY_TO_NUMBER_TOKEN 330
#define PARS_CONCAT_TOKEN 331 #define PARS_SUBSTR_TOKEN 331
#define PARS_INSTR_TOKEN 332 #define PARS_REPLSTR_TOKEN 332
#define PARS_LENGTH_TOKEN 333 #define PARS_CONCAT_TOKEN 333
#define PARS_SYSDATE_TOKEN 334 #define PARS_INSTR_TOKEN 334
#define PARS_PRINTF_TOKEN 335 #define PARS_LENGTH_TOKEN 335
#define PARS_ASSERT_TOKEN 336 #define PARS_SYSDATE_TOKEN 336
#define PARS_RND_TOKEN 337 #define PARS_PRINTF_TOKEN 337
#define PARS_RND_STR_TOKEN 338 #define PARS_ASSERT_TOKEN 338
#define PARS_ROW_PRINTF_TOKEN 339 #define PARS_RND_TOKEN 339
#define PARS_COMMIT_TOKEN 340 #define PARS_RND_STR_TOKEN 340
#define PARS_ROLLBACK_TOKEN 341 #define PARS_ROW_PRINTF_TOKEN 341
#define PARS_WORK_TOKEN 342 #define PARS_COMMIT_TOKEN 342
#define PARS_UNSIGNED_TOKEN 343 #define PARS_ROLLBACK_TOKEN 343
#define PARS_EXIT_TOKEN 344 #define PARS_WORK_TOKEN 344
#define PARS_FUNCTION_TOKEN 345 #define PARS_UNSIGNED_TOKEN 345
#define NEG 346 #define PARS_EXIT_TOKEN 346
#define PARS_FUNCTION_TOKEN 347
#define NEG 348
......
...@@ -450,14 +450,26 @@ pars_info_get_user_func( ...@@ -450,14 +450,26 @@ pars_info_get_user_func(
pars_info_t* info, /* in: info struct */ pars_info_t* info, /* in: info struct */
const char* name); /* in: function name to find*/ const char* name); /* in: function name to find*/
/********************************************************************
Get bound literal with the given name.*/
pars_bound_lit_t*
pars_info_get_bound_lit(
/*====================*/
/* out: bound literal, or NULL if
not found */
pars_info_t* info, /* in: info struct */
const char* name); /* in: bound literal name to find */
/* Extra information (possibly) supplied for pars_sql(). */
/* Extra information supplied for pars_sql(). All data is owned by the user
who's responsible for freeing them as necessary.*/
struct pars_info_struct { struct pars_info_struct {
pars_user_func_t* funcs; /* User functions, owned by pars_user_func_t* funcs; /* user functions */
the user, who's responsible
for freeing them as
necessary. */
ulint n_funcs; /* number of user functions */ ulint n_funcs; /* number of user functions */
pars_bound_lit_t* bound_lits; /* bound literals */
ulint n_bound_lits; /* number of bound literals */
}; };
/* Type of the user functions. The first argument is always InnoDB-supplied /* Type of the user functions. The first argument is always InnoDB-supplied
...@@ -473,6 +485,15 @@ struct pars_user_func_struct { ...@@ -473,6 +485,15 @@ struct pars_user_func_struct {
void* arg; /* user-supplied argument */ void* arg; /* user-supplied argument */
}; };
/* Bound literal. */
struct pars_bound_lit_struct {
const char* name; /* name */
void* address; /* address */
ulint length; /* length of data */
ulint type; /* type, e.g. DATA_FIXBINARY */
ulint prtype; /* precise type, e.g. DATA_UNSIGNED */
};
/* Struct used to denote a reserved word in a parsing tree */ /* Struct used to denote a reserved word in a parsing tree */
struct pars_res_word_struct{ struct pars_res_word_struct{
int code; /* the token code for the reserved word from int code; /* the token code for the reserved word from
......
...@@ -54,6 +54,16 @@ sym_tab_add_str_lit( ...@@ -54,6 +54,16 @@ sym_tab_add_str_lit(
it */ it */
ulint len); /* in: string length */ ulint len); /* in: string length */
/********************************************************************** /**********************************************************************
Add a bound literal to a symbol table. */
sym_node_t*
sym_tab_add_bound_lit(
/*==================*/
/* out: symbol table node */
sym_tab_t* sym_tab, /* in: symbol table */
const char* name, /* in: name of bound literal */
ulint* lit_type); /* out: type of literal (PARS_*_LIT) */
/**********************************************************************
Adds an SQL null literal to a symbol table. */ Adds an SQL null literal to a symbol table. */
sym_node_t* sym_node_t*
......
...@@ -11,6 +11,7 @@ Created 1/11/1998 Heikki Tuuri ...@@ -11,6 +11,7 @@ Created 1/11/1998 Heikki Tuuri
typedef struct pars_info_struct pars_info_t; typedef struct pars_info_struct pars_info_t;
typedef struct pars_user_func_struct pars_user_func_t; typedef struct pars_user_func_struct pars_user_func_t;
typedef struct pars_bound_lit_struct pars_bound_lit_t;
typedef struct sym_node_struct sym_node_t; typedef struct sym_node_struct sym_node_t;
typedef struct sym_tab_struct sym_tab_t; typedef struct sym_tab_struct sym_tab_t;
typedef struct pars_res_word_struct pars_res_word_t; typedef struct pars_res_word_struct pars_res_word_t;
......
...@@ -356,8 +356,8 @@ static void yy_fatal_error (yyconst char msg[] ); ...@@ -356,8 +356,8 @@ static void yy_fatal_error (yyconst char msg[] );
*yy_cp = '\0'; \ *yy_cp = '\0'; \
(yy_c_buf_p) = yy_cp; (yy_c_buf_p) = yy_cp;
#define YY_NUM_RULES 115 #define YY_NUM_RULES 116
#define YY_END_OF_BUFFER 116 #define YY_END_OF_BUFFER 117
/* This struct is not used in this scanner, /* This struct is not used in this scanner,
but its presence is necessary. */ but its presence is necessary. */
struct yy_trans_info struct yy_trans_info
...@@ -365,51 +365,51 @@ struct yy_trans_info ...@@ -365,51 +365,51 @@ struct yy_trans_info
flex_int32_t yy_verify; flex_int32_t yy_verify;
flex_int32_t yy_nxt; flex_int32_t yy_nxt;
}; };
static yyconst flex_int16_t yy_accept[393] = static yyconst flex_int16_t yy_accept[394] =
{ 0, { 0,
0, 0, 110, 110, 0, 0, 0, 0, 116, 114, 0, 0, 111, 111, 0, 0, 0, 0, 117, 115,
113, 113, 6, 105, 3, 94, 100, 103, 101, 98, 114, 114, 7, 106, 4, 95, 101, 104, 102, 99,
102, 114, 104, 1, 114, 99, 97, 95, 96, 108, 103, 115, 105, 1, 115, 100, 98, 96, 97, 109,
88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89,
88, 88, 88, 88, 88, 88, 88, 88, 106, 107, 89, 89, 89, 89, 89, 89, 89, 89, 107, 108,
110, 111, 4, 5, 7, 8, 113, 89, 109, 2, 111, 112, 5, 6, 8, 9, 114, 90, 110, 2,
1, 90, 91, 93, 92, 88, 88, 88, 88, 88, 1, 3, 91, 92, 94, 93, 89, 89, 89, 89,
88, 43, 88, 88, 88, 88, 88, 88, 88, 88, 89, 89, 44, 89, 89, 89, 89, 89, 89, 89,
88, 88, 88, 88, 88, 88, 88, 88, 26, 15, 89, 89, 89, 89, 89, 89, 89, 89, 89, 27,
23, 88, 88, 88, 88, 53, 60, 88, 12, 88, 16, 24, 89, 89, 89, 89, 54, 61, 89, 13,
88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89,
88, 88, 88, 88, 88, 88, 110, 111, 111, 112, 89, 89, 89, 89, 89, 89, 89, 111, 112, 112,
4, 5, 7, 8, 2, 11, 44, 88, 88, 88, 113, 5, 6, 8, 9, 2, 12, 45, 89, 89,
88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89,
88, 88, 88, 88, 88, 25, 88, 88, 88, 39, 89, 89, 89, 89, 89, 89, 26, 89, 89, 89,
88, 88, 88, 88, 19, 88, 88, 13, 88, 88, 40, 89, 89, 89, 89, 20, 89, 89, 14, 89,
88, 16, 88, 88, 88, 88, 88, 79, 88, 88, 89, 89, 17, 89, 89, 89, 89, 89, 80, 89,
88, 50, 10, 88, 34, 88, 88, 88, 88, 88, 89, 89, 51, 11, 89, 35, 89, 89, 89, 89,
88, 88, 88, 88, 88, 88, 88, 88, 88, 18, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89,
22, 88, 88, 88, 88, 88, 88, 88, 88, 88, 19, 23, 89, 89, 89, 89, 89, 89, 89, 89,
88, 88, 45, 88, 88, 28, 88, 86, 88, 88, 89, 89, 89, 46, 89, 89, 29, 89, 87, 89,
37, 88, 88, 88, 88, 88, 47, 88, 30, 88, 89, 38, 89, 89, 89, 89, 89, 48, 89, 31,
9, 63, 88, 88, 88, 41, 88, 88, 88, 88, 89, 10, 64, 89, 89, 89, 42, 89, 89, 89,
88, 88, 88, 88, 88, 27, 88, 88, 88, 88, 89, 89, 89, 89, 89, 89, 28, 89, 89, 89,
88, 88, 88, 88, 88, 84, 88, 24, 88, 65, 89, 89, 89, 89, 89, 89, 85, 89, 25, 89,
88, 88, 88, 88, 35, 88, 88, 88, 88, 88, 66, 89, 89, 89, 89, 36, 89, 89, 89, 89,
88, 88, 29, 64, 21, 88, 56, 88, 74, 88, 89, 89, 89, 30, 65, 22, 89, 57, 89, 75,
88, 88, 42, 88, 88, 88, 88, 88, 88, 88, 89, 89, 89, 43, 89, 89, 89, 89, 89, 89,
88, 88, 88, 55, 88, 88, 88, 88, 88, 88, 89, 89, 89, 89, 56, 89, 89, 89, 89, 89,
88, 38, 31, 78, 17, 88, 82, 73, 88, 54, 89, 89, 39, 32, 79, 18, 89, 83, 74, 89,
88, 62, 88, 51, 88, 88, 88, 46, 88, 75, 55, 89, 63, 89, 52, 89, 89, 89, 47, 89,
88, 77, 88, 88, 32, 88, 88, 88, 33, 71, 76, 89, 78, 89, 89, 33, 89, 89, 89, 34,
88, 88, 88, 88, 57, 88, 49, 48, 88, 88, 72, 89, 89, 89, 89, 58, 89, 50, 49, 89,
88, 52, 61, 88, 88, 88, 20, 88, 88, 72, 89, 89, 53, 62, 89, 89, 89, 21, 89, 89,
80, 88, 88, 76, 88, 67, 88, 88, 88, 88, 73, 81, 89, 89, 77, 89, 68, 89, 89, 89,
88, 36, 88, 87, 66, 88, 83, 88, 88, 88, 89, 89, 37, 89, 88, 67, 89, 84, 89, 89,
85, 88, 58, 88, 88, 14, 88, 69, 68, 88, 89, 86, 89, 59, 89, 89, 15, 89, 70, 69,
40, 88, 81, 88, 88, 88, 88, 88, 88, 88, 89, 41, 89, 82, 89, 89, 89, 89, 89, 89,
88, 88, 88, 70, 88, 88, 88, 88, 88, 88, 89, 89, 89, 89, 71, 89, 89, 89, 89, 89,
59, 0 89, 60, 0
} ; } ;
...@@ -448,132 +448,135 @@ static yyconst flex_int32_t yy_ec[256] = ...@@ -448,132 +448,135 @@ static yyconst flex_int32_t yy_ec[256] =
static yyconst flex_int32_t yy_meta[50] = static yyconst flex_int32_t yy_meta[50] =
{ 0, { 0,
1, 1, 1, 2, 1, 3, 1, 1, 4, 1, 1, 1, 1, 2, 1, 3, 1, 1, 4, 1,
1, 1, 1, 1, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 1, 1, 6, 1,
1, 5, 5, 5, 5, 5, 5, 5, 5, 5, 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, 1, 1 5, 5, 5, 5, 5, 5, 5, 1, 1
} ; } ;
static yyconst flex_int16_t yy_base[401] = static yyconst flex_int16_t yy_base[403] =
{ 0, { 0,
0, 0, 424, 423, 425, 424, 425, 424, 427, 434, 0, 0, 434, 433, 435, 434, 435, 434, 437, 444,
48, 50, 434, 434, 434, 434, 434, 434, 434, 434, 48, 50, 444, 444, 444, 444, 444, 444, 444, 444,
434, 413, 416, 41, 405, 434, 38, 434, 404, 434, 444, 423, 426, 41, 415, 444, 38, 444, 414, 444,
20, 33, 32, 46, 40, 44, 0, 54, 52, 48, 20, 33, 32, 46, 40, 44, 0, 54, 52, 48,
60, 383, 65, 66, 74, 27, 399, 69, 434, 434, 60, 393, 65, 66, 74, 27, 409, 69, 444, 444,
0, 97, 0, 414, 0, 415, 111, 434, 434, 403, 0, 97, 0, 424, 0, 425, 111, 444, 444, 413,
54, 434, 434, 434, 434, 0, 392, 69, 388, 380, 54, 408, 444, 444, 444, 444, 0, 401, 69, 397,
378, 0, 391, 79, 82, 386, 372, 94, 370, 383, 389, 387, 0, 400, 79, 82, 395, 381, 94, 379,
368, 382, 376, 364, 368, 364, 366, 366, 0, 82, 392, 377, 391, 385, 373, 377, 373, 375, 375, 0,
0, 365, 363, 357, 364, 0, 0, 370, 370, 353, 82, 0, 374, 372, 366, 373, 0, 0, 379, 379,
89, 98, 368, 93, 95, 359, 106, 351, 367, 363, 362, 89, 98, 377, 93, 95, 368, 106, 360, 376,
341, 101, 362, 353, 112, 346, 0, 134, 135, 434, 372, 350, 101, 371, 362, 112, 355, 0, 134, 135,
0, 378, 0, 379, 367, 0, 0, 355, 350, 357, 444, 0, 387, 0, 388, 376, 0, 0, 364, 359,
355, 338, 336, 335, 340, 106, 338, 350, 93, 338, 366, 364, 347, 345, 344, 349, 106, 347, 359, 93,
344, 345, 327, 327, 121, 0, 325, 341, 342, 0, 347, 353, 354, 336, 336, 121, 0, 334, 350, 351,
329, 338, 335, 119, 126, 332, 322, 331, 324, 321, 0, 338, 347, 344, 119, 126, 341, 331, 340, 333,
329, 0, 319, 329, 327, 318, 308, 302, 315, 300, 330, 338, 0, 328, 338, 336, 327, 317, 311, 324,
320, 0, 0, 305, 0, 319, 310, 307, 130, 303, 309, 329, 0, 0, 314, 0, 328, 319, 316, 130,
310, 317, 296, 298, 303, 303, 295, 298, 293, 0, 312, 319, 326, 305, 307, 312, 312, 304, 307, 302,
0, 305, 289, 299, 306, 297, 285, 284, 298, 287, 0, 0, 314, 298, 308, 315, 306, 294, 293, 307,
300, 280, 0, 290, 272, 0, 291, 0, 288, 275, 296, 309, 289, 0, 299, 281, 0, 300, 0, 297,
0, 274, 269, 274, 273, 283, 0, 269, 0, 273, 284, 0, 283, 278, 283, 282, 292, 0, 278, 0,
0, 0, 269, 266, 280, 0, 265, 265, 263, 279, 282, 0, 0, 278, 275, 289, 0, 274, 274, 272,
264, 276, 258, 276, 271, 0, 266, 266, 252, 251, 288, 273, 285, 267, 285, 280, 0, 275, 275, 261,
264, 250, 264, 263, 262, 0, 246, 0, 240, 0, 260, 273, 259, 273, 272, 271, 0, 255, 0, 249,
259, 243, 242, 242, 0, 255, 245, 240, 239, 251, 0, 268, 252, 251, 251, 0, 264, 254, 249, 248,
241, 240, 0, 0, 0, 244, 0, 232, 0, 246, 260, 250, 249, 0, 0, 0, 253, 0, 241, 0,
242, 228, 0, 242, 243, 226, 231, 224, 242, 224, 255, 251, 237, 0, 251, 252, 235, 240, 233, 251,
221, 222, 219, 0, 224, 236, 223, 230, 220, 228, 233, 230, 231, 228, 0, 233, 245, 232, 239, 229,
213, 0, 0, 0, 205, 212, 0, 0, 209, 0, 237, 222, 0, 0, 0, 214, 221, 0, 0, 218,
208, 0, 222, 0, 223, 210, 209, 0, 205, 0, 0, 217, 0, 231, 0, 232, 219, 218, 0, 214,
208, 0, 200, 202, 0, 201, 215, 208, 0, 0, 0, 217, 0, 209, 211, 0, 210, 224, 217, 0,
211, 214, 196, 211, 0, 207, 0, 0, 191, 205, 0, 220, 223, 205, 220, 0, 216, 0, 0, 200,
204, 0, 0, 188, 187, 192, 0, 201, 186, 0, 214, 213, 0, 0, 197, 196, 201, 0, 210, 195,
0, 192, 188, 0, 183, 0, 195, 195, 183, 193, 0, 0, 201, 197, 0, 192, 0, 204, 204, 192,
182, 0, 169, 0, 0, 189, 0, 173, 167, 173, 202, 191, 0, 178, 0, 0, 198, 0, 182, 176,
0, 164, 0, 169, 182, 0, 181, 0, 0, 172, 182, 0, 173, 0, 178, 191, 0, 190, 0, 0,
0, 176, 0, 163, 163, 169, 155, 178, 167, 167, 181, 0, 185, 0, 172, 172, 178, 164, 187, 175,
149, 125, 116, 0, 127, 133, 124, 121, 117, 109, 174, 154, 125, 116, 0, 127, 133, 124, 121, 117,
0, 434, 165, 170, 175, 145, 180, 185, 190, 195 109, 0, 444, 165, 171, 177, 179, 145, 185, 191,
197, 203
} ; } ;
static yyconst flex_int16_t yy_def[401] = static yyconst flex_int16_t yy_def[403] =
{ 0, { 0,
392, 1, 393, 393, 394, 394, 395, 395, 392, 392, 393, 1, 394, 394, 395, 395, 396, 396, 393, 393,
392, 392, 392, 392, 392, 392, 392, 392, 392, 392, 393, 393, 393, 393, 393, 393, 393, 393, 393, 393,
392, 392, 392, 392, 392, 392, 392, 392, 392, 392, 393, 393, 393, 393, 397, 393, 393, 393, 393, 393,
396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
396, 396, 396, 396, 396, 396, 396, 396, 392, 392, 398, 398, 398, 398, 398, 398, 398, 398, 393, 393,
397, 398, 399, 392, 400, 392, 392, 392, 392, 392, 399, 400, 401, 393, 402, 393, 393, 393, 393, 393,
392, 392, 392, 392, 392, 396, 396, 396, 396, 396, 393, 397, 393, 393, 393, 393, 398, 398, 398, 398,
396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
396, 396, 396, 396, 396, 396, 397, 398, 398, 392, 398, 398, 398, 398, 398, 398, 398, 399, 400, 400,
399, 392, 400, 392, 392, 396, 396, 396, 396, 396, 393, 401, 393, 402, 393, 393, 398, 398, 398, 398,
396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
396, 0, 392, 392, 392, 392, 392, 392, 392, 392 398, 398, 0, 393, 393, 393, 393, 393, 393, 393,
393, 393
} ; } ;
static yyconst flex_int16_t yy_nxt[484] = static yyconst flex_int16_t yy_nxt[494] =
{ 0, { 0,
10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
30, 31, 32, 33, 34, 35, 36, 37, 37, 38, 30, 31, 32, 33, 34, 35, 36, 37, 37, 38,
37, 37, 39, 37, 40, 41, 42, 37, 43, 44, 37, 37, 39, 37, 40, 41, 42, 37, 43, 44,
45, 46, 47, 48, 37, 37, 37, 49, 50, 57, 45, 46, 47, 48, 37, 37, 37, 49, 50, 57,
57, 57, 57, 60, 67, 61, 63, 64, 69, 68, 57, 57, 57, 60, 68, 61, 64, 65, 70, 69,
73, 112, 70, 113, 74, 71, 60, 75, 61, 84, 74, 113, 71, 114, 75, 72, 60, 76, 61, 85,
76, 78, 81, 77, 82, 79, 85, 92, 72, 86, 77, 79, 82, 78, 83, 80, 86, 93, 73, 87,
89, 80, 87, 94, 83, 88, 96, 93, 90, 95, 90, 81, 88, 95, 84, 89, 97, 94, 91, 96,
102, 105, 127, 91, 97, 109, 98, 115, 99, 103, 103, 106, 128, 92, 98, 110, 99, 116, 100, 104,
104, 100, 110, 106, 116, 119, 153, 107, 128, 111, 105, 101, 111, 107, 117, 120, 154, 108, 129, 112,
120, 108, 57, 57, 133, 135, 136, 140, 163, 165, 121, 109, 57, 57, 134, 136, 137, 141, 164, 166,
134, 154, 155, 137, 164, 169, 141, 171, 174, 195, 135, 155, 156, 138, 165, 170, 142, 172, 175, 196,
180, 199, 200, 142, 166, 172, 170, 184, 167, 175, 181, 200, 201, 143, 167, 173, 171, 185, 168, 176,
181, 185, 392, 119, 214, 196, 206, 392, 120, 66, 182, 186, 393, 120, 215, 197, 207, 393, 121, 67,
207, 216, 237, 238, 391, 390, 389, 388, 387, 215, 208, 217, 238, 239, 392, 391, 390, 389, 388, 216,
386, 217, 385, 384, 239, 51, 51, 51, 51, 51, 387, 218, 386, 385, 240, 51, 51, 51, 51, 51,
53, 53, 53, 53, 53, 55, 55, 55, 55, 55, 51, 53, 53, 53, 53, 53, 53, 55, 55, 55,
117, 117, 117, 383, 117, 118, 118, 118, 118, 118, 55, 55, 55, 62, 62, 118, 118, 118, 384, 118,
121, 121, 382, 121, 121, 123, 381, 123, 123, 123, 118, 119, 119, 119, 119, 119, 119, 122, 122, 383,
122, 122, 122, 124, 382, 124, 124, 124, 124, 381,
380, 379, 378, 377, 376, 375, 374, 373, 372, 371, 380, 379, 378, 377, 376, 375, 374, 373, 372, 371,
370, 369, 368, 367, 366, 365, 364, 363, 362, 361, 370, 369, 368, 367, 366, 365, 364, 363, 362, 361,
360, 359, 358, 357, 356, 355, 354, 353, 352, 351, 360, 359, 358, 357, 356, 355, 354, 353, 352, 351,
...@@ -583,31 +586,32 @@ static yyconst flex_int16_t yy_nxt[484] = ...@@ -583,31 +586,32 @@ static yyconst flex_int16_t yy_nxt[484] =
320, 319, 318, 317, 316, 315, 314, 313, 312, 311, 320, 319, 318, 317, 316, 315, 314, 313, 312, 311,
310, 309, 308, 307, 306, 305, 304, 303, 302, 301, 310, 309, 308, 307, 306, 305, 304, 303, 302, 301,
300, 299, 298, 297, 296, 295, 294, 293, 292, 291, 300, 299, 298, 297, 296, 295, 294, 293, 292, 291,
290, 289, 288, 287, 286, 285, 284, 283, 282, 281,
290, 289, 288, 287, 286, 285, 284, 283, 282, 281,
280, 279, 278, 277, 276, 275, 274, 273, 272, 271, 280, 279, 278, 277, 276, 275, 274, 273, 272, 271,
270, 269, 268, 267, 266, 265, 264, 263, 262, 261, 270, 269, 268, 267, 266, 265, 264, 263, 262, 261,
260, 259, 258, 257, 256, 255, 254, 253, 252, 251, 260, 259, 258, 257, 256, 255, 254, 253, 252, 251,
250, 249, 248, 247, 246, 245, 244, 243, 242, 241, 250, 249, 248, 247, 246, 245, 244, 243, 242, 241,
240, 236, 235, 234, 233, 232, 231, 230, 229, 228, 237, 236, 235, 234, 233, 232, 231, 230, 229, 228,
227, 226, 225, 224, 223, 222, 221, 220, 219, 218, 227, 226, 225, 224, 223, 222, 221, 220, 219, 214,
213, 212, 211, 210, 209, 208, 205, 204, 203, 202, 213, 212, 211, 210, 209, 206, 205, 204, 203, 202,
201, 198, 197, 194, 193, 192, 191, 190, 189, 188, 199, 198, 195, 194, 193, 192, 191, 190, 189, 188,
187, 125, 124, 122, 186, 183, 182, 179, 178, 177, 126, 125, 123, 187, 184, 183, 180, 179, 178, 177,
176, 173, 168, 162, 161, 160, 159, 158, 157, 156,
174, 169, 163, 162, 161, 160, 159, 158, 157, 153,
152, 151, 150, 149, 148, 147, 146, 145, 144, 143, 152, 151, 150, 149, 148, 147, 146, 145, 144, 140,
139, 138, 132, 131, 130, 129, 126, 125, 124, 122, 139, 133, 132, 131, 130, 127, 393, 126, 125, 123,
114, 101, 65, 62, 59, 58, 392, 56, 56, 54, 115, 102, 66, 63, 59, 58, 393, 56, 56, 54,
54, 52, 52, 9, 392, 392, 392, 392, 392, 392, 54, 52, 52, 9, 393, 393, 393, 393, 393, 393,
392, 392, 392, 392, 392, 392, 392, 392, 392, 392, 393, 393, 393, 393, 393, 393, 393, 393, 393, 393,
392, 392, 392, 392, 392, 392, 392, 392, 392, 392, 393, 393, 393, 393, 393, 393, 393, 393, 393, 393,
392, 392, 392, 392, 392, 392, 392, 392, 392, 392, 393, 393, 393, 393, 393, 393, 393, 393, 393, 393,
392, 392, 392, 392, 392, 392, 392, 392, 392, 392, 393, 393, 393, 393, 393, 393, 393, 393, 393, 393,
392, 392, 392 393, 393, 393
} ; } ;
static yyconst flex_int16_t yy_chk[484] = static yyconst flex_int16_t yy_chk[494] =
{ 0, { 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,
...@@ -618,50 +622,52 @@ static yyconst flex_int16_t yy_chk[484] = ...@@ -618,50 +622,52 @@ static yyconst flex_int16_t yy_chk[484] =
33, 46, 32, 46, 33, 32, 61, 33, 61, 36, 33, 46, 32, 46, 33, 32, 61, 33, 61, 36,
33, 34, 35, 33, 35, 34, 36, 39, 32, 36, 33, 34, 35, 33, 35, 34, 36, 39, 32, 36,
38, 34, 36, 40, 35, 36, 41, 39, 38, 40, 38, 34, 36, 40, 35, 36, 41, 39, 38, 40,
43, 44, 68, 38, 41, 45, 41, 48, 41, 43, 43, 44, 69, 38, 41, 45, 41, 48, 41, 43,
43, 41, 45, 44, 48, 52, 90, 44, 68, 45, 43, 41, 45, 44, 48, 52, 91, 44, 69, 45,
52, 44, 57, 57, 74, 75, 75, 78, 101, 102, 52, 44, 57, 57, 75, 76, 76, 79, 102, 103,
74, 90, 90, 75, 101, 104, 78, 105, 107, 136, 75, 91, 91, 76, 102, 105, 79, 106, 108, 137,
112, 139, 139, 78, 102, 105, 104, 115, 102, 107, 113, 140, 140, 79, 103, 106, 105, 116, 103, 108,
112, 115, 118, 119, 154, 136, 145, 118, 119, 396, 113, 116, 119, 120, 155, 137, 146, 119, 120, 398,
145, 155, 179, 179, 390, 389, 388, 387, 386, 154, 146, 156, 180, 180, 391, 390, 389, 388, 387, 155,
385, 155, 383, 382, 179, 393, 393, 393, 393, 393, 386, 156, 384, 383, 180, 394, 394, 394, 394, 394,
394, 394, 394, 394, 394, 395, 395, 395, 395, 395, 394, 395, 395, 395, 395, 395, 395, 396, 396, 396,
397, 397, 397, 381, 397, 398, 398, 398, 398, 398, 396, 396, 396, 397, 397, 399, 399, 399, 382, 399,
399, 399, 380, 399, 399, 400, 379, 400, 400, 400, 399, 400, 400, 400, 400, 400, 400, 401, 401, 381,
378, 377, 376, 375, 374, 372, 370, 367, 365, 364, 401, 401, 401, 402, 380, 402, 402, 402, 402, 379,
362, 360, 359, 358, 356, 353, 351, 350, 349, 348, 378, 377, 376, 375, 373, 371, 368, 366, 365, 363,
347, 345, 343, 342, 339, 338, 336, 335, 334, 331, 361, 360, 359, 357, 354, 352, 351, 350, 349, 348,
330, 329, 326, 324, 323, 322, 321, 318, 317, 316, 346, 344, 343, 340, 339, 337, 336, 335, 332, 331,
314, 313, 311, 309, 307, 306, 305, 303, 301, 299, 330, 327, 325, 324, 323, 322, 319, 318, 317, 315,
296, 295, 291, 290, 289, 288, 287, 286, 285, 283, 314, 312, 310, 308, 307, 306, 304, 302, 300, 297,
282, 281, 280, 279, 278, 277, 276, 275, 274, 272, 296, 292, 291, 290, 289, 288, 287, 286, 284, 283,
271, 270, 268, 266, 262, 261, 260, 259, 258, 257, 282, 281, 280, 279, 278, 277, 276, 275, 273, 272,
256, 254, 253, 252, 251, 249, 247, 245, 244, 243, 271, 269, 267, 263, 262, 261, 260, 259, 258, 257,
242, 241, 240, 239, 238, 237, 235, 234, 233, 232, 255, 254, 253, 252, 250, 248, 246, 245, 244, 243,
231, 230, 229, 228, 227, 225, 224, 223, 220, 218, 242, 241, 240, 239, 238, 236, 235, 234, 233, 232,
216, 215, 214, 213, 212, 210, 209, 207, 205, 204, 231, 230, 229, 228, 226, 225, 224, 221, 219, 217,
216, 215, 214, 213, 211, 210, 208, 206, 205, 203,
202, 201, 200, 199, 198, 197, 196, 195, 194, 193, 202, 201, 200, 199, 198, 197, 196, 195, 194, 193,
192, 189, 188, 187, 186, 185, 184, 183, 182, 181, 190, 189, 188, 187, 186, 185, 184, 183, 182, 181,
180, 178, 177, 176, 174, 171, 170, 169, 168, 167, 179, 178, 177, 175, 172, 171, 170, 169, 168, 167,
166, 165, 164, 163, 161, 160, 159, 158, 157, 156, 166, 165, 164, 162, 161, 160, 159, 158, 157, 154,
153, 152, 151, 149, 148, 147, 144, 143, 142, 141, 153, 152, 150, 149, 148, 145, 144, 143, 142, 141,
140, 138, 137, 135, 134, 133, 132, 131, 130, 129, 139, 138, 136, 135, 134, 133, 132, 131, 130, 129,
128, 125, 124, 122, 116, 114, 113, 111, 110, 109, 126, 125, 123, 117, 115, 114, 112, 111, 110, 109,
108, 106, 103, 100, 99, 98, 95, 94, 93, 92,
107, 104, 101, 100, 99, 96, 95, 94, 93, 89,
88, 87, 86, 85, 84, 83, 82, 81, 80, 79, 88, 87, 86, 85, 84, 83, 82, 81, 80, 78,
77, 76, 73, 71, 70, 69, 67, 60, 56, 54, 77, 74, 72, 71, 70, 68, 62, 60, 56, 54,
47, 42, 29, 25, 23, 22, 9, 8, 7, 6, 47, 42, 29, 25, 23, 22, 9, 8, 7, 6,
5, 4, 3, 392, 392, 392, 392, 392, 392, 392, 5, 4, 3, 393, 393, 393, 393, 393, 393, 393,
392, 392, 392, 392, 392, 392, 392, 392, 392, 392, 393, 393, 393, 393, 393, 393, 393, 393, 393, 393,
392, 392, 392, 392, 392, 392, 392, 392, 392, 392, 393, 393, 393, 393, 393, 393, 393, 393, 393, 393,
392, 392, 392, 392, 392, 392, 392, 392, 392, 392, 393, 393, 393, 393, 393, 393, 393, 393, 393, 393,
392, 392, 392, 392, 392, 392, 392, 392, 392, 392, 393, 393, 393, 393, 393, 393, 393, 393, 393, 393,
392, 392, 392 393, 393, 393
} ; } ;
static yy_state_type yy_last_accepting_state; static yy_state_type yy_last_accepting_state;
...@@ -750,7 +756,7 @@ string_append( ...@@ -750,7 +756,7 @@ string_append(
#line 753 "_flex_tmp.c" #line 759 "_flex_tmp.c"
#define INITIAL 0 #define INITIAL 0
#define comment 1 #define comment 1
...@@ -902,10 +908,10 @@ YY_DECL ...@@ -902,10 +908,10 @@ YY_DECL
register char *yy_cp, *yy_bp; register char *yy_cp, *yy_bp;
register int yy_act; register int yy_act;
#line 89 "pars0lex.l" #line 91 "pars0lex.l"
#line 908 "_flex_tmp.c" #line 914 "_flex_tmp.c"
if ( (yy_init) ) if ( (yy_init) )
{ {
...@@ -958,13 +964,13 @@ YY_DECL ...@@ -958,13 +964,13 @@ YY_DECL
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{ {
yy_current_state = (int) yy_def[yy_current_state]; yy_current_state = (int) yy_def[yy_current_state];
if ( yy_current_state >= 393 ) if ( yy_current_state >= 394 )
yy_c = yy_meta[(unsigned int) yy_c]; yy_c = yy_meta[(unsigned int) yy_c];
} }
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
++yy_cp; ++yy_cp;
} }
while ( yy_current_state != 392 ); while ( yy_current_state != 393 );
yy_cp = (yy_last_accepting_cpos); yy_cp = (yy_last_accepting_cpos);
yy_current_state = (yy_last_accepting_state); yy_current_state = (yy_last_accepting_state);
...@@ -986,7 +992,7 @@ YY_DECL ...@@ -986,7 +992,7 @@ YY_DECL
case 1: case 1:
YY_RULE_SETUP YY_RULE_SETUP
#line 91 "pars0lex.l" #line 93 "pars0lex.l"
{ {
yylval = sym_tab_add_int_lit(pars_sym_tab_global, yylval = sym_tab_add_int_lit(pars_sym_tab_global,
atoi(yytext)); atoi(yytext));
...@@ -995,7 +1001,7 @@ YY_RULE_SETUP ...@@ -995,7 +1001,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 2: case 2:
YY_RULE_SETUP YY_RULE_SETUP
#line 97 "pars0lex.l" #line 99 "pars0lex.l"
{ {
ut_error; /* not implemented */ ut_error; /* not implemented */
...@@ -1004,7 +1010,19 @@ YY_RULE_SETUP ...@@ -1004,7 +1010,19 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 3: case 3:
YY_RULE_SETUP YY_RULE_SETUP
#line 103 "pars0lex.l" #line 105 "pars0lex.l"
{
ulint type;
yylval = sym_tab_add_bound_lit(pars_sym_tab_global,
yytext + 1, &type);
return(type);
}
YY_BREAK
case 4:
YY_RULE_SETUP
#line 114 "pars0lex.l"
{ {
/* Quoted character string literals are handled in an explicit /* Quoted character string literals are handled in an explicit
start state 'quoted'. This state is entered and the buffer for start state 'quoted'. This state is entered and the buffer for
...@@ -1015,19 +1033,19 @@ In the state 'quoted', only two actions are possible (defined below). */ ...@@ -1015,19 +1033,19 @@ In the state 'quoted', only two actions are possible (defined below). */
stringbuf_len = 0; stringbuf_len = 0;
} }
YY_BREAK YY_BREAK
case 4: case 5:
/* rule 4 can match eol */ /* rule 5 can match eol */
YY_RULE_SETUP YY_RULE_SETUP
#line 112 "pars0lex.l" #line 123 "pars0lex.l"
{ {
/* Got a sequence of characters other than "'": /* Got a sequence of characters other than "'":
append to string buffer */ append to string buffer */
string_append(yytext, yyleng); string_append(yytext, yyleng);
} }
YY_BREAK YY_BREAK
case 5: case 6:
YY_RULE_SETUP YY_RULE_SETUP
#line 117 "pars0lex.l" #line 128 "pars0lex.l"
{ {
/* Got a sequence of "'" characters: /* Got a sequence of "'" characters:
append half of them to string buffer, append half of them to string buffer,
...@@ -1052,9 +1070,9 @@ YY_RULE_SETUP ...@@ -1052,9 +1070,9 @@ YY_RULE_SETUP
} }
} }
YY_BREAK YY_BREAK
case 6: case 7:
YY_RULE_SETUP YY_RULE_SETUP
#line 141 "pars0lex.l" #line 152 "pars0lex.l"
{ {
/* Quoted identifiers are handled in an explicit start state 'id'. /* Quoted identifiers are handled in an explicit start state 'id'.
This state is entered and the buffer for the scanned string is emptied This state is entered and the buffer for the scanned string is emptied
...@@ -1065,19 +1083,19 @@ In the state 'id', only two actions are possible (defined below). */ ...@@ -1065,19 +1083,19 @@ In the state 'id', only two actions are possible (defined below). */
stringbuf_len = 0; stringbuf_len = 0;
} }
YY_BREAK YY_BREAK
case 7: case 8:
/* rule 7 can match eol */ /* rule 8 can match eol */
YY_RULE_SETUP YY_RULE_SETUP
#line 150 "pars0lex.l" #line 161 "pars0lex.l"
{ {
/* Got a sequence of characters other than '"': /* Got a sequence of characters other than '"':
append to string buffer */ append to string buffer */
string_append(yytext, yyleng); string_append(yytext, yyleng);
} }
YY_BREAK YY_BREAK
case 8: case 9:
YY_RULE_SETUP YY_RULE_SETUP
#line 155 "pars0lex.l" #line 166 "pars0lex.l"
{ {
/* Got a sequence of '"' characters: /* Got a sequence of '"' characters:
append half of them to string buffer, append half of them to string buffer,
...@@ -1103,18 +1121,18 @@ YY_RULE_SETUP ...@@ -1103,18 +1121,18 @@ YY_RULE_SETUP
} }
} }
YY_BREAK YY_BREAK
case 9: case 10:
YY_RULE_SETUP YY_RULE_SETUP
#line 180 "pars0lex.l" #line 191 "pars0lex.l"
{ {
yylval = sym_tab_add_null_lit(pars_sym_tab_global); yylval = sym_tab_add_null_lit(pars_sym_tab_global);
return(PARS_NULL_LIT); return(PARS_NULL_LIT);
} }
YY_BREAK YY_BREAK
case 10: case 11:
YY_RULE_SETUP YY_RULE_SETUP
#line 186 "pars0lex.l" #line 197 "pars0lex.l"
{ {
/* Implicit cursor name */ /* Implicit cursor name */
yylval = sym_tab_add_str_lit(pars_sym_tab_global, yylval = sym_tab_add_str_lit(pars_sym_tab_global,
...@@ -1122,548 +1140,548 @@ YY_RULE_SETUP ...@@ -1122,548 +1140,548 @@ YY_RULE_SETUP
return(PARS_SQL_TOKEN); return(PARS_SQL_TOKEN);
} }
YY_BREAK YY_BREAK
case 11: case 12:
YY_RULE_SETUP YY_RULE_SETUP
#line 193 "pars0lex.l" #line 204 "pars0lex.l"
{ {
return(PARS_AND_TOKEN); return(PARS_AND_TOKEN);
} }
YY_BREAK YY_BREAK
case 12: case 13:
YY_RULE_SETUP YY_RULE_SETUP
#line 197 "pars0lex.l" #line 208 "pars0lex.l"
{ {
return(PARS_OR_TOKEN); return(PARS_OR_TOKEN);
} }
YY_BREAK YY_BREAK
case 13: case 14:
YY_RULE_SETUP YY_RULE_SETUP
#line 201 "pars0lex.l" #line 212 "pars0lex.l"
{ {
return(PARS_NOT_TOKEN); return(PARS_NOT_TOKEN);
} }
YY_BREAK YY_BREAK
case 14: case 15:
YY_RULE_SETUP YY_RULE_SETUP
#line 205 "pars0lex.l" #line 216 "pars0lex.l"
{ {
return(PARS_PROCEDURE_TOKEN); return(PARS_PROCEDURE_TOKEN);
} }
YY_BREAK YY_BREAK
case 15: case 16:
YY_RULE_SETUP YY_RULE_SETUP
#line 209 "pars0lex.l" #line 220 "pars0lex.l"
{ {
return(PARS_IN_TOKEN); return(PARS_IN_TOKEN);
} }
YY_BREAK YY_BREAK
case 16: case 17:
YY_RULE_SETUP YY_RULE_SETUP
#line 213 "pars0lex.l" #line 224 "pars0lex.l"
{ {
return(PARS_OUT_TOKEN); return(PARS_OUT_TOKEN);
} }
YY_BREAK YY_BREAK
case 17: case 18:
YY_RULE_SETUP YY_RULE_SETUP
#line 217 "pars0lex.l" #line 228 "pars0lex.l"
{ {
return(PARS_BINARY_TOKEN); return(PARS_BINARY_TOKEN);
} }
YY_BREAK YY_BREAK
case 18: case 19:
YY_RULE_SETUP YY_RULE_SETUP
#line 221 "pars0lex.l" #line 232 "pars0lex.l"
{ {
return(PARS_BLOB_TOKEN); return(PARS_BLOB_TOKEN);
} }
YY_BREAK YY_BREAK
case 19: case 20:
YY_RULE_SETUP YY_RULE_SETUP
#line 225 "pars0lex.l" #line 236 "pars0lex.l"
{ {
return(PARS_INT_TOKEN); return(PARS_INT_TOKEN);
} }
YY_BREAK YY_BREAK
case 20: case 21:
YY_RULE_SETUP YY_RULE_SETUP
#line 229 "pars0lex.l" #line 240 "pars0lex.l"
{ {
return(PARS_INT_TOKEN); return(PARS_INT_TOKEN);
} }
YY_BREAK YY_BREAK
case 21: case 22:
YY_RULE_SETUP YY_RULE_SETUP
#line 233 "pars0lex.l" #line 244 "pars0lex.l"
{ {
return(PARS_FLOAT_TOKEN); return(PARS_FLOAT_TOKEN);
} }
YY_BREAK YY_BREAK
case 22: case 23:
YY_RULE_SETUP YY_RULE_SETUP
#line 237 "pars0lex.l" #line 248 "pars0lex.l"
{ {
return(PARS_CHAR_TOKEN); return(PARS_CHAR_TOKEN);
} }
YY_BREAK YY_BREAK
case 23: case 24:
YY_RULE_SETUP YY_RULE_SETUP
#line 241 "pars0lex.l" #line 252 "pars0lex.l"
{ {
return(PARS_IS_TOKEN); return(PARS_IS_TOKEN);
} }
YY_BREAK YY_BREAK
case 24: case 25:
YY_RULE_SETUP YY_RULE_SETUP
#line 245 "pars0lex.l" #line 256 "pars0lex.l"
{ {
return(PARS_BEGIN_TOKEN); return(PARS_BEGIN_TOKEN);
} }
YY_BREAK YY_BREAK
case 25: case 26:
YY_RULE_SETUP YY_RULE_SETUP
#line 249 "pars0lex.l" #line 260 "pars0lex.l"
{ {
return(PARS_END_TOKEN); return(PARS_END_TOKEN);
} }
YY_BREAK YY_BREAK
case 26: case 27:
YY_RULE_SETUP YY_RULE_SETUP
#line 253 "pars0lex.l" #line 264 "pars0lex.l"
{ {
return(PARS_IF_TOKEN); return(PARS_IF_TOKEN);
} }
YY_BREAK YY_BREAK
case 27: case 28:
YY_RULE_SETUP YY_RULE_SETUP
#line 257 "pars0lex.l" #line 268 "pars0lex.l"
{ {
return(PARS_THEN_TOKEN); return(PARS_THEN_TOKEN);
} }
YY_BREAK YY_BREAK
case 28: case 29:
YY_RULE_SETUP YY_RULE_SETUP
#line 261 "pars0lex.l" #line 272 "pars0lex.l"
{ {
return(PARS_ELSE_TOKEN); return(PARS_ELSE_TOKEN);
} }
YY_BREAK YY_BREAK
case 29: case 30:
YY_RULE_SETUP YY_RULE_SETUP
#line 265 "pars0lex.l" #line 276 "pars0lex.l"
{ {
return(PARS_ELSIF_TOKEN); return(PARS_ELSIF_TOKEN);
} }
YY_BREAK YY_BREAK
case 30: case 31:
YY_RULE_SETUP YY_RULE_SETUP
#line 269 "pars0lex.l" #line 280 "pars0lex.l"
{ {
return(PARS_LOOP_TOKEN); return(PARS_LOOP_TOKEN);
} }
YY_BREAK YY_BREAK
case 31: case 32:
YY_RULE_SETUP YY_RULE_SETUP
#line 273 "pars0lex.l" #line 284 "pars0lex.l"
{ {
return(PARS_WHILE_TOKEN); return(PARS_WHILE_TOKEN);
} }
YY_BREAK YY_BREAK
case 32: case 33:
YY_RULE_SETUP YY_RULE_SETUP
#line 277 "pars0lex.l" #line 288 "pars0lex.l"
{ {
return(PARS_RETURN_TOKEN); return(PARS_RETURN_TOKEN);
} }
YY_BREAK YY_BREAK
case 33: case 34:
YY_RULE_SETUP YY_RULE_SETUP
#line 281 "pars0lex.l" #line 292 "pars0lex.l"
{ {
return(PARS_SELECT_TOKEN); return(PARS_SELECT_TOKEN);
} }
YY_BREAK YY_BREAK
case 34: case 35:
YY_RULE_SETUP YY_RULE_SETUP
#line 285 "pars0lex.l" #line 296 "pars0lex.l"
{ {
return(PARS_SUM_TOKEN); return(PARS_SUM_TOKEN);
} }
YY_BREAK YY_BREAK
case 35: case 36:
YY_RULE_SETUP YY_RULE_SETUP
#line 289 "pars0lex.l" #line 300 "pars0lex.l"
{ {
return(PARS_COUNT_TOKEN); return(PARS_COUNT_TOKEN);
} }
YY_BREAK YY_BREAK
case 36: case 37:
YY_RULE_SETUP YY_RULE_SETUP
#line 293 "pars0lex.l" #line 304 "pars0lex.l"
{ {
return(PARS_DISTINCT_TOKEN); return(PARS_DISTINCT_TOKEN);
} }
YY_BREAK YY_BREAK
case 37: case 38:
YY_RULE_SETUP YY_RULE_SETUP
#line 297 "pars0lex.l" #line 308 "pars0lex.l"
{ {
return(PARS_FROM_TOKEN); return(PARS_FROM_TOKEN);
} }
YY_BREAK YY_BREAK
case 38: case 39:
YY_RULE_SETUP YY_RULE_SETUP
#line 301 "pars0lex.l" #line 312 "pars0lex.l"
{ {
return(PARS_WHERE_TOKEN); return(PARS_WHERE_TOKEN);
} }
YY_BREAK YY_BREAK
case 39: case 40:
YY_RULE_SETUP YY_RULE_SETUP
#line 305 "pars0lex.l" #line 316 "pars0lex.l"
{ {
return(PARS_FOR_TOKEN); return(PARS_FOR_TOKEN);
} }
YY_BREAK YY_BREAK
case 40: case 41:
YY_RULE_SETUP YY_RULE_SETUP
#line 309 "pars0lex.l" #line 320 "pars0lex.l"
{ {
return(PARS_CONSISTENT_TOKEN); return(PARS_CONSISTENT_TOKEN);
} }
YY_BREAK YY_BREAK
case 41: case 42:
YY_RULE_SETUP YY_RULE_SETUP
#line 313 "pars0lex.l" #line 324 "pars0lex.l"
{ {
return(PARS_READ_TOKEN); return(PARS_READ_TOKEN);
} }
YY_BREAK YY_BREAK
case 42: case 43:
YY_RULE_SETUP YY_RULE_SETUP
#line 317 "pars0lex.l" #line 328 "pars0lex.l"
{ {
return(PARS_ORDER_TOKEN); return(PARS_ORDER_TOKEN);
} }
YY_BREAK YY_BREAK
case 43: case 44:
YY_RULE_SETUP YY_RULE_SETUP
#line 321 "pars0lex.l" #line 332 "pars0lex.l"
{ {
return(PARS_BY_TOKEN); return(PARS_BY_TOKEN);
} }
YY_BREAK YY_BREAK
case 44: case 45:
YY_RULE_SETUP YY_RULE_SETUP
#line 325 "pars0lex.l" #line 336 "pars0lex.l"
{ {
return(PARS_ASC_TOKEN); return(PARS_ASC_TOKEN);
} }
YY_BREAK YY_BREAK
case 45: case 46:
YY_RULE_SETUP YY_RULE_SETUP
#line 329 "pars0lex.l" #line 340 "pars0lex.l"
{ {
return(PARS_DESC_TOKEN); return(PARS_DESC_TOKEN);
} }
YY_BREAK YY_BREAK
case 46: case 47:
YY_RULE_SETUP YY_RULE_SETUP
#line 333 "pars0lex.l" #line 344 "pars0lex.l"
{ {
return(PARS_INSERT_TOKEN); return(PARS_INSERT_TOKEN);
} }
YY_BREAK YY_BREAK
case 47: case 48:
YY_RULE_SETUP YY_RULE_SETUP
#line 337 "pars0lex.l" #line 348 "pars0lex.l"
{ {
return(PARS_INTO_TOKEN); return(PARS_INTO_TOKEN);
} }
YY_BREAK YY_BREAK
case 48: case 49:
YY_RULE_SETUP YY_RULE_SETUP
#line 341 "pars0lex.l" #line 352 "pars0lex.l"
{ {
return(PARS_VALUES_TOKEN); return(PARS_VALUES_TOKEN);
} }
YY_BREAK YY_BREAK
case 49: case 50:
YY_RULE_SETUP YY_RULE_SETUP
#line 345 "pars0lex.l" #line 356 "pars0lex.l"
{ {
return(PARS_UPDATE_TOKEN); return(PARS_UPDATE_TOKEN);
} }
YY_BREAK YY_BREAK
case 50: case 51:
YY_RULE_SETUP YY_RULE_SETUP
#line 349 "pars0lex.l" #line 360 "pars0lex.l"
{ {
return(PARS_SET_TOKEN); return(PARS_SET_TOKEN);
} }
YY_BREAK YY_BREAK
case 51: case 52:
YY_RULE_SETUP YY_RULE_SETUP
#line 353 "pars0lex.l" #line 364 "pars0lex.l"
{ {
return(PARS_DELETE_TOKEN); return(PARS_DELETE_TOKEN);
} }
YY_BREAK YY_BREAK
case 52: case 53:
YY_RULE_SETUP YY_RULE_SETUP
#line 357 "pars0lex.l" #line 368 "pars0lex.l"
{ {
return(PARS_CURRENT_TOKEN); return(PARS_CURRENT_TOKEN);
} }
YY_BREAK YY_BREAK
case 53: case 54:
YY_RULE_SETUP YY_RULE_SETUP
#line 361 "pars0lex.l" #line 372 "pars0lex.l"
{ {
return(PARS_OF_TOKEN); return(PARS_OF_TOKEN);
} }
YY_BREAK YY_BREAK
case 54: case 55:
YY_RULE_SETUP YY_RULE_SETUP
#line 365 "pars0lex.l" #line 376 "pars0lex.l"
{ {
return(PARS_CREATE_TOKEN); return(PARS_CREATE_TOKEN);
} }
YY_BREAK YY_BREAK
case 55: case 56:
YY_RULE_SETUP YY_RULE_SETUP
#line 369 "pars0lex.l" #line 380 "pars0lex.l"
{ {
return(PARS_TABLE_TOKEN); return(PARS_TABLE_TOKEN);
} }
YY_BREAK YY_BREAK
case 56: case 57:
YY_RULE_SETUP YY_RULE_SETUP
#line 373 "pars0lex.l" #line 384 "pars0lex.l"
{ {
return(PARS_INDEX_TOKEN); return(PARS_INDEX_TOKEN);
} }
YY_BREAK YY_BREAK
case 57: case 58:
YY_RULE_SETUP YY_RULE_SETUP
#line 377 "pars0lex.l" #line 388 "pars0lex.l"
{ {
return(PARS_UNIQUE_TOKEN); return(PARS_UNIQUE_TOKEN);
} }
YY_BREAK YY_BREAK
case 58: case 59:
YY_RULE_SETUP YY_RULE_SETUP
#line 381 "pars0lex.l" #line 392 "pars0lex.l"
{ {
return(PARS_CLUSTERED_TOKEN); return(PARS_CLUSTERED_TOKEN);
} }
YY_BREAK YY_BREAK
case 59: case 60:
YY_RULE_SETUP YY_RULE_SETUP
#line 385 "pars0lex.l" #line 396 "pars0lex.l"
{ {
return(PARS_DOES_NOT_FIT_IN_MEM_TOKEN); return(PARS_DOES_NOT_FIT_IN_MEM_TOKEN);
} }
YY_BREAK YY_BREAK
case 60: case 61:
YY_RULE_SETUP YY_RULE_SETUP
#line 389 "pars0lex.l" #line 400 "pars0lex.l"
{ {
return(PARS_ON_TOKEN); return(PARS_ON_TOKEN);
} }
YY_BREAK YY_BREAK
case 61: case 62:
YY_RULE_SETUP YY_RULE_SETUP
#line 393 "pars0lex.l" #line 404 "pars0lex.l"
{ {
return(PARS_DECLARE_TOKEN); return(PARS_DECLARE_TOKEN);
} }
YY_BREAK YY_BREAK
case 62: case 63:
YY_RULE_SETUP YY_RULE_SETUP
#line 397 "pars0lex.l" #line 408 "pars0lex.l"
{ {
return(PARS_CURSOR_TOKEN); return(PARS_CURSOR_TOKEN);
} }
YY_BREAK YY_BREAK
case 63: case 64:
YY_RULE_SETUP YY_RULE_SETUP
#line 401 "pars0lex.l" #line 412 "pars0lex.l"
{ {
return(PARS_OPEN_TOKEN); return(PARS_OPEN_TOKEN);
} }
YY_BREAK YY_BREAK
case 64: case 65:
YY_RULE_SETUP YY_RULE_SETUP
#line 405 "pars0lex.l" #line 416 "pars0lex.l"
{ {
return(PARS_FETCH_TOKEN); return(PARS_FETCH_TOKEN);
} }
YY_BREAK YY_BREAK
case 65: case 66:
YY_RULE_SETUP YY_RULE_SETUP
#line 409 "pars0lex.l" #line 420 "pars0lex.l"
{ {
return(PARS_CLOSE_TOKEN); return(PARS_CLOSE_TOKEN);
} }
YY_BREAK YY_BREAK
case 66: case 67:
YY_RULE_SETUP YY_RULE_SETUP
#line 413 "pars0lex.l" #line 424 "pars0lex.l"
{ {
return(PARS_NOTFOUND_TOKEN); return(PARS_NOTFOUND_TOKEN);
} }
YY_BREAK YY_BREAK
case 67: case 68:
YY_RULE_SETUP YY_RULE_SETUP
#line 417 "pars0lex.l" #line 428 "pars0lex.l"
{ {
return(PARS_TO_CHAR_TOKEN); return(PARS_TO_CHAR_TOKEN);
} }
YY_BREAK YY_BREAK
case 68: case 69:
YY_RULE_SETUP YY_RULE_SETUP
#line 421 "pars0lex.l" #line 432 "pars0lex.l"
{ {
return(PARS_TO_NUMBER_TOKEN); return(PARS_TO_NUMBER_TOKEN);
} }
YY_BREAK YY_BREAK
case 69: case 70:
YY_RULE_SETUP YY_RULE_SETUP
#line 425 "pars0lex.l" #line 436 "pars0lex.l"
{ {
return(PARS_TO_BINARY_TOKEN); return(PARS_TO_BINARY_TOKEN);
} }
YY_BREAK YY_BREAK
case 70: case 71:
YY_RULE_SETUP YY_RULE_SETUP
#line 429 "pars0lex.l" #line 440 "pars0lex.l"
{ {
return(PARS_BINARY_TO_NUMBER_TOKEN); return(PARS_BINARY_TO_NUMBER_TOKEN);
} }
YY_BREAK YY_BREAK
case 71: case 72:
YY_RULE_SETUP YY_RULE_SETUP
#line 433 "pars0lex.l" #line 444 "pars0lex.l"
{ {
return(PARS_SUBSTR_TOKEN); return(PARS_SUBSTR_TOKEN);
} }
YY_BREAK YY_BREAK
case 72: case 73:
YY_RULE_SETUP YY_RULE_SETUP
#line 437 "pars0lex.l" #line 448 "pars0lex.l"
{ {
return(PARS_REPLSTR_TOKEN); return(PARS_REPLSTR_TOKEN);
} }
YY_BREAK YY_BREAK
case 73: case 74:
YY_RULE_SETUP YY_RULE_SETUP
#line 441 "pars0lex.l" #line 452 "pars0lex.l"
{ {
return(PARS_CONCAT_TOKEN); return(PARS_CONCAT_TOKEN);
} }
YY_BREAK YY_BREAK
case 74: case 75:
YY_RULE_SETUP YY_RULE_SETUP
#line 445 "pars0lex.l" #line 456 "pars0lex.l"
{ {
return(PARS_INSTR_TOKEN); return(PARS_INSTR_TOKEN);
} }
YY_BREAK YY_BREAK
case 75: case 76:
YY_RULE_SETUP YY_RULE_SETUP
#line 449 "pars0lex.l" #line 460 "pars0lex.l"
{ {
return(PARS_LENGTH_TOKEN); return(PARS_LENGTH_TOKEN);
} }
YY_BREAK YY_BREAK
case 76: case 77:
YY_RULE_SETUP YY_RULE_SETUP
#line 453 "pars0lex.l" #line 464 "pars0lex.l"
{ {
return(PARS_SYSDATE_TOKEN); return(PARS_SYSDATE_TOKEN);
} }
YY_BREAK YY_BREAK
case 77: case 78:
YY_RULE_SETUP YY_RULE_SETUP
#line 457 "pars0lex.l" #line 468 "pars0lex.l"
{ {
return(PARS_PRINTF_TOKEN); return(PARS_PRINTF_TOKEN);
} }
YY_BREAK YY_BREAK
case 78: case 79:
YY_RULE_SETUP YY_RULE_SETUP
#line 461 "pars0lex.l" #line 472 "pars0lex.l"
{ {
return(PARS_ASSERT_TOKEN); return(PARS_ASSERT_TOKEN);
} }
YY_BREAK YY_BREAK
case 79: case 80:
YY_RULE_SETUP YY_RULE_SETUP
#line 465 "pars0lex.l" #line 476 "pars0lex.l"
{ {
return(PARS_RND_TOKEN); return(PARS_RND_TOKEN);
} }
YY_BREAK YY_BREAK
case 80: case 81:
YY_RULE_SETUP YY_RULE_SETUP
#line 469 "pars0lex.l" #line 480 "pars0lex.l"
{ {
return(PARS_RND_STR_TOKEN); return(PARS_RND_STR_TOKEN);
} }
YY_BREAK YY_BREAK
case 81: case 82:
YY_RULE_SETUP YY_RULE_SETUP
#line 473 "pars0lex.l" #line 484 "pars0lex.l"
{ {
return(PARS_ROW_PRINTF_TOKEN); return(PARS_ROW_PRINTF_TOKEN);
} }
YY_BREAK YY_BREAK
case 82: case 83:
YY_RULE_SETUP YY_RULE_SETUP
#line 477 "pars0lex.l" #line 488 "pars0lex.l"
{ {
return(PARS_COMMIT_TOKEN); return(PARS_COMMIT_TOKEN);
} }
YY_BREAK YY_BREAK
case 83: case 84:
YY_RULE_SETUP YY_RULE_SETUP
#line 481 "pars0lex.l" #line 492 "pars0lex.l"
{ {
return(PARS_ROLLBACK_TOKEN); return(PARS_ROLLBACK_TOKEN);
} }
YY_BREAK YY_BREAK
case 84: case 85:
YY_RULE_SETUP YY_RULE_SETUP
#line 485 "pars0lex.l" #line 496 "pars0lex.l"
{ {
return(PARS_WORK_TOKEN); return(PARS_WORK_TOKEN);
} }
YY_BREAK YY_BREAK
case 85: case 86:
YY_RULE_SETUP YY_RULE_SETUP
#line 489 "pars0lex.l" #line 500 "pars0lex.l"
{ {
return(PARS_UNSIGNED_TOKEN); return(PARS_UNSIGNED_TOKEN);
} }
YY_BREAK YY_BREAK
case 86: case 87:
YY_RULE_SETUP YY_RULE_SETUP
#line 493 "pars0lex.l" #line 504 "pars0lex.l"
{ {
return(PARS_EXIT_TOKEN); return(PARS_EXIT_TOKEN);
} }
YY_BREAK YY_BREAK
case 87: case 88:
YY_RULE_SETUP YY_RULE_SETUP
#line 497 "pars0lex.l" #line 508 "pars0lex.l"
{ {
return(PARS_FUNCTION_TOKEN); return(PARS_FUNCTION_TOKEN);
} }
YY_BREAK YY_BREAK
case 88: case 89:
YY_RULE_SETUP YY_RULE_SETUP
#line 501 "pars0lex.l" #line 512 "pars0lex.l"
{ {
yylval = sym_tab_add_id(pars_sym_tab_global, yylval = sym_tab_add_id(pars_sym_tab_global,
(byte*)yytext, (byte*)yytext,
...@@ -1671,52 +1689,44 @@ YY_RULE_SETUP ...@@ -1671,52 +1689,44 @@ YY_RULE_SETUP
return(PARS_ID_TOKEN); return(PARS_ID_TOKEN);
} }
YY_BREAK YY_BREAK
case 89:
YY_RULE_SETUP
#line 508 "pars0lex.l"
{
return(PARS_DDOT_TOKEN);
}
YY_BREAK
case 90: case 90:
YY_RULE_SETUP YY_RULE_SETUP
#line 512 "pars0lex.l" #line 519 "pars0lex.l"
{ {
return(PARS_ASSIGN_TOKEN); return(PARS_DDOT_TOKEN);
} }
YY_BREAK YY_BREAK
case 91: case 91:
YY_RULE_SETUP YY_RULE_SETUP
#line 516 "pars0lex.l" #line 523 "pars0lex.l"
{ {
return(PARS_LE_TOKEN); return(PARS_ASSIGN_TOKEN);
} }
YY_BREAK YY_BREAK
case 92: case 92:
YY_RULE_SETUP YY_RULE_SETUP
#line 520 "pars0lex.l" #line 527 "pars0lex.l"
{ {
return(PARS_GE_TOKEN); return(PARS_LE_TOKEN);
} }
YY_BREAK YY_BREAK
case 93: case 93:
YY_RULE_SETUP YY_RULE_SETUP
#line 524 "pars0lex.l" #line 531 "pars0lex.l"
{ {
return(PARS_NE_TOKEN); return(PARS_GE_TOKEN);
} }
YY_BREAK YY_BREAK
case 94: case 94:
YY_RULE_SETUP YY_RULE_SETUP
#line 528 "pars0lex.l" #line 535 "pars0lex.l"
{ {
return(PARS_NE_TOKEN);
return((int)(*yytext));
} }
YY_BREAK YY_BREAK
case 95: case 95:
YY_RULE_SETUP YY_RULE_SETUP
#line 533 "pars0lex.l" #line 539 "pars0lex.l"
{ {
return((int)(*yytext)); return((int)(*yytext));
...@@ -1724,7 +1734,7 @@ YY_RULE_SETUP ...@@ -1724,7 +1734,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 96: case 96:
YY_RULE_SETUP YY_RULE_SETUP
#line 538 "pars0lex.l" #line 544 "pars0lex.l"
{ {
return((int)(*yytext)); return((int)(*yytext));
...@@ -1732,7 +1742,7 @@ YY_RULE_SETUP ...@@ -1732,7 +1742,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 97: case 97:
YY_RULE_SETUP YY_RULE_SETUP
#line 543 "pars0lex.l" #line 549 "pars0lex.l"
{ {
return((int)(*yytext)); return((int)(*yytext));
...@@ -1740,7 +1750,7 @@ YY_RULE_SETUP ...@@ -1740,7 +1750,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 98: case 98:
YY_RULE_SETUP YY_RULE_SETUP
#line 548 "pars0lex.l" #line 554 "pars0lex.l"
{ {
return((int)(*yytext)); return((int)(*yytext));
...@@ -1748,7 +1758,7 @@ YY_RULE_SETUP ...@@ -1748,7 +1758,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 99: case 99:
YY_RULE_SETUP YY_RULE_SETUP
#line 553 "pars0lex.l" #line 559 "pars0lex.l"
{ {
return((int)(*yytext)); return((int)(*yytext));
...@@ -1756,7 +1766,7 @@ YY_RULE_SETUP ...@@ -1756,7 +1766,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 100: case 100:
YY_RULE_SETUP YY_RULE_SETUP
#line 558 "pars0lex.l" #line 564 "pars0lex.l"
{ {
return((int)(*yytext)); return((int)(*yytext));
...@@ -1764,7 +1774,7 @@ YY_RULE_SETUP ...@@ -1764,7 +1774,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 101: case 101:
YY_RULE_SETUP YY_RULE_SETUP
#line 563 "pars0lex.l" #line 569 "pars0lex.l"
{ {
return((int)(*yytext)); return((int)(*yytext));
...@@ -1772,7 +1782,7 @@ YY_RULE_SETUP ...@@ -1772,7 +1782,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 102: case 102:
YY_RULE_SETUP YY_RULE_SETUP
#line 568 "pars0lex.l" #line 574 "pars0lex.l"
{ {
return((int)(*yytext)); return((int)(*yytext));
...@@ -1780,7 +1790,7 @@ YY_RULE_SETUP ...@@ -1780,7 +1790,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 103: case 103:
YY_RULE_SETUP YY_RULE_SETUP
#line 573 "pars0lex.l" #line 579 "pars0lex.l"
{ {
return((int)(*yytext)); return((int)(*yytext));
...@@ -1788,7 +1798,7 @@ YY_RULE_SETUP ...@@ -1788,7 +1798,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 104: case 104:
YY_RULE_SETUP YY_RULE_SETUP
#line 578 "pars0lex.l" #line 584 "pars0lex.l"
{ {
return((int)(*yytext)); return((int)(*yytext));
...@@ -1796,7 +1806,7 @@ YY_RULE_SETUP ...@@ -1796,7 +1806,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 105: case 105:
YY_RULE_SETUP YY_RULE_SETUP
#line 583 "pars0lex.l" #line 589 "pars0lex.l"
{ {
return((int)(*yytext)); return((int)(*yytext));
...@@ -1804,7 +1814,7 @@ YY_RULE_SETUP ...@@ -1804,7 +1814,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 106: case 106:
YY_RULE_SETUP YY_RULE_SETUP
#line 588 "pars0lex.l" #line 594 "pars0lex.l"
{ {
return((int)(*yytext)); return((int)(*yytext));
...@@ -1812,7 +1822,7 @@ YY_RULE_SETUP ...@@ -1812,7 +1822,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 107: case 107:
YY_RULE_SETUP YY_RULE_SETUP
#line 593 "pars0lex.l" #line 599 "pars0lex.l"
{ {
return((int)(*yytext)); return((int)(*yytext));
...@@ -1820,7 +1830,7 @@ YY_RULE_SETUP ...@@ -1820,7 +1830,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 108: case 108:
YY_RULE_SETUP YY_RULE_SETUP
#line 598 "pars0lex.l" #line 604 "pars0lex.l"
{ {
return((int)(*yytext)); return((int)(*yytext));
...@@ -1828,35 +1838,43 @@ YY_RULE_SETUP ...@@ -1828,35 +1838,43 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 109: case 109:
YY_RULE_SETUP YY_RULE_SETUP
#line 603 "pars0lex.l" #line 609 "pars0lex.l"
BEGIN(comment); /* eat up comment */ {
return((int)(*yytext));
}
YY_BREAK YY_BREAK
case 110: case 110:
/* rule 110 can match eol */
YY_RULE_SETUP YY_RULE_SETUP
#line 605 "pars0lex.l" #line 614 "pars0lex.l"
BEGIN(comment); /* eat up comment */
YY_BREAK YY_BREAK
case 111: case 111:
/* rule 111 can match eol */ /* rule 111 can match eol */
YY_RULE_SETUP YY_RULE_SETUP
#line 606 "pars0lex.l" #line 616 "pars0lex.l"
YY_BREAK YY_BREAK
case 112: case 112:
/* rule 112 can match eol */
YY_RULE_SETUP YY_RULE_SETUP
#line 607 "pars0lex.l" #line 617 "pars0lex.l"
BEGIN(INITIAL);
YY_BREAK YY_BREAK
case 113: case 113:
/* rule 113 can match eol */
YY_RULE_SETUP YY_RULE_SETUP
#line 609 "pars0lex.l" #line 618 "pars0lex.l"
/* eat up whitespace */ BEGIN(INITIAL);
YY_BREAK YY_BREAK
case 114: case 114:
/* rule 114 can match eol */
YY_RULE_SETUP YY_RULE_SETUP
#line 612 "pars0lex.l" #line 620 "pars0lex.l"
/* eat up whitespace */
YY_BREAK
case 115:
YY_RULE_SETUP
#line 623 "pars0lex.l"
{ {
fprintf(stderr,"Unrecognized character: %02x\n", fprintf(stderr,"Unrecognized character: %02x\n",
*yytext); *yytext);
...@@ -1866,12 +1884,12 @@ YY_RULE_SETUP ...@@ -1866,12 +1884,12 @@ YY_RULE_SETUP
return(0); return(0);
} }
YY_BREAK YY_BREAK
case 115: case 116:
YY_RULE_SETUP YY_RULE_SETUP
#line 621 "pars0lex.l" #line 632 "pars0lex.l"
YY_FATAL_ERROR( "flex scanner jammed" ); YY_FATAL_ERROR( "flex scanner jammed" );
YY_BREAK YY_BREAK
#line 1874 "_flex_tmp.c" #line 1892 "_flex_tmp.c"
case YY_STATE_EOF(INITIAL): case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(comment): case YY_STATE_EOF(comment):
case YY_STATE_EOF(quoted): case YY_STATE_EOF(quoted):
...@@ -2159,7 +2177,7 @@ static int yy_get_next_buffer (void) ...@@ -2159,7 +2177,7 @@ static int yy_get_next_buffer (void)
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{ {
yy_current_state = (int) yy_def[yy_current_state]; yy_current_state = (int) yy_def[yy_current_state];
if ( yy_current_state >= 393 ) if ( yy_current_state >= 394 )
yy_c = yy_meta[(unsigned int) yy_c]; yy_c = yy_meta[(unsigned int) yy_c];
} }
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
...@@ -2187,11 +2205,11 @@ static int yy_get_next_buffer (void) ...@@ -2187,11 +2205,11 @@ static int yy_get_next_buffer (void)
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{ {
yy_current_state = (int) yy_def[yy_current_state]; yy_current_state = (int) yy_def[yy_current_state];
if ( yy_current_state >= 393 ) if ( yy_current_state >= 394 )
yy_c = yy_meta[(unsigned int) yy_c]; yy_c = yy_meta[(unsigned int) yy_c];
} }
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
yy_is_jam = (yy_current_state == 392); yy_is_jam = (yy_current_state == 393);
return yy_is_jam ? 0 : yy_current_state; return yy_is_jam ? 0 : yy_current_state;
} }
...@@ -2714,7 +2732,7 @@ void yyfree (void * ptr ) ...@@ -2714,7 +2732,7 @@ void yyfree (void * ptr )
#undef YY_DECL_IS_OURS #undef YY_DECL_IS_OURS
#undef YY_DECL #undef YY_DECL
#endif #endif
#line 621 "pars0lex.l" #line 632 "pars0lex.l"
...@@ -56,183 +56,187 @@ ...@@ -56,183 +56,187 @@
PARS_INT_LIT = 258, PARS_INT_LIT = 258,
PARS_FLOAT_LIT = 259, PARS_FLOAT_LIT = 259,
PARS_STR_LIT = 260, PARS_STR_LIT = 260,
PARS_NULL_LIT = 261, PARS_FIXBINARY_LIT = 261,
PARS_ID_TOKEN = 262, PARS_BLOB_LIT = 262,
PARS_AND_TOKEN = 263, PARS_NULL_LIT = 263,
PARS_OR_TOKEN = 264, PARS_ID_TOKEN = 264,
PARS_NOT_TOKEN = 265, PARS_AND_TOKEN = 265,
PARS_GE_TOKEN = 266, PARS_OR_TOKEN = 266,
PARS_LE_TOKEN = 267, PARS_NOT_TOKEN = 267,
PARS_NE_TOKEN = 268, PARS_GE_TOKEN = 268,
PARS_PROCEDURE_TOKEN = 269, PARS_LE_TOKEN = 269,
PARS_IN_TOKEN = 270, PARS_NE_TOKEN = 270,
PARS_OUT_TOKEN = 271, PARS_PROCEDURE_TOKEN = 271,
PARS_BINARY_TOKEN = 272, PARS_IN_TOKEN = 272,
PARS_BLOB_TOKEN = 273, PARS_OUT_TOKEN = 273,
PARS_INT_TOKEN = 274, PARS_BINARY_TOKEN = 274,
PARS_INTEGER_TOKEN = 275, PARS_BLOB_TOKEN = 275,
PARS_FLOAT_TOKEN = 276, PARS_INT_TOKEN = 276,
PARS_CHAR_TOKEN = 277, PARS_INTEGER_TOKEN = 277,
PARS_IS_TOKEN = 278, PARS_FLOAT_TOKEN = 278,
PARS_BEGIN_TOKEN = 279, PARS_CHAR_TOKEN = 279,
PARS_END_TOKEN = 280, PARS_IS_TOKEN = 280,
PARS_IF_TOKEN = 281, PARS_BEGIN_TOKEN = 281,
PARS_THEN_TOKEN = 282, PARS_END_TOKEN = 282,
PARS_ELSE_TOKEN = 283, PARS_IF_TOKEN = 283,
PARS_ELSIF_TOKEN = 284, PARS_THEN_TOKEN = 284,
PARS_LOOP_TOKEN = 285, PARS_ELSE_TOKEN = 285,
PARS_WHILE_TOKEN = 286, PARS_ELSIF_TOKEN = 286,
PARS_RETURN_TOKEN = 287, PARS_LOOP_TOKEN = 287,
PARS_SELECT_TOKEN = 288, PARS_WHILE_TOKEN = 288,
PARS_SUM_TOKEN = 289, PARS_RETURN_TOKEN = 289,
PARS_COUNT_TOKEN = 290, PARS_SELECT_TOKEN = 290,
PARS_DISTINCT_TOKEN = 291, PARS_SUM_TOKEN = 291,
PARS_FROM_TOKEN = 292, PARS_COUNT_TOKEN = 292,
PARS_WHERE_TOKEN = 293, PARS_DISTINCT_TOKEN = 293,
PARS_FOR_TOKEN = 294, PARS_FROM_TOKEN = 294,
PARS_DDOT_TOKEN = 295, PARS_WHERE_TOKEN = 295,
PARS_CONSISTENT_TOKEN = 296, PARS_FOR_TOKEN = 296,
PARS_READ_TOKEN = 297, PARS_DDOT_TOKEN = 297,
PARS_ORDER_TOKEN = 298, PARS_CONSISTENT_TOKEN = 298,
PARS_BY_TOKEN = 299, PARS_READ_TOKEN = 299,
PARS_ASC_TOKEN = 300, PARS_ORDER_TOKEN = 300,
PARS_DESC_TOKEN = 301, PARS_BY_TOKEN = 301,
PARS_INSERT_TOKEN = 302, PARS_ASC_TOKEN = 302,
PARS_INTO_TOKEN = 303, PARS_DESC_TOKEN = 303,
PARS_VALUES_TOKEN = 304, PARS_INSERT_TOKEN = 304,
PARS_UPDATE_TOKEN = 305, PARS_INTO_TOKEN = 305,
PARS_SET_TOKEN = 306, PARS_VALUES_TOKEN = 306,
PARS_DELETE_TOKEN = 307, PARS_UPDATE_TOKEN = 307,
PARS_CURRENT_TOKEN = 308, PARS_SET_TOKEN = 308,
PARS_OF_TOKEN = 309, PARS_DELETE_TOKEN = 309,
PARS_CREATE_TOKEN = 310, PARS_CURRENT_TOKEN = 310,
PARS_TABLE_TOKEN = 311, PARS_OF_TOKEN = 311,
PARS_INDEX_TOKEN = 312, PARS_CREATE_TOKEN = 312,
PARS_UNIQUE_TOKEN = 313, PARS_TABLE_TOKEN = 313,
PARS_CLUSTERED_TOKEN = 314, PARS_INDEX_TOKEN = 314,
PARS_DOES_NOT_FIT_IN_MEM_TOKEN = 315, PARS_UNIQUE_TOKEN = 315,
PARS_ON_TOKEN = 316, PARS_CLUSTERED_TOKEN = 316,
PARS_ASSIGN_TOKEN = 317, PARS_DOES_NOT_FIT_IN_MEM_TOKEN = 317,
PARS_DECLARE_TOKEN = 318, PARS_ON_TOKEN = 318,
PARS_CURSOR_TOKEN = 319, PARS_ASSIGN_TOKEN = 319,
PARS_SQL_TOKEN = 320, PARS_DECLARE_TOKEN = 320,
PARS_OPEN_TOKEN = 321, PARS_CURSOR_TOKEN = 321,
PARS_FETCH_TOKEN = 322, PARS_SQL_TOKEN = 322,
PARS_CLOSE_TOKEN = 323, PARS_OPEN_TOKEN = 323,
PARS_NOTFOUND_TOKEN = 324, PARS_FETCH_TOKEN = 324,
PARS_TO_CHAR_TOKEN = 325, PARS_CLOSE_TOKEN = 325,
PARS_TO_NUMBER_TOKEN = 326, PARS_NOTFOUND_TOKEN = 326,
PARS_TO_BINARY_TOKEN = 327, PARS_TO_CHAR_TOKEN = 327,
PARS_BINARY_TO_NUMBER_TOKEN = 328, PARS_TO_NUMBER_TOKEN = 328,
PARS_SUBSTR_TOKEN = 329, PARS_TO_BINARY_TOKEN = 329,
PARS_REPLSTR_TOKEN = 330, PARS_BINARY_TO_NUMBER_TOKEN = 330,
PARS_CONCAT_TOKEN = 331, PARS_SUBSTR_TOKEN = 331,
PARS_INSTR_TOKEN = 332, PARS_REPLSTR_TOKEN = 332,
PARS_LENGTH_TOKEN = 333, PARS_CONCAT_TOKEN = 333,
PARS_SYSDATE_TOKEN = 334, PARS_INSTR_TOKEN = 334,
PARS_PRINTF_TOKEN = 335, PARS_LENGTH_TOKEN = 335,
PARS_ASSERT_TOKEN = 336, PARS_SYSDATE_TOKEN = 336,
PARS_RND_TOKEN = 337, PARS_PRINTF_TOKEN = 337,
PARS_RND_STR_TOKEN = 338, PARS_ASSERT_TOKEN = 338,
PARS_ROW_PRINTF_TOKEN = 339, PARS_RND_TOKEN = 339,
PARS_COMMIT_TOKEN = 340, PARS_RND_STR_TOKEN = 340,
PARS_ROLLBACK_TOKEN = 341, PARS_ROW_PRINTF_TOKEN = 341,
PARS_WORK_TOKEN = 342, PARS_COMMIT_TOKEN = 342,
PARS_UNSIGNED_TOKEN = 343, PARS_ROLLBACK_TOKEN = 343,
PARS_EXIT_TOKEN = 344, PARS_WORK_TOKEN = 344,
PARS_FUNCTION_TOKEN = 345, PARS_UNSIGNED_TOKEN = 345,
NEG = 346 PARS_EXIT_TOKEN = 346,
PARS_FUNCTION_TOKEN = 347,
NEG = 348
}; };
#endif #endif
#define PARS_INT_LIT 258 #define PARS_INT_LIT 258
#define PARS_FLOAT_LIT 259 #define PARS_FLOAT_LIT 259
#define PARS_STR_LIT 260 #define PARS_STR_LIT 260
#define PARS_NULL_LIT 261 #define PARS_FIXBINARY_LIT 261
#define PARS_ID_TOKEN 262 #define PARS_BLOB_LIT 262
#define PARS_AND_TOKEN 263 #define PARS_NULL_LIT 263
#define PARS_OR_TOKEN 264 #define PARS_ID_TOKEN 264
#define PARS_NOT_TOKEN 265 #define PARS_AND_TOKEN 265
#define PARS_GE_TOKEN 266 #define PARS_OR_TOKEN 266
#define PARS_LE_TOKEN 267 #define PARS_NOT_TOKEN 267
#define PARS_NE_TOKEN 268 #define PARS_GE_TOKEN 268
#define PARS_PROCEDURE_TOKEN 269 #define PARS_LE_TOKEN 269
#define PARS_IN_TOKEN 270 #define PARS_NE_TOKEN 270
#define PARS_OUT_TOKEN 271 #define PARS_PROCEDURE_TOKEN 271
#define PARS_BINARY_TOKEN 272 #define PARS_IN_TOKEN 272
#define PARS_BLOB_TOKEN 273 #define PARS_OUT_TOKEN 273
#define PARS_INT_TOKEN 274 #define PARS_BINARY_TOKEN 274
#define PARS_INTEGER_TOKEN 275 #define PARS_BLOB_TOKEN 275
#define PARS_FLOAT_TOKEN 276 #define PARS_INT_TOKEN 276
#define PARS_CHAR_TOKEN 277 #define PARS_INTEGER_TOKEN 277
#define PARS_IS_TOKEN 278 #define PARS_FLOAT_TOKEN 278
#define PARS_BEGIN_TOKEN 279 #define PARS_CHAR_TOKEN 279
#define PARS_END_TOKEN 280 #define PARS_IS_TOKEN 280
#define PARS_IF_TOKEN 281 #define PARS_BEGIN_TOKEN 281
#define PARS_THEN_TOKEN 282 #define PARS_END_TOKEN 282
#define PARS_ELSE_TOKEN 283 #define PARS_IF_TOKEN 283
#define PARS_ELSIF_TOKEN 284 #define PARS_THEN_TOKEN 284
#define PARS_LOOP_TOKEN 285 #define PARS_ELSE_TOKEN 285
#define PARS_WHILE_TOKEN 286 #define PARS_ELSIF_TOKEN 286
#define PARS_RETURN_TOKEN 287 #define PARS_LOOP_TOKEN 287
#define PARS_SELECT_TOKEN 288 #define PARS_WHILE_TOKEN 288
#define PARS_SUM_TOKEN 289 #define PARS_RETURN_TOKEN 289
#define PARS_COUNT_TOKEN 290 #define PARS_SELECT_TOKEN 290
#define PARS_DISTINCT_TOKEN 291 #define PARS_SUM_TOKEN 291
#define PARS_FROM_TOKEN 292 #define PARS_COUNT_TOKEN 292
#define PARS_WHERE_TOKEN 293 #define PARS_DISTINCT_TOKEN 293
#define PARS_FOR_TOKEN 294 #define PARS_FROM_TOKEN 294
#define PARS_DDOT_TOKEN 295 #define PARS_WHERE_TOKEN 295
#define PARS_CONSISTENT_TOKEN 296 #define PARS_FOR_TOKEN 296
#define PARS_READ_TOKEN 297 #define PARS_DDOT_TOKEN 297
#define PARS_ORDER_TOKEN 298 #define PARS_CONSISTENT_TOKEN 298
#define PARS_BY_TOKEN 299 #define PARS_READ_TOKEN 299
#define PARS_ASC_TOKEN 300 #define PARS_ORDER_TOKEN 300
#define PARS_DESC_TOKEN 301 #define PARS_BY_TOKEN 301
#define PARS_INSERT_TOKEN 302 #define PARS_ASC_TOKEN 302
#define PARS_INTO_TOKEN 303 #define PARS_DESC_TOKEN 303
#define PARS_VALUES_TOKEN 304 #define PARS_INSERT_TOKEN 304
#define PARS_UPDATE_TOKEN 305 #define PARS_INTO_TOKEN 305
#define PARS_SET_TOKEN 306 #define PARS_VALUES_TOKEN 306
#define PARS_DELETE_TOKEN 307 #define PARS_UPDATE_TOKEN 307
#define PARS_CURRENT_TOKEN 308 #define PARS_SET_TOKEN 308
#define PARS_OF_TOKEN 309 #define PARS_DELETE_TOKEN 309
#define PARS_CREATE_TOKEN 310 #define PARS_CURRENT_TOKEN 310
#define PARS_TABLE_TOKEN 311 #define PARS_OF_TOKEN 311
#define PARS_INDEX_TOKEN 312 #define PARS_CREATE_TOKEN 312
#define PARS_UNIQUE_TOKEN 313 #define PARS_TABLE_TOKEN 313
#define PARS_CLUSTERED_TOKEN 314 #define PARS_INDEX_TOKEN 314
#define PARS_DOES_NOT_FIT_IN_MEM_TOKEN 315 #define PARS_UNIQUE_TOKEN 315
#define PARS_ON_TOKEN 316 #define PARS_CLUSTERED_TOKEN 316
#define PARS_ASSIGN_TOKEN 317 #define PARS_DOES_NOT_FIT_IN_MEM_TOKEN 317
#define PARS_DECLARE_TOKEN 318 #define PARS_ON_TOKEN 318
#define PARS_CURSOR_TOKEN 319 #define PARS_ASSIGN_TOKEN 319
#define PARS_SQL_TOKEN 320 #define PARS_DECLARE_TOKEN 320
#define PARS_OPEN_TOKEN 321 #define PARS_CURSOR_TOKEN 321
#define PARS_FETCH_TOKEN 322 #define PARS_SQL_TOKEN 322
#define PARS_CLOSE_TOKEN 323 #define PARS_OPEN_TOKEN 323
#define PARS_NOTFOUND_TOKEN 324 #define PARS_FETCH_TOKEN 324
#define PARS_TO_CHAR_TOKEN 325 #define PARS_CLOSE_TOKEN 325
#define PARS_TO_NUMBER_TOKEN 326 #define PARS_NOTFOUND_TOKEN 326
#define PARS_TO_BINARY_TOKEN 327 #define PARS_TO_CHAR_TOKEN 327
#define PARS_BINARY_TO_NUMBER_TOKEN 328 #define PARS_TO_NUMBER_TOKEN 328
#define PARS_SUBSTR_TOKEN 329 #define PARS_TO_BINARY_TOKEN 329
#define PARS_REPLSTR_TOKEN 330 #define PARS_BINARY_TO_NUMBER_TOKEN 330
#define PARS_CONCAT_TOKEN 331 #define PARS_SUBSTR_TOKEN 331
#define PARS_INSTR_TOKEN 332 #define PARS_REPLSTR_TOKEN 332
#define PARS_LENGTH_TOKEN 333 #define PARS_CONCAT_TOKEN 333
#define PARS_SYSDATE_TOKEN 334 #define PARS_INSTR_TOKEN 334
#define PARS_PRINTF_TOKEN 335 #define PARS_LENGTH_TOKEN 335
#define PARS_ASSERT_TOKEN 336 #define PARS_SYSDATE_TOKEN 336
#define PARS_RND_TOKEN 337 #define PARS_PRINTF_TOKEN 337
#define PARS_RND_STR_TOKEN 338 #define PARS_ASSERT_TOKEN 338
#define PARS_ROW_PRINTF_TOKEN 339 #define PARS_RND_TOKEN 339
#define PARS_COMMIT_TOKEN 340 #define PARS_RND_STR_TOKEN 340
#define PARS_ROLLBACK_TOKEN 341 #define PARS_ROW_PRINTF_TOKEN 341
#define PARS_WORK_TOKEN 342 #define PARS_COMMIT_TOKEN 342
#define PARS_UNSIGNED_TOKEN 343 #define PARS_ROLLBACK_TOKEN 343
#define PARS_EXIT_TOKEN 344 #define PARS_WORK_TOKEN 344
#define PARS_FUNCTION_TOKEN 345 #define PARS_UNSIGNED_TOKEN 345
#define NEG 346 #define PARS_EXIT_TOKEN 346
#define PARS_FUNCTION_TOKEN 347
#define NEG 348
...@@ -285,7 +289,7 @@ typedef int YYSTYPE; ...@@ -285,7 +289,7 @@ typedef int YYSTYPE;
/* Line 214 of yacc.c. */ /* Line 214 of yacc.c. */
#line 289 "pars0grm.tab.c" #line 293 "pars0grm.tab.c"
#if ! defined (yyoverflow) || YYERROR_VERBOSE #if ! defined (yyoverflow) || YYERROR_VERBOSE
...@@ -389,22 +393,22 @@ union yyalloc ...@@ -389,22 +393,22 @@ union yyalloc
#endif #endif
/* YYFINAL -- State number of the termination state. */ /* YYFINAL -- State number of the termination state. */
#define YYFINAL 97 #define YYFINAL 99
/* YYLAST -- Last index in YYTABLE. */ /* YYLAST -- Last index in YYTABLE. */
#define YYLAST 703 #define YYLAST 756
/* YYNTOKENS -- Number of terminals. */ /* YYNTOKENS -- Number of terminals. */
#define YYNTOKENS 107 #define YYNTOKENS 109
/* YYNNTS -- Number of nonterminals. */ /* YYNNTS -- Number of nonterminals. */
#define YYNNTS 69 #define YYNNTS 69
/* YYNRULES -- Number of rules. */ /* YYNRULES -- Number of rules. */
#define YYNRULES 173 #define YYNRULES 175
/* YYNRULES -- Number of states. */ /* YYNRULES -- Number of states. */
#define YYNSTATES 335 #define YYNSTATES 337
/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
#define YYUNDEFTOK 2 #define YYUNDEFTOK 2
#define YYMAXUTOK 346 #define YYMAXUTOK 348
#define YYTRANSLATE(YYX) \ #define YYTRANSLATE(YYX) \
((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
...@@ -415,16 +419,16 @@ static const unsigned char yytranslate[] = ...@@ -415,16 +419,16 @@ static const unsigned char yytranslate[] =
0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 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, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 99, 2, 2, 2, 2, 2, 2, 2, 2, 2, 101, 2, 2,
101, 102, 96, 95, 104, 94, 2, 97, 2, 2, 103, 104, 98, 97, 106, 96, 2, 99, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 100, 2, 2, 2, 2, 2, 2, 2, 2, 2, 102,
92, 91, 93, 103, 2, 2, 2, 2, 2, 2, 94, 93, 95, 105, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 105, 2, 106, 2, 2, 2, 2, 2, 2, 2, 107, 2, 108, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
...@@ -446,7 +450,7 @@ static const unsigned char yytranslate[] = ...@@ -446,7 +450,7 @@ static const unsigned char yytranslate[] =
55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
85, 86, 87, 88, 89, 90, 98 85, 86, 87, 88, 89, 90, 91, 92, 100
}; };
#if YYDEBUG #if YYDEBUG
...@@ -457,104 +461,104 @@ static const unsigned short int yyprhs[] = ...@@ -457,104 +461,104 @@ static const unsigned short int yyprhs[] =
0, 0, 3, 6, 8, 11, 14, 17, 20, 23, 0, 0, 3, 6, 8, 11, 14, 17, 20, 23,
26, 29, 32, 35, 38, 41, 44, 47, 50, 53, 26, 29, 32, 35, 38, 41, 44, 47, 50, 53,
56, 59, 62, 65, 68, 71, 73, 76, 78, 83, 56, 59, 62, 65, 68, 71, 73, 76, 78, 83,
85, 87, 89, 91, 93, 97, 101, 105, 109, 112, 85, 87, 89, 91, 93, 95, 97, 101, 105, 109,
116, 120, 124, 128, 132, 136, 140, 144, 148, 151, 113, 116, 120, 124, 128, 132, 136, 140, 144, 148,
155, 159, 161, 163, 165, 167, 169, 171, 173, 175, 152, 155, 159, 163, 165, 167, 169, 171, 173, 175,
177, 179, 181, 182, 184, 188, 195, 200, 202, 204, 177, 179, 181, 183, 185, 186, 188, 192, 199, 204,
206, 210, 212, 216, 217, 219, 223, 224, 226, 230, 206, 208, 210, 214, 216, 220, 221, 223, 227, 228,
232, 237, 243, 248, 249, 251, 255, 257, 261, 263, 230, 234, 236, 241, 247, 252, 253, 255, 259, 261,
264, 267, 268, 271, 272, 275, 276, 278, 280, 281, 265, 267, 268, 271, 272, 275, 276, 279, 280, 282,
286, 295, 299, 305, 308, 312, 314, 318, 323, 328, 284, 285, 290, 299, 303, 309, 312, 316, 318, 322,
331, 334, 338, 341, 344, 347, 351, 356, 358, 361, 327, 332, 335, 338, 342, 345, 348, 351, 355, 360,
362, 365, 367, 375, 382, 393, 395, 397, 400, 403, 362, 365, 366, 369, 371, 379, 386, 397, 399, 401,
408, 413, 419, 421, 425, 426, 430, 431, 433, 434, 404, 407, 412, 417, 423, 425, 429, 430, 434, 435,
437, 438, 440, 448, 450, 454, 455, 457, 458, 460, 437, 438, 441, 442, 444, 452, 454, 458, 459, 461,
471, 474, 477, 479, 481, 483, 485, 487, 491, 495, 462, 464, 475, 478, 481, 483, 485, 487, 489, 491,
496, 498, 502, 506, 507, 509, 512, 519, 524, 526, 495, 499, 500, 502, 506, 510, 511, 513, 516, 523,
528, 529, 531, 534 528, 530, 532, 533, 535, 538
}; };
/* YYRHS -- A `-1'-separated list of the rules' RHS. */ /* YYRHS -- A `-1'-separated list of the rules' RHS. */
static const short int yyrhs[] = static const short int yyrhs[] =
{ {
108, 0, -1, 175, 100, -1, 113, -1, 114, 100, 110, 0, -1, 177, 102, -1, 115, -1, 116, 102,
-1, 146, 100, -1, 147, 100, -1, 148, 100, -1, -1, 148, 102, -1, 149, 102, -1, 150, 102, -1,
145, 100, -1, 149, 100, -1, 141, 100, -1, 128, 147, 102, -1, 151, 102, -1, 143, 102, -1, 130,
100, -1, 130, 100, -1, 140, 100, -1, 138, 100, 102, -1, 132, 102, -1, 142, 102, -1, 140, 102,
-1, 139, 100, -1, 135, 100, -1, 136, 100, -1, -1, 141, 102, -1, 137, 102, -1, 138, 102, -1,
150, 100, -1, 152, 100, -1, 151, 100, -1, 164, 152, 102, -1, 154, 102, -1, 153, 102, -1, 166,
100, -1, 165, 100, -1, 159, 100, -1, 163, 100, 102, -1, 167, 102, -1, 161, 102, -1, 165, 102,
-1, 108, -1, 109, 108, -1, 7, -1, 111, 101, -1, 110, -1, 111, 110, -1, 9, -1, 113, 103,
119, 102, -1, 3, -1, 4, -1, 5, -1, 6, 121, 104, -1, 3, -1, 4, -1, 5, -1, 6,
-1, 65, -1, 110, 95, 110, -1, 110, 94, 110, -1, 7, -1, 8, -1, 67, -1, 112, 97, 112,
-1, 110, 96, 110, -1, 110, 97, 110, -1, 94, -1, 112, 96, 112, -1, 112, 98, 112, -1, 112,
110, -1, 101, 110, 102, -1, 110, 91, 110, -1, 99, 112, -1, 96, 112, -1, 103, 112, 104, -1,
110, 92, 110, -1, 110, 93, 110, -1, 110, 11, 112, 93, 112, -1, 112, 94, 112, -1, 112, 95,
110, -1, 110, 12, 110, -1, 110, 13, 110, -1, 112, -1, 112, 13, 112, -1, 112, 14, 112, -1,
110, 8, 110, -1, 110, 9, 110, -1, 10, 110, 112, 15, 112, -1, 112, 10, 112, -1, 112, 11,
-1, 7, 99, 69, -1, 65, 99, 69, -1, 70, 112, -1, 12, 112, -1, 9, 101, 71, -1, 67,
-1, 71, -1, 72, -1, 73, -1, 74, -1, 76, 101, 71, -1, 72, -1, 73, -1, 74, -1, 75,
-1, 77, -1, 78, -1, 79, -1, 82, -1, 83, -1, 76, -1, 78, -1, 79, -1, 80, -1, 81,
-1, -1, 103, -1, 112, 104, 103, -1, 105, 7, -1, 84, -1, 85, -1, -1, 105, -1, 114, 106,
101, 112, 102, 106, -1, 115, 101, 119, 102, -1, 105, -1, 107, 9, 103, 114, 104, 108, -1, 117,
75, -1, 80, -1, 81, -1, 7, 101, 102, -1, 103, 121, 104, -1, 77, -1, 82, -1, 83, -1,
7, -1, 117, 104, 7, -1, -1, 7, -1, 118, 9, 103, 104, -1, 9, -1, 119, 106, 9, -1,
104, 7, -1, -1, 110, -1, 119, 104, 110, -1, -1, 9, -1, 120, 106, 9, -1, -1, 112, -1,
110, -1, 35, 101, 96, 102, -1, 35, 101, 36, 121, 106, 112, -1, 112, -1, 37, 103, 98, 104,
7, 102, -1, 34, 101, 110, 102, -1, -1, 120, -1, 37, 103, 38, 9, 104, -1, 36, 103, 112,
-1, 121, 104, 120, -1, 96, -1, 121, 48, 118, 104, -1, -1, 122, -1, 123, 106, 122, -1, 98,
-1, 121, -1, -1, 38, 110, -1, -1, 39, 50, -1, 123, 50, 120, -1, 123, -1, -1, 40, 112,
-1, -1, 41, 42, -1, -1, 45, -1, 46, -1, -1, -1, 41, 52, -1, -1, 43, 44, -1, -1,
-1, 43, 44, 7, 126, -1, 33, 122, 37, 117, 47, -1, 48, -1, -1, 45, 46, 9, 128, -1,
123, 124, 125, 127, -1, 47, 48, 7, -1, 129, 35, 124, 39, 119, 125, 126, 127, 129, -1, 49,
49, 101, 119, 102, -1, 129, 128, -1, 7, 91, 50, 9, -1, 131, 51, 103, 121, 104, -1, 131,
110, -1, 131, -1, 132, 104, 131, -1, 38, 53, 130, -1, 9, 93, 112, -1, 133, -1, 134, 106,
54, 7, -1, 50, 7, 51, 132, -1, 134, 123, 133, -1, 40, 55, 56, 9, -1, 52, 9, 53,
-1, 134, 133, -1, 52, 37, 7, -1, 137, 123, 134, -1, 136, 125, -1, 136, 135, -1, 54, 39,
-1, 137, 133, -1, 84, 128, -1, 7, 62, 110, 9, -1, 139, 125, -1, 139, 135, -1, 86, 130,
-1, 29, 110, 27, 109, -1, 142, -1, 143, 142, -1, 9, 64, 112, -1, 31, 112, 29, 111, -1,
-1, -1, 28, 109, -1, 143, -1, 26, 110, 27, 144, -1, 145, 144, -1, -1, 30, 111, -1, 145,
109, 144, 25, 26, -1, 31, 110, 30, 109, 25, -1, 28, 112, 29, 111, 146, 27, 28, -1, 33,
30, -1, 39, 7, 15, 110, 40, 110, 30, 109, 112, 32, 111, 27, 32, -1, 41, 9, 17, 112,
25, 30, -1, 89, -1, 32, -1, 66, 7, -1, 42, 112, 32, 111, 27, 32, -1, 91, -1, 34,
68, 7, -1, 67, 7, 48, 118, -1, 67, 7, -1, 68, 9, -1, 70, 9, -1, 69, 9, 50,
48, 116, -1, 7, 166, 155, 156, 157, -1, 153, 120, -1, 69, 9, 50, 118, -1, 9, 168, 157,
-1, 154, 104, 153, -1, -1, 101, 3, 102, -1, 158, 159, -1, 155, -1, 156, 106, 155, -1, -1,
-1, 88, -1, -1, 10, 6, -1, -1, 60, -1, 103, 3, 104, -1, -1, 90, -1, -1, 12, 8,
55, 56, 7, 101, 154, 102, 158, -1, 7, -1, -1, -1, 62, -1, 57, 58, 9, 103, 156, 104,
160, 104, 7, -1, -1, 58, -1, -1, 59, -1, 160, -1, 9, -1, 162, 106, 9, -1, -1, 60,
55, 161, 162, 57, 7, 61, 7, 101, 160, 102, -1, -1, 61, -1, 57, 163, 164, 59, 9, 63,
-1, 85, 87, -1, 86, 87, -1, 19, -1, 20, 9, 103, 162, 104, -1, 87, 89, -1, 88, 89,
-1, 22, -1, 17, -1, 18, -1, 7, 15, 166, -1, 21, -1, 22, -1, 24, -1, 19, -1, 20,
-1, 7, 16, 166, -1, -1, 167, -1, 168, 104, -1, 9, 17, 168, -1, 9, 18, 168, -1, -1,
167, -1, 7, 166, 100, -1, -1, 169, -1, 170, 169, -1, 170, 106, 169, -1, 9, 168, 102, -1,
169, -1, 63, 64, 7, 23, 128, 100, -1, 63, -1, 171, -1, 172, 171, -1, 65, 66, 9, 25,
90, 7, 100, -1, 171, -1, 172, -1, -1, 173, 130, 102, -1, 65, 92, 9, 102, -1, 173, -1,
-1, 174, 173, -1, 14, 7, 101, 168, 102, 23, 174, -1, -1, 175, -1, 176, 175, -1, 16, 9,
170, 174, 24, 109, 25, -1 103, 170, 104, 25, 172, 176, 26, 111, 27, -1
}; };
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */ /* YYRLINE[YYN] -- source line where rule number YYN was defined. */
static const unsigned short int yyrline[] = static const unsigned short int yyrline[] =
{ {
0, 134, 134, 135, 136, 137, 138, 139, 140, 141, 0, 136, 136, 137, 138, 139, 140, 141, 142, 143,
142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153,
152, 153, 154, 155, 156, 160, 161, 166, 167, 169, 154, 155, 156, 157, 158, 162, 163, 168, 169, 171,
170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181,
180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191,
191, 196, 197, 198, 199, 201, 202, 203, 204, 205, 192, 193, 195, 200, 201, 202, 203, 205, 206, 207,
206, 207, 210, 212, 213, 217, 222, 227, 228, 229, 208, 209, 210, 211, 214, 216, 217, 221, 226, 231,
233, 237, 238, 243, 244, 245, 250, 251, 252, 256, 232, 233, 237, 241, 242, 247, 248, 249, 254, 255,
257, 262, 268, 275, 276, 277, 282, 284, 286, 290, 256, 260, 261, 266, 272, 279, 280, 281, 286, 288,
291, 295, 296, 301, 302, 307, 308, 309, 313, 314, 290, 294, 295, 299, 300, 305, 306, 311, 312, 313,
319, 329, 334, 336, 341, 345, 346, 351, 357, 364, 317, 318, 323, 333, 338, 340, 345, 349, 350, 355,
369, 374, 380, 385, 390, 395, 400, 406, 407, 412, 361, 368, 373, 378, 384, 389, 394, 399, 404, 410,
413, 415, 419, 426, 432, 440, 444, 448, 454, 460, 411, 416, 417, 419, 423, 430, 436, 444, 448, 452,
462, 467, 472, 473, 478, 479, 484, 485, 491, 492, 458, 464, 466, 471, 476, 477, 482, 483, 488, 489,
498, 499, 505, 511, 512, 517, 518, 522, 523, 527, 495, 496, 502, 503, 509, 515, 516, 521, 522, 526,
535, 540, 545, 546, 547, 548, 549, 553, 556, 562, 527, 531, 539, 544, 549, 550, 551, 552, 553, 557,
563, 564, 569, 573, 575, 576, 580, 586, 591, 592, 560, 566, 567, 568, 573, 577, 579, 580, 584, 590,
595, 597, 598, 602 595, 596, 599, 601, 602, 606
}; };
#endif #endif
...@@ -564,59 +568,59 @@ static const unsigned short int yyrline[] = ...@@ -564,59 +568,59 @@ static const unsigned short int yyrline[] =
static const char *const yytname[] = static const char *const yytname[] =
{ {
"$end", "error", "$undefined", "PARS_INT_LIT", "PARS_FLOAT_LIT", "$end", "error", "$undefined", "PARS_INT_LIT", "PARS_FLOAT_LIT",
"PARS_STR_LIT", "PARS_NULL_LIT", "PARS_ID_TOKEN", "PARS_AND_TOKEN", "PARS_STR_LIT", "PARS_FIXBINARY_LIT", "PARS_BLOB_LIT", "PARS_NULL_LIT",
"PARS_OR_TOKEN", "PARS_NOT_TOKEN", "PARS_GE_TOKEN", "PARS_LE_TOKEN", "PARS_ID_TOKEN", "PARS_AND_TOKEN", "PARS_OR_TOKEN", "PARS_NOT_TOKEN",
"PARS_NE_TOKEN", "PARS_PROCEDURE_TOKEN", "PARS_IN_TOKEN", "PARS_GE_TOKEN", "PARS_LE_TOKEN", "PARS_NE_TOKEN",
"PARS_OUT_TOKEN", "PARS_BINARY_TOKEN", "PARS_BLOB_TOKEN", "PARS_PROCEDURE_TOKEN", "PARS_IN_TOKEN", "PARS_OUT_TOKEN",
"PARS_INT_TOKEN", "PARS_INTEGER_TOKEN", "PARS_FLOAT_TOKEN", "PARS_BINARY_TOKEN", "PARS_BLOB_TOKEN", "PARS_INT_TOKEN",
"PARS_CHAR_TOKEN", "PARS_IS_TOKEN", "PARS_BEGIN_TOKEN", "PARS_END_TOKEN", "PARS_INTEGER_TOKEN", "PARS_FLOAT_TOKEN", "PARS_CHAR_TOKEN",
"PARS_IF_TOKEN", "PARS_THEN_TOKEN", "PARS_ELSE_TOKEN", "PARS_IS_TOKEN", "PARS_BEGIN_TOKEN", "PARS_END_TOKEN", "PARS_IF_TOKEN",
"PARS_ELSIF_TOKEN", "PARS_LOOP_TOKEN", "PARS_WHILE_TOKEN", "PARS_THEN_TOKEN", "PARS_ELSE_TOKEN", "PARS_ELSIF_TOKEN",
"PARS_RETURN_TOKEN", "PARS_SELECT_TOKEN", "PARS_SUM_TOKEN", "PARS_LOOP_TOKEN", "PARS_WHILE_TOKEN", "PARS_RETURN_TOKEN",
"PARS_COUNT_TOKEN", "PARS_DISTINCT_TOKEN", "PARS_FROM_TOKEN", "PARS_SELECT_TOKEN", "PARS_SUM_TOKEN", "PARS_COUNT_TOKEN",
"PARS_WHERE_TOKEN", "PARS_FOR_TOKEN", "PARS_DDOT_TOKEN", "PARS_DISTINCT_TOKEN", "PARS_FROM_TOKEN", "PARS_WHERE_TOKEN",
"PARS_CONSISTENT_TOKEN", "PARS_READ_TOKEN", "PARS_ORDER_TOKEN", "PARS_FOR_TOKEN", "PARS_DDOT_TOKEN", "PARS_CONSISTENT_TOKEN",
"PARS_BY_TOKEN", "PARS_ASC_TOKEN", "PARS_DESC_TOKEN", "PARS_READ_TOKEN", "PARS_ORDER_TOKEN", "PARS_BY_TOKEN", "PARS_ASC_TOKEN",
"PARS_INSERT_TOKEN", "PARS_INTO_TOKEN", "PARS_VALUES_TOKEN", "PARS_DESC_TOKEN", "PARS_INSERT_TOKEN", "PARS_INTO_TOKEN",
"PARS_UPDATE_TOKEN", "PARS_SET_TOKEN", "PARS_DELETE_TOKEN", "PARS_VALUES_TOKEN", "PARS_UPDATE_TOKEN", "PARS_SET_TOKEN",
"PARS_CURRENT_TOKEN", "PARS_OF_TOKEN", "PARS_CREATE_TOKEN", "PARS_DELETE_TOKEN", "PARS_CURRENT_TOKEN", "PARS_OF_TOKEN",
"PARS_TABLE_TOKEN", "PARS_INDEX_TOKEN", "PARS_UNIQUE_TOKEN", "PARS_CREATE_TOKEN", "PARS_TABLE_TOKEN", "PARS_INDEX_TOKEN",
"PARS_CLUSTERED_TOKEN", "PARS_DOES_NOT_FIT_IN_MEM_TOKEN", "PARS_UNIQUE_TOKEN", "PARS_CLUSTERED_TOKEN",
"PARS_ON_TOKEN", "PARS_ASSIGN_TOKEN", "PARS_DECLARE_TOKEN", "PARS_DOES_NOT_FIT_IN_MEM_TOKEN", "PARS_ON_TOKEN", "PARS_ASSIGN_TOKEN",
"PARS_CURSOR_TOKEN", "PARS_SQL_TOKEN", "PARS_OPEN_TOKEN", "PARS_DECLARE_TOKEN", "PARS_CURSOR_TOKEN", "PARS_SQL_TOKEN",
"PARS_FETCH_TOKEN", "PARS_CLOSE_TOKEN", "PARS_NOTFOUND_TOKEN", "PARS_OPEN_TOKEN", "PARS_FETCH_TOKEN", "PARS_CLOSE_TOKEN",
"PARS_TO_CHAR_TOKEN", "PARS_TO_NUMBER_TOKEN", "PARS_TO_BINARY_TOKEN", "PARS_NOTFOUND_TOKEN", "PARS_TO_CHAR_TOKEN", "PARS_TO_NUMBER_TOKEN",
"PARS_BINARY_TO_NUMBER_TOKEN", "PARS_SUBSTR_TOKEN", "PARS_REPLSTR_TOKEN", "PARS_TO_BINARY_TOKEN", "PARS_BINARY_TO_NUMBER_TOKEN",
"PARS_CONCAT_TOKEN", "PARS_INSTR_TOKEN", "PARS_LENGTH_TOKEN", "PARS_SUBSTR_TOKEN", "PARS_REPLSTR_TOKEN", "PARS_CONCAT_TOKEN",
"PARS_SYSDATE_TOKEN", "PARS_PRINTF_TOKEN", "PARS_ASSERT_TOKEN", "PARS_INSTR_TOKEN", "PARS_LENGTH_TOKEN", "PARS_SYSDATE_TOKEN",
"PARS_RND_TOKEN", "PARS_RND_STR_TOKEN", "PARS_ROW_PRINTF_TOKEN", "PARS_PRINTF_TOKEN", "PARS_ASSERT_TOKEN", "PARS_RND_TOKEN",
"PARS_COMMIT_TOKEN", "PARS_ROLLBACK_TOKEN", "PARS_WORK_TOKEN", "PARS_RND_STR_TOKEN", "PARS_ROW_PRINTF_TOKEN", "PARS_COMMIT_TOKEN",
"PARS_UNSIGNED_TOKEN", "PARS_EXIT_TOKEN", "PARS_FUNCTION_TOKEN", "'='", "PARS_ROLLBACK_TOKEN", "PARS_WORK_TOKEN", "PARS_UNSIGNED_TOKEN",
"'<'", "'>'", "'-'", "'+'", "'*'", "'/'", "NEG", "'%'", "';'", "'('", "PARS_EXIT_TOKEN", "PARS_FUNCTION_TOKEN", "'='", "'<'", "'>'", "'-'",
"')'", "'?'", "','", "'{'", "'}'", "$accept", "statement", "'+'", "'*'", "'/'", "NEG", "'%'", "';'", "'('", "')'", "'?'", "','",
"statement_list", "exp", "function_name", "question_mark_list", "'{'", "'}'", "$accept", "statement", "statement_list", "exp",
"stored_procedure_call", "predefined_procedure_call", "function_name", "question_mark_list", "stored_procedure_call",
"predefined_procedure_name", "user_function_call", "table_list", "predefined_procedure_call", "predefined_procedure_name",
"variable_list", "exp_list", "select_item", "select_item_list", "user_function_call", "table_list", "variable_list", "exp_list",
"select_list", "search_condition", "for_update_clause", "select_item", "select_item_list", "select_list", "search_condition",
"consistent_read_clause", "order_direction", "order_by_clause", "for_update_clause", "consistent_read_clause", "order_direction",
"select_statement", "insert_statement_start", "insert_statement", "order_by_clause", "select_statement", "insert_statement_start",
"column_assignment", "column_assignment_list", "cursor_positioned", "insert_statement", "column_assignment", "column_assignment_list",
"update_statement_start", "update_statement_searched", "cursor_positioned", "update_statement_start",
"update_statement_positioned", "delete_statement_start", "update_statement_searched", "update_statement_positioned",
"delete_statement_searched", "delete_statement_positioned", "delete_statement_start", "delete_statement_searched",
"row_printf_statement", "assignment_statement", "elsif_element", "delete_statement_positioned", "row_printf_statement",
"elsif_list", "else_part", "if_statement", "while_statement", "assignment_statement", "elsif_element", "elsif_list", "else_part",
"for_statement", "exit_statement", "return_statement", "if_statement", "while_statement", "for_statement", "exit_statement",
"open_cursor_statement", "close_cursor_statement", "fetch_statement", "return_statement", "open_cursor_statement", "close_cursor_statement",
"column_def", "column_def_list", "opt_column_len", "opt_unsigned", "fetch_statement", "column_def", "column_def_list", "opt_column_len",
"opt_not_null", "not_fit_in_memory", "create_table", "column_list", "opt_unsigned", "opt_not_null", "not_fit_in_memory", "create_table",
"unique_def", "clustered_def", "create_index", "commit_statement", "column_list", "unique_def", "clustered_def", "create_index",
"rollback_statement", "type_name", "parameter_declaration", "commit_statement", "rollback_statement", "type_name",
"parameter_declaration_list", "variable_declaration", "parameter_declaration", "parameter_declaration_list",
"variable_declaration_list", "cursor_declaration", "variable_declaration", "variable_declaration_list",
"function_declaration", "declaration", "declaration_list", "cursor_declaration", "function_declaration", "declaration",
"procedure_definition", 0 "declaration_list", "procedure_definition", 0
}; };
#endif #endif
...@@ -634,32 +638,32 @@ static const unsigned short int yytoknum[] = ...@@ -634,32 +638,32 @@ static const unsigned short int yytoknum[] =
315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334,
335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344,
345, 61, 60, 62, 45, 43, 42, 47, 346, 37, 345, 346, 347, 61, 60, 62, 45, 43, 42, 47,
59, 40, 41, 63, 44, 123, 125 348, 37, 59, 40, 41, 63, 44, 123, 125
}; };
# endif # endif
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
static const unsigned char yyr1[] = static const unsigned char yyr1[] =
{ {
0, 107, 108, 108, 108, 108, 108, 108, 108, 108, 0, 109, 110, 110, 110, 110, 110, 110, 110, 110,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 109, 109, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 111, 111, 112, 112, 112,
110, 111, 111, 111, 111, 111, 111, 111, 111, 111, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112,
111, 111, 112, 112, 112, 113, 114, 115, 115, 115, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112,
116, 117, 117, 118, 118, 118, 119, 119, 119, 120, 112, 112, 112, 113, 113, 113, 113, 113, 113, 113,
120, 120, 120, 121, 121, 121, 122, 122, 122, 123, 113, 113, 113, 113, 114, 114, 114, 115, 116, 117,
123, 124, 124, 125, 125, 126, 126, 126, 127, 127, 117, 117, 118, 119, 119, 120, 120, 120, 121, 121,
128, 129, 130, 130, 131, 132, 132, 133, 134, 135, 121, 122, 122, 122, 122, 123, 123, 123, 124, 124,
136, 137, 138, 139, 140, 141, 142, 143, 143, 144, 124, 125, 125, 126, 126, 127, 127, 128, 128, 128,
144, 144, 145, 146, 147, 148, 149, 150, 151, 152, 129, 129, 130, 131, 132, 132, 133, 134, 134, 135,
152, 153, 154, 154, 155, 155, 156, 156, 157, 157, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145,
158, 158, 159, 160, 160, 161, 161, 162, 162, 163, 145, 146, 146, 146, 147, 148, 149, 150, 151, 152,
164, 165, 166, 166, 166, 166, 166, 167, 167, 168, 153, 154, 154, 155, 156, 156, 157, 157, 158, 158,
168, 168, 169, 170, 170, 170, 171, 172, 173, 173, 159, 159, 160, 160, 161, 162, 162, 163, 163, 164,
174, 174, 174, 175 164, 165, 166, 167, 168, 168, 168, 168, 168, 169,
169, 170, 170, 170, 171, 172, 172, 172, 173, 174,
175, 175, 176, 176, 176, 177
}; };
/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
...@@ -668,21 +672,21 @@ static const unsigned char yyr2[] = ...@@ -668,21 +672,21 @@ static const unsigned char yyr2[] =
0, 2, 2, 1, 2, 2, 2, 2, 2, 2, 0, 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, 1, 2, 1, 4, 1, 2, 2, 2, 2, 2, 1, 2, 1, 4, 1,
1, 1, 1, 1, 3, 3, 3, 3, 2, 3, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 2, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 1, 1, 1, 1, 1, 1, 1,
1, 1, 0, 1, 3, 6, 4, 1, 1, 1, 1, 1, 1, 1, 0, 1, 3, 6, 4, 1,
3, 1, 3, 0, 1, 3, 0, 1, 3, 1, 1, 1, 3, 1, 3, 0, 1, 3, 0, 1,
4, 5, 4, 0, 1, 3, 1, 3, 1, 0, 3, 1, 4, 5, 4, 0, 1, 3, 1, 3,
2, 0, 2, 0, 2, 0, 1, 1, 0, 4, 1, 0, 2, 0, 2, 0, 2, 0, 1, 1,
8, 3, 5, 2, 3, 1, 3, 4, 4, 2, 0, 4, 8, 3, 5, 2, 3, 1, 3, 4,
2, 3, 2, 2, 2, 3, 4, 1, 2, 0, 4, 2, 2, 3, 2, 2, 2, 3, 4, 1,
2, 1, 7, 6, 10, 1, 1, 2, 2, 4, 2, 0, 2, 1, 7, 6, 10, 1, 1, 2,
4, 5, 1, 3, 0, 3, 0, 1, 0, 2, 2, 4, 4, 5, 1, 3, 0, 3, 0, 1,
0, 1, 7, 1, 3, 0, 1, 0, 1, 10, 0, 2, 0, 1, 7, 1, 3, 0, 1, 0,
2, 2, 1, 1, 1, 1, 1, 3, 3, 0, 1, 10, 2, 2, 1, 1, 1, 1, 1, 3,
1, 3, 3, 0, 1, 2, 6, 4, 1, 1, 3, 0, 1, 3, 3, 0, 1, 2, 6, 4,
0, 1, 2, 11 1, 1, 0, 1, 2, 11
}; };
/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
...@@ -690,105 +694,105 @@ static const unsigned char yyr2[] = ...@@ -690,105 +694,105 @@ static const unsigned char yyr2[] =
means the default is an error. */ means the default is an error. */
static const unsigned char yydefact[] = static const unsigned char yydefact[] =
{ {
0, 0, 0, 0, 0, 126, 83, 0, 0, 0, 0, 0, 0, 0, 0, 128, 85, 0, 0, 0,
0, 145, 0, 0, 0, 67, 68, 69, 0, 0, 0, 147, 0, 0, 0, 69, 70, 71, 0, 0,
0, 125, 0, 0, 3, 0, 0, 0, 0, 0, 0, 127, 0, 0, 3, 0, 0, 0, 0, 0,
89, 0, 0, 89, 0, 0, 0, 0, 0, 0, 91, 0, 0, 91, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 29, 30, 31, 32, 33, 34, 27,
0, 35, 53, 54, 55, 56, 57, 58, 59, 60,
61, 62, 63, 0, 0, 0, 0, 0, 0, 0,
88, 81, 86, 90, 0, 0, 0, 0, 0, 0,
148, 149, 129, 0, 130, 116, 152, 153, 0, 1,
4, 78, 11, 0, 105, 12, 0, 111, 112, 16,
17, 114, 115, 14, 15, 13, 10, 8, 5, 6,
7, 9, 18, 20, 19, 23, 24, 21, 22, 2,
117, 161, 0, 50, 0, 40, 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, 0, 0, 29, 30, 31, 32, 27, 0, 33, 78, 0, 0, 0, 75, 0, 0, 0, 103, 0,
51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 113, 0, 150, 0, 75, 64, 79, 0, 78, 0,
61, 0, 0, 0, 0, 0, 0, 0, 86, 79, 92, 0, 162, 0, 51, 52, 41, 48, 49, 45,
84, 88, 0, 0, 0, 0, 0, 0, 146, 147, 46, 47, 25, 121, 42, 43, 44, 37, 36, 38,
127, 0, 128, 114, 150, 151, 0, 1, 4, 76, 39, 0, 0, 0, 0, 0, 76, 89, 87, 73,
11, 0, 103, 12, 0, 109, 110, 16, 17, 112, 91, 0, 0, 107, 110, 0, 0, 76, 132, 131,
113, 14, 15, 13, 10, 8, 5, 6, 7, 9, 65, 0, 68, 0, 0, 0, 0, 0, 0, 0,
18, 20, 19, 23, 24, 21, 22, 2, 115, 159, 0, 0, 26, 119, 123, 0, 28, 0, 84, 0,
0, 48, 0, 38, 0, 0, 0, 0, 0, 0, 82, 0, 0, 0, 93, 0, 0, 0, 0, 134,
0, 0, 0, 0, 0, 0, 0, 0, 76, 0, 0, 0, 0, 0, 0, 80, 104, 109, 157, 158,
0, 0, 73, 0, 0, 0, 101, 0, 111, 0, 154, 155, 156, 159, 160, 165, 163, 122, 0, 120,
148, 0, 73, 62, 77, 0, 76, 0, 90, 0, 0, 125, 83, 77, 74, 0, 95, 0, 106, 108,
160, 0, 49, 50, 39, 46, 47, 43, 44, 45, 136, 142, 0, 0, 72, 67, 66, 0, 166, 172,
25, 119, 40, 41, 42, 35, 34, 36, 37, 0, 0, 124, 94, 0, 100, 0, 0, 138, 143, 144,
0, 0, 0, 0, 74, 87, 85, 71, 89, 0, 135, 0, 0, 0, 167, 170, 171, 173, 0, 118,
0, 105, 108, 0, 0, 74, 130, 129, 63, 0, 96, 0, 102, 0, 0, 139, 140, 0, 164, 0,
66, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 174, 0, 0, 137, 0, 133, 145, 0,
26, 117, 121, 0, 28, 0, 82, 0, 80, 0, 0, 0, 0, 97, 126, 141, 151, 0, 0, 169,
0, 0, 91, 0, 0, 0, 0, 132, 0, 0, 175, 98, 99, 101, 146, 0, 168
0, 0, 0, 78, 102, 107, 155, 156, 152, 153,
154, 157, 158, 163, 161, 120, 0, 118, 0, 123,
81, 75, 72, 0, 93, 0, 104, 106, 134, 140,
0, 0, 70, 65, 64, 0, 164, 170, 0, 122,
92, 0, 98, 0, 0, 136, 141, 142, 133, 0,
0, 0, 165, 168, 169, 171, 0, 116, 94, 0,
100, 0, 0, 137, 138, 0, 162, 0, 0, 0,
172, 0, 0, 135, 0, 131, 143, 0, 0, 0,
0, 95, 124, 139, 149, 0, 0, 167, 173, 96,
97, 99, 144, 0, 166
}; };
/* YYDEFGOTO[NTERM-NUM]. */ /* YYDEFGOTO[NTERM-NUM]. */
static const short int yydefgoto[] = static const short int yydefgoto[] =
{ {
-1, 180, 181, 164, 74, 209, 24, 25, 26, 206, -1, 182, 183, 166, 76, 211, 24, 25, 26, 208,
198, 195, 165, 80, 81, 82, 105, 264, 282, 331, 200, 197, 167, 82, 83, 84, 107, 266, 284, 333,
300, 27, 28, 29, 201, 202, 106, 30, 31, 32, 302, 27, 28, 29, 203, 204, 108, 30, 31, 32,
33, 34, 35, 36, 37, 221, 222, 223, 38, 39, 33, 34, 35, 36, 37, 223, 224, 225, 38, 39,
40, 41, 42, 43, 44, 45, 237, 238, 285, 304, 40, 41, 42, 43, 44, 45, 239, 240, 287, 306,
315, 287, 46, 317, 89, 161, 47, 48, 49, 251, 317, 289, 46, 319, 91, 163, 47, 48, 49, 253,
170, 171, 276, 277, 293, 294, 295, 296, 50 172, 173, 278, 279, 295, 296, 297, 298, 50
}; };
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
STATE-NUM. */ STATE-NUM. */
#define YYPACT_NINF -196 #define YYPACT_NINF -209
static const short int yypact[] = static const short int yypact[] =
{ {
384, -31, 32, 522, 522, -196, 121, 36, 7, 39, 578, -30, 40, 256, 256, -209, 19, 44, 7, 55,
12, -11, 52, 59, 77, -196, -196, -196, 40, 42, 26, -16, 62, 69, 73, -209, -209, -209, 48, -5,
46, -196, 82, 95, -196, 47, 38, 50, -5, 51, -4, -209, 78, 75, -209, -13, -15, -6, -18, 4,
132, 71, 72, 132, 73, 74, 75, 76, 78, 80, 67, 6, 12, 67, 17, 18, 21, 29, 30, 32,
83, 84, 85, 87, 88, 89, 96, 101, 105, 106, 33, 39, 47, 50, 51, 64, 65, 70, 82, 83,
108, 522, 81, -196, -196, -196, -196, 112, 522, 113, 84, 256, 13, -209, -209, -209, -209, -209, -209, 8,
-196, -196, -196, -196, -196, -196, -196, -196, -196, -196, 256, 20, -209, -209, -209, -209, -209, -209, -209, -209,
-196, 522, 522, 485, 115, 555, 118, 122, -196, 606, -209, -209, -209, 256, 256, 295, 15, 421, 77, 86,
-196, -41, 140, 192, 206, 163, 217, 218, -196, 171, -209, 657, -209, -44, 129, 152, 178, 137, 182, 189,
-196, 183, -196, -196, -196, -196, 134, -196, -196, 522, -209, 142, -209, 154, -209, -209, -209, -209, 104, -209,
-196, 135, -196, -196, 471, -196, -196, -196, -196, -196, -209, 256, -209, 105, -209, -209, 170, -209, -209, -209,
-196, -196, -196, -196, -196, -196, -196, -196, -196, -196, -209, -209, -209, -209, -209, -209, -209, -209, -209, -209,
-196, -196, -196, -196, -196, -196, -196, -196, 606, 230, -209, -209, -209, -209, -209, -209, -209, -209, -209, -209,
169, 24, 170, 227, 5, 522, 522, 522, 522, 522, 657, 200, 139, 582, 140, 198, 66, 256, 256, 256,
384, 522, 522, 522, 522, 522, 522, 522, 522, 384, 256, 256, 578, 256, 256, 256, 256, 256, 256, 256,
522, -13, 234, 437, 236, 522, -196, 237, -196, 145, 256, 578, 256, -31, 205, 121, 206, 256, -209, 207,
-196, 191, 242, 148, 606, -50, 522, 198, 606, 107, -209, 115, -209, 160, 212, 117, 657, -63, 256, 167,
-196, -44, -196, -196, -196, 24, 24, -3, -3, 606, 657, -2, -209, -59, -209, -209, -209, 582, 582, 14,
-196, 1, -3, -3, -3, 8, 8, 227, 227, -40, 14, 657, -209, 330, 14, 14, 14, 3, 3, 198,
195, 66, 246, 152, -196, 153, -196, -196, -32, 548, 198, -58, 392, 279, 217, 123, -209, 122, -209, -209,
165, -196, 154, 252, 253, 164, -196, 153, -196, 10, -32, 607, 136, -209, 124, 223, 224, 133, -209, 122,
-196, 522, 28, 257, 91, 91, 243, 230, 384, 522, -209, -52, -209, 256, -46, 229, 16, 16, 214, 200,
-196, -196, 239, 244, -196, 241, -196, 175, -196, 265, 578, 256, -209, -209, 209, 220, -209, 221, -209, 148,
522, 266, 248, 522, 522, 237, 91, -196, 62, 221, -209, 232, 256, 247, 226, 256, 256, 207, 16, -209,
176, 177, 185, 606, -196, -196, -196, -196, -196, -196, -43, 195, 165, 162, 166, 657, -209, -209, -209, -209,
-196, -196, -196, 282, -196, 384, 562, -196, 264, -196, -209, -209, -209, -209, -209, 263, -209, 578, 483, -209,
-196, -196, -196, 245, 255, 598, 606, -196, 193, 238, 246, -209, -209, -209, -209, 225, 233, 626, 657, -209,
252, 295, -196, -196, -196, 91, -196, 2, 384, -196, 172, 216, 223, 270, -209, -209, -209, 16, -209, 1,
-196, 261, 262, 384, 301, 220, -196, -196, -196, 205, 578, -209, -209, 236, 237, 578, 278, 193, -209, -209,
211, -52, -196, -196, -196, -196, -2, 384, -196, 269, -209, 181, 183, -53, -209, -209, -209, -209, -14, 578,
-196, 260, 212, -196, 306, 310, -196, 311, 312, 384, -209, 240, -209, 454, 184, -209, 275, 282, -209, 286,
-196, 314, 292, -196, 317, -196, -196, 63, 302, 224, 287, 578, -209, 288, 266, -209, 292, -209, -209, -36,
322, -20, -196, -196, -196, 323, 40, -196, -196, -196, 276, 202, 516, -28, -209, -209, -209, 293, 48, -209,
-196, -196, -196, 231, -196 -209, -209, -209, -209, -209, 210, -209
}; };
/* YYPGOTO[NTERM-NUM]. */ /* YYPGOTO[NTERM-NUM]. */
static const short int yypgoto[] = static const short int yypgoto[] =
{ {
-196, 0, -130, -1, -196, -196, -196, -196, -196, -196, -209, 0, -130, -1, -209, -209, -209, -209, -209, -209,
-196, 172, -124, 179, -196, -196, -29, -196, -196, -196, -209, 143, -136, 158, -209, -209, -29, -209, -209, -209,
-196, -17, -196, -196, 98, -196, 304, -196, -196, -196, -209, -17, -209, -209, 79, -209, 281, -209, -209, -209,
-196, -196, -196, -196, -196, 116, -196, -196, -196, -196, -209, -209, -209, -209, -209, 91, -209, -209, -209, -209,
-196, -196, -196, -196, -196, -196, 69, -196, -196, -196, -209, -209, -209, -209, -209, -209, 45, -209, -209, -209,
-196, -196, -196, -196, -196, -196, -196, -196, -196, -195, -209, -209, -209, -209, -209, -209, -209, -209, -209, -208,
125, -196, 79, -196, -196, -196, 54, -196, -196 99, -209, 41, -209, -209, -209, 23, -209, -209
}; };
/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
...@@ -798,192 +802,202 @@ static const short int yypgoto[] = ...@@ -798,192 +802,202 @@ static const short int yypgoto[] =
#define YYTABLE_NINF -1 #define YYTABLE_NINF -1
static const unsigned short int yytable[] = static const unsigned short int yytable[] =
{ {
23, 93, 73, 75, 109, 79, 230, 152, 1, 275, 23, 95, 75, 77, 111, 81, 154, 194, 232, 254,
139, 102, 307, 135, 136, 2, 137, 138, 139, 190, 277, 104, 311, 309, 191, 216, 217, 6, 141, 331,
252, 139, 309, 192, 189, 329, 330, 3, 6, 218, 332, 192, 53, 54, 55, 56, 57, 58, 59, 141,
219, 51, 4, 5, 6, 137, 138, 139, 308, 52, 270, 60, 214, 103, 51, 248, 249, 250, 251, 310,
7, 268, 212, 83, 101, 87, 85, 88, 8, 86, 252, 212, 89, 213, 90, 218, 226, 219, 213, 52,
128, 9, 210, 10, 211, 84, 11, 131, 216, 90, 130, 293, 243, 85, 244, 78, 79, 86, 246, 133,
217, 291, 224, 153, 211, 291, 91, 12, 13, 14, 213, 271, 155, 272, 87, 88, 293, 195, 326, 292,
133, 134, 231, 6, 135, 136, 15, 137, 138, 139, 327, 92, 135, 136, 233, 99, 137, 138, 93, 139,
290, 16, 17, 193, 92, 18, 19, 20, 255, 96, 140, 141, 94, 6, 96, 97, 61, 98, 101, 100,
21, 144, 145, 146, 147, 97, 141, 142, 143, 144, 257, 62, 63, 64, 65, 66, 102, 67, 68, 69,
145, 146, 147, 168, 146, 147, 22, 174, 246, 247, 70, 148, 149, 71, 72, 170, 105, 106, 109, 132,
248, 249, 241, 250, 242, 141, 142, 143, 144, 145, 146, 147, 148, 149, 110, 73, 131, 80, 150, 113,
146, 147, 214, 215, 53, 54, 55, 56, 57, 94, 114, 134, 74, 115, 53, 54, 55, 56, 57, 58,
244, 58, 211, 95, 175, 176, 177, 178, 179, 99, 59, 116, 117, 60, 118, 119, 177, 178, 179, 180,
182, 183, 184, 185, 186, 187, 188, 98, 297, 191, 181, 120, 184, 185, 186, 187, 188, 189, 190, 121,
100, 103, 79, 301, 199, 76, 77, 141, 142, 143, 299, 193, 122, 123, 81, 303, 201, 78, 79, 143,
144, 145, 146, 147, 269, 324, 270, 325, 226, 232, 144, 145, 146, 147, 148, 149, 124, 125, 156, 157,
104, 107, 108, 111, 112, 113, 114, 154, 115, 320, 176, 234, 126, 53, 54, 55, 56, 57, 58, 59,
116, 220, 129, 117, 118, 119, 59, 120, 121, 122, 152, 322, 60, 222, 127, 128, 129, 158, 61, 153,
220, 60, 61, 62, 63, 64, 123, 65, 66, 67, 159, 160, 222, 62, 63, 64, 65, 66, 161, 67,
68, 124, 1, 69, 70, 125, 126, 155, 127, 2, 68, 69, 70, 162, 164, 71, 72, 165, 168, 171,
243, 130, 132, 156, 157, 71, 148, 78, 256, 150, 174, 175, 245, 141, 196, 199, 202, 73, 205, 206,
225, 3, 72, 151, 158, 159, 4, 5, 6, 168, 258, 207, 210, 215, 74, 169, 229, 230, 231, 236,
160, 162, 265, 266, 7, 163, 166, 169, 172, 173, 237, 170, 238, 241, 267, 268, 242, 61, 247, 255,
139, 194, 8, 197, 200, 9, 203, 10, 204, 205, 221, 263, 62, 63, 64, 65, 66, 260, 67, 68,
11, 208, 213, 227, 228, 220, 234, 229, 235, 236, 69, 70, 262, 261, 71, 72, 264, 222, 273, 53,
239, 12, 13, 14, 245, 240, 253, 1, 219, 258, 54, 55, 56, 57, 58, 59, 73, 265, 60, 274,
15, 259, 261, 262, 2, 16, 17, 260, 272, 18, 275, 276, 277, 74, 281, 286, 283, 282, 288, 291,
19, 20, 271, 273, 21, 312, 3, 263, 274, 275, 300, 304, 301, 305, 307, 308, 313, 316, 315, 137,
279, 4, 5, 6, 284, 280, 281, 220, 286, 7, 138, 318, 139, 140, 141, 320, 321, 323, 324, 222,
22, 220, 289, 298, 302, 299, 305, 8, 303, 333, 325, 328, 334, 222, 329, 137, 138, 209, 139, 140,
9, 306, 10, 311, 313, 11, 314, 316, 318, 319, 141, 335, 336, 198, 112, 259, 269, 290, 256, 0,
220, 321, 322, 323, 327, 326, 12, 13, 14, 1, 294, 312, 222, 61, 142, 0, 0, 0, 62, 63,
332, 334, 196, 267, 207, 15, 2, 110, 257, 288, 64, 65, 66, 0, 67, 68, 69, 70, 0, 1,
16, 17, 254, 0, 18, 19, 20, 328, 3, 21, 71, 72, 0, 0, 0, 0, 2, 0, 0, 0,
310, 0, 0, 4, 5, 6, 292, 0, 0, 0, 0, 0, 73, 0, 0, 0, 0, 0, 3, 74,
0, 7, 0, 0, 0, 22, 0, 0, 0, 8, 220, 221, 0, 4, 5, 6, 0, 0, 0, 0,
0, 0, 9, 0, 10, 0, 0, 11, 0, 0, 0, 7, 143, 144, 145, 146, 147, 148, 149, 8,
0, 0, 0, 0, 0, 0, 0, 0, 12, 13, 0, 0, 9, 228, 10, 0, 0, 11, 143, 144,
145, 146, 147, 148, 149, 0, 0, 0, 12, 13,
14, 1, 0, 0, 0, 0, 0, 15, 2, 0, 14, 1, 0, 0, 0, 0, 0, 15, 2, 0,
0, 0, 16, 17, 0, 0, 18, 19, 20, 0, 0, 0, 16, 17, 0, 0, 18, 19, 20, 227,
3, 21, 0, 0, 0, 4, 5, 6, 0, 0, 3, 21, 0, 0, 0, 4, 5, 6, 0, 0,
0, 0, 0, 7, 0, 0, 0, 22, 0, 0, 0, 137, 138, 7, 139, 140, 141, 22, 0, 0,
0, 8, 0, 0, 9, 0, 10, 0, 0, 11, 0, 8, 0, 0, 9, 0, 10, 0, 0, 11,
53, 54, 55, 56, 57, 0, 0, 58, 0, 0, 0, 0, 0, 151, 0, 0, 0, 0, 0, 0,
12, 13, 14, 0, 0, 0, 0, 0, 0, 15, 12, 13, 14, 1, 0, 0, 0, 0, 0, 15,
0, 0, 0, 0, 16, 17, 0, 0, 18, 19, 2, 0, 0, 0, 16, 17, 0, 0, 18, 19,
20, 76, 77, 21, 53, 54, 55, 56, 57, 0, 20, 314, 3, 21, 0, 0, 0, 4, 5, 6,
0, 58, 0, 0, 0, 0, 0, 0, 0, 22, 0, 0, 0, 137, 138, 7, 139, 140, 141, 22,
0, 0, 0, 135, 136, 0, 137, 138, 139, 0, 0, 0, 0, 8, 0, 0, 9, 0, 10, 0,
0, 0, 59, 0, 0, 0, 0, 60, 61, 62, 0, 11, 280, 0, 143, 144, 145, 146, 147, 148,
63, 64, 140, 65, 66, 67, 68, 0, 0, 69, 149, 0, 12, 13, 14, 1, 0, 0, 0, 0,
70, 0, 0, 0, 167, 53, 54, 55, 56, 57, 0, 15, 2, 0, 0, 0, 16, 17, 0, 0,
0, 71, 58, 0, 0, 0, 59, 0, 72, 0, 18, 19, 20, 330, 3, 21, 0, 0, 0, 4,
0, 60, 61, 62, 63, 64, 0, 65, 66, 67, 5, 6, 0, 0, 0, 0, 0, 7, 0, 0,
68, 0, 0, 69, 70, 0, 135, 136, 0, 137, 0, 22, 0, 0, 0, 8, 0, 0, 9, 0,
138, 139, 0, 135, 136, 71, 137, 138, 139, 0, 10, 0, 0, 11, 0, 0, 143, 144, 145, 146,
135, 136, 72, 137, 138, 139, 141, 142, 143, 144, 147, 148, 149, 0, 12, 13, 14, 1, 0, 0,
145, 146, 147, 0, 0, 149, 0, 59, 233, 278, 0, 0, 0, 15, 2, 139, 140, 141, 16, 17,
0, 0, 60, 61, 62, 63, 64, 0, 65, 66, 0, 0, 18, 19, 20, 0, 3, 21, 0, 0,
67, 68, 0, 0, 69, 70, 135, 136, 0, 137, 0, 4, 5, 6, 0, 0, 0, 137, 138, 7,
138, 139, 0, 0, 135, 136, 71, 137, 138, 139, 139, 140, 141, 22, 0, 0, 0, 8, 0, 0,
0, 0, 0, 72, 0, 0, 0, 0, 283, 0, 9, 0, 10, 0, 0, 11, 137, 138, 0, 139,
0, 0, 0, 0, 0, 0, 0, 0, 0, 141, 140, 141, 0, 0, 0, 0, 12, 13, 14, 235,
142, 143, 144, 145, 146, 147, 141, 142, 143, 144, 0, 0, 0, 0, 0, 15, 0, 0, 285, 0,
145, 146, 147, 141, 142, 143, 144, 145, 146, 147, 16, 17, 0, 0, 18, 19, 20, 137, 138, 21,
139, 140, 141, 0, 0, 143, 144, 145, 146, 147,
148, 149, 0, 0, 0, 22, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
143, 144, 145, 146, 147, 148, 149, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 143,
144, 145, 146, 147, 148, 149, 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, 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, 0, 0, 0, 141, 143, 144, 145, 146, 147, 148, 149
142, 143, 144, 145, 146, 147, 0, 141, 142, 143,
144, 145, 146, 147
}; };
static const short int yycheck[] = static const short int yycheck[] =
{ {
0, 18, 3, 4, 33, 6, 38, 48, 7, 7, 0, 18, 3, 4, 33, 6, 50, 38, 40, 217,
13, 28, 64, 8, 9, 14, 11, 12, 13, 149, 9, 28, 26, 66, 150, 17, 18, 35, 15, 47,
215, 13, 24, 36, 148, 45, 46, 26, 33, 28, 48, 151, 3, 4, 5, 6, 7, 8, 9, 15,
29, 62, 31, 32, 33, 11, 12, 13, 90, 7, 238, 12, 168, 51, 64, 19, 20, 21, 22, 92,
39, 236, 166, 7, 49, 56, 7, 58, 47, 37, 24, 104, 58, 106, 60, 104, 104, 106, 106, 9,
51, 50, 102, 52, 104, 48, 55, 58, 102, 7, 51, 65, 104, 9, 106, 36, 37, 50, 104, 60,
104, 63, 102, 104, 104, 63, 7, 66, 67, 68, 106, 104, 106, 106, 9, 39, 65, 98, 104, 277,
71, 72, 104, 33, 8, 9, 75, 11, 12, 13, 106, 9, 73, 74, 106, 0, 10, 11, 9, 13,
275, 80, 81, 96, 7, 84, 85, 86, 218, 7, 14, 15, 9, 35, 89, 89, 67, 9, 103, 102,
89, 94, 95, 96, 97, 0, 91, 92, 93, 94, 220, 72, 73, 74, 75, 76, 102, 78, 79, 80,
95, 96, 97, 104, 96, 97, 105, 102, 17, 18, 81, 98, 99, 84, 85, 106, 102, 40, 102, 101,
19, 20, 102, 22, 104, 91, 92, 93, 94, 95, 96, 97, 98, 99, 102, 96, 103, 98, 103, 102,
96, 97, 15, 16, 3, 4, 5, 6, 7, 87, 102, 101, 103, 102, 3, 4, 5, 6, 7, 8,
102, 10, 104, 87, 135, 136, 137, 138, 139, 101, 9, 102, 102, 12, 102, 102, 137, 138, 139, 140,
141, 142, 143, 144, 145, 146, 147, 100, 278, 150, 141, 102, 143, 144, 145, 146, 147, 148, 149, 102,
100, 100, 153, 283, 155, 34, 35, 91, 92, 93, 280, 152, 102, 102, 155, 285, 157, 36, 37, 93,
94, 95, 96, 97, 102, 102, 104, 104, 102, 198, 94, 95, 96, 97, 98, 99, 102, 102, 39, 17,
38, 100, 100, 100, 100, 100, 100, 37, 100, 309, 104, 200, 102, 3, 4, 5, 6, 7, 8, 9,
100, 181, 101, 100, 100, 100, 65, 100, 100, 100, 103, 311, 12, 183, 102, 102, 102, 9, 67, 103,
190, 70, 71, 72, 73, 74, 100, 76, 77, 78, 53, 9, 192, 72, 73, 74, 75, 76, 9, 78,
79, 100, 7, 82, 83, 100, 100, 15, 100, 14, 79, 80, 81, 61, 50, 84, 85, 103, 103, 9,
211, 99, 99, 7, 51, 94, 101, 96, 219, 101, 71, 71, 213, 15, 9, 9, 9, 96, 103, 59,
25, 26, 101, 101, 7, 7, 31, 32, 33, 230, 221, 9, 105, 56, 103, 55, 9, 104, 106, 93,
59, 48, 233, 234, 39, 101, 101, 7, 69, 69, 106, 232, 9, 9, 235, 236, 103, 67, 9, 25,
13, 7, 47, 7, 7, 50, 101, 52, 57, 7, 31, 9, 72, 73, 74, 75, 76, 27, 78, 79,
55, 103, 54, 7, 102, 255, 91, 104, 104, 7, 80, 81, 104, 32, 84, 85, 9, 257, 63, 3,
7, 66, 67, 68, 7, 101, 23, 7, 29, 25, 4, 5, 6, 7, 8, 9, 96, 41, 12, 104,
75, 30, 7, 7, 14, 80, 81, 102, 102, 84, 108, 105, 9, 103, 28, 103, 43, 52, 62, 9,
85, 86, 61, 106, 89, 25, 26, 39, 103, 7, 44, 3, 45, 90, 103, 102, 46, 12, 104, 10,
26, 31, 32, 33, 101, 50, 41, 297, 60, 39, 11, 9, 13, 14, 15, 9, 9, 9, 32, 299,
105, 301, 7, 42, 3, 43, 101, 47, 88, 326, 8, 25, 9, 303, 102, 10, 11, 164, 13, 14,
50, 100, 52, 44, 102, 55, 10, 7, 7, 7, 15, 328, 102, 155, 33, 224, 237, 272, 219, -1,
320, 7, 30, 6, 100, 23, 66, 67, 68, 7, 279, 298, 322, 67, 29, -1, -1, -1, 72, 73,
7, 100, 153, 235, 162, 75, 14, 33, 222, 270, 74, 75, 76, -1, 78, 79, 80, 81, -1, 9,
80, 81, 217, -1, 84, 85, 86, 25, 26, 89, 84, 85, -1, -1, -1, -1, 16, -1, -1, -1,
296, -1, -1, 31, 32, 33, 277, -1, -1, -1, -1, -1, 96, -1, -1, -1, -1, -1, 28, 103,
-1, 39, -1, -1, -1, 105, -1, -1, -1, 47, 30, 31, -1, 33, 34, 35, -1, -1, -1, -1,
-1, -1, 50, -1, 52, -1, -1, 55, -1, -1, -1, 41, 93, 94, 95, 96, 97, 98, 99, 49,
-1, -1, -1, -1, -1, -1, -1, -1, 66, 67, -1, -1, 52, 104, 54, -1, -1, 57, 93, 94,
68, 7, -1, -1, -1, -1, -1, 75, 14, -1, 95, 96, 97, 98, 99, -1, -1, -1, 68, 69,
-1, -1, 80, 81, -1, -1, 84, 85, 86, -1, 70, 9, -1, -1, -1, -1, -1, 77, 16, -1,
26, 89, -1, -1, -1, 31, 32, 33, -1, -1, -1, -1, 82, 83, -1, -1, 86, 87, 88, 27,
-1, -1, -1, 39, -1, -1, -1, 105, -1, -1, 28, 91, -1, -1, -1, 33, 34, 35, -1, -1,
-1, 47, -1, -1, 50, -1, 52, -1, -1, 55, -1, 10, 11, 41, 13, 14, 15, 107, -1, -1,
3, 4, 5, 6, 7, -1, -1, 10, -1, -1, -1, 49, -1, -1, 52, -1, 54, -1, -1, 57,
66, 67, 68, -1, -1, -1, -1, -1, -1, 75, -1, -1, -1, 32, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, 80, 81, -1, -1, 84, 85, 68, 69, 70, 9, -1, -1, -1, -1, -1, 77,
86, 34, 35, 89, 3, 4, 5, 6, 7, -1, 16, -1, -1, -1, 82, 83, -1, -1, 86, 87,
-1, 10, -1, -1, -1, -1, -1, -1, -1, 105, 88, 27, 28, 91, -1, -1, -1, 33, 34, 35,
-1, -1, -1, 8, 9, -1, 11, 12, 13, -1, -1, -1, -1, 10, 11, 41, 13, 14, 15, 107,
-1, -1, 65, -1, -1, -1, -1, 70, 71, 72, -1, -1, -1, 49, -1, -1, 52, -1, 54, -1,
73, 74, 27, 76, 77, 78, 79, -1, -1, 82, -1, 57, 29, -1, 93, 94, 95, 96, 97, 98,
83, -1, -1, -1, 53, 3, 4, 5, 6, 7, 99, -1, 68, 69, 70, 9, -1, -1, -1, -1,
-1, 94, 10, -1, -1, -1, 65, -1, 101, -1, -1, 77, 16, -1, -1, -1, 82, 83, -1, -1,
-1, 70, 71, 72, 73, 74, -1, 76, 77, 78, 86, 87, 88, 27, 28, 91, -1, -1, -1, 33,
79, -1, -1, 82, 83, -1, 8, 9, -1, 11, 34, 35, -1, -1, -1, -1, -1, 41, -1, -1,
12, 13, -1, 8, 9, 94, 11, 12, 13, -1, -1, 107, -1, -1, -1, 49, -1, -1, 52, -1,
8, 9, 101, 11, 12, 13, 91, 92, 93, 94, 54, -1, -1, 57, -1, -1, 93, 94, 95, 96,
95, 96, 97, -1, -1, 30, -1, 65, 40, 27, 97, 98, 99, -1, 68, 69, 70, 9, -1, -1,
-1, -1, 70, 71, 72, 73, 74, -1, 76, 77, -1, -1, -1, 77, 16, 13, 14, 15, 82, 83,
78, 79, -1, -1, 82, 83, 8, 9, -1, 11, -1, -1, 86, 87, 88, -1, 28, 91, -1, -1,
12, 13, -1, -1, 8, 9, 94, 11, 12, 13, -1, 33, 34, 35, -1, -1, -1, 10, 11, 41,
-1, -1, -1, 101, -1, -1, -1, -1, 30, -1, 13, 14, 15, 107, -1, -1, -1, 49, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 91, 52, -1, 54, -1, -1, 57, 10, 11, -1, 13,
92, 93, 94, 95, 96, 97, 91, 92, 93, 94, 14, 15, -1, -1, -1, -1, 68, 69, 70, 42,
95, 96, 97, 91, 92, 93, 94, 95, 96, 97, -1, -1, -1, -1, -1, 77, -1, -1, 32, -1,
82, 83, -1, -1, 86, 87, 88, 10, 11, 91,
13, 14, 15, -1, -1, 93, 94, 95, 96, 97,
98, 99, -1, -1, -1, 107, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
93, 94, 95, 96, 97, 98, 99, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 93,
94, 95, 96, 97, 98, 99, -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, 91, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
92, 93, 94, 95, 96, 97, -1, 91, 92, 93, 93, 94, 95, 96, 97, 98, 99
94, 95, 96, 97
}; };
/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
symbol of state STATE-NUM. */ symbol of state STATE-NUM. */
static const unsigned char yystos[] = static const unsigned char yystos[] =
{ {
0, 7, 14, 26, 31, 32, 33, 39, 47, 50, 0, 9, 16, 28, 33, 34, 35, 41, 49, 52,
52, 55, 66, 67, 68, 75, 80, 81, 84, 85, 54, 57, 68, 69, 70, 77, 82, 83, 86, 87,
86, 89, 105, 108, 113, 114, 115, 128, 129, 130, 88, 91, 107, 110, 115, 116, 117, 130, 131, 132,
134, 135, 136, 137, 138, 139, 140, 141, 145, 146, 136, 137, 138, 139, 140, 141, 142, 143, 147, 148,
147, 148, 149, 150, 151, 152, 159, 163, 164, 165, 149, 150, 151, 152, 153, 154, 161, 165, 166, 167,
175, 62, 7, 3, 4, 5, 6, 7, 10, 65, 177, 64, 9, 3, 4, 5, 6, 7, 8, 9,
70, 71, 72, 73, 74, 76, 77, 78, 79, 82, 12, 67, 72, 73, 74, 75, 76, 78, 79, 80,
83, 94, 101, 110, 111, 110, 34, 35, 96, 110, 81, 84, 85, 96, 103, 112, 113, 112, 36, 37,
120, 121, 122, 7, 48, 7, 37, 56, 58, 161, 98, 112, 122, 123, 124, 9, 50, 9, 39, 58,
7, 7, 7, 128, 87, 87, 7, 0, 100, 101, 60, 163, 9, 9, 9, 130, 89, 89, 9, 0,
100, 49, 128, 100, 38, 123, 133, 100, 100, 123, 102, 103, 102, 51, 130, 102, 40, 125, 135, 102,
133, 100, 100, 100, 100, 100, 100, 100, 100, 100, 102, 125, 135, 102, 102, 102, 102, 102, 102, 102,
100, 100, 100, 100, 100, 100, 100, 100, 110, 101, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102,
99, 110, 99, 110, 110, 8, 9, 11, 12, 13, 112, 103, 101, 112, 101, 112, 112, 10, 11, 13,
27, 91, 92, 93, 94, 95, 96, 97, 101, 30, 14, 15, 29, 93, 94, 95, 96, 97, 98, 99,
101, 101, 48, 104, 37, 15, 7, 51, 7, 7, 103, 32, 103, 103, 50, 106, 39, 17, 9, 53,
59, 162, 48, 101, 110, 119, 101, 53, 110, 7, 9, 9, 61, 164, 50, 103, 112, 121, 103, 55,
167, 168, 69, 69, 102, 110, 110, 110, 110, 110, 112, 9, 169, 170, 71, 71, 104, 112, 112, 112,
108, 109, 110, 110, 110, 110, 110, 110, 110, 119, 112, 112, 110, 111, 112, 112, 112, 112, 112, 112,
109, 110, 36, 96, 7, 118, 120, 7, 117, 110, 112, 121, 111, 112, 38, 98, 9, 120, 122, 9,
7, 131, 132, 101, 57, 7, 116, 118, 103, 112, 119, 112, 9, 133, 134, 103, 59, 9, 118, 120,
102, 104, 119, 54, 15, 16, 102, 104, 28, 29, 105, 114, 104, 106, 121, 56, 17, 18, 104, 106,
108, 142, 143, 144, 102, 25, 102, 7, 102, 104, 30, 31, 110, 144, 145, 146, 104, 27, 104, 9,
38, 104, 123, 40, 91, 104, 7, 153, 154, 7, 104, 106, 40, 106, 125, 42, 93, 106, 9, 155,
101, 102, 104, 110, 102, 7, 17, 18, 19, 20, 156, 9, 103, 104, 106, 112, 104, 9, 19, 20,
22, 166, 166, 23, 167, 109, 110, 142, 25, 30, 21, 22, 24, 168, 168, 25, 169, 111, 112, 144,
102, 7, 7, 39, 124, 110, 110, 131, 166, 102, 27, 32, 104, 9, 9, 41, 126, 112, 112, 133,
104, 61, 102, 106, 103, 7, 169, 170, 27, 26, 168, 104, 106, 63, 104, 108, 105, 9, 171, 172,
50, 41, 125, 30, 101, 155, 60, 158, 153, 7, 29, 28, 52, 43, 127, 32, 103, 157, 62, 160,
166, 63, 169, 171, 172, 173, 174, 109, 42, 43, 155, 9, 168, 65, 171, 173, 174, 175, 176, 111,
127, 109, 3, 88, 156, 101, 100, 64, 90, 24, 44, 45, 129, 111, 3, 90, 158, 103, 102, 66,
173, 44, 25, 102, 10, 157, 7, 160, 7, 7, 92, 26, 175, 46, 27, 104, 12, 159, 9, 162,
109, 7, 30, 6, 102, 104, 23, 100, 25, 45, 9, 9, 111, 9, 32, 8, 104, 106, 25, 102,
46, 126, 7, 128, 100 27, 47, 48, 128, 9, 130, 102
}; };
#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__) #if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
...@@ -1595,275 +1609,285 @@ yyparse () ...@@ -1595,275 +1609,285 @@ yyparse ()
switch (yyn) switch (yyn)
{ {
case 25: case 25:
#line 160 "pars0grm.y" #line 162 "pars0grm.y"
{ yyval = que_node_list_add_last(NULL, yyvsp[0]); ;} { yyval = que_node_list_add_last(NULL, yyvsp[0]); ;}
break; break;
case 26: case 26:
#line 162 "pars0grm.y" #line 164 "pars0grm.y"
{ yyval = que_node_list_add_last(yyvsp[-1], yyvsp[0]); ;} { yyval = que_node_list_add_last(yyvsp[-1], yyvsp[0]); ;}
break; break;
case 27: case 27:
#line 166 "pars0grm.y" #line 168 "pars0grm.y"
{ yyval = yyvsp[0];;} { yyval = yyvsp[0];;}
break; break;
case 28: case 28:
#line 168 "pars0grm.y" #line 170 "pars0grm.y"
{ yyval = pars_func(yyvsp[-3], yyvsp[-1]); ;} { yyval = pars_func(yyvsp[-3], yyvsp[-1]); ;}
break; break;
case 29: case 29:
#line 169 "pars0grm.y" #line 171 "pars0grm.y"
{ yyval = yyvsp[0];;} { yyval = yyvsp[0];;}
break; break;
case 30: case 30:
#line 170 "pars0grm.y" #line 172 "pars0grm.y"
{ yyval = yyvsp[0];;} { yyval = yyvsp[0];;}
break; break;
case 31: case 31:
#line 171 "pars0grm.y" #line 173 "pars0grm.y"
{ yyval = yyvsp[0];;} { yyval = yyvsp[0];;}
break; break;
case 32: case 32:
#line 172 "pars0grm.y" #line 174 "pars0grm.y"
{ yyval = yyvsp[0];;} { yyval = yyvsp[0];;}
break; break;
case 33: case 33:
#line 173 "pars0grm.y" #line 175 "pars0grm.y"
{ yyval = yyvsp[0];;} { yyval = yyvsp[0];;}
break; break;
case 34: case 34:
#line 174 "pars0grm.y" #line 176 "pars0grm.y"
{ yyval = pars_op('+', yyvsp[-2], yyvsp[0]); ;} { yyval = yyvsp[0];;}
break; break;
case 35: case 35:
#line 175 "pars0grm.y" #line 177 "pars0grm.y"
{ yyval = pars_op('-', yyvsp[-2], yyvsp[0]); ;} { yyval = yyvsp[0];;}
break; break;
case 36: case 36:
#line 176 "pars0grm.y" #line 178 "pars0grm.y"
{ yyval = pars_op('*', yyvsp[-2], yyvsp[0]); ;} { yyval = pars_op('+', yyvsp[-2], yyvsp[0]); ;}
break; break;
case 37: case 37:
#line 177 "pars0grm.y" #line 179 "pars0grm.y"
{ yyval = pars_op('/', yyvsp[-2], yyvsp[0]); ;} { yyval = pars_op('-', yyvsp[-2], yyvsp[0]); ;}
break; break;
case 38: case 38:
#line 178 "pars0grm.y" #line 180 "pars0grm.y"
{ yyval = pars_op('-', yyvsp[0], NULL); ;} { yyval = pars_op('*', yyvsp[-2], yyvsp[0]); ;}
break; break;
case 39: case 39:
#line 179 "pars0grm.y" #line 181 "pars0grm.y"
{ yyval = yyvsp[-1]; ;} { yyval = pars_op('/', yyvsp[-2], yyvsp[0]); ;}
break; break;
case 40: case 40:
#line 180 "pars0grm.y" #line 182 "pars0grm.y"
{ yyval = pars_op('=', yyvsp[-2], yyvsp[0]); ;} { yyval = pars_op('-', yyvsp[0], NULL); ;}
break; break;
case 41: case 41:
#line 181 "pars0grm.y" #line 183 "pars0grm.y"
{ yyval = pars_op('<', yyvsp[-2], yyvsp[0]); ;} { yyval = yyvsp[-1]; ;}
break; break;
case 42: case 42:
#line 182 "pars0grm.y" #line 184 "pars0grm.y"
{ yyval = pars_op('>', yyvsp[-2], yyvsp[0]); ;} { yyval = pars_op('=', yyvsp[-2], yyvsp[0]); ;}
break; break;
case 43: case 43:
#line 183 "pars0grm.y" #line 185 "pars0grm.y"
{ yyval = pars_op(PARS_GE_TOKEN, yyvsp[-2], yyvsp[0]); ;} { yyval = pars_op('<', yyvsp[-2], yyvsp[0]); ;}
break; break;
case 44: case 44:
#line 184 "pars0grm.y" #line 186 "pars0grm.y"
{ yyval = pars_op(PARS_LE_TOKEN, yyvsp[-2], yyvsp[0]); ;} { yyval = pars_op('>', yyvsp[-2], yyvsp[0]); ;}
break; break;
case 45: case 45:
#line 185 "pars0grm.y" #line 187 "pars0grm.y"
{ yyval = pars_op(PARS_NE_TOKEN, yyvsp[-2], yyvsp[0]); ;} { yyval = pars_op(PARS_GE_TOKEN, yyvsp[-2], yyvsp[0]); ;}
break; break;
case 46: case 46:
#line 186 "pars0grm.y" #line 188 "pars0grm.y"
{ yyval = pars_op(PARS_AND_TOKEN, yyvsp[-2], yyvsp[0]); ;} { yyval = pars_op(PARS_LE_TOKEN, yyvsp[-2], yyvsp[0]); ;}
break; break;
case 47: case 47:
#line 187 "pars0grm.y" #line 189 "pars0grm.y"
{ yyval = pars_op(PARS_OR_TOKEN, yyvsp[-2], yyvsp[0]); ;} { yyval = pars_op(PARS_NE_TOKEN, yyvsp[-2], yyvsp[0]); ;}
break; break;
case 48: case 48:
#line 188 "pars0grm.y" #line 190 "pars0grm.y"
{ yyval = pars_op(PARS_NOT_TOKEN, yyvsp[0], NULL); ;} { yyval = pars_op(PARS_AND_TOKEN, yyvsp[-2], yyvsp[0]); ;}
break; break;
case 49: case 49:
#line 190 "pars0grm.y" #line 191 "pars0grm.y"
{ yyval = pars_op(PARS_NOTFOUND_TOKEN, yyvsp[-2], NULL); ;} { yyval = pars_op(PARS_OR_TOKEN, yyvsp[-2], yyvsp[0]); ;}
break; break;
case 50: case 50:
#line 192 "pars0grm.y" #line 192 "pars0grm.y"
{ yyval = pars_op(PARS_NOTFOUND_TOKEN, yyvsp[-2], NULL); ;} { yyval = pars_op(PARS_NOT_TOKEN, yyvsp[0], NULL); ;}
break; break;
case 51: case 51:
#line 194 "pars0grm.y"
{ yyval = pars_op(PARS_NOTFOUND_TOKEN, yyvsp[-2], NULL); ;}
break;
case 52:
#line 196 "pars0grm.y" #line 196 "pars0grm.y"
{ yyval = pars_op(PARS_NOTFOUND_TOKEN, yyvsp[-2], NULL); ;}
break;
case 53:
#line 200 "pars0grm.y"
{ yyval = &pars_to_char_token; ;} { yyval = &pars_to_char_token; ;}
break; break;
case 52: case 54:
#line 197 "pars0grm.y" #line 201 "pars0grm.y"
{ yyval = &pars_to_number_token; ;} { yyval = &pars_to_number_token; ;}
break; break;
case 53: case 55:
#line 198 "pars0grm.y" #line 202 "pars0grm.y"
{ yyval = &pars_to_binary_token; ;} { yyval = &pars_to_binary_token; ;}
break; break;
case 54: case 56:
#line 200 "pars0grm.y" #line 204 "pars0grm.y"
{ yyval = &pars_binary_to_number_token; ;} { yyval = &pars_binary_to_number_token; ;}
break; break;
case 55: case 57:
#line 201 "pars0grm.y" #line 205 "pars0grm.y"
{ yyval = &pars_substr_token; ;} { yyval = &pars_substr_token; ;}
break; break;
case 56: case 58:
#line 202 "pars0grm.y" #line 206 "pars0grm.y"
{ yyval = &pars_concat_token; ;} { yyval = &pars_concat_token; ;}
break; break;
case 57: case 59:
#line 203 "pars0grm.y" #line 207 "pars0grm.y"
{ yyval = &pars_instr_token; ;} { yyval = &pars_instr_token; ;}
break; break;
case 58: case 60:
#line 204 "pars0grm.y" #line 208 "pars0grm.y"
{ yyval = &pars_length_token; ;} { yyval = &pars_length_token; ;}
break; break;
case 59: case 61:
#line 205 "pars0grm.y" #line 209 "pars0grm.y"
{ yyval = &pars_sysdate_token; ;} { yyval = &pars_sysdate_token; ;}
break; break;
case 60: case 62:
#line 206 "pars0grm.y" #line 210 "pars0grm.y"
{ yyval = &pars_rnd_token; ;} { yyval = &pars_rnd_token; ;}
break; break;
case 61: case 63:
#line 207 "pars0grm.y" #line 211 "pars0grm.y"
{ yyval = &pars_rnd_str_token; ;} { yyval = &pars_rnd_str_token; ;}
break; break;
case 65: case 67:
#line 218 "pars0grm.y" #line 222 "pars0grm.y"
{ yyval = pars_stored_procedure_call(yyvsp[-4]); ;} { yyval = pars_stored_procedure_call(yyvsp[-4]); ;}
break; break;
case 66: case 68:
#line 223 "pars0grm.y" #line 227 "pars0grm.y"
{ yyval = pars_procedure_call(yyvsp[-3], yyvsp[-1]); ;} { yyval = pars_procedure_call(yyvsp[-3], yyvsp[-1]); ;}
break; break;
case 67: case 69:
#line 227 "pars0grm.y" #line 231 "pars0grm.y"
{ yyval = &pars_replstr_token; ;} { yyval = &pars_replstr_token; ;}
break; break;
case 68: case 70:
#line 228 "pars0grm.y" #line 232 "pars0grm.y"
{ yyval = &pars_printf_token; ;} { yyval = &pars_printf_token; ;}
break; break;
case 69: case 71:
#line 229 "pars0grm.y" #line 233 "pars0grm.y"
{ yyval = &pars_assert_token; ;} { yyval = &pars_assert_token; ;}
break; break;
case 70: case 72:
#line 233 "pars0grm.y" #line 237 "pars0grm.y"
{ yyval = yyvsp[-2]; ;} { yyval = yyvsp[-2]; ;}
break; break;
case 71: case 73:
#line 237 "pars0grm.y" #line 241 "pars0grm.y"
{ yyval = que_node_list_add_last(NULL, yyvsp[0]); ;} { yyval = que_node_list_add_last(NULL, yyvsp[0]); ;}
break; break;
case 72: case 74:
#line 239 "pars0grm.y" #line 243 "pars0grm.y"
{ yyval = que_node_list_add_last(yyvsp[-2], yyvsp[0]); ;} { yyval = que_node_list_add_last(yyvsp[-2], yyvsp[0]); ;}
break; break;
case 73: case 75:
#line 243 "pars0grm.y" #line 247 "pars0grm.y"
{ yyval = NULL; ;} { yyval = NULL; ;}
break; break;
case 74: case 76:
#line 244 "pars0grm.y" #line 248 "pars0grm.y"
{ yyval = que_node_list_add_last(NULL, yyvsp[0]); ;} { yyval = que_node_list_add_last(NULL, yyvsp[0]); ;}
break; break;
case 75: case 77:
#line 246 "pars0grm.y" #line 250 "pars0grm.y"
{ yyval = que_node_list_add_last(yyvsp[-2], yyvsp[0]); ;} { yyval = que_node_list_add_last(yyvsp[-2], yyvsp[0]); ;}
break; break;
case 76: case 78:
#line 250 "pars0grm.y" #line 254 "pars0grm.y"
{ yyval = NULL; ;} { yyval = NULL; ;}
break; break;
case 77: case 79:
#line 251 "pars0grm.y" #line 255 "pars0grm.y"
{ yyval = que_node_list_add_last(NULL, yyvsp[0]);;} { yyval = que_node_list_add_last(NULL, yyvsp[0]);;}
break; break;
case 78: case 80:
#line 252 "pars0grm.y" #line 256 "pars0grm.y"
{ yyval = que_node_list_add_last(yyvsp[-2], yyvsp[0]); ;} { yyval = que_node_list_add_last(yyvsp[-2], yyvsp[0]); ;}
break; break;
case 79: case 81:
#line 256 "pars0grm.y" #line 260 "pars0grm.y"
{ yyval = yyvsp[0]; ;} { yyval = yyvsp[0]; ;}
break; break;
case 80: case 82:
#line 258 "pars0grm.y" #line 262 "pars0grm.y"
{ yyval = pars_func(&pars_count_token, { yyval = pars_func(&pars_count_token,
que_node_list_add_last(NULL, que_node_list_add_last(NULL,
sym_tab_add_int_lit( sym_tab_add_int_lit(
pars_sym_tab_global, 1))); ;} pars_sym_tab_global, 1))); ;}
break; break;
case 81: case 83:
#line 263 "pars0grm.y" #line 267 "pars0grm.y"
{ yyval = pars_func(&pars_count_token, { yyval = pars_func(&pars_count_token,
que_node_list_add_last(NULL, que_node_list_add_last(NULL,
pars_func(&pars_distinct_token, pars_func(&pars_distinct_token,
...@@ -1871,436 +1895,436 @@ yyparse () ...@@ -1871,436 +1895,436 @@ yyparse ()
NULL, yyvsp[-1])))); ;} NULL, yyvsp[-1])))); ;}
break; break;
case 82: case 84:
#line 269 "pars0grm.y" #line 273 "pars0grm.y"
{ yyval = pars_func(&pars_sum_token, { yyval = pars_func(&pars_sum_token,
que_node_list_add_last(NULL, que_node_list_add_last(NULL,
yyvsp[-1])); ;} yyvsp[-1])); ;}
break; break;
case 83: case 85:
#line 275 "pars0grm.y" #line 279 "pars0grm.y"
{ yyval = NULL; ;} { yyval = NULL; ;}
break; break;
case 84: case 86:
#line 276 "pars0grm.y" #line 280 "pars0grm.y"
{ yyval = que_node_list_add_last(NULL, yyvsp[0]); ;} { yyval = que_node_list_add_last(NULL, yyvsp[0]); ;}
break; break;
case 85: case 87:
#line 278 "pars0grm.y" #line 282 "pars0grm.y"
{ yyval = que_node_list_add_last(yyvsp[-2], yyvsp[0]); ;} { yyval = que_node_list_add_last(yyvsp[-2], yyvsp[0]); ;}
break; break;
case 86: case 88:
#line 282 "pars0grm.y" #line 286 "pars0grm.y"
{ yyval = pars_select_list(&pars_star_denoter, { yyval = pars_select_list(&pars_star_denoter,
NULL); ;} NULL); ;}
break; break;
case 87: case 89:
#line 285 "pars0grm.y" #line 289 "pars0grm.y"
{ yyval = pars_select_list(yyvsp[-2], yyvsp[0]); ;} { yyval = pars_select_list(yyvsp[-2], yyvsp[0]); ;}
break; break;
case 88: case 90:
#line 286 "pars0grm.y" #line 290 "pars0grm.y"
{ yyval = pars_select_list(yyvsp[0], NULL); ;} { yyval = pars_select_list(yyvsp[0], NULL); ;}
break; break;
case 89: case 91:
#line 290 "pars0grm.y" #line 294 "pars0grm.y"
{ yyval = NULL; ;} { yyval = NULL; ;}
break; break;
case 90: case 92:
#line 291 "pars0grm.y" #line 295 "pars0grm.y"
{ yyval = yyvsp[0]; ;} { yyval = yyvsp[0]; ;}
break; break;
case 91: case 93:
#line 295 "pars0grm.y" #line 299 "pars0grm.y"
{ yyval = NULL; ;} { yyval = NULL; ;}
break; break;
case 92: case 94:
#line 297 "pars0grm.y" #line 301 "pars0grm.y"
{ yyval = &pars_update_token; ;} { yyval = &pars_update_token; ;}
break; break;
case 93: case 95:
#line 301 "pars0grm.y" #line 305 "pars0grm.y"
{ yyval = NULL; ;} { yyval = NULL; ;}
break; break;
case 94: case 96:
#line 303 "pars0grm.y" #line 307 "pars0grm.y"
{ yyval = &pars_consistent_token; ;} { yyval = &pars_consistent_token; ;}
break; break;
case 95: case 97:
#line 307 "pars0grm.y" #line 311 "pars0grm.y"
{ yyval = &pars_asc_token; ;} { yyval = &pars_asc_token; ;}
break; break;
case 96: case 98:
#line 308 "pars0grm.y" #line 312 "pars0grm.y"
{ yyval = &pars_asc_token; ;} { yyval = &pars_asc_token; ;}
break; break;
case 97: case 99:
#line 309 "pars0grm.y" #line 313 "pars0grm.y"
{ yyval = &pars_desc_token; ;} { yyval = &pars_desc_token; ;}
break; break;
case 98: case 100:
#line 313 "pars0grm.y" #line 317 "pars0grm.y"
{ yyval = NULL; ;} { yyval = NULL; ;}
break; break;
case 99: case 101:
#line 315 "pars0grm.y" #line 319 "pars0grm.y"
{ yyval = pars_order_by(yyvsp[-1], yyvsp[0]); ;} { yyval = pars_order_by(yyvsp[-1], yyvsp[0]); ;}
break; break;
case 100: case 102:
#line 324 "pars0grm.y" #line 328 "pars0grm.y"
{ yyval = pars_select_statement(yyvsp[-6], yyvsp[-4], yyvsp[-3], { yyval = pars_select_statement(yyvsp[-6], yyvsp[-4], yyvsp[-3],
yyvsp[-2], yyvsp[-1], yyvsp[0]); ;} yyvsp[-2], yyvsp[-1], yyvsp[0]); ;}
break; break;
case 101: case 103:
#line 330 "pars0grm.y" #line 334 "pars0grm.y"
{ yyval = yyvsp[0]; ;} { yyval = yyvsp[0]; ;}
break; break;
case 102: case 104:
#line 335 "pars0grm.y" #line 339 "pars0grm.y"
{ yyval = pars_insert_statement(yyvsp[-4], yyvsp[-1], NULL); ;} { yyval = pars_insert_statement(yyvsp[-4], yyvsp[-1], NULL); ;}
break; break;
case 103: case 105:
#line 337 "pars0grm.y" #line 341 "pars0grm.y"
{ yyval = pars_insert_statement(yyvsp[-1], NULL, yyvsp[0]); ;} { yyval = pars_insert_statement(yyvsp[-1], NULL, yyvsp[0]); ;}
break; break;
case 104: case 106:
#line 341 "pars0grm.y" #line 345 "pars0grm.y"
{ yyval = pars_column_assignment(yyvsp[-2], yyvsp[0]); ;} { yyval = pars_column_assignment(yyvsp[-2], yyvsp[0]); ;}
break; break;
case 105: case 107:
#line 345 "pars0grm.y" #line 349 "pars0grm.y"
{ yyval = que_node_list_add_last(NULL, yyvsp[0]); ;} { yyval = que_node_list_add_last(NULL, yyvsp[0]); ;}
break; break;
case 106: case 108:
#line 347 "pars0grm.y" #line 351 "pars0grm.y"
{ yyval = que_node_list_add_last(yyvsp[-2], yyvsp[0]); ;} { yyval = que_node_list_add_last(yyvsp[-2], yyvsp[0]); ;}
break; break;
case 107: case 109:
#line 353 "pars0grm.y" #line 357 "pars0grm.y"
{ yyval = yyvsp[0]; ;} { yyval = yyvsp[0]; ;}
break; break;
case 108: case 110:
#line 359 "pars0grm.y" #line 363 "pars0grm.y"
{ yyval = pars_update_statement_start(FALSE, { yyval = pars_update_statement_start(FALSE,
yyvsp[-2], yyvsp[0]); ;} yyvsp[-2], yyvsp[0]); ;}
break; break;
case 109: case 111:
#line 365 "pars0grm.y" #line 369 "pars0grm.y"
{ yyval = pars_update_statement(yyvsp[-1], NULL, yyvsp[0]); ;} { yyval = pars_update_statement(yyvsp[-1], NULL, yyvsp[0]); ;}
break; break;
case 110: case 112:
#line 370 "pars0grm.y" #line 374 "pars0grm.y"
{ yyval = pars_update_statement(yyvsp[-1], yyvsp[0], NULL); ;} { yyval = pars_update_statement(yyvsp[-1], yyvsp[0], NULL); ;}
break; break;
case 111: case 113:
#line 375 "pars0grm.y" #line 379 "pars0grm.y"
{ yyval = pars_update_statement_start(TRUE, { yyval = pars_update_statement_start(TRUE,
yyvsp[0], NULL); ;} yyvsp[0], NULL); ;}
break; break;
case 112: case 114:
#line 381 "pars0grm.y" #line 385 "pars0grm.y"
{ yyval = pars_update_statement(yyvsp[-1], NULL, yyvsp[0]); ;} { yyval = pars_update_statement(yyvsp[-1], NULL, yyvsp[0]); ;}
break; break;
case 113: case 115:
#line 386 "pars0grm.y" #line 390 "pars0grm.y"
{ yyval = pars_update_statement(yyvsp[-1], yyvsp[0], NULL); ;} { yyval = pars_update_statement(yyvsp[-1], yyvsp[0], NULL); ;}
break; break;
case 114: case 116:
#line 391 "pars0grm.y" #line 395 "pars0grm.y"
{ yyval = pars_row_printf_statement(yyvsp[0]); ;} { yyval = pars_row_printf_statement(yyvsp[0]); ;}
break; break;
case 115: case 117:
#line 396 "pars0grm.y" #line 400 "pars0grm.y"
{ yyval = pars_assignment_statement(yyvsp[-2], yyvsp[0]); ;} { yyval = pars_assignment_statement(yyvsp[-2], yyvsp[0]); ;}
break; break;
case 116: case 118:
#line 402 "pars0grm.y" #line 406 "pars0grm.y"
{ yyval = pars_elsif_element(yyvsp[-2], yyvsp[0]); ;} { yyval = pars_elsif_element(yyvsp[-2], yyvsp[0]); ;}
break; break;
case 117: case 119:
#line 406 "pars0grm.y" #line 410 "pars0grm.y"
{ yyval = que_node_list_add_last(NULL, yyvsp[0]); ;} { yyval = que_node_list_add_last(NULL, yyvsp[0]); ;}
break; break;
case 118: case 120:
#line 408 "pars0grm.y" #line 412 "pars0grm.y"
{ yyval = que_node_list_add_last(yyvsp[-1], yyvsp[0]); ;} { yyval = que_node_list_add_last(yyvsp[-1], yyvsp[0]); ;}
break; break;
case 119: case 121:
#line 412 "pars0grm.y" #line 416 "pars0grm.y"
{ yyval = NULL; ;} { yyval = NULL; ;}
break; break;
case 120: case 122:
#line 414 "pars0grm.y" #line 418 "pars0grm.y"
{ yyval = yyvsp[0]; ;} { yyval = yyvsp[0]; ;}
break; break;
case 121: case 123:
#line 415 "pars0grm.y" #line 419 "pars0grm.y"
{ yyval = yyvsp[0]; ;} { yyval = yyvsp[0]; ;}
break; break;
case 122: case 124:
#line 422 "pars0grm.y" #line 426 "pars0grm.y"
{ yyval = pars_if_statement(yyvsp[-5], yyvsp[-3], yyvsp[-2]); ;} { yyval = pars_if_statement(yyvsp[-5], yyvsp[-3], yyvsp[-2]); ;}
break; break;
case 123: case 125:
#line 428 "pars0grm.y" #line 432 "pars0grm.y"
{ yyval = pars_while_statement(yyvsp[-4], yyvsp[-2]); ;} { yyval = pars_while_statement(yyvsp[-4], yyvsp[-2]); ;}
break; break;
case 124: case 126:
#line 436 "pars0grm.y" #line 440 "pars0grm.y"
{ yyval = pars_for_statement(yyvsp[-8], yyvsp[-6], yyvsp[-4], yyvsp[-2]); ;} { yyval = pars_for_statement(yyvsp[-8], yyvsp[-6], yyvsp[-4], yyvsp[-2]); ;}
break; break;
case 125: case 127:
#line 440 "pars0grm.y" #line 444 "pars0grm.y"
{ yyval = pars_exit_statement(); ;} { yyval = pars_exit_statement(); ;}
break; break;
case 126: case 128:
#line 444 "pars0grm.y" #line 448 "pars0grm.y"
{ yyval = pars_return_statement(); ;} { yyval = pars_return_statement(); ;}
break; break;
case 127: case 129:
#line 449 "pars0grm.y" #line 453 "pars0grm.y"
{ yyval = pars_open_statement( { yyval = pars_open_statement(
ROW_SEL_OPEN_CURSOR, yyvsp[0]); ;} ROW_SEL_OPEN_CURSOR, yyvsp[0]); ;}
break; break;
case 128: case 130:
#line 455 "pars0grm.y" #line 459 "pars0grm.y"
{ yyval = pars_open_statement( { yyval = pars_open_statement(
ROW_SEL_CLOSE_CURSOR, yyvsp[0]); ;} ROW_SEL_CLOSE_CURSOR, yyvsp[0]); ;}
break; break;
case 129:
#line 461 "pars0grm.y"
{ yyval = pars_fetch_statement(yyvsp[-2], yyvsp[0], NULL); ;}
break;
case 130:
#line 463 "pars0grm.y"
{ yyval = pars_fetch_statement(yyvsp[-2], NULL, yyvsp[0]); ;}
break;
case 131: case 131:
#line 468 "pars0grm.y" #line 465 "pars0grm.y"
{ yyval = pars_column_def(yyvsp[-4], yyvsp[-3], yyvsp[-2], yyvsp[-1], yyvsp[0]); ;} { yyval = pars_fetch_statement(yyvsp[-2], yyvsp[0], NULL); ;}
break; break;
case 132: case 132:
#line 472 "pars0grm.y" #line 467 "pars0grm.y"
{ yyval = que_node_list_add_last(NULL, yyvsp[0]); ;} { yyval = pars_fetch_statement(yyvsp[-2], NULL, yyvsp[0]); ;}
break; break;
case 133: case 133:
#line 474 "pars0grm.y" #line 472 "pars0grm.y"
{ yyval = que_node_list_add_last(yyvsp[-2], yyvsp[0]); ;} { yyval = pars_column_def(yyvsp[-4], yyvsp[-3], yyvsp[-2], yyvsp[-1], yyvsp[0]); ;}
break; break;
case 134: case 134:
#line 478 "pars0grm.y" #line 476 "pars0grm.y"
{ yyval = NULL; ;} { yyval = que_node_list_add_last(NULL, yyvsp[0]); ;}
break; break;
case 135: case 135:
#line 480 "pars0grm.y" #line 478 "pars0grm.y"
{ yyval = yyvsp[-1]; ;} { yyval = que_node_list_add_last(yyvsp[-2], yyvsp[0]); ;}
break; break;
case 136: case 136:
#line 484 "pars0grm.y" #line 482 "pars0grm.y"
{ yyval = NULL; ;} { yyval = NULL; ;}
break; break;
case 137: case 137:
#line 486 "pars0grm.y" #line 484 "pars0grm.y"
{ yyval = &pars_int_token; { yyval = yyvsp[-1]; ;}
/* pass any non-NULL pointer */ ;}
break; break;
case 138: case 138:
#line 491 "pars0grm.y" #line 488 "pars0grm.y"
{ yyval = NULL; ;} { yyval = NULL; ;}
break; break;
case 139: case 139:
#line 493 "pars0grm.y" #line 490 "pars0grm.y"
{ yyval = &pars_int_token; { yyval = &pars_int_token;
/* pass any non-NULL pointer */ ;} /* pass any non-NULL pointer */ ;}
break; break;
case 140: case 140:
#line 498 "pars0grm.y" #line 495 "pars0grm.y"
{ yyval = NULL; ;} { yyval = NULL; ;}
break; break;
case 141: case 141:
#line 500 "pars0grm.y" #line 497 "pars0grm.y"
{ yyval = &pars_int_token; { yyval = &pars_int_token;
/* pass any non-NULL pointer */ ;} /* pass any non-NULL pointer */ ;}
break; break;
case 142: case 142:
#line 507 "pars0grm.y" #line 502 "pars0grm.y"
{ yyval = pars_create_table(yyvsp[-4], yyvsp[-2], yyvsp[0]); ;} { yyval = NULL; ;}
break; break;
case 143: case 143:
#line 511 "pars0grm.y" #line 504 "pars0grm.y"
{ yyval = que_node_list_add_last(NULL, yyvsp[0]); ;} { yyval = &pars_int_token;
/* pass any non-NULL pointer */ ;}
break; break;
case 144: case 144:
#line 513 "pars0grm.y" #line 511 "pars0grm.y"
{ yyval = que_node_list_add_last(yyvsp[-2], yyvsp[0]); ;} { yyval = pars_create_table(yyvsp[-4], yyvsp[-2], yyvsp[0]); ;}
break; break;
case 145: case 145:
#line 517 "pars0grm.y" #line 515 "pars0grm.y"
{ yyval = NULL; ;} { yyval = que_node_list_add_last(NULL, yyvsp[0]); ;}
break; break;
case 146: case 146:
#line 518 "pars0grm.y" #line 517 "pars0grm.y"
{ yyval = &pars_unique_token; ;} { yyval = que_node_list_add_last(yyvsp[-2], yyvsp[0]); ;}
break; break;
case 147: case 147:
#line 522 "pars0grm.y" #line 521 "pars0grm.y"
{ yyval = NULL; ;} { yyval = NULL; ;}
break; break;
case 148: case 148:
#line 523 "pars0grm.y" #line 522 "pars0grm.y"
{ yyval = &pars_clustered_token; ;} { yyval = &pars_unique_token; ;}
break; break;
case 149: case 149:
#line 531 "pars0grm.y" #line 526 "pars0grm.y"
{ yyval = pars_create_index(yyvsp[-8], yyvsp[-7], yyvsp[-5], yyvsp[-3], yyvsp[-1]); ;} { yyval = NULL; ;}
break; break;
case 150: case 150:
#line 536 "pars0grm.y" #line 527 "pars0grm.y"
{ yyval = pars_commit_statement(); ;} { yyval = &pars_clustered_token; ;}
break; break;
case 151: case 151:
#line 541 "pars0grm.y" #line 535 "pars0grm.y"
{ yyval = pars_rollback_statement(); ;} { yyval = pars_create_index(yyvsp[-8], yyvsp[-7], yyvsp[-5], yyvsp[-3], yyvsp[-1]); ;}
break; break;
case 152: case 152:
#line 540 "pars0grm.y"
{ yyval = pars_commit_statement(); ;}
break;
case 153:
#line 545 "pars0grm.y" #line 545 "pars0grm.y"
{ yyval = pars_rollback_statement(); ;}
break;
case 154:
#line 549 "pars0grm.y"
{ yyval = &pars_int_token; ;} { yyval = &pars_int_token; ;}
break; break;
case 153: case 155:
#line 546 "pars0grm.y" #line 550 "pars0grm.y"
{ yyval = &pars_int_token; ;} { yyval = &pars_int_token; ;}
break; break;
case 154: case 156:
#line 547 "pars0grm.y" #line 551 "pars0grm.y"
{ yyval = &pars_char_token; ;} { yyval = &pars_char_token; ;}
break; break;
case 155: case 157:
#line 548 "pars0grm.y" #line 552 "pars0grm.y"
{ yyval = &pars_binary_token; ;} { yyval = &pars_binary_token; ;}
break; break;
case 156: case 158:
#line 549 "pars0grm.y" #line 553 "pars0grm.y"
{ yyval = &pars_blob_token; ;} { yyval = &pars_blob_token; ;}
break; break;
case 157: case 159:
#line 554 "pars0grm.y" #line 558 "pars0grm.y"
{ yyval = pars_parameter_declaration(yyvsp[-2], { yyval = pars_parameter_declaration(yyvsp[-2],
PARS_INPUT, yyvsp[0]); ;} PARS_INPUT, yyvsp[0]); ;}
break; break;
case 158: case 160:
#line 557 "pars0grm.y" #line 561 "pars0grm.y"
{ yyval = pars_parameter_declaration(yyvsp[-2], { yyval = pars_parameter_declaration(yyvsp[-2],
PARS_OUTPUT, yyvsp[0]); ;} PARS_OUTPUT, yyvsp[0]); ;}
break; break;
case 159: case 161:
#line 562 "pars0grm.y" #line 566 "pars0grm.y"
{ yyval = NULL; ;} { yyval = NULL; ;}
break; break;
case 160: case 162:
#line 563 "pars0grm.y" #line 567 "pars0grm.y"
{ yyval = que_node_list_add_last(NULL, yyvsp[0]); ;} { yyval = que_node_list_add_last(NULL, yyvsp[0]); ;}
break; break;
case 161: case 163:
#line 565 "pars0grm.y" #line 569 "pars0grm.y"
{ yyval = que_node_list_add_last(yyvsp[-2], yyvsp[0]); ;} { yyval = que_node_list_add_last(yyvsp[-2], yyvsp[0]); ;}
break; break;
case 162: case 164:
#line 570 "pars0grm.y" #line 574 "pars0grm.y"
{ yyval = pars_variable_declaration(yyvsp[-2], yyvsp[-1]); ;} { yyval = pars_variable_declaration(yyvsp[-2], yyvsp[-1]); ;}
break; break;
case 166: case 168:
#line 582 "pars0grm.y" #line 586 "pars0grm.y"
{ yyval = pars_cursor_declaration(yyvsp[-3], yyvsp[-1]); ;} { yyval = pars_cursor_declaration(yyvsp[-3], yyvsp[-1]); ;}
break; break;
case 167: case 169:
#line 587 "pars0grm.y" #line 591 "pars0grm.y"
{ yyval = pars_function_declaration(yyvsp[-1]); ;} { yyval = pars_function_declaration(yyvsp[-1]); ;}
break; break;
case 173: case 175:
#line 608 "pars0grm.y" #line 612 "pars0grm.y"
{ yyval = pars_procedure_definition(yyvsp[-9], yyvsp[-7], { yyval = pars_procedure_definition(yyvsp[-9], yyvsp[-7],
yyvsp[-1]); ;} yyvsp[-1]); ;}
break; break;
...@@ -2309,7 +2333,7 @@ yyparse () ...@@ -2309,7 +2333,7 @@ yyparse ()
} }
/* Line 1010 of yacc.c. */ /* Line 1010 of yacc.c. */
#line 2313 "pars0grm.tab.c" #line 2337 "pars0grm.tab.c"
yyvsp -= yylen; yyvsp -= yylen;
yyssp -= yylen; yyssp -= yylen;
...@@ -2534,6 +2558,6 @@ yyparse () ...@@ -2534,6 +2558,6 @@ yyparse ()
} }
#line 612 "pars0grm.y" #line 616 "pars0grm.y"
...@@ -32,183 +32,187 @@ ...@@ -32,183 +32,187 @@
PARS_INT_LIT = 258, PARS_INT_LIT = 258,
PARS_FLOAT_LIT = 259, PARS_FLOAT_LIT = 259,
PARS_STR_LIT = 260, PARS_STR_LIT = 260,
PARS_NULL_LIT = 261, PARS_FIXBINARY_LIT = 261,
PARS_ID_TOKEN = 262, PARS_BLOB_LIT = 262,
PARS_AND_TOKEN = 263, PARS_NULL_LIT = 263,
PARS_OR_TOKEN = 264, PARS_ID_TOKEN = 264,
PARS_NOT_TOKEN = 265, PARS_AND_TOKEN = 265,
PARS_GE_TOKEN = 266, PARS_OR_TOKEN = 266,
PARS_LE_TOKEN = 267, PARS_NOT_TOKEN = 267,
PARS_NE_TOKEN = 268, PARS_GE_TOKEN = 268,
PARS_PROCEDURE_TOKEN = 269, PARS_LE_TOKEN = 269,
PARS_IN_TOKEN = 270, PARS_NE_TOKEN = 270,
PARS_OUT_TOKEN = 271, PARS_PROCEDURE_TOKEN = 271,
PARS_BINARY_TOKEN = 272, PARS_IN_TOKEN = 272,
PARS_BLOB_TOKEN = 273, PARS_OUT_TOKEN = 273,
PARS_INT_TOKEN = 274, PARS_BINARY_TOKEN = 274,
PARS_INTEGER_TOKEN = 275, PARS_BLOB_TOKEN = 275,
PARS_FLOAT_TOKEN = 276, PARS_INT_TOKEN = 276,
PARS_CHAR_TOKEN = 277, PARS_INTEGER_TOKEN = 277,
PARS_IS_TOKEN = 278, PARS_FLOAT_TOKEN = 278,
PARS_BEGIN_TOKEN = 279, PARS_CHAR_TOKEN = 279,
PARS_END_TOKEN = 280, PARS_IS_TOKEN = 280,
PARS_IF_TOKEN = 281, PARS_BEGIN_TOKEN = 281,
PARS_THEN_TOKEN = 282, PARS_END_TOKEN = 282,
PARS_ELSE_TOKEN = 283, PARS_IF_TOKEN = 283,
PARS_ELSIF_TOKEN = 284, PARS_THEN_TOKEN = 284,
PARS_LOOP_TOKEN = 285, PARS_ELSE_TOKEN = 285,
PARS_WHILE_TOKEN = 286, PARS_ELSIF_TOKEN = 286,
PARS_RETURN_TOKEN = 287, PARS_LOOP_TOKEN = 287,
PARS_SELECT_TOKEN = 288, PARS_WHILE_TOKEN = 288,
PARS_SUM_TOKEN = 289, PARS_RETURN_TOKEN = 289,
PARS_COUNT_TOKEN = 290, PARS_SELECT_TOKEN = 290,
PARS_DISTINCT_TOKEN = 291, PARS_SUM_TOKEN = 291,
PARS_FROM_TOKEN = 292, PARS_COUNT_TOKEN = 292,
PARS_WHERE_TOKEN = 293, PARS_DISTINCT_TOKEN = 293,
PARS_FOR_TOKEN = 294, PARS_FROM_TOKEN = 294,
PARS_DDOT_TOKEN = 295, PARS_WHERE_TOKEN = 295,
PARS_CONSISTENT_TOKEN = 296, PARS_FOR_TOKEN = 296,
PARS_READ_TOKEN = 297, PARS_DDOT_TOKEN = 297,
PARS_ORDER_TOKEN = 298, PARS_CONSISTENT_TOKEN = 298,
PARS_BY_TOKEN = 299, PARS_READ_TOKEN = 299,
PARS_ASC_TOKEN = 300, PARS_ORDER_TOKEN = 300,
PARS_DESC_TOKEN = 301, PARS_BY_TOKEN = 301,
PARS_INSERT_TOKEN = 302, PARS_ASC_TOKEN = 302,
PARS_INTO_TOKEN = 303, PARS_DESC_TOKEN = 303,
PARS_VALUES_TOKEN = 304, PARS_INSERT_TOKEN = 304,
PARS_UPDATE_TOKEN = 305, PARS_INTO_TOKEN = 305,
PARS_SET_TOKEN = 306, PARS_VALUES_TOKEN = 306,
PARS_DELETE_TOKEN = 307, PARS_UPDATE_TOKEN = 307,
PARS_CURRENT_TOKEN = 308, PARS_SET_TOKEN = 308,
PARS_OF_TOKEN = 309, PARS_DELETE_TOKEN = 309,
PARS_CREATE_TOKEN = 310, PARS_CURRENT_TOKEN = 310,
PARS_TABLE_TOKEN = 311, PARS_OF_TOKEN = 311,
PARS_INDEX_TOKEN = 312, PARS_CREATE_TOKEN = 312,
PARS_UNIQUE_TOKEN = 313, PARS_TABLE_TOKEN = 313,
PARS_CLUSTERED_TOKEN = 314, PARS_INDEX_TOKEN = 314,
PARS_DOES_NOT_FIT_IN_MEM_TOKEN = 315, PARS_UNIQUE_TOKEN = 315,
PARS_ON_TOKEN = 316, PARS_CLUSTERED_TOKEN = 316,
PARS_ASSIGN_TOKEN = 317, PARS_DOES_NOT_FIT_IN_MEM_TOKEN = 317,
PARS_DECLARE_TOKEN = 318, PARS_ON_TOKEN = 318,
PARS_CURSOR_TOKEN = 319, PARS_ASSIGN_TOKEN = 319,
PARS_SQL_TOKEN = 320, PARS_DECLARE_TOKEN = 320,
PARS_OPEN_TOKEN = 321, PARS_CURSOR_TOKEN = 321,
PARS_FETCH_TOKEN = 322, PARS_SQL_TOKEN = 322,
PARS_CLOSE_TOKEN = 323, PARS_OPEN_TOKEN = 323,
PARS_NOTFOUND_TOKEN = 324, PARS_FETCH_TOKEN = 324,
PARS_TO_CHAR_TOKEN = 325, PARS_CLOSE_TOKEN = 325,
PARS_TO_NUMBER_TOKEN = 326, PARS_NOTFOUND_TOKEN = 326,
PARS_TO_BINARY_TOKEN = 327, PARS_TO_CHAR_TOKEN = 327,
PARS_BINARY_TO_NUMBER_TOKEN = 328, PARS_TO_NUMBER_TOKEN = 328,
PARS_SUBSTR_TOKEN = 329, PARS_TO_BINARY_TOKEN = 329,
PARS_REPLSTR_TOKEN = 330, PARS_BINARY_TO_NUMBER_TOKEN = 330,
PARS_CONCAT_TOKEN = 331, PARS_SUBSTR_TOKEN = 331,
PARS_INSTR_TOKEN = 332, PARS_REPLSTR_TOKEN = 332,
PARS_LENGTH_TOKEN = 333, PARS_CONCAT_TOKEN = 333,
PARS_SYSDATE_TOKEN = 334, PARS_INSTR_TOKEN = 334,
PARS_PRINTF_TOKEN = 335, PARS_LENGTH_TOKEN = 335,
PARS_ASSERT_TOKEN = 336, PARS_SYSDATE_TOKEN = 336,
PARS_RND_TOKEN = 337, PARS_PRINTF_TOKEN = 337,
PARS_RND_STR_TOKEN = 338, PARS_ASSERT_TOKEN = 338,
PARS_ROW_PRINTF_TOKEN = 339, PARS_RND_TOKEN = 339,
PARS_COMMIT_TOKEN = 340, PARS_RND_STR_TOKEN = 340,
PARS_ROLLBACK_TOKEN = 341, PARS_ROW_PRINTF_TOKEN = 341,
PARS_WORK_TOKEN = 342, PARS_COMMIT_TOKEN = 342,
PARS_UNSIGNED_TOKEN = 343, PARS_ROLLBACK_TOKEN = 343,
PARS_EXIT_TOKEN = 344, PARS_WORK_TOKEN = 344,
PARS_FUNCTION_TOKEN = 345, PARS_UNSIGNED_TOKEN = 345,
NEG = 346 PARS_EXIT_TOKEN = 346,
PARS_FUNCTION_TOKEN = 347,
NEG = 348
}; };
#endif #endif
#define PARS_INT_LIT 258 #define PARS_INT_LIT 258
#define PARS_FLOAT_LIT 259 #define PARS_FLOAT_LIT 259
#define PARS_STR_LIT 260 #define PARS_STR_LIT 260
#define PARS_NULL_LIT 261 #define PARS_FIXBINARY_LIT 261
#define PARS_ID_TOKEN 262 #define PARS_BLOB_LIT 262
#define PARS_AND_TOKEN 263 #define PARS_NULL_LIT 263
#define PARS_OR_TOKEN 264 #define PARS_ID_TOKEN 264
#define PARS_NOT_TOKEN 265 #define PARS_AND_TOKEN 265
#define PARS_GE_TOKEN 266 #define PARS_OR_TOKEN 266
#define PARS_LE_TOKEN 267 #define PARS_NOT_TOKEN 267
#define PARS_NE_TOKEN 268 #define PARS_GE_TOKEN 268
#define PARS_PROCEDURE_TOKEN 269 #define PARS_LE_TOKEN 269
#define PARS_IN_TOKEN 270 #define PARS_NE_TOKEN 270
#define PARS_OUT_TOKEN 271 #define PARS_PROCEDURE_TOKEN 271
#define PARS_BINARY_TOKEN 272 #define PARS_IN_TOKEN 272
#define PARS_BLOB_TOKEN 273 #define PARS_OUT_TOKEN 273
#define PARS_INT_TOKEN 274 #define PARS_BINARY_TOKEN 274
#define PARS_INTEGER_TOKEN 275 #define PARS_BLOB_TOKEN 275
#define PARS_FLOAT_TOKEN 276 #define PARS_INT_TOKEN 276
#define PARS_CHAR_TOKEN 277 #define PARS_INTEGER_TOKEN 277
#define PARS_IS_TOKEN 278 #define PARS_FLOAT_TOKEN 278
#define PARS_BEGIN_TOKEN 279 #define PARS_CHAR_TOKEN 279
#define PARS_END_TOKEN 280 #define PARS_IS_TOKEN 280
#define PARS_IF_TOKEN 281 #define PARS_BEGIN_TOKEN 281
#define PARS_THEN_TOKEN 282 #define PARS_END_TOKEN 282
#define PARS_ELSE_TOKEN 283 #define PARS_IF_TOKEN 283
#define PARS_ELSIF_TOKEN 284 #define PARS_THEN_TOKEN 284
#define PARS_LOOP_TOKEN 285 #define PARS_ELSE_TOKEN 285
#define PARS_WHILE_TOKEN 286 #define PARS_ELSIF_TOKEN 286
#define PARS_RETURN_TOKEN 287 #define PARS_LOOP_TOKEN 287
#define PARS_SELECT_TOKEN 288 #define PARS_WHILE_TOKEN 288
#define PARS_SUM_TOKEN 289 #define PARS_RETURN_TOKEN 289
#define PARS_COUNT_TOKEN 290 #define PARS_SELECT_TOKEN 290
#define PARS_DISTINCT_TOKEN 291 #define PARS_SUM_TOKEN 291
#define PARS_FROM_TOKEN 292 #define PARS_COUNT_TOKEN 292
#define PARS_WHERE_TOKEN 293 #define PARS_DISTINCT_TOKEN 293
#define PARS_FOR_TOKEN 294 #define PARS_FROM_TOKEN 294
#define PARS_DDOT_TOKEN 295 #define PARS_WHERE_TOKEN 295
#define PARS_CONSISTENT_TOKEN 296 #define PARS_FOR_TOKEN 296
#define PARS_READ_TOKEN 297 #define PARS_DDOT_TOKEN 297
#define PARS_ORDER_TOKEN 298 #define PARS_CONSISTENT_TOKEN 298
#define PARS_BY_TOKEN 299 #define PARS_READ_TOKEN 299
#define PARS_ASC_TOKEN 300 #define PARS_ORDER_TOKEN 300
#define PARS_DESC_TOKEN 301 #define PARS_BY_TOKEN 301
#define PARS_INSERT_TOKEN 302 #define PARS_ASC_TOKEN 302
#define PARS_INTO_TOKEN 303 #define PARS_DESC_TOKEN 303
#define PARS_VALUES_TOKEN 304 #define PARS_INSERT_TOKEN 304
#define PARS_UPDATE_TOKEN 305 #define PARS_INTO_TOKEN 305
#define PARS_SET_TOKEN 306 #define PARS_VALUES_TOKEN 306
#define PARS_DELETE_TOKEN 307 #define PARS_UPDATE_TOKEN 307
#define PARS_CURRENT_TOKEN 308 #define PARS_SET_TOKEN 308
#define PARS_OF_TOKEN 309 #define PARS_DELETE_TOKEN 309
#define PARS_CREATE_TOKEN 310 #define PARS_CURRENT_TOKEN 310
#define PARS_TABLE_TOKEN 311 #define PARS_OF_TOKEN 311
#define PARS_INDEX_TOKEN 312 #define PARS_CREATE_TOKEN 312
#define PARS_UNIQUE_TOKEN 313 #define PARS_TABLE_TOKEN 313
#define PARS_CLUSTERED_TOKEN 314 #define PARS_INDEX_TOKEN 314
#define PARS_DOES_NOT_FIT_IN_MEM_TOKEN 315 #define PARS_UNIQUE_TOKEN 315
#define PARS_ON_TOKEN 316 #define PARS_CLUSTERED_TOKEN 316
#define PARS_ASSIGN_TOKEN 317 #define PARS_DOES_NOT_FIT_IN_MEM_TOKEN 317
#define PARS_DECLARE_TOKEN 318 #define PARS_ON_TOKEN 318
#define PARS_CURSOR_TOKEN 319 #define PARS_ASSIGN_TOKEN 319
#define PARS_SQL_TOKEN 320 #define PARS_DECLARE_TOKEN 320
#define PARS_OPEN_TOKEN 321 #define PARS_CURSOR_TOKEN 321
#define PARS_FETCH_TOKEN 322 #define PARS_SQL_TOKEN 322
#define PARS_CLOSE_TOKEN 323 #define PARS_OPEN_TOKEN 323
#define PARS_NOTFOUND_TOKEN 324 #define PARS_FETCH_TOKEN 324
#define PARS_TO_CHAR_TOKEN 325 #define PARS_CLOSE_TOKEN 325
#define PARS_TO_NUMBER_TOKEN 326 #define PARS_NOTFOUND_TOKEN 326
#define PARS_TO_BINARY_TOKEN 327 #define PARS_TO_CHAR_TOKEN 327
#define PARS_BINARY_TO_NUMBER_TOKEN 328 #define PARS_TO_NUMBER_TOKEN 328
#define PARS_SUBSTR_TOKEN 329 #define PARS_TO_BINARY_TOKEN 329
#define PARS_REPLSTR_TOKEN 330 #define PARS_BINARY_TO_NUMBER_TOKEN 330
#define PARS_CONCAT_TOKEN 331 #define PARS_SUBSTR_TOKEN 331
#define PARS_INSTR_TOKEN 332 #define PARS_REPLSTR_TOKEN 332
#define PARS_LENGTH_TOKEN 333 #define PARS_CONCAT_TOKEN 333
#define PARS_SYSDATE_TOKEN 334 #define PARS_INSTR_TOKEN 334
#define PARS_PRINTF_TOKEN 335 #define PARS_LENGTH_TOKEN 335
#define PARS_ASSERT_TOKEN 336 #define PARS_SYSDATE_TOKEN 336
#define PARS_RND_TOKEN 337 #define PARS_PRINTF_TOKEN 337
#define PARS_RND_STR_TOKEN 338 #define PARS_ASSERT_TOKEN 338
#define PARS_ROW_PRINTF_TOKEN 339 #define PARS_RND_TOKEN 339
#define PARS_COMMIT_TOKEN 340 #define PARS_RND_STR_TOKEN 340
#define PARS_ROLLBACK_TOKEN 341 #define PARS_ROW_PRINTF_TOKEN 341
#define PARS_WORK_TOKEN 342 #define PARS_COMMIT_TOKEN 342
#define PARS_UNSIGNED_TOKEN 343 #define PARS_ROLLBACK_TOKEN 343
#define PARS_EXIT_TOKEN 344 #define PARS_WORK_TOKEN 344
#define PARS_FUNCTION_TOKEN 345 #define PARS_UNSIGNED_TOKEN 345
#define NEG 346 #define PARS_EXIT_TOKEN 346
#define PARS_FUNCTION_TOKEN 347
#define NEG 348
......
...@@ -33,6 +33,8 @@ yylex(void); ...@@ -33,6 +33,8 @@ yylex(void);
%token PARS_INT_LIT %token PARS_INT_LIT
%token PARS_FLOAT_LIT %token PARS_FLOAT_LIT
%token PARS_STR_LIT %token PARS_STR_LIT
%token PARS_FIXBINARY_LIT
%token PARS_BLOB_LIT
%token PARS_NULL_LIT %token PARS_NULL_LIT
%token PARS_ID_TOKEN %token PARS_ID_TOKEN
%token PARS_AND_TOKEN %token PARS_AND_TOKEN
...@@ -169,6 +171,8 @@ exp: ...@@ -169,6 +171,8 @@ exp:
| PARS_INT_LIT { $$ = $1;} | PARS_INT_LIT { $$ = $1;}
| PARS_FLOAT_LIT { $$ = $1;} | PARS_FLOAT_LIT { $$ = $1;}
| PARS_STR_LIT { $$ = $1;} | PARS_STR_LIT { $$ = $1;}
| PARS_FIXBINARY_LIT { $$ = $1;}
| PARS_BLOB_LIT { $$ = $1;}
| PARS_NULL_LIT { $$ = $1;} | PARS_NULL_LIT { $$ = $1;}
| PARS_SQL_TOKEN { $$ = $1;} | PARS_SQL_TOKEN { $$ = $1;}
| exp '+' exp { $$ = pars_op('+', $1, $3); } | exp '+' exp { $$ = pars_op('+', $1, $3); }
......
...@@ -83,6 +83,8 @@ string_append( ...@@ -83,6 +83,8 @@ string_append(
DIGIT [0-9] DIGIT [0-9]
ID [a-z_A-Z][a-z_A-Z0-9]* ID [a-z_A-Z][a-z_A-Z0-9]*
BOUND_LIT \:[a-z_A-Z0-9]+
%x comment %x comment
%x quoted %x quoted
%x id %x id
...@@ -100,6 +102,15 @@ ID [a-z_A-Z][a-z_A-Z0-9]* ...@@ -100,6 +102,15 @@ ID [a-z_A-Z][a-z_A-Z0-9]*
return(PARS_FLOAT_LIT); return(PARS_FLOAT_LIT);
} }
{BOUND_LIT} {
ulint type;
yylval = sym_tab_add_bound_lit(pars_sym_tab_global,
yytext + 1, &type);
return(type);
}
"'" { "'" {
/* Quoted character string literals are handled in an explicit /* Quoted character string literals are handled in an explicit
start state 'quoted'. This state is entered and the buffer for start state 'quoted'. This state is entered and the buffer for
......
...@@ -1937,3 +1937,29 @@ pars_info_get_user_func( ...@@ -1937,3 +1937,29 @@ pars_info_get_user_func(
return(NULL); return(NULL);
} }
/********************************************************************
Get bound literal with the given name.*/
pars_bound_lit_t*
pars_info_get_bound_lit(
/*====================*/
/* out: bound literal, or NULL if
not found */
pars_info_t* info, /* in: info struct */
const char* name) /* in: bound literal name to find */
{
ulint i;
if (!info) {
return(NULL);
}
for (i = 0; i < info->n_bound_lits; i++) {
if (strcmp(info->bound_lits[i].name, name) == 0) {
return(&info->bound_lits[i]);
}
}
return(NULL);
}
...@@ -15,6 +15,7 @@ Created 12/15/1997 Heikki Tuuri ...@@ -15,6 +15,7 @@ Created 12/15/1997 Heikki Tuuri
#include "mem0mem.h" #include "mem0mem.h"
#include "data0type.h" #include "data0type.h"
#include "data0data.h" #include "data0data.h"
#include "pars0grm.h"
#include "pars0pars.h" #include "pars0pars.h"
#include "que0que.h" #include "que0que.h"
#include "eval0eval.h" #include "eval0eval.h"
...@@ -165,6 +166,71 @@ sym_tab_add_str_lit( ...@@ -165,6 +166,71 @@ sym_tab_add_str_lit(
return(node); return(node);
} }
/**********************************************************************
Add a bound literal to a symbol table. */
sym_node_t*
sym_tab_add_bound_lit(
/*==================*/
/* out: symbol table node */
sym_tab_t* sym_tab, /* in: symbol table */
const char* name, /* in: name of bound literal */
ulint* lit_type) /* out: type of literal (PARS_*_LIT) */
{
sym_node_t* node;
pars_bound_lit_t* blit;
ulint len;
blit = pars_info_get_bound_lit(sym_tab->info, name);
ut_a(blit);
ut_a(blit->length > 0);
node = mem_heap_alloc(sym_tab->heap, sizeof(sym_node_t));
node->common.type = QUE_NODE_SYMBOL;
node->resolved = TRUE;
node->token_type = SYM_LIT;
node->indirection = NULL;
switch (blit->type) {
case DATA_FIXBINARY:
len = blit->length;
*lit_type = PARS_FIXBINARY_LIT;
break;
case DATA_BLOB:
len = 0;
*lit_type = PARS_BLOB_LIT;
break;
case DATA_INT:
ut_a(blit->length <= 8);
len = blit->length;
*lit_type = PARS_INT_LIT;
break;
default:
ut_error;
}
dtype_set(&(node->common.val.type), blit->type, blit->prtype, len, 0);
dfield_set_data(&(node->common.val), blit->address, blit->length);
node->common.val_buf_size = 0;
node->prefetch_buf = NULL;
node->cursor_def = NULL;
UT_LIST_ADD_LAST(sym_list, sym_tab->sym_list, node);
node->sym_table = sym_tab;
return(node);
}
/********************************************************************** /**********************************************************************
Adds an SQL null literal to a symbol table. */ Adds an SQL null literal to a symbol table. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment