Commit 57341d44 authored by osku's avatar osku

Port r371 and r372 from branches/fts:

Add support for the EXIT keyword in InnoDB's SQL parser.

Add short introduction to query graphs.
parent dd352910
......@@ -212,6 +212,38 @@ for_step(
return(thr);
}
/**************************************************************************
Performs an execution step of an exit statement node. */
que_thr_t*
exit_step(
/*======*/
/* out: query thread to run next or NULL */
que_thr_t* thr) /* in: query thread */
{
exit_node_t* node;
que_node_t* loop_node;
ut_ad(thr);
node = thr->run_node;
ut_ad(que_node_get_type(node) == QUE_NODE_EXIT);
/* Loops exit by setting thr->run_node as the loop node's parent, so
find our containing loop node and get its parent. */
loop_node = que_node_get_containing_loop_node(node);
/* If someone uses an EXIT statement outside of a loop, this will
trigger. */
ut_a(loop_node);
thr->run_node = que_node_get_parent(loop_node);
return(thr);
}
/**************************************************************************
Performs an execution step of a return-statement node. */
......
......@@ -63,6 +63,14 @@ proc_eval_step(
/* out: query thread to run next or NULL */
que_thr_t* thr); /* in: query thread */
/**************************************************************************
Performs an execution step of an exit statement node. */
que_thr_t*
exit_step(
/*======*/
/* out: query thread to run next or NULL */
que_thr_t* thr); /* in: query thread */
/**************************************************************************
Performs an execution step of a return-statement node. */
que_thr_t*
......
......@@ -115,7 +115,8 @@
PARS_ROLLBACK_TOKEN = 341,
PARS_WORK_TOKEN = 342,
PARS_UNSIGNED_TOKEN = 343,
NEG = 344
PARS_EXIT_TOKEN = 344,
NEG = 345
};
#endif
#define PARS_INT_LIT 258
......@@ -204,7 +205,8 @@
#define PARS_ROLLBACK_TOKEN 341
#define PARS_WORK_TOKEN 342
#define PARS_UNSIGNED_TOKEN 343
#define NEG 344
#define PARS_EXIT_TOKEN 344
#define NEG 345
......
......@@ -269,6 +269,13 @@ pars_while_statement(
que_node_t* cond, /* in: while-condition */
que_node_t* stat_list); /* in: statement list */
/*************************************************************************
Parses an exit statement. */
exit_node_t*
pars_exit_statement(void);
/*=====================*/
/* out: exit statement node */
/*************************************************************************
Parses a return-statement. */
return_node_t*
......@@ -500,6 +507,11 @@ struct for_node_struct{
que_node_t* stat_list; /* statement list */
};
/* exit statement node */
struct exit_node_struct{
que_common_t common; /* type: QUE_NODE_EXIT */
};
/* return-statement node */
struct return_node_struct{
que_common_t common; /* type: QUE_NODE_RETURN */
......
......@@ -19,6 +19,7 @@ typedef struct elsif_node_struct elsif_node_t;
typedef struct if_node_struct if_node_t;
typedef struct while_node_struct while_node_t;
typedef struct for_node_struct for_node_t;
typedef struct exit_node_struct exit_node_t;
typedef struct return_node_struct return_node_t;
typedef struct assign_node_struct assign_node_t;
typedef struct col_assign_node_struct col_assign_node_t;
......
......@@ -277,6 +277,15 @@ que_node_get_parent(
/*================*/
/* out: parent node or NULL */
que_node_t* node); /* in: node */
/********************************************************************
Get the first containing loop node (e.g. while_node_t or for_node_t) for the
given node, or NULL if the node is not within a loop. */
que_node_t*
que_node_get_containing_loop_node(
/*==============================*/
/* out: containing loop node, or NULL. */
que_node_t* node); /* in: node */
/*************************************************************************
Catenates a query graph node to a list of them, possible empty list. */
UNIV_INLINE
......@@ -469,6 +478,7 @@ struct que_fork_struct{
#define QUE_NODE_ROW_PRINTF 29
#define QUE_NODE_ELSIF 30
#define QUE_NODE_CALL 31
#define QUE_NODE_EXIT 32
/* Query thread states */
#define QUE_THR_RUNNING 1
......
......@@ -356,8 +356,8 @@ static void yy_fatal_error (yyconst char msg[] );
*yy_cp = '\0'; \
(yy_c_buf_p) = yy_cp;
#define YY_NUM_RULES 110
#define YY_END_OF_BUFFER 111
#define YY_NUM_RULES 111
#define YY_END_OF_BUFFER 112
/* This struct is not used in this scanner,
but its presence is necessary. */
struct yy_trans_info
......@@ -365,49 +365,49 @@ struct yy_trans_info
flex_int32_t yy_verify;
flex_int32_t yy_nxt;
};
static yyconst flex_int16_t yy_accept[376] =
static yyconst flex_int16_t yy_accept[379] =
{ 0,
0, 0, 105, 105, 0, 0, 111, 109, 108, 108,
100, 3, 89, 95, 98, 96, 93, 97, 109, 99,
1, 109, 94, 92, 90, 91, 103, 83, 83, 83,
83, 83, 83, 83, 83, 83, 83, 83, 83, 83,
83, 83, 83, 83, 83, 101, 102, 105, 106, 4,
5, 108, 84, 104, 2, 1, 85, 86, 88, 87,
83, 83, 83, 83, 83, 83, 40, 83, 83, 83,
83, 83, 83, 83, 83, 83, 83, 83, 83, 83,
83, 23, 12, 20, 83, 83, 83, 83, 50, 57,
83, 9, 83, 83, 83, 83, 83, 83, 83, 83,
83, 83, 83, 83, 83, 83, 83, 83, 83, 105,
106, 106, 107, 4, 5, 2, 8, 41, 83, 83,
83, 83, 83, 83, 83, 83, 83, 83, 83, 83,
83, 83, 83, 83, 83, 83, 22, 83, 83, 36,
83, 83, 83, 16, 83, 83, 10, 83, 83, 83,
13, 83, 83, 83, 83, 83, 76, 83, 83, 83,
47, 7, 83, 31, 83, 83, 83, 83, 83, 83,
83, 83, 83, 83, 83, 83, 83, 83, 15, 19,
83, 83, 83, 83, 83, 83, 83, 83, 83, 83,
83, 42, 83, 83, 25, 83, 83, 83, 34, 83,
83, 83, 83, 44, 83, 27, 83, 6, 60, 83,
83, 83, 38, 83, 83, 83, 83, 83, 83, 83,
83, 83, 24, 83, 83, 83, 83, 83, 83, 83,
83, 83, 81, 83, 21, 83, 62, 83, 83, 83,
83, 32, 83, 83, 83, 83, 83, 83, 83, 26,
61, 18, 53, 83, 71, 83, 83, 83, 39, 83,
83, 83, 83, 83, 83, 83, 83, 83, 83, 52,
83, 83, 83, 83, 83, 83, 83, 35, 28, 75,
14, 83, 79, 70, 83, 51, 83, 59, 83, 48,
83, 83, 43, 83, 72, 83, 74, 83, 83, 29,
83, 83, 83, 30, 68, 83, 83, 83, 83, 54,
83, 46, 45, 83, 83, 83, 49, 58, 83, 83,
17, 83, 83, 69, 77, 83, 83, 73, 83, 64,
83, 83, 83, 83, 83, 33, 83, 63, 83, 80,
83, 83, 83, 82, 83, 55, 83, 83, 11, 83,
66, 65, 83, 37, 83, 78, 83, 83, 83, 83,
83, 83, 83, 83, 83, 83, 67, 83, 83, 83,
83, 83, 83, 56, 0
0, 0, 106, 106, 0, 0, 112, 110, 109, 109,
101, 3, 90, 96, 99, 97, 94, 98, 110, 100,
1, 110, 95, 93, 91, 92, 104, 84, 84, 84,
84, 84, 84, 84, 84, 84, 84, 84, 84, 84,
84, 84, 84, 84, 84, 102, 103, 106, 107, 4,
5, 109, 85, 105, 2, 1, 86, 87, 89, 88,
84, 84, 84, 84, 84, 84, 40, 84, 84, 84,
84, 84, 84, 84, 84, 84, 84, 84, 84, 84,
84, 84, 23, 12, 20, 84, 84, 84, 84, 50,
57, 84, 9, 84, 84, 84, 84, 84, 84, 84,
84, 84, 84, 84, 84, 84, 84, 84, 84, 84,
106, 107, 107, 108, 4, 5, 2, 8, 41, 84,
84, 84, 84, 84, 84, 84, 84, 84, 84, 84,
84, 84, 84, 84, 84, 84, 84, 22, 84, 84,
84, 36, 84, 84, 84, 16, 84, 84, 10, 84,
84, 84, 13, 84, 84, 84, 84, 84, 76, 84,
84, 84, 47, 7, 84, 31, 84, 84, 84, 84,
84, 84, 84, 84, 84, 84, 84, 84, 84, 84,
15, 19, 84, 84, 84, 84, 84, 84, 84, 84,
84, 84, 84, 42, 84, 84, 25, 84, 83, 84,
84, 34, 84, 84, 84, 84, 44, 84, 27, 84,
6, 60, 84, 84, 84, 38, 84, 84, 84, 84,
84, 84, 84, 84, 84, 24, 84, 84, 84, 84,
84, 84, 84, 84, 84, 81, 84, 21, 84, 62,
84, 84, 84, 84, 32, 84, 84, 84, 84, 84,
84, 84, 26, 61, 18, 53, 84, 71, 84, 84,
84, 39, 84, 84, 84, 84, 84, 84, 84, 84,
84, 84, 52, 84, 84, 84, 84, 84, 84, 84,
35, 28, 75, 14, 84, 79, 70, 84, 51, 84,
59, 84, 48, 84, 84, 43, 84, 72, 84, 74,
84, 84, 29, 84, 84, 84, 30, 68, 84, 84,
84, 84, 54, 84, 46, 45, 84, 84, 84, 49,
58, 84, 84, 17, 84, 84, 69, 77, 84, 84,
73, 84, 64, 84, 84, 84, 84, 84, 33, 84,
63, 84, 80, 84, 84, 84, 82, 84, 55, 84,
84, 11, 84, 66, 65, 84, 37, 84, 78, 84,
84, 84, 84, 84, 84, 84, 84, 84, 84, 67,
84, 84, 84, 84, 84, 84, 56, 0
} ;
static yyconst flex_int32_t yy_ec[256] =
......@@ -451,99 +451,99 @@ static yyconst flex_int32_t yy_meta[49] =
4, 4, 4, 4, 4, 4, 1, 1
} ;
static yyconst flex_int16_t yy_base[382] =
static yyconst flex_int16_t yy_base[385] =
{ 0,
0, 0, 396, 395, 397, 396, 400, 405, 47, 49,
405, 405, 405, 405, 405, 405, 405, 405, 387, 390,
41, 379, 405, 38, 405, 378, 405, 20, 33, 32,
46, 29, 44, 0, 46, 49, 42, 60, 357, 65,
66, 67, 32, 373, 69, 405, 405, 0, 79, 0,
388, 103, 405, 405, 378, 96, 405, 405, 405, 405,
0, 367, 70, 363, 355, 353, 0, 366, 77, 80,
361, 347, 92, 345, 358, 343, 357, 340, 344, 340,
342, 0, 93, 0, 342, 340, 334, 341, 0, 0,
347, 347, 330, 87, 98, 345, 93, 88, 336, 104,
328, 344, 340, 318, 100, 339, 330, 98, 323, 0,
122, 132, 405, 0, 355, 345, 0, 0, 333, 328,
335, 333, 316, 314, 313, 318, 118, 316, 328, 104,
316, 322, 323, 305, 305, 119, 0, 320, 321, 0,
308, 315, 121, 124, 312, 302, 311, 304, 301, 309,
0, 299, 309, 307, 298, 288, 282, 295, 280, 300,
0, 0, 285, 0, 299, 290, 287, 128, 283, 290,
297, 276, 278, 283, 283, 275, 278, 273, 0, 0,
285, 269, 279, 286, 277, 265, 264, 278, 267, 280,
260, 0, 270, 252, 0, 271, 268, 255, 0, 250,
255, 254, 264, 0, 250, 0, 254, 0, 0, 250,
247, 261, 0, 246, 246, 244, 260, 245, 257, 239,
257, 252, 0, 247, 247, 233, 232, 245, 231, 245,
244, 243, 0, 227, 0, 221, 0, 240, 224, 223,
223, 0, 236, 226, 221, 220, 232, 222, 221, 0,
0, 0, 0, 214, 0, 228, 224, 210, 0, 224,
225, 208, 213, 206, 224, 206, 203, 204, 201, 0,
206, 218, 205, 212, 202, 210, 195, 0, 0, 0,
187, 194, 0, 0, 191, 0, 190, 0, 204, 0,
205, 192, 0, 188, 0, 191, 0, 183, 185, 0,
184, 198, 191, 0, 0, 194, 197, 179, 194, 0,
190, 0, 0, 174, 188, 187, 0, 0, 171, 170,
0, 185, 170, 0, 0, 176, 172, 0, 167, 0,
179, 179, 167, 177, 166, 0, 153, 0, 173, 0,
157, 151, 157, 0, 148, 0, 153, 166, 0, 165,
0, 0, 156, 0, 160, 0, 147, 147, 153, 139,
162, 154, 155, 139, 122, 112, 0, 123, 130, 121,
118, 114, 102, 0, 405, 162, 166, 85, 170, 174,
178
0, 0, 399, 398, 400, 399, 403, 408, 47, 49,
408, 408, 408, 408, 408, 408, 408, 408, 390, 393,
41, 382, 408, 38, 408, 381, 408, 20, 33, 32,
46, 40, 44, 0, 51, 58, 45, 61, 360, 66,
67, 68, 27, 376, 70, 408, 408, 0, 98, 0,
391, 107, 408, 408, 381, 54, 408, 408, 408, 408,
0, 370, 84, 366, 358, 356, 0, 369, 53, 80,
364, 350, 92, 348, 361, 346, 360, 354, 342, 346,
342, 344, 0, 93, 0, 344, 342, 336, 343, 0,
0, 349, 349, 332, 87, 98, 347, 86, 88, 338,
103, 330, 346, 342, 320, 98, 341, 332, 101, 325,
0, 127, 131, 408, 0, 357, 347, 0, 0, 335,
330, 337, 335, 318, 316, 315, 320, 118, 318, 330,
104, 318, 324, 325, 307, 307, 120, 0, 305, 321,
322, 0, 309, 316, 121, 123, 313, 303, 312, 305,
302, 310, 0, 300, 310, 308, 299, 289, 283, 296,
281, 301, 0, 0, 286, 0, 300, 291, 288, 128,
284, 291, 298, 277, 279, 284, 284, 276, 279, 274,
0, 0, 286, 270, 280, 287, 278, 266, 265, 279,
268, 281, 261, 0, 271, 253, 0, 272, 0, 269,
256, 0, 251, 256, 255, 265, 0, 251, 0, 255,
0, 0, 251, 248, 262, 0, 247, 247, 245, 261,
246, 258, 240, 258, 253, 0, 248, 248, 234, 233,
246, 232, 246, 245, 244, 0, 228, 0, 222, 0,
241, 225, 224, 224, 0, 237, 227, 222, 221, 233,
223, 222, 0, 0, 0, 0, 215, 0, 229, 225,
211, 0, 225, 226, 209, 214, 207, 225, 207, 204,
205, 202, 0, 207, 219, 206, 213, 203, 211, 196,
0, 0, 0, 188, 195, 0, 0, 192, 0, 191,
0, 205, 0, 206, 193, 0, 189, 0, 192, 0,
184, 186, 0, 185, 199, 192, 0, 0, 195, 198,
180, 195, 0, 191, 0, 0, 175, 189, 188, 0,
0, 172, 171, 0, 186, 171, 0, 0, 177, 173,
0, 168, 0, 180, 180, 168, 178, 167, 0, 154,
0, 174, 0, 158, 152, 158, 0, 149, 0, 154,
167, 0, 166, 0, 0, 157, 0, 161, 0, 148,
148, 154, 140, 163, 155, 158, 146, 135, 114, 0,
126, 131, 122, 119, 115, 107, 0, 408, 162, 166,
143, 170, 174, 178
} ;
static yyconst flex_int16_t yy_def[382] =
static yyconst flex_int16_t yy_def[385] =
{ 0,
375, 1, 376, 376, 377, 377, 375, 375, 375, 375,
375, 375, 375, 375, 375, 375, 375, 375, 375, 375,
375, 375, 375, 375, 375, 375, 375, 378, 378, 378,
378, 1, 379, 379, 380, 380, 378, 378, 378, 378,
378, 378, 378, 378, 378, 378, 378, 378, 378, 378,
378, 378, 378, 378, 378, 375, 375, 379, 380, 381,
375, 375, 375, 375, 375, 375, 375, 375, 375, 375,
378, 378, 378, 378, 378, 378, 378, 381, 381, 381,
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
381, 381, 381, 381, 381, 378, 378, 382, 383, 384,
378, 378, 378, 378, 378, 378, 378, 378, 378, 378,
378, 378, 378, 378, 378, 378, 378, 378, 378, 378,
378, 378, 378, 378, 378, 378, 378, 378, 378, 378,
378, 378, 378, 378, 378, 378, 378, 378, 378, 378,
378, 378, 378, 378, 378, 378, 378, 378, 378, 379,
380, 380, 375, 381, 375, 375, 378, 378, 378, 378,
378, 378, 378, 378, 378, 378, 378, 378, 378, 378,
378, 378, 378, 378, 378, 378, 378, 378, 378, 378,
378, 378, 378, 378, 378, 378, 378, 378, 378, 378,
378, 378, 378, 378, 378, 378, 378, 378, 378, 378,
378, 378, 378, 378, 378, 378, 378, 378, 378, 378,
378, 378, 378, 378, 378, 378, 378, 378, 378, 378,
378, 378, 378, 378, 378, 378, 378, 378, 378, 378,
378, 378, 378, 378, 378, 378, 378, 378, 378, 378,
378, 378, 378, 378, 378, 378, 378, 378, 378, 378,
378, 378, 378, 378, 378, 378, 378, 378, 378, 378,
378, 378, 378, 378, 378, 378, 378, 378, 378, 378,
378, 378, 378, 378, 378, 378, 378, 378, 378, 378,
378, 378, 378, 378, 378, 378, 378, 378, 378, 378,
378, 378, 378, 378, 378, 378, 378, 378, 378, 378,
378, 378, 378, 378, 378, 378, 378, 378, 378, 378,
378, 378, 378, 378, 378, 378, 378, 378, 378, 378,
378, 378, 378, 378, 378, 378, 378, 378, 378, 378,
378, 378, 378, 378, 378, 378, 378, 378, 378, 378,
378, 378, 378, 378, 378, 378, 378, 378, 378, 378,
378, 378, 378, 378, 378, 378, 378, 378, 378, 378,
378, 378, 378, 378, 378, 378, 378, 378, 378, 378,
378, 378, 378, 378, 378, 378, 378, 378, 378, 378,
378, 378, 378, 378, 378, 378, 378, 378, 378, 378,
378, 378, 378, 378, 378, 378, 378, 378, 378, 378,
378, 378, 378, 378, 378, 378, 378, 378, 378, 378,
378, 378, 378, 378, 0, 375, 375, 375, 375, 375,
375
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
382, 383, 383, 378, 384, 378, 378, 381, 381, 381,
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
381, 381, 381, 381, 381, 381, 381, 0, 378, 378,
378, 378, 378, 378
} ;
static yyconst flex_int16_t yy_nxt[454] =
static yyconst flex_int16_t yy_nxt[457] =
{ 0,
8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
18, 19, 20, 21, 22, 23, 24, 25, 26, 27,
......@@ -551,53 +551,53 @@ static yyconst flex_int16_t yy_nxt[454] =
34, 36, 34, 37, 38, 39, 34, 40, 41, 42,
43, 44, 45, 34, 34, 34, 46, 47, 52, 52,
52, 52, 55, 62, 56, 58, 59, 64, 63, 68,
76, 65, 77, 69, 66, 105, 70, 106, 78, 71,
73, 82, 72, 85, 74, 79, 87, 67, 80, 83,
75, 81, 88, 86, 84, 89, 112, 102, 61, 95,
98, 113, 118, 90, 103, 91, 108, 92, 96, 97,
93, 104, 99, 109, 52, 52, 100, 55, 119, 56,
101, 124, 126, 127, 131, 152, 142, 125, 154, 160,
128, 153, 173, 132, 158, 163, 174, 161, 169, 375,
133, 143, 144, 155, 375, 159, 164, 156, 170, 112,
184, 188, 189, 195, 113, 201, 374, 196, 203, 224,
225, 373, 372, 371, 370, 369, 185, 368, 204, 367,
202, 226, 48, 48, 48, 48, 50, 50, 50, 50,
110, 110, 366, 110, 111, 111, 111, 111, 114, 365,
114, 114, 364, 363, 362, 361, 360, 359, 358, 357,
356, 355, 354, 353, 352, 351, 350, 349, 348, 347,
346, 345, 344, 343, 342, 341, 340, 339, 338, 337,
336, 335, 334, 333, 332, 331, 330, 329, 328, 327,
326, 325, 324, 323, 322, 321, 320, 319, 318, 317,
316, 315, 314, 313, 312, 311, 310, 309, 308, 307,
306, 305, 304, 303, 302, 301, 300, 299, 298, 297,
296, 295, 294, 293, 292, 291, 290, 289, 288, 287,
286, 285, 284, 283, 282, 281, 280, 279, 278, 277,
276, 275, 274, 273, 272, 271, 270, 269, 268, 267,
266, 265, 264, 263, 262, 261, 260, 259, 258, 257,
256, 255, 254, 253, 252, 251, 250, 249, 248, 247,
246, 245, 244, 243, 242, 241, 240, 239, 238, 237,
236, 235, 234, 233, 232, 231, 230, 229, 228, 227,
223, 222, 221, 220, 219, 218, 217, 216, 215, 214,
213, 212, 211, 210, 209, 208, 207, 206, 205, 200,
199, 198, 197, 194, 193, 192, 191, 190, 187, 186,
183, 182, 181, 180, 179, 178, 177, 176, 116, 115,
175, 172, 171, 168, 167, 166, 165, 162, 157, 151,
150, 149, 148, 147, 146, 145, 141, 140, 139, 138,
137, 136, 135, 134, 130, 129, 123, 122, 121, 120,
117, 116, 115, 107, 94, 60, 57, 54, 53, 375,
51, 51, 49, 49, 7, 375, 375, 375, 375, 375,
375, 375, 375, 375, 375, 375, 375, 375, 375, 375,
375, 375, 375, 375, 375, 375, 375, 375, 375, 375,
375, 375, 375, 375, 375, 375, 375, 375, 375, 375,
375, 375, 375, 375, 375, 375, 375, 375, 375, 375,
375, 375, 375
106, 65, 107, 69, 66, 55, 70, 56, 79, 71,
73, 76, 72, 77, 74, 80, 83, 67, 81, 88,
75, 82, 86, 78, 84, 89, 90, 125, 103, 85,
96, 99, 87, 126, 91, 104, 92, 109, 93, 97,
98, 94, 105, 100, 110, 113, 119, 101, 52, 52,
114, 102, 127, 128, 132, 154, 144, 160, 156, 162,
129, 155, 120, 133, 165, 175, 171, 163, 161, 176,
134, 145, 146, 157, 378, 166, 172, 158, 113, 378,
186, 190, 191, 114, 197, 204, 61, 206, 198, 227,
228, 377, 376, 375, 374, 373, 187, 207, 372, 371,
205, 229, 48, 48, 48, 48, 50, 50, 50, 50,
111, 111, 370, 111, 112, 112, 112, 112, 115, 369,
115, 115, 368, 367, 366, 365, 364, 363, 362, 361,
360, 359, 358, 357, 356, 355, 354, 353, 352, 351,
350, 349, 348, 347, 346, 345, 344, 343, 342, 341,
340, 339, 338, 337, 336, 335, 334, 333, 332, 331,
330, 329, 328, 327, 326, 325, 324, 323, 322, 321,
320, 319, 318, 317, 316, 315, 314, 313, 312, 311,
310, 309, 308, 307, 306, 305, 304, 303, 302, 301,
300, 299, 298, 297, 296, 295, 294, 293, 292, 291,
290, 289, 288, 287, 286, 285, 284, 283, 282, 281,
280, 279, 278, 277, 276, 275, 274, 273, 272, 271,
270, 269, 268, 267, 266, 265, 264, 263, 262, 261,
260, 259, 258, 257, 256, 255, 254, 253, 252, 251,
250, 249, 248, 247, 246, 245, 244, 243, 242, 241,
240, 239, 238, 237, 236, 235, 234, 233, 232, 231,
230, 226, 225, 224, 223, 222, 221, 220, 219, 218,
217, 216, 215, 214, 213, 212, 211, 210, 209, 208,
203, 202, 201, 200, 199, 196, 195, 194, 193, 192,
189, 188, 185, 184, 183, 182, 181, 180, 179, 178,
117, 116, 177, 174, 173, 170, 169, 168, 167, 164,
159, 153, 152, 151, 150, 149, 148, 147, 143, 142,
141, 140, 139, 138, 137, 136, 135, 131, 130, 124,
123, 122, 121, 118, 117, 116, 108, 95, 60, 57,
54, 53, 378, 51, 51, 49, 49, 7, 378, 378,
378, 378, 378, 378, 378, 378, 378, 378, 378, 378,
378, 378, 378, 378, 378, 378, 378, 378, 378, 378,
378, 378, 378, 378, 378, 378, 378, 378, 378, 378,
378, 378, 378, 378, 378, 378, 378, 378, 378, 378,
378, 378, 378, 378, 378, 378
} ;
static yyconst flex_int16_t yy_chk[454] =
static yyconst flex_int16_t yy_chk[457] =
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
......@@ -605,50 +605,50 @@ static yyconst flex_int16_t yy_chk[454] =
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 9, 9,
10, 10, 21, 28, 21, 24, 24, 29, 28, 30,
32, 29, 32, 30, 29, 43, 30, 43, 33, 30,
31, 35, 30, 36, 31, 33, 37, 29, 33, 35,
31, 33, 37, 36, 35, 38, 49, 42, 378, 40,
41, 49, 63, 38, 42, 38, 45, 38, 40, 40,
38, 42, 41, 45, 52, 52, 41, 56, 63, 56,
41, 69, 70, 70, 73, 94, 83, 69, 95, 98,
70, 94, 108, 73, 97, 100, 108, 98, 105, 111,
73, 83, 83, 95, 111, 97, 100, 95, 105, 112,
127, 130, 130, 136, 112, 143, 373, 136, 144, 168,
168, 372, 371, 370, 369, 368, 127, 366, 144, 365,
143, 168, 376, 376, 376, 376, 377, 377, 377, 377,
379, 379, 364, 379, 380, 380, 380, 380, 381, 363,
381, 381, 362, 361, 360, 359, 358, 357, 355, 353,
350, 348, 347, 345, 343, 342, 341, 339, 337, 335,
334, 333, 332, 331, 329, 327, 326, 323, 322, 320,
319, 316, 315, 314, 311, 309, 308, 307, 306, 303,
302, 301, 299, 298, 296, 294, 292, 291, 289, 287,
285, 282, 281, 277, 276, 275, 274, 273, 272, 271,
269, 268, 267, 266, 265, 264, 263, 262, 261, 260,
258, 257, 256, 254, 249, 248, 247, 246, 245, 244,
243, 241, 240, 239, 238, 236, 234, 232, 231, 230,
229, 228, 227, 226, 225, 224, 222, 221, 220, 219,
218, 217, 216, 215, 214, 212, 211, 210, 207, 205,
203, 202, 201, 200, 198, 197, 196, 194, 193, 191,
190, 189, 188, 187, 186, 185, 184, 183, 182, 181,
178, 177, 176, 175, 174, 173, 172, 171, 170, 169,
167, 166, 165, 163, 160, 159, 158, 157, 156, 155,
154, 153, 152, 150, 149, 148, 147, 146, 145, 142,
141, 139, 138, 135, 134, 133, 132, 131, 129, 128,
126, 125, 124, 123, 122, 121, 120, 119, 116, 115,
109, 107, 106, 104, 103, 102, 101, 99, 96, 93,
92, 91, 88, 87, 86, 85, 81, 80, 79, 78,
77, 76, 75, 74, 72, 71, 68, 66, 65, 64,
62, 55, 51, 44, 39, 26, 22, 20, 19, 7,
6, 5, 4, 3, 375, 375, 375, 375, 375, 375,
375, 375, 375, 375, 375, 375, 375, 375, 375, 375,
375, 375, 375, 375, 375, 375, 375, 375, 375, 375,
375, 375, 375, 375, 375, 375, 375, 375, 375, 375,
375, 375, 375, 375, 375, 375, 375, 375, 375, 375,
375, 375, 375
43, 29, 43, 30, 29, 56, 30, 56, 33, 30,
31, 32, 30, 32, 31, 33, 35, 29, 33, 37,
31, 33, 36, 32, 35, 37, 38, 69, 42, 35,
40, 41, 36, 69, 38, 42, 38, 45, 38, 40,
40, 38, 42, 41, 45, 49, 63, 41, 52, 52,
49, 41, 70, 70, 73, 95, 84, 98, 96, 99,
70, 95, 63, 73, 101, 109, 106, 99, 98, 109,
73, 84, 84, 96, 112, 101, 106, 96, 113, 112,
128, 131, 131, 113, 137, 145, 381, 146, 137, 170,
170, 376, 375, 374, 373, 372, 128, 146, 371, 369,
145, 170, 379, 379, 379, 379, 380, 380, 380, 380,
382, 382, 368, 382, 383, 383, 383, 383, 384, 367,
384, 384, 366, 365, 364, 363, 362, 361, 360, 358,
356, 353, 351, 350, 348, 346, 345, 344, 342, 340,
338, 337, 336, 335, 334, 332, 330, 329, 326, 325,
323, 322, 319, 318, 317, 314, 312, 311, 310, 309,
306, 305, 304, 302, 301, 299, 297, 295, 294, 292,
290, 288, 285, 284, 280, 279, 278, 277, 276, 275,
274, 272, 271, 270, 269, 268, 267, 266, 265, 264,
263, 261, 260, 259, 257, 252, 251, 250, 249, 248,
247, 246, 244, 243, 242, 241, 239, 237, 235, 234,
233, 232, 231, 230, 229, 228, 227, 225, 224, 223,
222, 221, 220, 219, 218, 217, 215, 214, 213, 210,
208, 206, 205, 204, 203, 201, 200, 198, 196, 195,
193, 192, 191, 190, 189, 188, 187, 186, 185, 184,
183, 180, 179, 178, 177, 176, 175, 174, 173, 172,
171, 169, 168, 167, 165, 162, 161, 160, 159, 158,
157, 156, 155, 154, 152, 151, 150, 149, 148, 147,
144, 143, 141, 140, 139, 136, 135, 134, 133, 132,
130, 129, 127, 126, 125, 124, 123, 122, 121, 120,
117, 116, 110, 108, 107, 105, 104, 103, 102, 100,
97, 94, 93, 92, 89, 88, 87, 86, 82, 81,
80, 79, 78, 77, 76, 75, 74, 72, 71, 68,
66, 65, 64, 62, 55, 51, 44, 39, 26, 22,
20, 19, 7, 6, 5, 4, 3, 378, 378, 378,
378, 378, 378, 378, 378, 378, 378, 378, 378, 378,
378, 378, 378, 378, 378, 378, 378, 378, 378, 378,
378, 378, 378, 378, 378, 378, 378, 378, 378, 378,
378, 378, 378, 378, 378, 378, 378, 378, 378, 378,
378, 378, 378, 378, 378, 378
} ;
static yy_state_type yy_last_accepting_state;
......@@ -959,13 +959,13 @@ YY_DECL
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
if ( yy_current_state >= 376 )
if ( yy_current_state >= 379 )
yy_c = yy_meta[(unsigned int) yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
++yy_cp;
}
while ( yy_current_state != 375 );
while ( yy_current_state != 378 );
yy_cp = (yy_last_accepting_cpos);
yy_current_state = (yy_last_accepting_state);
......@@ -1601,58 +1601,57 @@ case 83:
YY_RULE_SETUP
#line 469 "pars0lex.l"
{
yylval = sym_tab_add_id(pars_sym_tab_global,
(byte*)yytext,
ut_strlen(yytext));
return(PARS_ID_TOKEN);
return(PARS_EXIT_TOKEN);
}
YY_BREAK
case 84:
YY_RULE_SETUP
#line 476 "pars0lex.l"
#line 473 "pars0lex.l"
{
return(PARS_DDOT_TOKEN);
yylval = sym_tab_add_id(pars_sym_tab_global,
(byte*)yytext,
ut_strlen(yytext));
return(PARS_ID_TOKEN);
}
YY_BREAK
case 85:
YY_RULE_SETUP
#line 480 "pars0lex.l"
{
return(PARS_ASSIGN_TOKEN);
return(PARS_DDOT_TOKEN);
}
YY_BREAK
case 86:
YY_RULE_SETUP
#line 484 "pars0lex.l"
{
return(PARS_LE_TOKEN);
return(PARS_ASSIGN_TOKEN);
}
YY_BREAK
case 87:
YY_RULE_SETUP
#line 488 "pars0lex.l"
{
return(PARS_GE_TOKEN);
return(PARS_LE_TOKEN);
}
YY_BREAK
case 88:
YY_RULE_SETUP
#line 492 "pars0lex.l"
{
return(PARS_NE_TOKEN);
return(PARS_GE_TOKEN);
}
YY_BREAK
case 89:
YY_RULE_SETUP
#line 496 "pars0lex.l"
{
return((int)(*yytext));
return(PARS_NE_TOKEN);
}
YY_BREAK
case 90:
YY_RULE_SETUP
#line 501 "pars0lex.l"
#line 500 "pars0lex.l"
{
return((int)(*yytext));
......@@ -1660,7 +1659,7 @@ YY_RULE_SETUP
YY_BREAK
case 91:
YY_RULE_SETUP
#line 506 "pars0lex.l"
#line 505 "pars0lex.l"
{
return((int)(*yytext));
......@@ -1668,7 +1667,7 @@ YY_RULE_SETUP
YY_BREAK
case 92:
YY_RULE_SETUP
#line 511 "pars0lex.l"
#line 510 "pars0lex.l"
{
return((int)(*yytext));
......@@ -1676,7 +1675,7 @@ YY_RULE_SETUP
YY_BREAK
case 93:
YY_RULE_SETUP
#line 516 "pars0lex.l"
#line 515 "pars0lex.l"
{
return((int)(*yytext));
......@@ -1684,7 +1683,7 @@ YY_RULE_SETUP
YY_BREAK
case 94:
YY_RULE_SETUP
#line 521 "pars0lex.l"
#line 520 "pars0lex.l"
{
return((int)(*yytext));
......@@ -1692,7 +1691,7 @@ YY_RULE_SETUP
YY_BREAK
case 95:
YY_RULE_SETUP
#line 526 "pars0lex.l"
#line 525 "pars0lex.l"
{
return((int)(*yytext));
......@@ -1700,7 +1699,7 @@ YY_RULE_SETUP
YY_BREAK
case 96:
YY_RULE_SETUP
#line 531 "pars0lex.l"
#line 530 "pars0lex.l"
{
return((int)(*yytext));
......@@ -1708,7 +1707,7 @@ YY_RULE_SETUP
YY_BREAK
case 97:
YY_RULE_SETUP
#line 536 "pars0lex.l"
#line 535 "pars0lex.l"
{
return((int)(*yytext));
......@@ -1716,7 +1715,7 @@ YY_RULE_SETUP
YY_BREAK
case 98:
YY_RULE_SETUP
#line 541 "pars0lex.l"
#line 540 "pars0lex.l"
{
return((int)(*yytext));
......@@ -1724,7 +1723,7 @@ YY_RULE_SETUP
YY_BREAK
case 99:
YY_RULE_SETUP
#line 546 "pars0lex.l"
#line 545 "pars0lex.l"
{
return((int)(*yytext));
......@@ -1732,7 +1731,7 @@ YY_RULE_SETUP
YY_BREAK
case 100:
YY_RULE_SETUP
#line 551 "pars0lex.l"
#line 550 "pars0lex.l"
{
return((int)(*yytext));
......@@ -1740,7 +1739,7 @@ YY_RULE_SETUP
YY_BREAK
case 101:
YY_RULE_SETUP
#line 556 "pars0lex.l"
#line 555 "pars0lex.l"
{
return((int)(*yytext));
......@@ -1748,7 +1747,7 @@ YY_RULE_SETUP
YY_BREAK
case 102:
YY_RULE_SETUP
#line 561 "pars0lex.l"
#line 560 "pars0lex.l"
{
return((int)(*yytext));
......@@ -1756,7 +1755,7 @@ YY_RULE_SETUP
YY_BREAK
case 103:
YY_RULE_SETUP
#line 566 "pars0lex.l"
#line 565 "pars0lex.l"
{
return((int)(*yytext));
......@@ -1764,35 +1763,43 @@ YY_RULE_SETUP
YY_BREAK
case 104:
YY_RULE_SETUP
#line 571 "pars0lex.l"
BEGIN(comment); /* eat up comment */
#line 570 "pars0lex.l"
{
return((int)(*yytext));
}
YY_BREAK
case 105:
/* rule 105 can match eol */
YY_RULE_SETUP
#line 573 "pars0lex.l"
#line 575 "pars0lex.l"
BEGIN(comment); /* eat up comment */
YY_BREAK
case 106:
/* rule 106 can match eol */
YY_RULE_SETUP
#line 574 "pars0lex.l"
#line 577 "pars0lex.l"
YY_BREAK
case 107:
/* rule 107 can match eol */
YY_RULE_SETUP
#line 575 "pars0lex.l"
BEGIN(INITIAL);
#line 578 "pars0lex.l"
YY_BREAK
case 108:
/* rule 108 can match eol */
YY_RULE_SETUP
#line 577 "pars0lex.l"
/* eat up whitespace */
#line 579 "pars0lex.l"
BEGIN(INITIAL);
YY_BREAK
case 109:
/* rule 109 can match eol */
YY_RULE_SETUP
#line 580 "pars0lex.l"
#line 581 "pars0lex.l"
/* eat up whitespace */
YY_BREAK
case 110:
YY_RULE_SETUP
#line 584 "pars0lex.l"
{
fprintf(stderr,"Unrecognized character: %02x\n",
*yytext);
......@@ -1802,12 +1809,12 @@ YY_RULE_SETUP
return(0);
}
YY_BREAK
case 110:
case 111:
YY_RULE_SETUP
#line 589 "pars0lex.l"
#line 593 "pars0lex.l"
YY_FATAL_ERROR( "flex scanner jammed" );
YY_BREAK
#line 1809 "lex.yy.c"
#line 1816 "lex.yy.c"
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(comment):
case YY_STATE_EOF(quoted):
......@@ -2094,7 +2101,7 @@ static int yy_get_next_buffer (void)
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
if ( yy_current_state >= 376 )
if ( yy_current_state >= 379 )
yy_c = yy_meta[(unsigned int) yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
......@@ -2122,11 +2129,11 @@ static int yy_get_next_buffer (void)
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
if ( yy_current_state >= 376 )
if ( yy_current_state >= 379 )
yy_c = yy_meta[(unsigned int) yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
yy_is_jam = (yy_current_state == 375);
yy_is_jam = (yy_current_state == 378);
return yy_is_jam ? 0 : yy_current_state;
}
......@@ -2649,7 +2656,7 @@ void yyfree (void * ptr )
#undef YY_DECL_IS_OURS
#undef YY_DECL
#endif
#line 589 "pars0lex.l"
#line 593 "pars0lex.l"
......@@ -139,7 +139,8 @@
PARS_ROLLBACK_TOKEN = 341,
PARS_WORK_TOKEN = 342,
PARS_UNSIGNED_TOKEN = 343,
NEG = 344
PARS_EXIT_TOKEN = 344,
NEG = 345
};
#endif
#define PARS_INT_LIT 258
......@@ -228,7 +229,8 @@
#define PARS_ROLLBACK_TOKEN 341
#define PARS_WORK_TOKEN 342
#define PARS_UNSIGNED_TOKEN 343
#define NEG 344
#define PARS_EXIT_TOKEN 344
#define NEG 345
......@@ -281,7 +283,7 @@ typedef int YYSTYPE;
/* Line 214 of yacc.c. */
#line 285 "pars0grm.tab.c"
#line 287 "pars0grm.tab.c"
#if ! defined (yyoverflow) || YYERROR_VERBOSE
......@@ -385,22 +387,22 @@ union yyalloc
#endif
/* YYFINAL -- State number of the termination state. */
#define YYFINAL 95
#define YYFINAL 97
/* YYLAST -- Last index in YYTABLE. */
#define YYLAST 765
#define YYLAST 707
/* YYNTOKENS -- Number of terminals. */
#define YYNTOKENS 105
#define YYNTOKENS 106
/* YYNNTS -- Number of nonterminals. */
#define YYNNTS 65
#define YYNNTS 66
/* YYNRULES -- Number of rules. */
#define YYNRULES 166
#define YYNRULES 168
/* YYNRULES -- Number of states. */
#define YYNSTATES 323
#define YYNSTATES 326
/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
#define YYUNDEFTOK 2
#define YYMAXUTOK 344
#define YYMAXUTOK 345
#define YYTRANSLATE(YYX) \
((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
......@@ -411,16 +413,16 @@ static const unsigned char yytranslate[] =
0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 97, 2, 2,
99, 100, 94, 93, 102, 92, 2, 95, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 98,
90, 89, 91, 101, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 98, 2, 2,
100, 101, 95, 94, 103, 93, 2, 96, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 99,
91, 90, 92, 102, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 103, 2, 104, 2, 2, 2, 2,
2, 2, 2, 104, 2, 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,
......@@ -442,7 +444,7 @@ static const unsigned char yytranslate[] =
55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
85, 86, 87, 88, 96
85, 86, 87, 88, 89, 97
};
#if YYDEBUG
......@@ -452,101 +454,101 @@ static const unsigned short int yyprhs[] =
{
0, 0, 3, 6, 8, 11, 14, 17, 20, 23,
26, 29, 32, 35, 38, 41, 44, 47, 50, 53,
56, 59, 62, 65, 68, 70, 73, 75, 80, 82,
84, 86, 88, 90, 94, 98, 102, 106, 109, 113,
117, 121, 125, 129, 133, 137, 141, 145, 148, 152,
156, 158, 160, 162, 164, 166, 168, 170, 172, 174,
176, 178, 179, 181, 185, 192, 197, 199, 201, 203,
205, 209, 210, 212, 216, 217, 219, 223, 225, 230,
236, 241, 242, 244, 248, 250, 254, 256, 257, 260,
261, 264, 265, 268, 269, 271, 273, 274, 279, 288,
292, 298, 301, 305, 307, 311, 316, 321, 324, 327,
331, 334, 337, 340, 344, 349, 351, 354, 355, 358,
360, 368, 375, 386, 388, 391, 394, 399, 405, 407,
411, 412, 416, 417, 419, 420, 423, 424, 426, 434,
436, 440, 441, 443, 444, 446, 457, 460, 463, 465,
467, 469, 471, 473, 477, 481, 482, 484, 488, 492,
493, 495, 498, 505, 506, 508, 511
56, 59, 62, 65, 68, 71, 73, 76, 78, 83,
85, 87, 89, 91, 93, 97, 101, 105, 109, 112,
116, 120, 124, 128, 132, 136, 140, 144, 148, 151,
155, 159, 161, 163, 165, 167, 169, 171, 173, 175,
177, 179, 181, 182, 184, 188, 195, 200, 202, 204,
206, 208, 212, 213, 215, 219, 220, 222, 226, 228,
233, 239, 244, 245, 247, 251, 253, 257, 259, 260,
263, 264, 267, 268, 271, 272, 274, 276, 277, 282,
291, 295, 301, 304, 308, 310, 314, 319, 324, 327,
330, 334, 337, 340, 343, 347, 352, 354, 357, 358,
361, 363, 371, 378, 389, 391, 393, 396, 399, 404,
410, 412, 416, 417, 421, 422, 424, 425, 428, 429,
431, 439, 441, 445, 446, 448, 449, 451, 462, 465,
468, 470, 472, 474, 476, 478, 482, 486, 487, 489,
493, 497, 498, 500, 503, 510, 511, 513, 516
};
/* YYRHS -- A `-1'-separated list of the rules' RHS. */
static const short int yyrhs[] =
{
106, 0, -1, 169, 98, -1, 111, -1, 112, 98,
-1, 143, 98, -1, 144, 98, -1, 142, 98, -1,
145, 98, -1, 138, 98, -1, 125, 98, -1, 127,
98, -1, 137, 98, -1, 135, 98, -1, 136, 98,
-1, 132, 98, -1, 133, 98, -1, 146, 98, -1,
148, 98, -1, 147, 98, -1, 160, 98, -1, 161,
98, -1, 155, 98, -1, 159, 98, -1, 106, -1,
107, 106, -1, 7, -1, 109, 99, 116, 100, -1,
3, -1, 4, -1, 5, -1, 6, -1, 65, -1,
108, 93, 108, -1, 108, 92, 108, -1, 108, 94,
108, -1, 108, 95, 108, -1, 92, 108, -1, 99,
108, 100, -1, 108, 89, 108, -1, 108, 90, 108,
-1, 108, 91, 108, -1, 108, 11, 108, -1, 108,
12, 108, -1, 108, 13, 108, -1, 108, 8, 108,
-1, 108, 9, 108, -1, 10, 108, -1, 7, 97,
69, -1, 65, 97, 69, -1, 70, -1, 71, -1,
72, -1, 73, -1, 74, -1, 76, -1, 77, -1,
78, -1, 79, -1, 82, -1, 83, -1, -1, 101,
-1, 110, 102, 101, -1, 103, 7, 99, 110, 100,
104, -1, 113, 99, 116, 100, -1, 75, -1, 80,
-1, 81, -1, 7, -1, 114, 102, 7, -1, -1,
7, -1, 115, 102, 7, -1, -1, 108, -1, 116,
102, 108, -1, 108, -1, 35, 99, 94, 100, -1,
35, 99, 36, 7, 100, -1, 34, 99, 108, 100,
-1, -1, 117, -1, 118, 102, 117, -1, 94, -1,
118, 48, 115, -1, 118, -1, -1, 38, 108, -1,
-1, 39, 50, -1, -1, 41, 42, -1, -1, 45,
-1, 46, -1, -1, 43, 44, 7, 123, -1, 33,
119, 37, 114, 120, 121, 122, 124, -1, 47, 48,
7, -1, 126, 49, 99, 116, 100, -1, 126, 125,
-1, 7, 89, 108, -1, 128, -1, 129, 102, 128,
-1, 38, 53, 54, 7, -1, 50, 7, 51, 129,
-1, 131, 120, -1, 131, 130, -1, 52, 37, 7,
-1, 134, 120, -1, 134, 130, -1, 84, 125, -1,
7, 62, 108, -1, 29, 108, 27, 107, -1, 139,
-1, 140, 139, -1, -1, 28, 107, -1, 140, -1,
26, 108, 27, 107, 141, 25, 26, -1, 31, 108,
30, 107, 25, 30, -1, 39, 7, 15, 108, 40,
108, 30, 107, 25, 30, -1, 32, -1, 66, 7,
-1, 68, 7, -1, 67, 7, 48, 115, -1, 7,
162, 151, 152, 153, -1, 149, -1, 150, 102, 149,
-1, -1, 99, 3, 100, -1, -1, 88, -1, -1,
10, 6, -1, -1, 60, -1, 55, 56, 7, 99,
150, 100, 154, -1, 7, -1, 156, 102, 7, -1,
-1, 58, -1, -1, 59, -1, 55, 157, 158, 57,
7, 61, 7, 99, 156, 100, -1, 85, 87, -1,
86, 87, -1, 19, -1, 20, -1, 22, -1, 17,
-1, 18, -1, 7, 15, 162, -1, 7, 16, 162,
-1, -1, 163, -1, 164, 102, 163, -1, 7, 162,
98, -1, -1, 165, -1, 166, 165, -1, 63, 64,
7, 23, 125, 98, -1, -1, 167, -1, 168, 167,
-1, 14, 7, 99, 164, 100, 23, 166, 168, 24,
107, 25, -1
107, 0, -1, 171, 99, -1, 112, -1, 113, 99,
-1, 144, 99, -1, 145, 99, -1, 146, 99, -1,
143, 99, -1, 147, 99, -1, 139, 99, -1, 126,
99, -1, 128, 99, -1, 138, 99, -1, 136, 99,
-1, 137, 99, -1, 133, 99, -1, 134, 99, -1,
148, 99, -1, 150, 99, -1, 149, 99, -1, 162,
99, -1, 163, 99, -1, 157, 99, -1, 161, 99,
-1, 107, -1, 108, 107, -1, 7, -1, 110, 100,
117, 101, -1, 3, -1, 4, -1, 5, -1, 6,
-1, 65, -1, 109, 94, 109, -1, 109, 93, 109,
-1, 109, 95, 109, -1, 109, 96, 109, -1, 93,
109, -1, 100, 109, 101, -1, 109, 90, 109, -1,
109, 91, 109, -1, 109, 92, 109, -1, 109, 11,
109, -1, 109, 12, 109, -1, 109, 13, 109, -1,
109, 8, 109, -1, 109, 9, 109, -1, 10, 109,
-1, 7, 98, 69, -1, 65, 98, 69, -1, 70,
-1, 71, -1, 72, -1, 73, -1, 74, -1, 76,
-1, 77, -1, 78, -1, 79, -1, 82, -1, 83,
-1, -1, 102, -1, 111, 103, 102, -1, 104, 7,
100, 111, 101, 105, -1, 114, 100, 117, 101, -1,
75, -1, 80, -1, 81, -1, 7, -1, 115, 103,
7, -1, -1, 7, -1, 116, 103, 7, -1, -1,
109, -1, 117, 103, 109, -1, 109, -1, 35, 100,
95, 101, -1, 35, 100, 36, 7, 101, -1, 34,
100, 109, 101, -1, -1, 118, -1, 119, 103, 118,
-1, 95, -1, 119, 48, 116, -1, 119, -1, -1,
38, 109, -1, -1, 39, 50, -1, -1, 41, 42,
-1, -1, 45, -1, 46, -1, -1, 43, 44, 7,
124, -1, 33, 120, 37, 115, 121, 122, 123, 125,
-1, 47, 48, 7, -1, 127, 49, 100, 117, 101,
-1, 127, 126, -1, 7, 90, 109, -1, 129, -1,
130, 103, 129, -1, 38, 53, 54, 7, -1, 50,
7, 51, 130, -1, 132, 121, -1, 132, 131, -1,
52, 37, 7, -1, 135, 121, -1, 135, 131, -1,
84, 126, -1, 7, 62, 109, -1, 29, 109, 27,
108, -1, 140, -1, 141, 140, -1, -1, 28, 108,
-1, 141, -1, 26, 109, 27, 108, 142, 25, 26,
-1, 31, 109, 30, 108, 25, 30, -1, 39, 7,
15, 109, 40, 109, 30, 108, 25, 30, -1, 89,
-1, 32, -1, 66, 7, -1, 68, 7, -1, 67,
7, 48, 116, -1, 7, 164, 153, 154, 155, -1,
151, -1, 152, 103, 151, -1, -1, 100, 3, 101,
-1, -1, 88, -1, -1, 10, 6, -1, -1, 60,
-1, 55, 56, 7, 100, 152, 101, 156, -1, 7,
-1, 158, 103, 7, -1, -1, 58, -1, -1, 59,
-1, 55, 159, 160, 57, 7, 61, 7, 100, 158,
101, -1, 85, 87, -1, 86, 87, -1, 19, -1,
20, -1, 22, -1, 17, -1, 18, -1, 7, 15,
164, -1, 7, 16, 164, -1, -1, 165, -1, 166,
103, 165, -1, 7, 164, 99, -1, -1, 167, -1,
168, 167, -1, 63, 64, 7, 23, 126, 99, -1,
-1, 169, -1, 170, 169, -1, 14, 7, 100, 166,
101, 23, 168, 170, 24, 108, 25, -1
};
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
static const unsigned short int yyrline[] =
{
0, 132, 132, 133, 134, 135, 136, 137, 138, 139,
140, 141, 142, 143, 144, 145, 146, 147, 148, 149,
150, 151, 152, 153, 157, 158, 163, 164, 166, 167,
168, 169, 170, 171, 172, 173, 174, 175, 176, 177,
178, 179, 180, 181, 182, 183, 184, 185, 186, 188,
193, 194, 195, 196, 198, 199, 200, 201, 202, 203,
204, 207, 209, 210, 214, 219, 224, 225, 226, 230,
231, 236, 237, 238, 243, 244, 245, 249, 250, 255,
261, 268, 269, 270, 275, 277, 279, 283, 284, 288,
289, 294, 295, 300, 301, 302, 306, 307, 312, 322,
327, 329, 334, 338, 339, 344, 350, 357, 362, 367,
373, 378, 383, 388, 393, 399, 400, 405, 406, 408,
412, 419, 425, 433, 437, 443, 449, 454, 459, 460,
465, 466, 471, 472, 478, 479, 485, 486, 492, 498,
499, 504, 505, 509, 510, 514, 522, 527, 532, 533,
534, 535, 536, 540, 543, 549, 550, 551, 556, 560,
562, 563, 567, 572, 574, 575, 579
0, 133, 133, 134, 135, 136, 137, 138, 139, 140,
141, 142, 143, 144, 145, 146, 147, 148, 149, 150,
151, 152, 153, 154, 155, 159, 160, 165, 166, 168,
169, 170, 171, 172, 173, 174, 175, 176, 177, 178,
179, 180, 181, 182, 183, 184, 185, 186, 187, 188,
190, 195, 196, 197, 198, 200, 201, 202, 203, 204,
205, 206, 209, 211, 212, 216, 221, 226, 227, 228,
232, 233, 238, 239, 240, 245, 246, 247, 251, 252,
257, 263, 270, 271, 272, 277, 279, 281, 285, 286,
290, 291, 296, 297, 302, 303, 304, 308, 309, 314,
324, 329, 331, 336, 340, 341, 346, 352, 359, 364,
369, 375, 380, 385, 390, 395, 401, 402, 407, 408,
410, 414, 421, 427, 435, 439, 443, 449, 455, 460,
465, 466, 471, 472, 477, 478, 484, 485, 491, 492,
498, 504, 505, 510, 511, 515, 516, 520, 528, 533,
538, 539, 540, 541, 542, 546, 549, 555, 556, 557,
562, 566, 568, 569, 573, 578, 580, 581, 585
};
#endif
......@@ -583,10 +585,10 @@ static const char *const yytname[] =
"PARS_SYSDATE_TOKEN", "PARS_PRINTF_TOKEN", "PARS_ASSERT_TOKEN",
"PARS_RND_TOKEN", "PARS_RND_STR_TOKEN", "PARS_ROW_PRINTF_TOKEN",
"PARS_COMMIT_TOKEN", "PARS_ROLLBACK_TOKEN", "PARS_WORK_TOKEN",
"PARS_UNSIGNED_TOKEN", "'='", "'<'", "'>'", "'-'", "'+'", "'*'", "'/'",
"NEG", "'%'", "';'", "'('", "')'", "'?'", "','", "'{'", "'}'", "$accept",
"statement", "statement_list", "exp", "function_name",
"question_mark_list", "stored_procedure_call",
"PARS_UNSIGNED_TOKEN", "PARS_EXIT_TOKEN", "'='", "'<'", "'>'", "'-'",
"'+'", "'*'", "'/'", "NEG", "'%'", "';'", "'('", "')'", "'?'", "','",
"'{'", "'}'", "$accept", "statement", "statement_list", "exp",
"function_name", "question_mark_list", "stored_procedure_call",
"predefined_procedure_call", "predefined_procedure_name", "table_list",
"variable_list", "exp_list", "select_item", "select_item_list",
"select_list", "search_condition", "for_update_clause",
......@@ -598,11 +600,11 @@ static const char *const yytname[] =
"delete_statement_searched", "delete_statement_positioned",
"row_printf_statement", "assignment_statement", "elsif_element",
"elsif_list", "else_part", "if_statement", "while_statement",
"for_statement", "return_statement", "open_cursor_statement",
"close_cursor_statement", "fetch_statement", "column_def",
"column_def_list", "opt_column_len", "opt_unsigned", "opt_not_null",
"not_fit_in_memory", "create_table", "column_list", "unique_def",
"clustered_def", "create_index", "commit_statement",
"for_statement", "exit_statement", "return_statement",
"open_cursor_statement", "close_cursor_statement", "fetch_statement",
"column_def", "column_def_list", "opt_column_len", "opt_unsigned",
"opt_not_null", "not_fit_in_memory", "create_table", "column_list",
"unique_def", "clustered_def", "create_index", "commit_statement",
"rollback_statement", "type_name", "parameter_declaration",
"parameter_declaration_list", "variable_declaration",
"variable_declaration_list", "cursor_declaration", "declaration_list",
......@@ -623,32 +625,32 @@ static const unsigned short int yytoknum[] =
305, 306, 307, 308, 309, 310, 311, 312, 313, 314,
315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
325, 326, 327, 328, 329, 330, 331, 332, 333, 334,
335, 336, 337, 338, 339, 340, 341, 342, 343, 61,
60, 62, 45, 43, 42, 47, 344, 37, 59, 40,
41, 63, 44, 123, 125
335, 336, 337, 338, 339, 340, 341, 342, 343, 344,
61, 60, 62, 45, 43, 42, 47, 345, 37, 59,
40, 41, 63, 44, 123, 125
};
# endif
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
static const unsigned char yyr1[] =
{
0, 105, 106, 106, 106, 106, 106, 106, 106, 106,
106, 106, 106, 106, 106, 106, 106, 106, 106, 106,
106, 106, 106, 106, 107, 107, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
0, 106, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 108, 108, 109, 109, 109,
109, 109, 109, 109, 109, 109, 109, 109, 109, 109,
109, 110, 110, 110, 111, 112, 113, 113, 113, 114,
114, 115, 115, 115, 116, 116, 116, 117, 117, 117,
117, 118, 118, 118, 119, 119, 119, 120, 120, 121,
121, 122, 122, 123, 123, 123, 124, 124, 125, 126,
127, 127, 128, 129, 129, 130, 131, 132, 133, 134,
135, 136, 137, 138, 139, 140, 140, 141, 141, 141,
142, 143, 144, 145, 146, 147, 148, 149, 150, 150,
151, 151, 152, 152, 153, 153, 154, 154, 155, 156,
156, 157, 157, 158, 158, 159, 160, 161, 162, 162,
162, 162, 162, 163, 163, 164, 164, 164, 165, 166,
166, 166, 167, 168, 168, 168, 169
109, 109, 109, 109, 109, 109, 109, 109, 109, 109,
109, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 111, 111, 111, 112, 113, 114, 114, 114,
115, 115, 116, 116, 116, 117, 117, 117, 118, 118,
118, 118, 119, 119, 119, 120, 120, 120, 121, 121,
122, 122, 123, 123, 124, 124, 124, 125, 125, 126,
127, 128, 128, 129, 130, 130, 131, 132, 133, 134,
135, 136, 137, 138, 139, 140, 141, 141, 142, 142,
142, 143, 144, 145, 146, 147, 148, 149, 150, 151,
152, 152, 153, 153, 154, 154, 155, 155, 156, 156,
157, 158, 158, 159, 159, 160, 160, 161, 162, 163,
164, 164, 164, 164, 164, 165, 165, 166, 166, 166,
167, 168, 168, 168, 169, 170, 170, 170, 171
};
/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
......@@ -656,21 +658,21 @@ static const unsigned char yyr2[] =
{
0, 2, 2, 1, 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, 1,
1, 1, 1, 3, 3, 3, 3, 2, 3, 3,
3, 3, 3, 3, 3, 3, 3, 2, 3, 3,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 0, 1, 3, 6, 4, 1, 1, 1, 1,
3, 0, 1, 3, 0, 1, 3, 1, 4, 5,
4, 0, 1, 3, 1, 3, 1, 0, 2, 0,
2, 0, 2, 0, 1, 1, 0, 4, 8, 3,
5, 2, 3, 1, 3, 4, 4, 2, 2, 3,
2, 2, 2, 3, 4, 1, 2, 0, 2, 1,
7, 6, 10, 1, 2, 2, 4, 5, 1, 3,
0, 3, 0, 1, 0, 2, 0, 1, 7, 1,
3, 0, 1, 0, 1, 10, 2, 2, 1, 1,
1, 1, 1, 3, 3, 0, 1, 3, 3, 0,
1, 2, 6, 0, 1, 2, 11
2, 2, 2, 2, 2, 1, 2, 1, 4, 1,
1, 1, 1, 1, 3, 3, 3, 3, 2, 3,
3, 3, 3, 3, 3, 3, 3, 3, 2, 3,
3, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 0, 1, 3, 6, 4, 1, 1, 1,
1, 3, 0, 1, 3, 0, 1, 3, 1, 4,
5, 4, 0, 1, 3, 1, 3, 1, 0, 2,
0, 2, 0, 2, 0, 1, 1, 0, 4, 8,
3, 5, 2, 3, 1, 3, 4, 4, 2, 2,
3, 2, 2, 2, 3, 4, 1, 2, 0, 2,
1, 7, 6, 10, 1, 1, 2, 2, 4, 5,
1, 3, 0, 3, 0, 1, 0, 2, 0, 1,
7, 1, 3, 0, 1, 0, 1, 10, 2, 2,
1, 1, 1, 1, 1, 3, 3, 0, 1, 3,
3, 0, 1, 2, 6, 0, 1, 2, 11
};
/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
......@@ -678,103 +680,103 @@ static const unsigned char yyr2[] =
means the default is an error. */
static const unsigned char yydefact[] =
{
0, 0, 0, 0, 0, 123, 81, 0, 0, 0,
0, 141, 0, 0, 0, 66, 67, 68, 0, 0,
0, 0, 0, 3, 0, 0, 0, 0, 0, 87,
0, 0, 87, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 125, 82, 0, 0, 0,
0, 143, 0, 0, 0, 67, 68, 69, 0, 0,
0, 124, 0, 0, 3, 0, 0, 0, 0, 0,
88, 0, 0, 88, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 28, 29, 30, 31, 26, 0, 32, 50, 51,
52, 53, 54, 55, 56, 57, 58, 59, 60, 0,
0, 0, 0, 0, 0, 0, 84, 77, 82, 86,
0, 0, 0, 0, 0, 0, 142, 143, 124, 0,
125, 112, 146, 147, 0, 1, 4, 74, 10, 0,
101, 11, 0, 107, 108, 15, 16, 110, 111, 13,
14, 12, 9, 7, 5, 6, 8, 17, 19, 18,
22, 23, 20, 21, 2, 113, 155, 0, 47, 0,
37, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 74, 0, 0, 0, 71,
0, 0, 0, 99, 0, 109, 0, 144, 0, 71,
61, 75, 0, 74, 0, 88, 0, 156, 0, 48,
49, 38, 45, 46, 42, 43, 44, 24, 117, 39,
40, 41, 34, 33, 35, 36, 0, 0, 0, 0,
0, 72, 85, 83, 69, 87, 0, 0, 103, 106,
0, 0, 126, 62, 0, 65, 0, 0, 0, 0,
0, 0, 0, 0, 0, 25, 115, 119, 0, 27,
0, 80, 0, 78, 0, 0, 0, 89, 0, 0,
0, 0, 128, 0, 0, 0, 0, 76, 100, 105,
151, 152, 148, 149, 150, 153, 154, 159, 157, 118,
0, 116, 0, 121, 79, 73, 70, 0, 91, 0,
102, 104, 130, 136, 0, 0, 64, 63, 0, 160,
163, 0, 120, 90, 0, 96, 0, 0, 132, 137,
138, 129, 0, 0, 0, 161, 164, 0, 114, 92,
0, 98, 0, 0, 133, 134, 0, 158, 0, 0,
165, 0, 0, 131, 0, 127, 139, 0, 0, 0,
93, 122, 135, 145, 0, 0, 166, 94, 95, 97,
140, 0, 162
0, 0, 0, 29, 30, 31, 32, 27, 0, 33,
51, 52, 53, 54, 55, 56, 57, 58, 59, 60,
61, 0, 0, 0, 0, 0, 0, 0, 85, 78,
83, 87, 0, 0, 0, 0, 0, 0, 144, 145,
126, 0, 127, 113, 148, 149, 0, 1, 4, 75,
11, 0, 102, 12, 0, 108, 109, 16, 17, 111,
112, 14, 15, 13, 10, 8, 5, 6, 7, 9,
18, 20, 19, 23, 24, 21, 22, 2, 114, 157,
0, 48, 0, 38, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 75, 0,
0, 0, 72, 0, 0, 0, 100, 0, 110, 0,
146, 0, 72, 62, 76, 0, 75, 0, 89, 0,
158, 0, 49, 50, 39, 46, 47, 43, 44, 45,
25, 118, 40, 41, 42, 35, 34, 36, 37, 0,
0, 0, 0, 0, 73, 86, 84, 70, 88, 0,
0, 104, 107, 0, 0, 128, 63, 0, 66, 0,
0, 0, 0, 0, 0, 0, 0, 0, 26, 116,
120, 0, 28, 0, 81, 0, 79, 0, 0, 0,
90, 0, 0, 0, 0, 130, 0, 0, 0, 0,
77, 101, 106, 153, 154, 150, 151, 152, 155, 156,
161, 159, 119, 0, 117, 0, 122, 80, 74, 71,
0, 92, 0, 103, 105, 132, 138, 0, 0, 65,
64, 0, 162, 165, 0, 121, 91, 0, 97, 0,
0, 134, 139, 140, 131, 0, 0, 0, 163, 166,
0, 115, 93, 0, 99, 0, 0, 135, 136, 0,
160, 0, 0, 167, 0, 0, 133, 0, 129, 141,
0, 0, 0, 94, 123, 137, 147, 0, 0, 168,
95, 96, 98, 142, 0, 164
};
/* YYDEFGOTO[NTERM-NUM]. */
static const short int yydefgoto[] =
{
-1, 177, 178, 161, 72, 204, 23, 24, 25, 195,
192, 162, 78, 79, 80, 103, 258, 275, 319, 291,
26, 27, 28, 198, 199, 104, 29, 30, 31, 32,
33, 34, 35, 36, 216, 217, 218, 37, 38, 39,
40, 41, 42, 43, 232, 233, 278, 295, 305, 280,
44, 307, 87, 158, 45, 46, 47, 245, 167, 168,
269, 270, 286, 287, 48
-1, 180, 181, 164, 74, 207, 24, 25, 26, 198,
195, 165, 80, 81, 82, 105, 261, 278, 322, 294,
27, 28, 29, 201, 202, 106, 30, 31, 32, 33,
34, 35, 36, 37, 219, 220, 221, 38, 39, 40,
41, 42, 43, 44, 45, 235, 236, 281, 298, 308,
283, 46, 310, 89, 161, 47, 48, 49, 248, 170,
171, 272, 273, 289, 290, 50
};
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
STATE-NUM. */
#define YYPACT_NINF -203
#define YYPACT_NINF -206
static const short int yypact[] =
{
457, -49, 30, 541, 541, -203, 12, 42, -15, 57,
8, -31, 60, 67, 69, -203, -203, -203, 45, -7,
-6, 89, 97, -203, 1, 3, 2, -19, 5, 81,
7, 22, 81, 24, 27, 28, 29, 31, 32, 46,
49, 50, 54, 55, 56, 58, 59, 61, 62, 541,
25, -203, -203, -203, -203, 64, 541, 65, -203, -203,
-203, -203, -203, -203, -203, -203, -203, -203, -203, 541,
541, 623, 37, 254, 70, 71, -203, 670, -203, -39,
84, 83, 121, 104, 156, 157, -203, 107, -203, 120,
-203, -203, -203, -203, 72, -203, -203, 541, -203, 73,
-203, -203, 510, -203, -203, -203, -203, -203, -203, -203,
-203, -203, -203, -203, -203, -203, -203, -203, -203, -203,
-203, -203, -203, -203, -203, 670, 167, 106, 310, 112,
163, 23, 541, 541, 541, 541, 541, 457, 541, 541,
541, 541, 541, 541, 541, 541, 457, 541, -29, 178,
204, 179, 541, -203, 181, -203, 90, -203, 134, 178,
91, 670, -76, 541, 139, 670, 38, -203, -62, -203,
-203, -203, 310, 310, 15, 15, 670, -203, 151, 15,
15, 15, -2, -2, 163, 163, -59, 286, 553, 187,
95, -203, 94, -203, -203, -32, 565, 108, -203, 98,
192, 195, 94, -203, -58, -203, 541, -50, 197, 39,
39, 189, 167, 457, 541, -203, -203, 186, 191, -203,
190, -203, 122, -203, 214, 541, 216, 194, 541, 541,
181, 39, -203, -40, 164, 125, 129, 670, -203, -203,
-203, -203, -203, -203, -203, -203, -203, 227, -203, 457,
653, -203, 215, -203, -203, -203, -203, 193, 199, 660,
670, -203, 143, 184, 192, 238, -203, -203, 39, -203,
16, 457, -203, -203, 205, 203, 457, 245, 162, -203,
-203, -203, 152, 154, 196, -203, -203, -12, 457, -203,
209, -203, 343, 155, -203, 246, 250, -203, 251, 457,
-203, 252, 231, -203, 258, -203, -203, -27, 247, 400,
26, -203, -203, -203, 261, 45, -203, -203, -203, -203,
-203, 173, -203
423, -38, 13, 561, 561, -206, 122, 21, -13, 25,
1, -42, 35, 49, 52, -206, -206, -206, 40, -8,
-3, -206, 78, 86, -206, -12, -9, -4, -16, 3,
58, 12, 31, 58, 32, 34, 48, 51, 56, 59,
67, 68, 72, 73, 74, 75, 76, 79, 80, 81,
83, 561, 24, -206, -206, -206, -206, 17, 561, 41,
-206, -206, -206, -206, -206, -206, -206, -206, -206, -206,
-206, 561, 561, 267, 77, 521, 84, 85, -206, 596,
-206, -39, 114, 153, 176, 135, 181, 182, -206, 132,
-206, 149, -206, -206, -206, -206, 102, -206, -206, 561,
-206, 103, -206, -206, 510, -206, -206, -206, -206, -206,
-206, -206, -206, -206, -206, -206, -206, -206, -206, -206,
-206, -206, -206, -206, -206, -206, -206, -206, 596, 199,
138, 14, 140, 197, 69, 561, 561, 561, 561, 561,
423, 561, 561, 561, 561, 561, 561, 561, 561, 423,
561, -30, 204, 476, 205, 561, -206, 206, -206, 118,
-206, 157, 204, 117, 596, -82, 561, 166, 596, 46,
-206, -50, -206, -206, -206, 14, 14, 5, 5, 596,
-206, 8, 5, 5, 5, 18, 18, 197, 197, -49,
218, 225, 214, 123, -206, 120, -206, -206, -31, 587,
136, -206, 125, 222, 228, 120, -206, 15, -206, 561,
16, 232, 26, 26, 217, 199, 423, 561, -206, -206,
212, 220, -206, 216, -206, 141, -206, 240, 561, 241,
215, 561, 561, 206, 26, -206, 19, 192, 150, 154,
596, -206, -206, -206, -206, -206, -206, -206, -206, -206,
251, -206, 423, 328, -206, 233, -206, -206, -206, -206,
210, 221, 611, 596, -206, 161, 203, 222, 257, -206,
-206, 26, -206, 6, 423, -206, -206, 224, 226, 423,
264, 183, -206, -206, -206, 172, 175, 213, -206, -206,
-14, 423, -206, 237, -206, 299, 186, -206, 272, 276,
-206, 281, 423, -206, 282, 260, -206, 286, -206, -206,
20, 273, 361, 22, -206, -206, -206, 290, 40, -206,
-206, -206, -206, -206, 201, -206
};
/* YYPGOTO[NTERM-NUM]. */
static const short int yypgoto[] =
{
-203, 0, -126, -1, -203, -203, -203, -203, -203, -203,
113, -124, 123, -203, -203, -28, -203, -203, -203, -203,
-17, -203, -203, 74, -203, 253, -203, -203, -203, -203,
-203, -203, -203, -203, 77, -203, -203, -203, -203, -203,
-203, -203, -203, -203, 33, -203, -203, -203, -203, -203,
-203, -203, -203, -203, -203, -203, -203, -202, 78, -203,
9, -203, 4, -203, -203
-206, 0, -126, -1, -206, -206, -206, -206, -206, -206,
143, -136, 155, -206, -206, -29, -206, -206, -206, -206,
-17, -206, -206, 90, -206, 277, -206, -206, -206, -206,
-206, -206, -206, -206, 89, -206, -206, -206, -206, -206,
-206, -206, -206, -206, -206, 44, -206, -206, -206, -206,
-206, -206, -206, -206, -206, -206, -206, -206, -205, 99,
-206, 54, -206, 38, -206, -206
};
/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
......@@ -784,164 +786,152 @@ static const short int yypgoto[] =
#define YYTABLE_NINF -1
static const unsigned short int yytable[] =
{
22, 91, 71, 73, 107, 77, 225, 189, 246, 149,
100, 136, 299, 49, 6, 51, 52, 53, 54, 55,
187, 186, 56, 268, 205, 85, 206, 86, 136, 262,
99, 132, 133, 82, 134, 135, 136, 50, 211, 207,
212, 219, 235, 206, 236, 84, 74, 75, 125, 81,
238, 284, 206, 209, 210, 128, 240, 241, 242, 243,
263, 244, 264, 150, 83, 190, 283, 88, 130, 131,
226, 317, 318, 313, 89, 314, 90, 57, 6, 284,
92, 93, 58, 59, 60, 61, 62, 249, 63, 64,
65, 66, 143, 144, 67, 68, 94, 95, 152, 96,
98, 165, 97, 101, 69, 105, 76, 141, 142, 143,
144, 70, 138, 139, 140, 141, 142, 143, 144, 102,
106, 151, 109, 171, 126, 110, 111, 112, 153, 113,
114, 172, 173, 174, 175, 176, 145, 179, 180, 181,
182, 183, 184, 185, 115, 288, 188, 116, 117, 77,
292, 196, 118, 119, 120, 154, 121, 122, 1, 123,
124, 127, 129, 155, 156, 2, 157, 227, 159, 147,
148, 160, 163, 309, 166, 169, 136, 3, 215, 213,
214, 170, 4, 5, 6, 191, 194, 215, 197, 200,
7, 201, 203, 208, 222, 223, 224, 229, 8, 231,
230, 9, 234, 10, 239, 237, 11, 51, 52, 53,
54, 55, 247, 250, 56, 214, 252, 12, 13, 14,
253, 255, 254, 256, 165, 265, 15, 259, 260, 266,
267, 16, 17, 257, 268, 18, 19, 20, 74, 75,
274, 272, 277, 273, 279, 282, 290, 289, 293, 215,
294, 296, 297, 301, 21, 303, 304, 306, 308, 310,
298, 311, 132, 133, 312, 134, 135, 136, 320, 57,
315, 322, 202, 193, 58, 59, 60, 61, 62, 285,
63, 64, 65, 66, 146, 108, 67, 68, 215, 0,
248, 300, 215, 1, 251, 0, 69, 281, 321, 0,
2, 0, 0, 70, 261, 0, 0, 0, 0, 215,
0, 220, 3, 0, 0, 0, 0, 4, 5, 6,
0, 134, 135, 136, 0, 7, 0, 0, 0, 0,
0, 0, 0, 8, 0, 0, 9, 0, 10, 0,
0, 11, 0, 138, 139, 140, 141, 142, 143, 144,
1, 0, 12, 13, 14, 0, 0, 2, 0, 0,
0, 15, 0, 0, 0, 0, 16, 17, 302, 3,
18, 19, 20, 0, 4, 5, 6, 0, 0, 0,
0, 0, 7, 0, 0, 0, 0, 0, 0, 21,
8, 0, 0, 9, 0, 10, 0, 0, 11, 138,
139, 140, 141, 142, 143, 144, 0, 1, 0, 12,
13, 14, 0, 0, 2, 0, 0, 0, 15, 0,
0, 0, 0, 16, 17, 316, 3, 18, 19, 20,
0, 4, 5, 6, 0, 0, 0, 0, 0, 7,
0, 0, 0, 0, 0, 0, 21, 8, 0, 0,
9, 0, 10, 0, 0, 11, 0, 0, 0, 0,
0, 0, 0, 0, 1, 0, 12, 13, 14, 0,
0, 2, 0, 0, 0, 15, 0, 0, 0, 0,
16, 17, 0, 3, 18, 19, 20, 0, 4, 5,
6, 0, 0, 0, 0, 0, 7, 0, 0, 0,
0, 0, 0, 21, 8, 0, 0, 9, 0, 10,
0, 0, 11, 51, 52, 53, 54, 55, 0, 0,
56, 0, 0, 12, 13, 14, 0, 0, 0, 0,
0, 0, 15, 0, 0, 0, 0, 16, 17, 0,
0, 18, 19, 20, 51, 52, 53, 54, 55, 0,
0, 56, 0, 0, 0, 0, 0, 0, 0, 0,
21, 132, 133, 164, 134, 135, 136, 0, 0, 0,
0, 0, 0, 132, 133, 57, 134, 135, 136, 0,
58, 59, 60, 61, 62, 0, 63, 64, 65, 66,
0, 0, 67, 68, 0, 0, 0, 0, 0, 0,
0, 0, 69, 0, 0, 228, 57, 0, 0, 70,
0, 58, 59, 60, 61, 62, 0, 63, 64, 65,
66, 0, 0, 67, 68, 0, 0, 0, 0, 0,
0, 132, 133, 69, 134, 135, 136, 0, 0, 0,
70, 0, 138, 139, 140, 141, 142, 143, 144, 0,
137, 0, 0, 221, 138, 139, 140, 141, 142, 143,
144, 132, 133, 0, 134, 135, 136, 0, 132, 133,
0, 134, 135, 136, 0, 0, 0, 0, 132, 133,
271, 134, 135, 136, 0, 0, 0, 0, 0, 0,
276, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 138, 139, 140, 141, 142, 143, 144, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 138, 139, 140, 141, 142, 143, 144, 138,
139, 140, 141, 142, 143, 144, 0, 0, 0, 138,
139, 140, 141, 142, 143, 144
23, 93, 73, 75, 109, 79, 192, 228, 249, 152,
302, 102, 189, 271, 87, 1, 88, 6, 139, 208,
52, 209, 2, 190, 51, 137, 138, 139, 83, 265,
210, 139, 85, 101, 3, 84, 216, 217, 86, 4,
5, 6, 90, 243, 244, 245, 246, 7, 247, 287,
128, 214, 222, 215, 209, 8, 91, 131, 9, 92,
10, 212, 213, 11, 153, 193, 286, 320, 321, 287,
133, 134, 229, 6, 12, 13, 14, 135, 136, 94,
137, 138, 139, 15, 95, 96, 97, 98, 16, 17,
252, 99, 18, 19, 20, 100, 104, 21, 144, 145,
146, 147, 103, 168, 141, 142, 143, 144, 145, 146,
147, 107, 22, 146, 147, 130, 238, 241, 239, 209,
266, 316, 267, 317, 129, 53, 54, 55, 56, 57,
108, 111, 58, 112, 175, 176, 177, 178, 179, 132,
182, 183, 184, 185, 186, 187, 188, 113, 291, 191,
114, 154, 79, 295, 199, 115, 76, 77, 116, 141,
142, 143, 144, 145, 146, 147, 117, 118, 155, 230,
174, 119, 120, 121, 122, 123, 312, 148, 124, 125,
126, 218, 127, 156, 150, 151, 157, 59, 158, 159,
218, 160, 60, 61, 62, 63, 64, 162, 65, 66,
67, 68, 163, 166, 69, 70, 169, 172, 240, 173,
139, 194, 197, 200, 204, 71, 253, 78, 203, 206,
211, 225, 72, 227, 226, 1, 232, 168, 233, 234,
262, 263, 2, 135, 136, 237, 137, 138, 139, 242,
250, 217, 257, 223, 3, 255, 256, 258, 259, 4,
5, 6, 218, 268, 260, 269, 270, 7, 271, 275,
276, 280, 277, 282, 285, 8, 292, 296, 9, 293,
10, 297, 299, 11, 300, 135, 136, 301, 137, 138,
139, 304, 307, 309, 12, 13, 14, 306, 311, 313,
314, 218, 315, 15, 140, 218, 318, 323, 16, 17,
325, 324, 18, 19, 20, 205, 1, 21, 196, 254,
110, 284, 218, 2, 251, 141, 142, 143, 144, 145,
146, 147, 22, 264, 305, 3, 224, 288, 303, 0,
4, 5, 6, 0, 0, 0, 135, 136, 7, 137,
138, 139, 0, 0, 0, 0, 8, 0, 0, 9,
0, 10, 0, 0, 11, 274, 0, 141, 142, 143,
144, 145, 146, 147, 0, 12, 13, 14, 1, 0,
0, 0, 0, 0, 15, 2, 0, 0, 0, 16,
17, 0, 0, 18, 19, 20, 319, 3, 21, 0,
0, 0, 4, 5, 6, 0, 0, 0, 0, 0,
7, 0, 0, 22, 0, 0, 0, 0, 8, 0,
0, 9, 0, 10, 0, 0, 11, 0, 141, 142,
143, 144, 145, 146, 147, 0, 0, 12, 13, 14,
1, 0, 0, 0, 0, 0, 15, 2, 0, 0,
0, 16, 17, 0, 0, 18, 19, 20, 0, 3,
21, 0, 0, 0, 4, 5, 6, 0, 0, 0,
0, 0, 7, 0, 0, 22, 0, 0, 0, 0,
8, 0, 0, 9, 0, 10, 0, 0, 11, 53,
54, 55, 56, 57, 0, 0, 58, 0, 0, 12,
13, 14, 0, 0, 0, 0, 0, 0, 15, 0,
0, 0, 0, 16, 17, 0, 0, 18, 19, 20,
76, 77, 21, 53, 54, 55, 56, 57, 0, 0,
58, 0, 0, 0, 0, 0, 0, 22, 0, 135,
136, 0, 137, 138, 139, 0, 0, 0, 0, 0,
0, 59, 0, 0, 0, 0, 60, 61, 62, 63,
64, 149, 65, 66, 67, 68, 0, 0, 69, 70,
0, 0, 0, 167, 53, 54, 55, 56, 57, 71,
0, 58, 0, 0, 0, 59, 72, 0, 0, 0,
60, 61, 62, 63, 64, 0, 65, 66, 67, 68,
0, 0, 69, 70, 0, 135, 136, 0, 137, 138,
139, 0, 0, 71, 135, 136, 0, 137, 138, 139,
72, 141, 142, 143, 144, 145, 146, 147, 0, 135,
136, 0, 137, 138, 139, 0, 59, 231, 0, 0,
0, 60, 61, 62, 63, 64, 0, 65, 66, 67,
68, 279, 0, 69, 70, 0, 0, 0, 0, 0,
0, 0, 0, 0, 71, 0, 0, 0, 0, 0,
0, 72, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 141, 142, 143,
144, 145, 146, 147, 0, 0, 141, 142, 143, 144,
145, 146, 147, 0, 0, 0, 0, 0, 0, 0,
0, 141, 142, 143, 144, 145, 146, 147
};
static const short int yycheck[] =
{
0, 18, 3, 4, 32, 6, 38, 36, 210, 48,
27, 13, 24, 62, 33, 3, 4, 5, 6, 7,
146, 145, 10, 7, 100, 56, 102, 58, 13, 231,
49, 8, 9, 48, 11, 12, 13, 7, 100, 163,
102, 100, 100, 102, 102, 37, 34, 35, 49, 7,
100, 63, 102, 15, 16, 56, 17, 18, 19, 20,
100, 22, 102, 102, 7, 94, 268, 7, 69, 70,
102, 45, 46, 100, 7, 102, 7, 65, 33, 63,
87, 87, 70, 71, 72, 73, 74, 213, 76, 77,
78, 79, 94, 95, 82, 83, 7, 0, 15, 98,
98, 102, 99, 98, 92, 98, 94, 92, 93, 94,
95, 99, 89, 90, 91, 92, 93, 94, 95, 38,
98, 37, 98, 100, 99, 98, 98, 98, 7, 98,
98, 132, 133, 134, 135, 136, 99, 138, 139, 140,
141, 142, 143, 144, 98, 271, 147, 98, 98, 150,
276, 152, 98, 98, 98, 51, 98, 98, 7, 98,
98, 97, 97, 7, 7, 14, 59, 195, 48, 99,
99, 99, 99, 299, 7, 69, 13, 26, 178, 28,
29, 69, 31, 32, 33, 7, 7, 187, 7, 99,
39, 57, 101, 54, 7, 100, 102, 89, 47, 7,
102, 50, 7, 52, 7, 206, 55, 3, 4, 5,
6, 7, 23, 214, 10, 29, 25, 66, 67, 68,
30, 7, 100, 7, 225, 61, 75, 228, 229, 104,
101, 80, 81, 39, 7, 84, 85, 86, 34, 35,
41, 26, 99, 50, 60, 7, 43, 42, 3, 249,
88, 99, 98, 44, 103, 100, 10, 7, 7, 7,
64, 30, 8, 9, 6, 11, 12, 13, 7, 65,
23, 98, 159, 150, 70, 71, 72, 73, 74, 270,
76, 77, 78, 79, 30, 32, 82, 83, 288, -1,
212, 287, 292, 7, 217, -1, 92, 264, 315, -1,
14, -1, -1, 99, 230, -1, -1, -1, -1, 309,
-1, 25, 26, -1, -1, -1, -1, 31, 32, 33,
-1, 11, 12, 13, -1, 39, -1, -1, -1, -1,
-1, -1, -1, 47, -1, -1, 50, -1, 52, -1,
-1, 55, -1, 89, 90, 91, 92, 93, 94, 95,
7, -1, 66, 67, 68, -1, -1, 14, -1, -1,
-1, 75, -1, -1, -1, -1, 80, 81, 25, 26,
84, 85, 86, -1, 31, 32, 33, -1, -1, -1,
-1, -1, 39, -1, -1, -1, -1, -1, -1, 103,
47, -1, -1, 50, -1, 52, -1, -1, 55, 89,
90, 91, 92, 93, 94, 95, -1, 7, -1, 66,
67, 68, -1, -1, 14, -1, -1, -1, 75, -1,
-1, -1, -1, 80, 81, 25, 26, 84, 85, 86,
-1, 31, 32, 33, -1, -1, -1, -1, -1, 39,
-1, -1, -1, -1, -1, -1, 103, 47, -1, -1,
50, -1, 52, -1, -1, 55, -1, -1, -1, -1,
-1, -1, -1, -1, 7, -1, 66, 67, 68, -1,
-1, 14, -1, -1, -1, 75, -1, -1, -1, -1,
80, 81, -1, 26, 84, 85, 86, -1, 31, 32,
33, -1, -1, -1, -1, -1, 39, -1, -1, -1,
-1, -1, -1, 103, 47, -1, -1, 50, -1, 52,
-1, -1, 55, 3, 4, 5, 6, 7, -1, -1,
10, -1, -1, 66, 67, 68, -1, -1, -1, -1,
-1, -1, 75, -1, -1, -1, -1, 80, 81, -1,
-1, 84, 85, 86, 3, 4, 5, 6, 7, -1,
-1, 10, -1, -1, -1, -1, -1, -1, -1, -1,
103, 8, 9, 53, 11, 12, 13, -1, -1, -1,
-1, -1, -1, 8, 9, 65, 11, 12, 13, -1,
0, 18, 3, 4, 33, 6, 36, 38, 213, 48,
24, 28, 148, 7, 56, 7, 58, 33, 13, 101,
7, 103, 14, 149, 62, 11, 12, 13, 7, 234,
166, 13, 7, 49, 26, 48, 28, 29, 37, 31,
32, 33, 7, 17, 18, 19, 20, 39, 22, 63,
51, 101, 101, 103, 103, 47, 7, 58, 50, 7,
52, 15, 16, 55, 103, 95, 271, 45, 46, 63,
71, 72, 103, 33, 66, 67, 68, 8, 9, 87,
11, 12, 13, 75, 87, 7, 0, 99, 80, 81,
216, 100, 84, 85, 86, 99, 38, 89, 93, 94,
95, 96, 99, 104, 90, 91, 92, 93, 94, 95,
96, 99, 104, 95, 96, 98, 101, 101, 103, 103,
101, 101, 103, 103, 100, 3, 4, 5, 6, 7,
99, 99, 10, 99, 135, 136, 137, 138, 139, 98,
141, 142, 143, 144, 145, 146, 147, 99, 274, 150,
99, 37, 153, 279, 155, 99, 34, 35, 99, 90,
91, 92, 93, 94, 95, 96, 99, 99, 15, 198,
101, 99, 99, 99, 99, 99, 302, 100, 99, 99,
99, 181, 99, 7, 100, 100, 51, 65, 7, 7,
190, 59, 70, 71, 72, 73, 74, 48, 76, 77,
78, 79, 100, 100, 82, 83, 7, 69, 209, 69,
13, 7, 7, 7, 57, 93, 217, 95, 100, 102,
54, 7, 100, 103, 101, 7, 90, 228, 103, 7,
231, 232, 14, 8, 9, 7, 11, 12, 13, 7,
23, 29, 101, 25, 26, 25, 30, 7, 7, 31,
32, 33, 252, 61, 39, 105, 102, 39, 7, 26,
50, 100, 41, 60, 7, 47, 42, 3, 50, 43,
52, 88, 100, 55, 99, 8, 9, 64, 11, 12,
13, 44, 10, 7, 66, 67, 68, 101, 7, 7,
30, 291, 6, 75, 27, 295, 23, 7, 80, 81,
99, 318, 84, 85, 86, 162, 7, 89, 153, 220,
33, 267, 312, 14, 215, 90, 91, 92, 93, 94,
95, 96, 104, 233, 25, 26, 101, 273, 290, -1,
31, 32, 33, -1, -1, -1, 8, 9, 39, 11,
12, 13, -1, -1, -1, -1, 47, -1, -1, 50,
-1, 52, -1, -1, 55, 27, -1, 90, 91, 92,
93, 94, 95, 96, -1, 66, 67, 68, 7, -1,
-1, -1, -1, -1, 75, 14, -1, -1, -1, 80,
81, -1, -1, 84, 85, 86, 25, 26, 89, -1,
-1, -1, 31, 32, 33, -1, -1, -1, -1, -1,
39, -1, -1, 104, -1, -1, -1, -1, 47, -1,
-1, 50, -1, 52, -1, -1, 55, -1, 90, 91,
92, 93, 94, 95, 96, -1, -1, 66, 67, 68,
7, -1, -1, -1, -1, -1, 75, 14, -1, -1,
-1, 80, 81, -1, -1, 84, 85, 86, -1, 26,
89, -1, -1, -1, 31, 32, 33, -1, -1, -1,
-1, -1, 39, -1, -1, 104, -1, -1, -1, -1,
47, -1, -1, 50, -1, 52, -1, -1, 55, 3,
4, 5, 6, 7, -1, -1, 10, -1, -1, 66,
67, 68, -1, -1, -1, -1, -1, -1, 75, -1,
-1, -1, -1, 80, 81, -1, -1, 84, 85, 86,
34, 35, 89, 3, 4, 5, 6, 7, -1, -1,
10, -1, -1, -1, -1, -1, -1, 104, -1, 8,
9, -1, 11, 12, 13, -1, -1, -1, -1, -1,
-1, 65, -1, -1, -1, -1, 70, 71, 72, 73,
74, 30, 76, 77, 78, 79, -1, -1, 82, 83,
-1, -1, -1, 53, 3, 4, 5, 6, 7, 93,
-1, 10, -1, -1, -1, 65, 100, -1, -1, -1,
70, 71, 72, 73, 74, -1, 76, 77, 78, 79,
-1, -1, 82, 83, -1, -1, -1, -1, -1, -1,
-1, -1, 92, -1, -1, 40, 65, -1, -1, 99,
-1, -1, 82, 83, -1, 8, 9, -1, 11, 12,
13, -1, -1, 93, 8, 9, -1, 11, 12, 13,
100, 90, 91, 92, 93, 94, 95, 96, -1, 8,
9, -1, 11, 12, 13, -1, 65, 40, -1, -1,
-1, 70, 71, 72, 73, 74, -1, 76, 77, 78,
79, -1, -1, 82, 83, -1, -1, -1, -1, -1,
-1, 8, 9, 92, 11, 12, 13, -1, -1, -1,
99, -1, 89, 90, 91, 92, 93, 94, 95, -1,
27, -1, -1, 100, 89, 90, 91, 92, 93, 94,
95, 8, 9, -1, 11, 12, 13, -1, 8, 9,
-1, 11, 12, 13, -1, -1, -1, -1, 8, 9,
27, 11, 12, 13, -1, -1, -1, -1, -1, -1,
30, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, 89, 90, 91, 92, 93, 94, 95, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, 89, 90, 91, 92, 93, 94, 95, 89,
90, 91, 92, 93, 94, 95, -1, -1, -1, 89,
90, 91, 92, 93, 94, 95
79, 30, -1, 82, 83, -1, -1, -1, -1, -1,
-1, -1, -1, -1, 93, -1, -1, -1, -1, -1,
-1, 100, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, 90, 91, 92,
93, 94, 95, 96, -1, -1, 90, 91, 92, 93,
94, 95, 96, -1, -1, -1, -1, -1, -1, -1,
-1, 90, 91, 92, 93, 94, 95, 96
};
/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
......@@ -950,37 +940,37 @@ static const unsigned char yystos[] =
{
0, 7, 14, 26, 31, 32, 33, 39, 47, 50,
52, 55, 66, 67, 68, 75, 80, 81, 84, 85,
86, 103, 106, 111, 112, 113, 125, 126, 127, 131,
132, 133, 134, 135, 136, 137, 138, 142, 143, 144,
145, 146, 147, 148, 155, 159, 160, 161, 169, 62,
7, 3, 4, 5, 6, 7, 10, 65, 70, 71,
72, 73, 74, 76, 77, 78, 79, 82, 83, 92,
99, 108, 109, 108, 34, 35, 94, 108, 117, 118,
119, 7, 48, 7, 37, 56, 58, 157, 7, 7,
7, 125, 87, 87, 7, 0, 98, 99, 98, 49,
125, 98, 38, 120, 130, 98, 98, 120, 130, 98,
98, 98, 98, 98, 98, 98, 98, 98, 98, 98,
98, 98, 98, 98, 98, 108, 99, 97, 108, 97,
108, 108, 8, 9, 11, 12, 13, 27, 89, 90,
91, 92, 93, 94, 95, 99, 30, 99, 99, 48,
102, 37, 15, 7, 51, 7, 7, 59, 158, 48,
99, 108, 116, 99, 53, 108, 7, 163, 164, 69,
69, 100, 108, 108, 108, 108, 108, 106, 107, 108,
108, 108, 108, 108, 108, 108, 116, 107, 108, 36,
94, 7, 115, 117, 7, 114, 108, 7, 128, 129,
99, 57, 115, 101, 110, 100, 102, 116, 54, 15,
16, 100, 102, 28, 29, 106, 139, 140, 141, 100,
25, 100, 7, 100, 102, 38, 102, 120, 40, 89,
102, 7, 149, 150, 7, 100, 102, 108, 100, 7,
17, 18, 19, 20, 22, 162, 162, 23, 163, 107,
108, 139, 25, 30, 100, 7, 7, 39, 121, 108,
108, 128, 162, 100, 102, 61, 104, 101, 7, 165,
166, 27, 26, 50, 41, 122, 30, 99, 151, 60,
154, 149, 7, 162, 63, 165, 167, 168, 107, 42,
43, 124, 107, 3, 88, 152, 99, 98, 64, 24,
167, 44, 25, 100, 10, 153, 7, 156, 7, 107,
7, 30, 6, 100, 102, 23, 25, 45, 46, 123,
7, 125, 98
86, 89, 104, 107, 112, 113, 114, 126, 127, 128,
132, 133, 134, 135, 136, 137, 138, 139, 143, 144,
145, 146, 147, 148, 149, 150, 157, 161, 162, 163,
171, 62, 7, 3, 4, 5, 6, 7, 10, 65,
70, 71, 72, 73, 74, 76, 77, 78, 79, 82,
83, 93, 100, 109, 110, 109, 34, 35, 95, 109,
118, 119, 120, 7, 48, 7, 37, 56, 58, 159,
7, 7, 7, 126, 87, 87, 7, 0, 99, 100,
99, 49, 126, 99, 38, 121, 131, 99, 99, 121,
131, 99, 99, 99, 99, 99, 99, 99, 99, 99,
99, 99, 99, 99, 99, 99, 99, 99, 109, 100,
98, 109, 98, 109, 109, 8, 9, 11, 12, 13,
27, 90, 91, 92, 93, 94, 95, 96, 100, 30,
100, 100, 48, 103, 37, 15, 7, 51, 7, 7,
59, 160, 48, 100, 109, 117, 100, 53, 109, 7,
165, 166, 69, 69, 101, 109, 109, 109, 109, 109,
107, 108, 109, 109, 109, 109, 109, 109, 109, 117,
108, 109, 36, 95, 7, 116, 118, 7, 115, 109,
7, 129, 130, 100, 57, 116, 102, 111, 101, 103,
117, 54, 15, 16, 101, 103, 28, 29, 107, 140,
141, 142, 101, 25, 101, 7, 101, 103, 38, 103,
121, 40, 90, 103, 7, 151, 152, 7, 101, 103,
109, 101, 7, 17, 18, 19, 20, 22, 164, 164,
23, 165, 108, 109, 140, 25, 30, 101, 7, 7,
39, 122, 109, 109, 129, 164, 101, 103, 61, 105,
102, 7, 167, 168, 27, 26, 50, 41, 123, 30,
100, 153, 60, 156, 151, 7, 164, 63, 167, 169,
170, 108, 42, 43, 125, 108, 3, 88, 154, 100,
99, 64, 24, 169, 44, 25, 101, 10, 155, 7,
158, 7, 108, 7, 30, 6, 101, 103, 23, 25,
45, 46, 124, 7, 126, 99
};
#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
......@@ -1591,129 +1581,124 @@ yyparse ()
YY_REDUCE_PRINT (yyn);
switch (yyn)
{
case 24:
#line 157 "pars0grm.y"
{ yyval = que_node_list_add_last(NULL, yyvsp[0]); ;}
break;
case 25:
case 25:
#line 159 "pars0grm.y"
{ yyval = que_node_list_add_last(yyvsp[-1], yyvsp[0]); ;}
{ yyval = que_node_list_add_last(NULL, yyvsp[0]); ;}
break;
case 26:
#line 163 "pars0grm.y"
{ yyval = yyvsp[0];;}
#line 161 "pars0grm.y"
{ yyval = que_node_list_add_last(yyvsp[-1], yyvsp[0]); ;}
break;
case 27:
#line 165 "pars0grm.y"
{ yyval = pars_func(yyvsp[-3], yyvsp[-1]); ;}
{ yyval = yyvsp[0];;}
break;
case 28:
#line 166 "pars0grm.y"
{ yyval = yyvsp[0];;}
#line 167 "pars0grm.y"
{ yyval = pars_func(yyvsp[-3], yyvsp[-1]); ;}
break;
case 29:
#line 167 "pars0grm.y"
#line 168 "pars0grm.y"
{ yyval = yyvsp[0];;}
break;
case 30:
#line 168 "pars0grm.y"
#line 169 "pars0grm.y"
{ yyval = yyvsp[0];;}
break;
case 31:
#line 169 "pars0grm.y"
#line 170 "pars0grm.y"
{ yyval = yyvsp[0];;}
break;
case 32:
#line 170 "pars0grm.y"
#line 171 "pars0grm.y"
{ yyval = yyvsp[0];;}
break;
case 33:
#line 171 "pars0grm.y"
{ yyval = pars_op('+', yyvsp[-2], yyvsp[0]); ;}
#line 172 "pars0grm.y"
{ yyval = yyvsp[0];;}
break;
case 34:
#line 172 "pars0grm.y"
{ yyval = pars_op('-', yyvsp[-2], yyvsp[0]); ;}
#line 173 "pars0grm.y"
{ yyval = pars_op('+', yyvsp[-2], yyvsp[0]); ;}
break;
case 35:
#line 173 "pars0grm.y"
{ yyval = pars_op('*', yyvsp[-2], yyvsp[0]); ;}
#line 174 "pars0grm.y"
{ yyval = pars_op('-', yyvsp[-2], yyvsp[0]); ;}
break;
case 36:
#line 174 "pars0grm.y"
{ yyval = pars_op('/', yyvsp[-2], yyvsp[0]); ;}
#line 175 "pars0grm.y"
{ yyval = pars_op('*', yyvsp[-2], yyvsp[0]); ;}
break;
case 37:
#line 175 "pars0grm.y"
{ yyval = pars_op('-', yyvsp[0], NULL); ;}
#line 176 "pars0grm.y"
{ yyval = pars_op('/', yyvsp[-2], yyvsp[0]); ;}
break;
case 38:
#line 176 "pars0grm.y"
{ yyval = yyvsp[-1]; ;}
#line 177 "pars0grm.y"
{ yyval = pars_op('-', yyvsp[0], NULL); ;}
break;
case 39:
#line 177 "pars0grm.y"
{ yyval = pars_op('=', yyvsp[-2], yyvsp[0]); ;}
#line 178 "pars0grm.y"
{ yyval = yyvsp[-1]; ;}
break;
case 40:
#line 178 "pars0grm.y"
{ yyval = pars_op('<', yyvsp[-2], yyvsp[0]); ;}
#line 179 "pars0grm.y"
{ yyval = pars_op('=', yyvsp[-2], yyvsp[0]); ;}
break;
case 41:
#line 179 "pars0grm.y"
{ yyval = pars_op('>', yyvsp[-2], yyvsp[0]); ;}
#line 180 "pars0grm.y"
{ yyval = pars_op('<', yyvsp[-2], yyvsp[0]); ;}
break;
case 42:
#line 180 "pars0grm.y"
{ yyval = pars_op(PARS_GE_TOKEN, yyvsp[-2], yyvsp[0]); ;}
#line 181 "pars0grm.y"
{ yyval = pars_op('>', yyvsp[-2], yyvsp[0]); ;}
break;
case 43:
#line 181 "pars0grm.y"
{ yyval = pars_op(PARS_LE_TOKEN, yyvsp[-2], yyvsp[0]); ;}
#line 182 "pars0grm.y"
{ yyval = pars_op(PARS_GE_TOKEN, yyvsp[-2], yyvsp[0]); ;}
break;
case 44:
#line 182 "pars0grm.y"
{ yyval = pars_op(PARS_NE_TOKEN, yyvsp[-2], yyvsp[0]); ;}
#line 183 "pars0grm.y"
{ yyval = pars_op(PARS_LE_TOKEN, yyvsp[-2], yyvsp[0]); ;}
break;
case 45:
#line 183 "pars0grm.y"
{ yyval = pars_op(PARS_AND_TOKEN, yyvsp[-2], yyvsp[0]); ;}
#line 184 "pars0grm.y"
{ yyval = pars_op(PARS_NE_TOKEN, yyvsp[-2], yyvsp[0]); ;}
break;
case 46:
#line 184 "pars0grm.y"
{ yyval = pars_op(PARS_OR_TOKEN, yyvsp[-2], yyvsp[0]); ;}
#line 185 "pars0grm.y"
{ yyval = pars_op(PARS_AND_TOKEN, yyvsp[-2], yyvsp[0]); ;}
break;
case 47:
#line 185 "pars0grm.y"
{ yyval = pars_op(PARS_NOT_TOKEN, yyvsp[0], NULL); ;}
#line 186 "pars0grm.y"
{ yyval = pars_op(PARS_OR_TOKEN, yyvsp[-2], yyvsp[0]); ;}
break;
case 48:
#line 187 "pars0grm.y"
{ yyval = pars_op(PARS_NOTFOUND_TOKEN, yyvsp[-2], NULL); ;}
{ yyval = pars_op(PARS_NOT_TOKEN, yyvsp[0], NULL); ;}
break;
case 49:
......@@ -1722,140 +1707,145 @@ yyparse ()
break;
case 50:
#line 193 "pars0grm.y"
{ yyval = &pars_to_char_token; ;}
#line 191 "pars0grm.y"
{ yyval = pars_op(PARS_NOTFOUND_TOKEN, yyvsp[-2], NULL); ;}
break;
case 51:
#line 194 "pars0grm.y"
{ yyval = &pars_to_number_token; ;}
#line 195 "pars0grm.y"
{ yyval = &pars_to_char_token; ;}
break;
case 52:
#line 195 "pars0grm.y"
{ yyval = &pars_to_binary_token; ;}
#line 196 "pars0grm.y"
{ yyval = &pars_to_number_token; ;}
break;
case 53:
#line 197 "pars0grm.y"
{ yyval = &pars_binary_to_number_token; ;}
{ yyval = &pars_to_binary_token; ;}
break;
case 54:
#line 198 "pars0grm.y"
{ yyval = &pars_substr_token; ;}
#line 199 "pars0grm.y"
{ yyval = &pars_binary_to_number_token; ;}
break;
case 55:
#line 199 "pars0grm.y"
{ yyval = &pars_concat_token; ;}
#line 200 "pars0grm.y"
{ yyval = &pars_substr_token; ;}
break;
case 56:
#line 200 "pars0grm.y"
{ yyval = &pars_instr_token; ;}
#line 201 "pars0grm.y"
{ yyval = &pars_concat_token; ;}
break;
case 57:
#line 201 "pars0grm.y"
{ yyval = &pars_length_token; ;}
#line 202 "pars0grm.y"
{ yyval = &pars_instr_token; ;}
break;
case 58:
#line 202 "pars0grm.y"
{ yyval = &pars_sysdate_token; ;}
#line 203 "pars0grm.y"
{ yyval = &pars_length_token; ;}
break;
case 59:
#line 203 "pars0grm.y"
{ yyval = &pars_rnd_token; ;}
#line 204 "pars0grm.y"
{ yyval = &pars_sysdate_token; ;}
break;
case 60:
#line 204 "pars0grm.y"
{ yyval = &pars_rnd_str_token; ;}
#line 205 "pars0grm.y"
{ yyval = &pars_rnd_token; ;}
break;
case 64:
#line 215 "pars0grm.y"
{ yyval = pars_stored_procedure_call(yyvsp[-4]); ;}
case 61:
#line 206 "pars0grm.y"
{ yyval = &pars_rnd_str_token; ;}
break;
case 65:
#line 220 "pars0grm.y"
{ yyval = pars_procedure_call(yyvsp[-3], yyvsp[-1]); ;}
#line 217 "pars0grm.y"
{ yyval = pars_stored_procedure_call(yyvsp[-4]); ;}
break;
case 66:
#line 224 "pars0grm.y"
{ yyval = &pars_replstr_token; ;}
#line 222 "pars0grm.y"
{ yyval = pars_procedure_call(yyvsp[-3], yyvsp[-1]); ;}
break;
case 67:
#line 225 "pars0grm.y"
{ yyval = &pars_printf_token; ;}
#line 226 "pars0grm.y"
{ yyval = &pars_replstr_token; ;}
break;
case 68:
#line 226 "pars0grm.y"
{ yyval = &pars_assert_token; ;}
#line 227 "pars0grm.y"
{ yyval = &pars_printf_token; ;}
break;
case 69:
#line 230 "pars0grm.y"
{ yyval = que_node_list_add_last(NULL, yyvsp[0]); ;}
#line 228 "pars0grm.y"
{ yyval = &pars_assert_token; ;}
break;
case 70:
#line 232 "pars0grm.y"
{ yyval = que_node_list_add_last(yyvsp[-2], yyvsp[0]); ;}
{ yyval = que_node_list_add_last(NULL, yyvsp[0]); ;}
break;
case 71:
#line 236 "pars0grm.y"
{ yyval = NULL; ;}
#line 234 "pars0grm.y"
{ yyval = que_node_list_add_last(yyvsp[-2], yyvsp[0]); ;}
break;
case 72:
#line 237 "pars0grm.y"
{ yyval = que_node_list_add_last(NULL, yyvsp[0]); ;}
#line 238 "pars0grm.y"
{ yyval = NULL; ;}
break;
case 73:
#line 239 "pars0grm.y"
{ yyval = que_node_list_add_last(yyvsp[-2], yyvsp[0]); ;}
{ yyval = que_node_list_add_last(NULL, yyvsp[0]); ;}
break;
case 74:
#line 243 "pars0grm.y"
{ yyval = NULL; ;}
#line 241 "pars0grm.y"
{ yyval = que_node_list_add_last(yyvsp[-2], yyvsp[0]); ;}
break;
case 75:
#line 244 "pars0grm.y"
{ yyval = que_node_list_add_last(NULL, yyvsp[0]);;}
#line 245 "pars0grm.y"
{ yyval = NULL; ;}
break;
case 76:
#line 245 "pars0grm.y"
{ yyval = que_node_list_add_last(yyvsp[-2], yyvsp[0]); ;}
#line 246 "pars0grm.y"
{ yyval = que_node_list_add_last(NULL, yyvsp[0]);;}
break;
case 77:
#line 249 "pars0grm.y"
{ yyval = yyvsp[0]; ;}
#line 247 "pars0grm.y"
{ yyval = que_node_list_add_last(yyvsp[-2], yyvsp[0]); ;}
break;
case 78:
#line 251 "pars0grm.y"
{ yyval = yyvsp[0]; ;}
break;
case 79:
#line 253 "pars0grm.y"
{ yyval = pars_func(&pars_count_token,
que_node_list_add_last(NULL,
sym_tab_add_int_lit(
pars_sym_tab_global, 1))); ;}
break;
case 79:
#line 256 "pars0grm.y"
case 80:
#line 258 "pars0grm.y"
{ yyval = pars_func(&pars_count_token,
que_node_list_add_last(NULL,
pars_func(&pars_distinct_token,
......@@ -1863,272 +1853,267 @@ yyparse ()
NULL, yyvsp[-1])))); ;}
break;
case 80:
#line 262 "pars0grm.y"
case 81:
#line 264 "pars0grm.y"
{ yyval = pars_func(&pars_sum_token,
que_node_list_add_last(NULL,
yyvsp[-1])); ;}
break;
case 81:
#line 268 "pars0grm.y"
{ yyval = NULL; ;}
break;
case 82:
#line 269 "pars0grm.y"
{ yyval = que_node_list_add_last(NULL, yyvsp[0]); ;}
#line 270 "pars0grm.y"
{ yyval = NULL; ;}
break;
case 83:
#line 271 "pars0grm.y"
{ yyval = que_node_list_add_last(yyvsp[-2], yyvsp[0]); ;}
{ yyval = que_node_list_add_last(NULL, yyvsp[0]); ;}
break;
case 84:
#line 275 "pars0grm.y"
{ yyval = pars_select_list(&pars_star_denoter,
NULL); ;}
#line 273 "pars0grm.y"
{ yyval = que_node_list_add_last(yyvsp[-2], yyvsp[0]); ;}
break;
case 85:
#line 278 "pars0grm.y"
{ yyval = pars_select_list(yyvsp[-2], yyvsp[0]); ;}
#line 277 "pars0grm.y"
{ yyval = pars_select_list(&pars_star_denoter,
NULL); ;}
break;
case 86:
#line 279 "pars0grm.y"
{ yyval = pars_select_list(yyvsp[0], NULL); ;}
#line 280 "pars0grm.y"
{ yyval = pars_select_list(yyvsp[-2], yyvsp[0]); ;}
break;
case 87:
#line 283 "pars0grm.y"
{ yyval = NULL; ;}
#line 281 "pars0grm.y"
{ yyval = pars_select_list(yyvsp[0], NULL); ;}
break;
case 88:
#line 284 "pars0grm.y"
{ yyval = yyvsp[0]; ;}
#line 285 "pars0grm.y"
{ yyval = NULL; ;}
break;
case 89:
#line 288 "pars0grm.y"
{ yyval = NULL; ;}
#line 286 "pars0grm.y"
{ yyval = yyvsp[0]; ;}
break;
case 90:
#line 290 "pars0grm.y"
{ yyval = &pars_update_token; ;}
{ yyval = NULL; ;}
break;
case 91:
#line 294 "pars0grm.y"
{ yyval = NULL; ;}
#line 292 "pars0grm.y"
{ yyval = &pars_update_token; ;}
break;
case 92:
#line 296 "pars0grm.y"
{ yyval = &pars_consistent_token; ;}
{ yyval = NULL; ;}
break;
case 93:
#line 300 "pars0grm.y"
{ yyval = &pars_asc_token; ;}
#line 298 "pars0grm.y"
{ yyval = &pars_consistent_token; ;}
break;
case 94:
#line 301 "pars0grm.y"
#line 302 "pars0grm.y"
{ yyval = &pars_asc_token; ;}
break;
case 95:
#line 302 "pars0grm.y"
{ yyval = &pars_desc_token; ;}
#line 303 "pars0grm.y"
{ yyval = &pars_asc_token; ;}
break;
case 96:
#line 306 "pars0grm.y"
{ yyval = NULL; ;}
#line 304 "pars0grm.y"
{ yyval = &pars_desc_token; ;}
break;
case 97:
#line 308 "pars0grm.y"
{ yyval = pars_order_by(yyvsp[-1], yyvsp[0]); ;}
{ yyval = NULL; ;}
break;
case 98:
#line 317 "pars0grm.y"
{ yyval = pars_select_statement(yyvsp[-6], yyvsp[-4], yyvsp[-3],
yyvsp[-2], yyvsp[-1], yyvsp[0]); ;}
#line 310 "pars0grm.y"
{ yyval = pars_order_by(yyvsp[-1], yyvsp[0]); ;}
break;
case 99:
#line 323 "pars0grm.y"
{ yyval = yyvsp[0]; ;}
#line 319 "pars0grm.y"
{ yyval = pars_select_statement(yyvsp[-6], yyvsp[-4], yyvsp[-3],
yyvsp[-2], yyvsp[-1], yyvsp[0]); ;}
break;
case 100:
#line 328 "pars0grm.y"
{ yyval = pars_insert_statement(yyvsp[-4], yyvsp[-1], NULL); ;}
#line 325 "pars0grm.y"
{ yyval = yyvsp[0]; ;}
break;
case 101:
#line 330 "pars0grm.y"
{ yyval = pars_insert_statement(yyvsp[-1], NULL, yyvsp[0]); ;}
{ yyval = pars_insert_statement(yyvsp[-4], yyvsp[-1], NULL); ;}
break;
case 102:
#line 334 "pars0grm.y"
{ yyval = pars_column_assignment(yyvsp[-2], yyvsp[0]); ;}
#line 332 "pars0grm.y"
{ yyval = pars_insert_statement(yyvsp[-1], NULL, yyvsp[0]); ;}
break;
case 103:
#line 338 "pars0grm.y"
{ yyval = que_node_list_add_last(NULL, yyvsp[0]); ;}
#line 336 "pars0grm.y"
{ yyval = pars_column_assignment(yyvsp[-2], yyvsp[0]); ;}
break;
case 104:
#line 340 "pars0grm.y"
{ yyval = que_node_list_add_last(yyvsp[-2], yyvsp[0]); ;}
{ yyval = que_node_list_add_last(NULL, yyvsp[0]); ;}
break;
case 105:
#line 346 "pars0grm.y"
{ yyval = yyvsp[0]; ;}
#line 342 "pars0grm.y"
{ yyval = que_node_list_add_last(yyvsp[-2], yyvsp[0]); ;}
break;
case 106:
#line 352 "pars0grm.y"
{ yyval = pars_update_statement_start(FALSE,
yyvsp[-2], yyvsp[0]); ;}
#line 348 "pars0grm.y"
{ yyval = yyvsp[0]; ;}
break;
case 107:
#line 358 "pars0grm.y"
{ yyval = pars_update_statement(yyvsp[-1], NULL, yyvsp[0]); ;}
#line 354 "pars0grm.y"
{ yyval = pars_update_statement_start(FALSE,
yyvsp[-2], yyvsp[0]); ;}
break;
case 108:
#line 363 "pars0grm.y"
{ yyval = pars_update_statement(yyvsp[-1], yyvsp[0], NULL); ;}
#line 360 "pars0grm.y"
{ yyval = pars_update_statement(yyvsp[-1], NULL, yyvsp[0]); ;}
break;
case 109:
#line 368 "pars0grm.y"
{ yyval = pars_update_statement_start(TRUE,
yyvsp[0], NULL); ;}
#line 365 "pars0grm.y"
{ yyval = pars_update_statement(yyvsp[-1], yyvsp[0], NULL); ;}
break;
case 110:
#line 374 "pars0grm.y"
{ yyval = pars_update_statement(yyvsp[-1], NULL, yyvsp[0]); ;}
#line 370 "pars0grm.y"
{ yyval = pars_update_statement_start(TRUE,
yyvsp[0], NULL); ;}
break;
case 111:
#line 379 "pars0grm.y"
{ yyval = pars_update_statement(yyvsp[-1], yyvsp[0], NULL); ;}
#line 376 "pars0grm.y"
{ yyval = pars_update_statement(yyvsp[-1], NULL, yyvsp[0]); ;}
break;
case 112:
#line 384 "pars0grm.y"
{ yyval = pars_row_printf_statement(yyvsp[0]); ;}
#line 381 "pars0grm.y"
{ yyval = pars_update_statement(yyvsp[-1], yyvsp[0], NULL); ;}
break;
case 113:
#line 389 "pars0grm.y"
{ yyval = pars_assignment_statement(yyvsp[-2], yyvsp[0]); ;}
#line 386 "pars0grm.y"
{ yyval = pars_row_printf_statement(yyvsp[0]); ;}
break;
case 114:
#line 395 "pars0grm.y"
{ yyval = pars_elsif_element(yyvsp[-2], yyvsp[0]); ;}
#line 391 "pars0grm.y"
{ yyval = pars_assignment_statement(yyvsp[-2], yyvsp[0]); ;}
break;
case 115:
#line 399 "pars0grm.y"
{ yyval = que_node_list_add_last(NULL, yyvsp[0]); ;}
#line 397 "pars0grm.y"
{ yyval = pars_elsif_element(yyvsp[-2], yyvsp[0]); ;}
break;
case 116:
#line 401 "pars0grm.y"
{ yyval = que_node_list_add_last(yyvsp[-1], yyvsp[0]); ;}
{ yyval = que_node_list_add_last(NULL, yyvsp[0]); ;}
break;
case 117:
#line 405 "pars0grm.y"
{ yyval = NULL; ;}
#line 403 "pars0grm.y"
{ yyval = que_node_list_add_last(yyvsp[-1], yyvsp[0]); ;}
break;
case 118:
#line 407 "pars0grm.y"
{ yyval = yyvsp[0]; ;}
{ yyval = NULL; ;}
break;
case 119:
#line 408 "pars0grm.y"
#line 409 "pars0grm.y"
{ yyval = yyvsp[0]; ;}
break;
case 120:
#line 415 "pars0grm.y"
{ yyval = pars_if_statement(yyvsp[-5], yyvsp[-3], yyvsp[-2]); ;}
#line 410 "pars0grm.y"
{ yyval = yyvsp[0]; ;}
break;
case 121:
#line 421 "pars0grm.y"
{ yyval = pars_while_statement(yyvsp[-4], yyvsp[-2]); ;}
#line 417 "pars0grm.y"
{ yyval = pars_if_statement(yyvsp[-5], yyvsp[-3], yyvsp[-2]); ;}
break;
case 122:
#line 429 "pars0grm.y"
{ yyval = pars_for_statement(yyvsp[-8], yyvsp[-6], yyvsp[-4], yyvsp[-2]); ;}
#line 423 "pars0grm.y"
{ yyval = pars_while_statement(yyvsp[-4], yyvsp[-2]); ;}
break;
case 123:
#line 433 "pars0grm.y"
{ yyval = pars_return_statement(); ;}
#line 431 "pars0grm.y"
{ yyval = pars_for_statement(yyvsp[-8], yyvsp[-6], yyvsp[-4], yyvsp[-2]); ;}
break;
case 124:
#line 438 "pars0grm.y"
{ yyval = pars_open_statement(
ROW_SEL_OPEN_CURSOR, yyvsp[0]); ;}
#line 435 "pars0grm.y"
{ yyval = pars_exit_statement(); ;}
break;
case 125:
#line 444 "pars0grm.y"
{ yyval = pars_open_statement(
ROW_SEL_CLOSE_CURSOR, yyvsp[0]); ;}
#line 439 "pars0grm.y"
{ yyval = pars_return_statement(); ;}
break;
case 126:
#line 450 "pars0grm.y"
{ yyval = pars_fetch_statement(yyvsp[-2], yyvsp[0]); ;}
#line 444 "pars0grm.y"
{ yyval = pars_open_statement(
ROW_SEL_OPEN_CURSOR, yyvsp[0]); ;}
break;
case 127:
#line 455 "pars0grm.y"
{ yyval = pars_column_def(yyvsp[-4], yyvsp[-3], yyvsp[-2], yyvsp[-1], yyvsp[0]); ;}
#line 450 "pars0grm.y"
{ yyval = pars_open_statement(
ROW_SEL_CLOSE_CURSOR, yyvsp[0]); ;}
break;
case 128:
#line 459 "pars0grm.y"
{ yyval = que_node_list_add_last(NULL, yyvsp[0]); ;}
#line 456 "pars0grm.y"
{ yyval = pars_fetch_statement(yyvsp[-2], yyvsp[0]); ;}
break;
case 129:
#line 461 "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;
case 130:
#line 465 "pars0grm.y"
{ yyval = NULL; ;}
{ yyval = que_node_list_add_last(NULL, yyvsp[0]); ;}
break;
case 131:
#line 467 "pars0grm.y"
{ yyval = yyvsp[-1]; ;}
{ yyval = que_node_list_add_last(yyvsp[-2], yyvsp[0]); ;}
break;
case 132:
......@@ -2138,146 +2123,156 @@ yyparse ()
case 133:
#line 473 "pars0grm.y"
{ yyval = &pars_int_token;
/* pass any non-NULL pointer */ ;}
{ yyval = yyvsp[-1]; ;}
break;
case 134:
#line 478 "pars0grm.y"
#line 477 "pars0grm.y"
{ yyval = NULL; ;}
break;
case 135:
#line 480 "pars0grm.y"
#line 479 "pars0grm.y"
{ yyval = &pars_int_token;
/* pass any non-NULL pointer */ ;}
break;
case 136:
#line 485 "pars0grm.y"
#line 484 "pars0grm.y"
{ yyval = NULL; ;}
break;
case 137:
#line 487 "pars0grm.y"
#line 486 "pars0grm.y"
{ yyval = &pars_int_token;
/* pass any non-NULL pointer */ ;}
break;
case 138:
#line 494 "pars0grm.y"
{ yyval = pars_create_table(yyvsp[-4], yyvsp[-2], yyvsp[0]); ;}
#line 491 "pars0grm.y"
{ yyval = NULL; ;}
break;
case 139:
#line 498 "pars0grm.y"
{ yyval = que_node_list_add_last(NULL, yyvsp[0]); ;}
#line 493 "pars0grm.y"
{ yyval = &pars_int_token;
/* pass any non-NULL pointer */ ;}
break;
case 140:
#line 500 "pars0grm.y"
{ yyval = que_node_list_add_last(yyvsp[-2], yyvsp[0]); ;}
{ yyval = pars_create_table(yyvsp[-4], yyvsp[-2], yyvsp[0]); ;}
break;
case 141:
#line 504 "pars0grm.y"
{ yyval = NULL; ;}
{ yyval = que_node_list_add_last(NULL, yyvsp[0]); ;}
break;
case 142:
#line 505 "pars0grm.y"
{ yyval = &pars_unique_token; ;}
#line 506 "pars0grm.y"
{ yyval = que_node_list_add_last(yyvsp[-2], yyvsp[0]); ;}
break;
case 143:
#line 509 "pars0grm.y"
#line 510 "pars0grm.y"
{ yyval = NULL; ;}
break;
case 144:
#line 510 "pars0grm.y"
{ yyval = &pars_clustered_token; ;}
#line 511 "pars0grm.y"
{ yyval = &pars_unique_token; ;}
break;
case 145:
#line 518 "pars0grm.y"
{ yyval = pars_create_index(yyvsp[-8], yyvsp[-7], yyvsp[-5], yyvsp[-3], yyvsp[-1]); ;}
#line 515 "pars0grm.y"
{ yyval = NULL; ;}
break;
case 146:
#line 523 "pars0grm.y"
{ yyval = pars_commit_statement(); ;}
#line 516 "pars0grm.y"
{ yyval = &pars_clustered_token; ;}
break;
case 147:
#line 528 "pars0grm.y"
{ yyval = pars_rollback_statement(); ;}
#line 524 "pars0grm.y"
{ yyval = pars_create_index(yyvsp[-8], yyvsp[-7], yyvsp[-5], yyvsp[-3], yyvsp[-1]); ;}
break;
case 148:
#line 532 "pars0grm.y"
{ yyval = &pars_int_token; ;}
#line 529 "pars0grm.y"
{ yyval = pars_commit_statement(); ;}
break;
case 149:
#line 533 "pars0grm.y"
{ yyval = &pars_int_token; ;}
#line 534 "pars0grm.y"
{ yyval = pars_rollback_statement(); ;}
break;
case 150:
#line 534 "pars0grm.y"
{ yyval = &pars_char_token; ;}
#line 538 "pars0grm.y"
{ yyval = &pars_int_token; ;}
break;
case 151:
#line 535 "pars0grm.y"
{ yyval = &pars_binary_token; ;}
#line 539 "pars0grm.y"
{ yyval = &pars_int_token; ;}
break;
case 152:
#line 536 "pars0grm.y"
{ yyval = &pars_blob_token; ;}
#line 540 "pars0grm.y"
{ yyval = &pars_char_token; ;}
break;
case 153:
#line 541 "pars0grm.y"
{ yyval = &pars_binary_token; ;}
break;
case 154:
#line 542 "pars0grm.y"
{ yyval = &pars_blob_token; ;}
break;
case 155:
#line 547 "pars0grm.y"
{ yyval = pars_parameter_declaration(yyvsp[-2],
PARS_INPUT, yyvsp[0]); ;}
break;
case 154:
#line 544 "pars0grm.y"
case 156:
#line 550 "pars0grm.y"
{ yyval = pars_parameter_declaration(yyvsp[-2],
PARS_OUTPUT, yyvsp[0]); ;}
break;
case 155:
#line 549 "pars0grm.y"
case 157:
#line 555 "pars0grm.y"
{ yyval = NULL; ;}
break;
case 156:
#line 550 "pars0grm.y"
case 158:
#line 556 "pars0grm.y"
{ yyval = que_node_list_add_last(NULL, yyvsp[0]); ;}
break;
case 157:
#line 552 "pars0grm.y"
case 159:
#line 558 "pars0grm.y"
{ yyval = que_node_list_add_last(yyvsp[-2], yyvsp[0]); ;}
break;
case 158:
#line 557 "pars0grm.y"
case 160:
#line 563 "pars0grm.y"
{ yyval = pars_variable_declaration(yyvsp[-2], yyvsp[-1]); ;}
break;
case 162:
#line 569 "pars0grm.y"
case 164:
#line 575 "pars0grm.y"
{ yyval = pars_cursor_declaration(yyvsp[-3], yyvsp[-1]); ;}
break;
case 166:
#line 585 "pars0grm.y"
case 168:
#line 591 "pars0grm.y"
{ yyval = pars_procedure_definition(yyvsp[-9], yyvsp[-7],
yyvsp[-1]); ;}
break;
......@@ -2286,7 +2281,7 @@ yyparse ()
}
/* Line 1010 of yacc.c. */
#line 2290 "pars0grm.tab.c"
#line 2285 "pars0grm.tab.c"
yyvsp -= yylen;
yyssp -= yylen;
......@@ -2511,6 +2506,6 @@ yyparse ()
}
#line 589 "pars0grm.y"
#line 595 "pars0grm.y"
......@@ -115,7 +115,8 @@
PARS_ROLLBACK_TOKEN = 341,
PARS_WORK_TOKEN = 342,
PARS_UNSIGNED_TOKEN = 343,
NEG = 344
PARS_EXIT_TOKEN = 344,
NEG = 345
};
#endif
#define PARS_INT_LIT 258
......@@ -204,7 +205,8 @@
#define PARS_ROLLBACK_TOKEN 341
#define PARS_WORK_TOKEN 342
#define PARS_UNSIGNED_TOKEN 343
#define NEG 344
#define PARS_EXIT_TOKEN 344
#define NEG 345
......
......@@ -116,6 +116,7 @@ yylex(void);
%token PARS_ROLLBACK_TOKEN
%token PARS_WORK_TOKEN
%token PARS_UNSIGNED_TOKEN
%token PARS_EXIT_TOKEN
%left PARS_AND_TOKEN PARS_OR_TOKEN
%left PARS_NOT_TOKEN
......@@ -134,6 +135,7 @@ statement:
| predefined_procedure_call ';'
| while_statement ';'
| for_statement ';'
| exit_statement ';'
| if_statement ';'
| return_statement ';'
| assignment_statement ';'
......@@ -429,6 +431,10 @@ for_statement:
{ $$ = pars_for_statement($2, $4, $6, $8); }
;
exit_statement:
PARS_EXIT_TOKEN { $$ = pars_exit_statement(); }
;
return_statement:
PARS_RETURN_TOKEN { $$ = pars_return_statement(); }
;
......
......@@ -466,6 +466,10 @@ In the state 'quoted', only two actions are possible (defined below). */
return(PARS_UNSIGNED_TOKEN);
}
"EXIT" {
return(PARS_EXIT_TOKEN);
}
{ID} {
yylval = sym_tab_add_id(pars_sym_tab_global,
(byte*)yytext,
......
......@@ -1352,6 +1352,22 @@ pars_for_statement(
return(node);
}
/*************************************************************************
Parses an exit statement. */
exit_node_t*
pars_exit_statement(void)
/*=====================*/
/* out: exit statement node */
{
exit_node_t* node;
node = mem_heap_alloc(pars_sym_tab_global->heap, sizeof(exit_node_t));
node->common.type = QUE_NODE_EXIT;
return(node);
}
/*************************************************************************
Parses a return-statement. */
......
......@@ -36,6 +36,50 @@ ibool que_trace_on = FALSE;
ibool que_always_false = FALSE;
/* Short introduction to query graphs
==================================
A query graph consists of nodes linked to each other in various ways. The
execution starts at que_run_threads() which takes a que_thr_t parameter.
que_thr_t contains two fields that control query graph execution: run_node
and prev_node. run_node is the next node to execute and prev_node is the
last node executed.
Each node has a pointer to a 'next' statement, i.e., its brother, and a
pointer to its parent node. The next pointer is NULL in the last statement
of a block.
Loop nodes contain a link to the first statement of the enclosed statement
list. While the loop runs, que_thr_step() checks if execution to the loop
node came from its parent or from one of the statement nodes in the loop. If
it came from the parent of the loop node it starts executing the first
statement node in the loop. If it came from one of the statement nodes in
the loop, then it checks if the statement node has another statement node
following it, and runs it if so.
To signify loop ending, the loop statements (see e.g. while_step()) set
que_thr_t->run_node to the loop node's parent node. This is noticed on the
next call of que_thr_step() and execution proceeds to the node pointed to by
the loop node's 'next' pointer.
For example, the code:
X := 1;
WHILE X < 5 LOOP
X := X + 1;
X := X + 1;
X := 5
will result in the following node hierarchy, with the X-axis indicating
'next' links and the Y-axis indicating parent/child links:
A - W - A
|
|
A - A
A = assign_node_t, W = while_node_t. */
/* How a stored procedure containing COMMIT or ROLLBACK commands
is executed?
......@@ -583,6 +627,7 @@ que_graph_free_recursive(
break;
case QUE_NODE_ASSIGNMENT:
case QUE_NODE_EXIT:
case QUE_NODE_RETURN:
case QUE_NODE_COMMIT:
case QUE_NODE_ROLLBACK:
......@@ -1040,6 +1085,37 @@ que_thr_stop_for_mysql_no_error(
trx->n_active_thrs--;
}
/********************************************************************
Get the first containing loop node (e.g. while_node_t or for_node_t) for the
given node, or NULL if the node is not within a loop. */
que_node_t*
que_node_get_containing_loop_node(
/*==============================*/
/* out: containing loop node, or NULL. */
que_node_t* node) /* in: node */
{
ut_ad(node);
for (;;) {
ulint type;
node = que_node_get_parent(node);
if (!node) {
break;
}
type = que_node_get_type(node);
if ((type == QUE_NODE_FOR) || (type == QUE_NODE_WHILE)) {
break;
}
}
return(node);
}
/**************************************************************************
Prints info of an SQL query graph node. */
......@@ -1093,6 +1169,8 @@ que_node_print_info(
str = "FOR LOOP";
} else if (type == QUE_NODE_RETURN) {
str = "RETURN";
} else if (type == QUE_NODE_EXIT) {
str = "EXIT";
} else {
str = "UNKNOWN NODE TYPE";
}
......@@ -1120,8 +1198,8 @@ que_thr_step(
thr->resource++;
type = que_node_get_type(thr->run_node);
node = thr->run_node;
type = que_node_get_type(node);
old_thr = thr;
......@@ -1160,6 +1238,8 @@ que_thr_step(
proc_step(thr);
} else if (type == QUE_NODE_WHILE) {
while_step(thr);
} else {
ut_error;
}
} else if (type == QUE_NODE_ASSIGNMENT) {
assign_step(thr);
......@@ -1192,6 +1272,8 @@ que_thr_step(
thr = row_purge_step(thr);
} else if (type == QUE_NODE_RETURN) {
thr = return_step(thr);
} else if (type == QUE_NODE_EXIT) {
thr = exit_step(thr);
} else if (type == QUE_NODE_ROLLBACK) {
thr = trx_rollback_step(thr);
} else if (type == QUE_NODE_CREATE_TABLE) {
......@@ -1204,7 +1286,11 @@ que_thr_step(
ut_error;
}
old_thr->prev_node = node;
if (type == QUE_NODE_EXIT) {
old_thr->prev_node = que_node_get_containing_loop_node(node);
} else {
old_thr->prev_node = node;
}
return(thr);
}
......
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