2 #line 2 "plugin/innobase/pars/pars0lex.c"
4 #line 4 "plugin/innobase/pars/pars0lex.c"
6 #define YY_INT_ALIGNED short int
11 #define YY_FLEX_MAJOR_VERSION 2
12 #define YY_FLEX_MINOR_VERSION 5
13 #define YY_FLEX_SUBMINOR_VERSION 35
14 #if YY_FLEX_SUBMINOR_VERSION > 0
35 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
40 #ifndef __STDC_LIMIT_MACROS
41 #define __STDC_LIMIT_MACROS 1
45 typedef int8_t flex_int8_t;
46 typedef uint8_t flex_uint8_t;
47 typedef int16_t flex_int16_t;
48 typedef uint16_t flex_uint16_t;
49 typedef int32_t flex_int32_t;
50 typedef uint32_t flex_uint32_t;
52 typedef signed char flex_int8_t;
53 typedef short int flex_int16_t;
54 typedef int flex_int32_t;
55 typedef unsigned char flex_uint8_t;
56 typedef unsigned short int flex_uint16_t;
57 typedef unsigned int flex_uint32_t;
61 #define INT8_MIN (-128)
64 #define INT16_MIN (-32767-1)
67 #define INT32_MIN (-2147483647-1)
70 #define INT8_MAX (127)
73 #define INT16_MAX (32767)
76 #define INT32_MAX (2147483647)
79 #define UINT8_MAX (255U)
82 #define UINT16_MAX (65535U)
85 #define UINT32_MAX (4294967295U)
100 #if defined (__STDC__)
108 #define yyconst const
121 #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
127 #define BEGIN (yy_start) = 1 + 2 *
133 #define YY_START (((yy_start) - 1) / 2)
134 #define YYSTATE YY_START
137 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
140 #define YY_NEW_FILE yyrestart(yyin )
142 #define YY_END_OF_BUFFER_CHAR 0
151 #define YY_BUF_SIZE 32768
153 #define YY_BUF_SIZE 16384
159 #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
161 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
162 #define YY_TYPEDEF_YY_BUFFER_STATE
168 static FILE *yyin, *yyout;
170 #define EOB_ACT_CONTINUE_SCAN 0
171 #define EOB_ACT_END_OF_FILE 1
172 #define EOB_ACT_LAST_MATCH 2
174 #define YY_LESS_LINENO(n)
181 int yyless_macro_arg = (n); \
182 YY_LESS_LINENO(yyless_macro_arg);\
183 *yy_cp = (yy_hold_char); \
184 YY_RESTORE_YY_MORE_OFFSET \
185 (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
186 YY_DO_BEFORE_ACTION; \
190 #define unput(c) yyunput( c, (yytext_ptr) )
192 #ifndef YY_TYPEDEF_YY_SIZE_T
193 #define YY_TYPEDEF_YY_SIZE_T
194 typedef size_t yy_size_t;
197 #ifndef YY_STRUCT_YY_BUFFER_STATE
198 #define YY_STRUCT_YY_BUFFER_STATE
209 yy_size_t yy_buf_size;
220 int yy_is_our_buffer;
227 int yy_is_interactive;
243 int yy_buffer_status;
245 #define YY_BUFFER_NEW 0
246 #define YY_BUFFER_NORMAL 1
257 #define YY_BUFFER_EOF_PENDING 2
263 static size_t yy_buffer_stack_top = 0;
264 static size_t yy_buffer_stack_max = 0;
265 static YY_BUFFER_STATE * yy_buffer_stack = 0;
273 #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
274 ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
280 #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
283 static char yy_hold_char;
284 static int yy_n_chars;
288 static char *yy_c_buf_p = (
char *) 0;
289 static int yy_init = 0;
290 static int yy_start = 0;
295 static int yy_did_buffer_switch_on_eof;
297 static void yyrestart (FILE *input_file );
298 __attribute__((unused)) static
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer );
299 static YY_BUFFER_STATE yy_create_buffer (FILE *file,
int size );
300 static
void yy_delete_buffer (YY_BUFFER_STATE b );
301 static
void yy_flush_buffer (YY_BUFFER_STATE b );
302 __attribute__((unused)) static
void yypush_buffer_state (YY_BUFFER_STATE new_buffer );
303 __attribute__((unused)) static
void yypop_buffer_state (
void );
305 static
void yyensure_buffer_stack (
void );
306 static
void yy_load_buffer_state (
void );
307 static
void yy_init_buffer (YY_BUFFER_STATE b,FILE *file );
309 #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER )
311 YY_BUFFER_STATE yy_scan_buffer (
char *base,yy_size_t size );
312 YY_BUFFER_STATE yy_scan_string (yyconst
char *yy_str );
313 YY_BUFFER_STATE yy_scan_bytes (yyconst
char *bytes,
int len );
315 static void *
yyalloc (yy_size_t );
316 static void *yyrealloc (
void *,yy_size_t );
317 static void yyfree (
void * );
319 #define yy_new_buffer yy_create_buffer
321 #define yy_set_interactive(is_interactive) \
323 if ( ! YY_CURRENT_BUFFER ){ \
324 yyensure_buffer_stack (); \
325 YY_CURRENT_BUFFER_LVALUE = \
326 yy_create_buffer(yyin,YY_BUF_SIZE ); \
328 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
331 #define yy_set_bol(at_bol) \
333 if ( ! YY_CURRENT_BUFFER ){\
334 yyensure_buffer_stack (); \
335 YY_CURRENT_BUFFER_LVALUE = \
336 yy_create_buffer(yyin,YY_BUF_SIZE ); \
338 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
341 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
346 #define YY_SKIP_YYWRAP
348 typedef unsigned char YY_CHAR;
350 static FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
352 typedef int yy_state_type;
356 static int yylineno = 1;
359 #define yytext_ptr yytext
361 static yy_state_type yy_get_previous_state (
void );
362 static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
363 static int yy_get_next_buffer (
void );
364 static void yy_fatal_error (yyconst
char msg[] );
369 #define YY_DO_BEFORE_ACTION \
370 (yytext_ptr) = yy_bp; \
371 yyleng = (size_t) (yy_cp - yy_bp); \
372 (yy_hold_char) = *yy_cp; \
374 (yy_c_buf_p) = yy_cp;
376 #define YY_NUM_RULES 119
377 #define YY_END_OF_BUFFER 120
382 flex_int32_t yy_verify;
385 static yyconst flex_int16_t yy_accept[399] =
387 0, 0, 114, 114, 0, 0, 0, 0, 120, 118,
388 117, 117, 8, 118, 109, 5, 98, 104, 107, 105,
389 102, 106, 118, 108, 1, 118, 103, 101, 99, 100,
390 112, 92, 92, 92, 92, 92, 92, 92, 92, 92,
391 92, 92, 92, 92, 92, 92, 92, 92, 92, 92,
392 110, 111, 114, 115, 6, 7, 9, 10, 117, 4,
393 93, 113, 2, 1, 3, 94, 95, 97, 96, 92,
394 92, 92, 92, 92, 92, 44, 92, 92, 92, 92,
395 92, 92, 92, 92, 92, 92, 92, 92, 92, 92,
396 92, 92, 28, 17, 25, 92, 92, 92, 92, 92,
398 54, 61, 92, 14, 92, 92, 92, 92, 92, 92,
399 92, 92, 92, 92, 92, 92, 92, 92, 92, 92,
400 92, 92, 114, 115, 115, 116, 6, 7, 9, 10,
401 2, 13, 45, 92, 92, 92, 92, 92, 92, 92,
402 92, 92, 92, 92, 92, 92, 92, 92, 92, 92,
403 92, 27, 92, 92, 92, 41, 92, 92, 92, 92,
404 21, 92, 92, 92, 92, 15, 92, 92, 92, 18,
405 92, 92, 92, 92, 92, 80, 92, 92, 92, 51,
406 92, 12, 92, 36, 92, 92, 92, 92, 92, 92,
407 92, 92, 92, 92, 92, 92, 92, 92, 20, 24,
409 92, 92, 92, 92, 92, 92, 92, 92, 92, 92,
410 46, 92, 92, 30, 92, 87, 92, 92, 39, 92,
411 92, 92, 92, 92, 48, 92, 89, 32, 91, 92,
412 11, 64, 92, 92, 92, 42, 92, 92, 92, 92,
413 92, 92, 92, 92, 92, 92, 29, 92, 92, 92,
414 92, 92, 92, 92, 92, 92, 85, 92, 26, 92,
415 66, 92, 92, 92, 37, 92, 92, 92, 92, 92,
416 92, 92, 31, 65, 23, 92, 57, 92, 75, 92,
417 92, 92, 43, 92, 92, 92, 92, 92, 92, 92,
418 92, 90, 92, 92, 56, 92, 92, 92, 92, 92,
420 92, 92, 40, 33, 79, 19, 92, 83, 74, 55,
421 92, 63, 92, 52, 92, 92, 92, 47, 92, 76,
422 92, 78, 92, 92, 34, 92, 92, 92, 35, 72,
423 92, 92, 92, 92, 58, 92, 50, 49, 92, 92,
424 53, 62, 92, 92, 92, 22, 92, 92, 73, 81,
425 92, 92, 77, 92, 68, 92, 92, 92, 92, 38,
426 92, 88, 67, 92, 84, 92, 92, 92, 86, 92,
427 59, 92, 16, 92, 70, 69, 92, 92, 82, 92,
428 92, 92, 92, 92, 92, 92, 92, 92, 92, 71,
429 92, 92, 92, 92, 92, 92, 60, 0
433 static yyconst flex_int32_t yy_ec[256] =
435 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
436 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
437 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
438 1, 2, 1, 4, 1, 5, 6, 1, 7, 8,
439 9, 10, 11, 12, 13, 14, 15, 16, 16, 16,
440 16, 16, 16, 16, 16, 16, 16, 17, 18, 19,
441 20, 21, 22, 1, 23, 24, 25, 26, 27, 28,
442 29, 30, 31, 32, 33, 34, 35, 36, 37, 38,
443 39, 40, 41, 42, 43, 44, 45, 46, 47, 32,
444 1, 1, 1, 1, 48, 1, 32, 32, 32, 32,
446 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
447 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
448 32, 32, 49, 1, 50, 1, 1, 1, 1, 1,
449 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
450 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
451 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
452 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
453 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
454 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
455 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
457 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
458 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
459 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
460 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
461 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
465 static yyconst flex_int32_t yy_meta[51] =
467 1, 1, 1, 2, 1, 1, 3, 1, 1, 4,
468 1, 1, 1, 1, 1, 5, 1, 1, 1, 6,
469 1, 1, 5, 5, 5, 5, 5, 5, 5, 5,
470 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
471 5, 5, 5, 5, 5, 5, 5, 5, 1, 1
474 static yyconst flex_int16_t yy_base[409] =
476 0, 0, 437, 436, 438, 437, 439, 438, 441, 448,
477 49, 51, 448, 0, 448, 448, 448, 448, 448, 448,
478 448, 448, 426, 429, 41, 418, 448, 38, 448, 417,
479 448, 20, 33, 32, 46, 40, 44, 0, 54, 52,
480 399, 48, 60, 395, 65, 67, 81, 27, 411, 75,
481 448, 448, 0, 98, 0, 426, 0, 428, 113, 0,
482 448, 448, 415, 54, 410, 448, 448, 448, 448, 0,
483 403, 68, 399, 391, 389, 0, 402, 80, 84, 397,
484 383, 96, 381, 394, 379, 393, 387, 375, 379, 375,
485 377, 377, 0, 98, 0, 376, 97, 385, 368, 375,
487 0, 0, 381, 381, 364, 94, 103, 379, 98, 65,
488 381, 369, 109, 361, 377, 373, 351, 97, 372, 363,
489 115, 356, 0, 137, 138, 448, 0, 388, 0, 390,
490 377, 0, 0, 365, 360, 367, 365, 348, 346, 345,
491 350, 359, 347, 359, 95, 347, 353, 354, 336, 336,
492 123, 0, 334, 350, 351, 0, 338, 347, 344, 122,
493 124, 341, 336, 330, 340, 338, 331, 328, 336, 0,
494 326, 336, 334, 325, 315, 309, 322, 307, 327, 0,
495 313, 0, 311, 0, 325, 316, 313, 131, 309, 316,
496 323, 302, 304, 309, 309, 301, 304, 299, 0, 0,
498 311, 295, 305, 312, 292, 291, 305, 294, 307, 287,
499 0, 297, 279, 0, 298, 0, 295, 282, 0, 281,
500 276, 281, 280, 290, 0, 276, 0, 0, 0, 280,
501 0, 0, 276, 273, 287, 0, 272, 272, 270, 286,
502 271, 283, 280, 264, 282, 277, 0, 272, 272, 258,
503 257, 270, 256, 270, 269, 268, 0, 252, 0, 246,
504 0, 265, 249, 248, 0, 262, 252, 247, 246, 258,
505 248, 247, 0, 0, 0, 251, 0, 239, 0, 253,
506 249, 235, 0, 249, 250, 233, 238, 231, 249, 231,
507 228, 0, 229, 226, 0, 231, 243, 230, 237, 227,
509 235, 220, 0, 0, 0, 212, 219, 0, 0, 0,
510 216, 0, 230, 0, 231, 218, 217, 0, 213, 0,
511 216, 0, 208, 210, 0, 209, 223, 216, 0, 0,
512 219, 222, 204, 219, 0, 215, 0, 0, 199, 213,
513 0, 0, 197, 196, 201, 0, 210, 195, 0, 0,
514 201, 197, 0, 192, 0, 204, 204, 192, 202, 0,
515 179, 0, 0, 199, 0, 183, 177, 183, 0, 174,
516 0, 193, 0, 192, 0, 0, 183, 187, 0, 174,
517 174, 180, 166, 189, 181, 180, 166, 151, 118, 0,
518 130, 136, 127, 123, 119, 111, 0, 448, 167, 173,
520 179, 152, 181, 124, 187, 193, 199, 205
523 static yyconst flex_int16_t yy_def[409] =
525 398, 1, 399, 399, 400, 400, 401, 401, 398, 398,
526 398, 398, 398, 402, 398, 398, 398, 398, 398, 398,
527 398, 398, 398, 398, 398, 403, 398, 398, 398, 398,
528 398, 404, 404, 404, 404, 404, 404, 404, 404, 404,
529 404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
530 398, 398, 405, 406, 407, 398, 408, 398, 398, 402,
531 398, 398, 398, 398, 403, 398, 398, 398, 398, 404,
532 404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
533 404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
534 404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
536 404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
537 404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
538 404, 404, 405, 406, 406, 398, 407, 398, 408, 398,
539 398, 404, 404, 404, 404, 404, 404, 404, 404, 404,
540 404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
541 404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
542 404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
543 404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
544 404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
545 404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
547 404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
548 404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
549 404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
550 404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
551 404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
552 404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
553 404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
554 404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
555 404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
556 404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
558 404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
559 404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
560 404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
561 404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
562 404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
563 404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
564 404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
565 404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
566 404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
567 404, 404, 404, 404, 404, 404, 404, 0, 398, 398,
569 398, 398, 398, 398, 398, 398, 398, 398
572 static yyconst flex_int16_t yy_nxt[499] =
574 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
575 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
576 30, 31, 32, 33, 34, 35, 36, 37, 38, 38,
577 39, 38, 38, 40, 41, 42, 43, 44, 38, 45,
578 46, 47, 48, 49, 50, 38, 38, 38, 51, 52,
579 59, 59, 59, 59, 63, 71, 64, 67, 68, 73,
580 72, 77, 118, 74, 119, 78, 75, 63, 79, 64,
581 88, 80, 82, 85, 81, 86, 83, 89, 96, 76,
582 90, 93, 84, 91, 99, 87, 92, 101, 97, 94,
583 100, 107, 133, 110, 95, 102, 111, 103, 179, 104,
585 108, 109, 105, 115, 121, 112, 180, 125, 134, 113,
586 116, 122, 126, 114, 59, 59, 139, 117, 141, 142,
587 146, 163, 140, 159, 171, 173, 143, 189, 70, 147,
588 172, 177, 183, 164, 207, 208, 148, 190, 160, 161,
589 174, 193, 178, 184, 175, 194, 398, 125, 222, 214,
590 224, 398, 126, 215, 248, 249, 60, 397, 396, 395,
591 225, 394, 393, 223, 392, 391, 250, 53, 53, 53,
592 53, 53, 53, 55, 55, 55, 55, 55, 55, 57,
593 57, 57, 57, 57, 57, 65, 65, 123, 123, 123,
594 390, 123, 123, 124, 124, 124, 124, 124, 124, 127,
596 127, 389, 127, 127, 127, 129, 388, 129, 129, 129,
597 129, 387, 386, 385, 384, 383, 382, 381, 380, 379,
598 378, 377, 376, 375, 374, 373, 372, 371, 370, 369,
599 368, 367, 366, 365, 364, 363, 362, 361, 360, 359,
600 358, 357, 356, 355, 354, 353, 352, 351, 350, 349,
601 348, 347, 346, 345, 344, 343, 342, 341, 340, 339,
602 338, 337, 336, 335, 334, 333, 332, 331, 330, 329,
603 328, 327, 326, 325, 324, 323, 322, 321, 320, 319,
604 318, 317, 316, 315, 314, 313, 312, 311, 310, 309,
605 308, 307, 306, 305, 304, 303, 302, 301, 300, 299,
607 298, 297, 296, 295, 294, 293, 292, 291, 290, 289,
608 288, 287, 286, 285, 284, 283, 282, 281, 280, 279,
609 278, 277, 276, 275, 274, 273, 272, 271, 270, 269,
610 268, 267, 266, 265, 264, 263, 262, 261, 260, 259,
611 258, 257, 256, 255, 254, 253, 252, 251, 247, 246,
612 245, 244, 243, 242, 241, 240, 239, 238, 237, 236,
613 235, 234, 233, 232, 231, 230, 229, 228, 227, 226,
614 221, 220, 219, 218, 217, 216, 213, 212, 211, 210,
615 209, 206, 205, 204, 203, 202, 201, 200, 199, 198,
616 197, 196, 131, 130, 128, 195, 192, 191, 188, 187,
618 186, 185, 182, 181, 176, 170, 169, 168, 167, 166,
619 165, 162, 158, 157, 156, 155, 154, 153, 152, 151,
620 150, 149, 145, 144, 138, 137, 136, 135, 132, 398,
621 131, 130, 128, 120, 106, 98, 69, 66, 62, 61,
622 398, 58, 58, 56, 56, 54, 54, 9, 398, 398,
623 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
624 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
625 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
626 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
627 398, 398, 398, 398, 398, 398, 398, 398
631 static yyconst flex_int16_t yy_chk[499] =
633 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
634 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
635 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
636 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
637 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
638 11, 11, 12, 12, 25, 32, 25, 28, 28, 33,
639 32, 34, 48, 33, 48, 34, 33, 64, 34, 64,
640 37, 34, 35, 36, 34, 36, 35, 37, 40, 33,
641 37, 39, 35, 37, 42, 36, 37, 43, 40, 39,
642 42, 45, 72, 46, 39, 43, 46, 43, 110, 43,
644 45, 45, 43, 47, 50, 46, 110, 54, 72, 46,
645 47, 50, 54, 46, 59, 59, 78, 47, 79, 79,
646 82, 97, 78, 94, 106, 107, 79, 118, 404, 82,
647 106, 109, 113, 97, 145, 145, 82, 118, 94, 94,
648 107, 121, 109, 113, 107, 121, 124, 125, 160, 151,
649 161, 124, 125, 151, 188, 188, 402, 396, 395, 394,
650 161, 393, 392, 160, 391, 389, 188, 399, 399, 399,
651 399, 399, 399, 400, 400, 400, 400, 400, 400, 401,
652 401, 401, 401, 401, 401, 403, 403, 405, 405, 405,
653 388, 405, 405, 406, 406, 406, 406, 406, 406, 407,
655 407, 387, 407, 407, 407, 408, 386, 408, 408, 408,
656 408, 385, 384, 383, 382, 381, 380, 378, 377, 374,
657 372, 370, 368, 367, 366, 364, 361, 359, 358, 357,
658 356, 354, 352, 351, 348, 347, 345, 344, 343, 340,
659 339, 336, 334, 333, 332, 331, 328, 327, 326, 324,
660 323, 321, 319, 317, 316, 315, 313, 311, 307, 306,
661 302, 301, 300, 299, 298, 297, 296, 294, 293, 291,
662 290, 289, 288, 287, 286, 285, 284, 282, 281, 280,
663 278, 276, 272, 271, 270, 269, 268, 267, 266, 264,
664 263, 262, 260, 258, 256, 255, 254, 253, 252, 251,
666 250, 249, 248, 246, 245, 244, 243, 242, 241, 240,
667 239, 238, 237, 235, 234, 233, 230, 226, 224, 223,
668 222, 221, 220, 218, 217, 215, 213, 212, 210, 209,
669 208, 207, 206, 205, 204, 203, 202, 201, 198, 197,
670 196, 195, 194, 193, 192, 191, 190, 189, 187, 186,
671 185, 183, 181, 179, 178, 177, 176, 175, 174, 173,
672 172, 171, 169, 168, 167, 166, 165, 164, 163, 162,
673 159, 158, 157, 155, 154, 153, 150, 149, 148, 147,
674 146, 144, 143, 142, 141, 140, 139, 138, 137, 136,
675 135, 134, 131, 130, 128, 122, 120, 119, 117, 116,
677 115, 114, 112, 111, 108, 105, 104, 103, 100, 99,
678 98, 96, 92, 91, 90, 89, 88, 87, 86, 85,
679 84, 83, 81, 80, 77, 75, 74, 73, 71, 65,
680 63, 58, 56, 49, 44, 41, 30, 26, 24, 23,
681 9, 8, 7, 6, 5, 4, 3, 398, 398, 398,
682 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
683 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
684 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
685 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
686 398, 398, 398, 398, 398, 398, 398, 398
690 static yy_state_type yy_last_accepting_state;
691 static char *yy_last_accepting_cpos;
693 static int yy_flex_debug;
694 static int yy_flex_debug = 0;
699 #define REJECT reject_used_but_not_detected
700 #define yymore() yymore_used_but_not_detected
701 #define YY_MORE_ADJ 0
702 #define YY_RESTORE_YY_MORE_OFFSET
704 #line 1 "plugin/innobase/pars/pars0lex.l"
727 #define YY_NO_INPUT 1
728 #line 39 "plugin/innobase/pars/pars0lex.l"
729 #define YYSTYPE que_node_t*
733 #include "pars0grm.hh"
738 #define malloc(A) ut_malloc(A)
739 #define free(A) ut_free(A)
740 #define realloc(P, A) ut_realloc(P, A)
741 #define exit(A) ut_error
743 #define YY_INPUT(buf, result, max_size) pars_get_lex_chars(buf, &result, max_size)
746 static ulint stringbuf_len_alloc = 0;
747 static ulint stringbuf_len = 0;
748 static char* stringbuf;
757 if (stringbuf == NULL) {
758 stringbuf = malloc(1);
759 stringbuf_len_alloc = 1;
762 if (stringbuf_len + len > stringbuf_len_alloc) {
763 while (stringbuf_len + len > stringbuf_len_alloc) {
764 stringbuf_len_alloc <<= 1;
766 stringbuf = realloc(stringbuf, stringbuf_len_alloc);
769 memcpy(stringbuf + stringbuf_len, str, len);
770 stringbuf_len += len;
776 #line 776 "plugin/innobase/pars/pars0lex.c"
783 #ifndef YY_NO_UNISTD_H
791 #ifndef YY_EXTRA_TYPE
792 #define YY_EXTRA_TYPE void *
795 static int yy_init_globals (
void );
800 __attribute__((unused)) static
int yylex_destroy (
void );
802 __attribute__((unused)) static
int yyget_debug (
void );
804 __attribute__((unused)) static
void yyset_debug (
int debug_flag );
806 YY_EXTRA_TYPE yyget_extra (
void );
808 __attribute__((unused)) static
void yyset_extra (YY_EXTRA_TYPE user_defined );
810 __attribute__((unused)) static FILE *yyget_in (
void );
812 __attribute__((unused)) static
void yyset_in (FILE * in_str );
814 __attribute__((unused)) static FILE *yyget_out (
void );
816 __attribute__((unused)) static
void yyset_out (FILE * out_str );
818 __attribute__((unused)) static
int yyget_leng (
void );
820 __attribute__((unused)) static
char *yyget_text (
void );
822 __attribute__((unused)) static
int yyget_lineno (
void );
824 __attribute__((unused)) static
void yyset_lineno (
int line_number );
830 #ifndef YY_SKIP_YYWRAP
832 extern "C" int yywrap (
void );
834 extern int yywrap (
void );
839 static void yy_flex_strncpy (
char *,yyconst
char *,
int );
842 #ifdef YY_NEED_STRLEN
843 static int yy_flex_strlen (yyconst
char * );
849 static int yyinput (
void );
851 static int input (
void );
857 #ifndef YY_READ_BUF_SIZE
860 #define YY_READ_BUF_SIZE 16384
862 #define YY_READ_BUF_SIZE 8192
871 #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
878 #define YY_INPUT(buf,result,max_size) \
879 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
883 for ( n = 0; n < max_size && \
884 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
887 buf[n++] = (char) c; \
888 if ( c == EOF && ferror( yyin ) ) \
889 YY_FATAL_ERROR( "input in flex scanner failed" ); \
895 while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
897 if( errno != EINTR) \
899 YY_FATAL_ERROR( "input in flex scanner failed" ); \
915 #define yyterminate() return YY_NULL
919 #ifndef YY_START_STACK_INCR
920 #define YY_START_STACK_INCR 25
924 #ifndef YY_FATAL_ERROR
925 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
934 #define YY_DECL_IS_OURS 1
936 UNIV_INTERN
int yylex (
void);
938 #define YY_DECL UNIV_INTERN int yylex (void)
944 #ifndef YY_USER_ACTION
945 #define YY_USER_ACTION
950 #define YY_BREAK break;
953 #define YY_RULE_SETUP \
960 register yy_state_type yy_current_state;
961 register char *yy_cp, *yy_bp;
964 #line 93 "plugin/innobase/pars/pars0lex.l"
967 #line 967 "plugin/innobase/pars/pars0lex.c"
986 if ( ! YY_CURRENT_BUFFER ) {
987 yyensure_buffer_stack ();
988 YY_CURRENT_BUFFER_LVALUE =
989 yy_create_buffer(yyin,YY_BUF_SIZE );
992 yy_load_buffer_state( );
997 yy_cp = (yy_c_buf_p);
1000 *yy_cp = (yy_hold_char);
1007 yy_current_state = (yy_start);
1011 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
1012 if ( yy_accept[yy_current_state] )
1014 (yy_last_accepting_state) = yy_current_state;
1015 (yy_last_accepting_cpos) = yy_cp;
1017 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1019 yy_current_state = (int) yy_def[yy_current_state];
1020 if ( yy_current_state >= 399 )
1021 yy_c = yy_meta[(
unsigned int) yy_c];
1023 yy_current_state = yy_nxt[yy_base[yy_current_state] + (
unsigned int) yy_c];
1026 while ( yy_current_state != 398 );
1027 yy_cp = (yy_last_accepting_cpos);
1028 yy_current_state = (yy_last_accepting_state);
1031 yy_act = yy_accept[yy_current_state];
1033 YY_DO_BEFORE_ACTION;
1041 *yy_cp = (yy_hold_char);
1042 yy_cp = (yy_last_accepting_cpos);
1043 yy_current_state = (yy_last_accepting_state);
1044 goto yy_find_action;
1048 #line 95 "plugin/innobase/pars/pars0lex.l"
1052 return(PARS_INT_LIT);
1057 #line 101 "plugin/innobase/pars/pars0lex.l"
1061 return(PARS_FLOAT_LIT);
1066 #line 107 "plugin/innobase/pars/pars0lex.l"
1078 #line 116 "plugin/innobase/pars/pars0lex.l"
1083 return(PARS_ID_TOKEN);
1088 #line 123 "plugin/innobase/pars/pars0lex.l"
1102 #line 132 "plugin/innobase/pars/pars0lex.l"
1106 string_append(yytext, yyleng);
1111 #line 137 "plugin/innobase/pars/pars0lex.l"
1119 string_append(yytext, yyleng / 2);
1130 pars_sym_tab_global,
1131 (byte*) stringbuf, stringbuf_len);
1132 return(PARS_STR_LIT);
1138 #line 161 "plugin/innobase/pars/pars0lex.l"
1152 #line 170 "plugin/innobase/pars/pars0lex.l"
1156 string_append(yytext, yyleng);
1161 #line 175 "plugin/innobase/pars/pars0lex.l"
1169 string_append(yytext, yyleng / 2);
1180 pars_sym_tab_global,
1181 (byte*) stringbuf, stringbuf_len);
1183 return(PARS_ID_TOKEN);
1189 #line 200 "plugin/innobase/pars/pars0lex.l"
1193 return(PARS_NULL_LIT);
1198 #line 206 "plugin/innobase/pars/pars0lex.l"
1202 (byte*) yytext, yyleng);
1203 return(PARS_SQL_TOKEN);
1208 #line 213 "plugin/innobase/pars/pars0lex.l"
1210 return(PARS_AND_TOKEN);
1215 #line 217 "plugin/innobase/pars/pars0lex.l"
1217 return(PARS_OR_TOKEN);
1222 #line 221 "plugin/innobase/pars/pars0lex.l"
1224 return(PARS_NOT_TOKEN);
1229 #line 225 "plugin/innobase/pars/pars0lex.l"
1231 return(PARS_PROCEDURE_TOKEN);
1236 #line 229 "plugin/innobase/pars/pars0lex.l"
1238 return(PARS_IN_TOKEN);
1243 #line 233 "plugin/innobase/pars/pars0lex.l"
1245 return(PARS_OUT_TOKEN);
1250 #line 237 "plugin/innobase/pars/pars0lex.l"
1252 return(PARS_BINARY_TOKEN);
1257 #line 241 "plugin/innobase/pars/pars0lex.l"
1259 return(PARS_BLOB_TOKEN);
1264 #line 245 "plugin/innobase/pars/pars0lex.l"
1266 return(PARS_INT_TOKEN);
1271 #line 249 "plugin/innobase/pars/pars0lex.l"
1273 return(PARS_INT_TOKEN);
1278 #line 253 "plugin/innobase/pars/pars0lex.l"
1280 return(PARS_FLOAT_TOKEN);
1285 #line 257 "plugin/innobase/pars/pars0lex.l"
1287 return(PARS_CHAR_TOKEN);
1292 #line 261 "plugin/innobase/pars/pars0lex.l"
1294 return(PARS_IS_TOKEN);
1299 #line 265 "plugin/innobase/pars/pars0lex.l"
1301 return(PARS_BEGIN_TOKEN);
1306 #line 269 "plugin/innobase/pars/pars0lex.l"
1308 return(PARS_END_TOKEN);
1313 #line 273 "plugin/innobase/pars/pars0lex.l"
1315 return(PARS_IF_TOKEN);
1320 #line 277 "plugin/innobase/pars/pars0lex.l"
1322 return(PARS_THEN_TOKEN);
1327 #line 281 "plugin/innobase/pars/pars0lex.l"
1329 return(PARS_ELSE_TOKEN);
1334 #line 285 "plugin/innobase/pars/pars0lex.l"
1336 return(PARS_ELSIF_TOKEN);
1341 #line 289 "plugin/innobase/pars/pars0lex.l"
1343 return(PARS_LOOP_TOKEN);
1348 #line 293 "plugin/innobase/pars/pars0lex.l"
1350 return(PARS_WHILE_TOKEN);
1355 #line 297 "plugin/innobase/pars/pars0lex.l"
1357 return(PARS_RETURN_TOKEN);
1362 #line 301 "plugin/innobase/pars/pars0lex.l"
1364 return(PARS_SELECT_TOKEN);
1369 #line 305 "plugin/innobase/pars/pars0lex.l"
1371 return(PARS_SUM_TOKEN);
1376 #line 309 "plugin/innobase/pars/pars0lex.l"
1378 return(PARS_COUNT_TOKEN);
1383 #line 313 "plugin/innobase/pars/pars0lex.l"
1385 return(PARS_DISTINCT_TOKEN);
1390 #line 317 "plugin/innobase/pars/pars0lex.l"
1392 return(PARS_FROM_TOKEN);
1397 #line 321 "plugin/innobase/pars/pars0lex.l"
1399 return(PARS_WHERE_TOKEN);
1404 #line 325 "plugin/innobase/pars/pars0lex.l"
1406 return(PARS_FOR_TOKEN);
1411 #line 329 "plugin/innobase/pars/pars0lex.l"
1413 return(PARS_READ_TOKEN);
1418 #line 333 "plugin/innobase/pars/pars0lex.l"
1420 return(PARS_ORDER_TOKEN);
1425 #line 337 "plugin/innobase/pars/pars0lex.l"
1427 return(PARS_BY_TOKEN);
1432 #line 341 "plugin/innobase/pars/pars0lex.l"
1434 return(PARS_ASC_TOKEN);
1439 #line 345 "plugin/innobase/pars/pars0lex.l"
1441 return(PARS_DESC_TOKEN);
1446 #line 349 "plugin/innobase/pars/pars0lex.l"
1448 return(PARS_INSERT_TOKEN);
1453 #line 353 "plugin/innobase/pars/pars0lex.l"
1455 return(PARS_INTO_TOKEN);
1460 #line 357 "plugin/innobase/pars/pars0lex.l"
1462 return(PARS_VALUES_TOKEN);
1467 #line 361 "plugin/innobase/pars/pars0lex.l"
1469 return(PARS_UPDATE_TOKEN);
1474 #line 365 "plugin/innobase/pars/pars0lex.l"
1476 return(PARS_SET_TOKEN);
1481 #line 369 "plugin/innobase/pars/pars0lex.l"
1483 return(PARS_DELETE_TOKEN);
1488 #line 373 "plugin/innobase/pars/pars0lex.l"
1490 return(PARS_CURRENT_TOKEN);
1495 #line 377 "plugin/innobase/pars/pars0lex.l"
1497 return(PARS_OF_TOKEN);
1502 #line 381 "plugin/innobase/pars/pars0lex.l"
1504 return(PARS_CREATE_TOKEN);
1509 #line 385 "plugin/innobase/pars/pars0lex.l"
1511 return(PARS_TABLE_TOKEN);
1516 #line 389 "plugin/innobase/pars/pars0lex.l"
1518 return(PARS_INDEX_TOKEN);
1523 #line 393 "plugin/innobase/pars/pars0lex.l"
1525 return(PARS_UNIQUE_TOKEN);
1530 #line 397 "plugin/innobase/pars/pars0lex.l"
1532 return(PARS_CLUSTERED_TOKEN);
1537 #line 401 "plugin/innobase/pars/pars0lex.l"
1539 return(PARS_DOES_NOT_FIT_IN_MEM_TOKEN);
1544 #line 405 "plugin/innobase/pars/pars0lex.l"
1546 return(PARS_ON_TOKEN);
1551 #line 409 "plugin/innobase/pars/pars0lex.l"
1553 return(PARS_DECLARE_TOKEN);
1558 #line 413 "plugin/innobase/pars/pars0lex.l"
1560 return(PARS_CURSOR_TOKEN);
1565 #line 417 "plugin/innobase/pars/pars0lex.l"
1567 return(PARS_OPEN_TOKEN);
1572 #line 421 "plugin/innobase/pars/pars0lex.l"
1574 return(PARS_FETCH_TOKEN);
1579 #line 425 "plugin/innobase/pars/pars0lex.l"
1581 return(PARS_CLOSE_TOKEN);
1586 #line 429 "plugin/innobase/pars/pars0lex.l"
1588 return(PARS_NOTFOUND_TOKEN);
1593 #line 433 "plugin/innobase/pars/pars0lex.l"
1595 return(PARS_TO_CHAR_TOKEN);
1600 #line 437 "plugin/innobase/pars/pars0lex.l"
1602 return(PARS_TO_NUMBER_TOKEN);
1607 #line 441 "plugin/innobase/pars/pars0lex.l"
1609 return(PARS_TO_BINARY_TOKEN);
1614 #line 445 "plugin/innobase/pars/pars0lex.l"
1616 return(PARS_BINARY_TO_NUMBER_TOKEN);
1621 #line 449 "plugin/innobase/pars/pars0lex.l"
1623 return(PARS_SUBSTR_TOKEN);
1628 #line 453 "plugin/innobase/pars/pars0lex.l"
1630 return(PARS_REPLSTR_TOKEN);
1635 #line 457 "plugin/innobase/pars/pars0lex.l"
1637 return(PARS_CONCAT_TOKEN);
1642 #line 461 "plugin/innobase/pars/pars0lex.l"
1644 return(PARS_INSTR_TOKEN);
1649 #line 465 "plugin/innobase/pars/pars0lex.l"
1651 return(PARS_LENGTH_TOKEN);
1656 #line 469 "plugin/innobase/pars/pars0lex.l"
1658 return(PARS_SYSDATE_TOKEN);
1663 #line 473 "plugin/innobase/pars/pars0lex.l"
1665 return(PARS_PRINTF_TOKEN);
1670 #line 477 "plugin/innobase/pars/pars0lex.l"
1672 return(PARS_ASSERT_TOKEN);
1677 #line 481 "plugin/innobase/pars/pars0lex.l"
1679 return(PARS_RND_TOKEN);
1684 #line 485 "plugin/innobase/pars/pars0lex.l"
1686 return(PARS_RND_STR_TOKEN);
1691 #line 489 "plugin/innobase/pars/pars0lex.l"
1693 return(PARS_ROW_PRINTF_TOKEN);
1698 #line 493 "plugin/innobase/pars/pars0lex.l"
1700 return(PARS_COMMIT_TOKEN);
1705 #line 497 "plugin/innobase/pars/pars0lex.l"
1707 return(PARS_ROLLBACK_TOKEN);
1712 #line 501 "plugin/innobase/pars/pars0lex.l"
1714 return(PARS_WORK_TOKEN);
1719 #line 505 "plugin/innobase/pars/pars0lex.l"
1721 return(PARS_UNSIGNED_TOKEN);
1726 #line 509 "plugin/innobase/pars/pars0lex.l"
1728 return(PARS_EXIT_TOKEN);
1733 #line 513 "plugin/innobase/pars/pars0lex.l"
1735 return(PARS_FUNCTION_TOKEN);
1740 #line 517 "plugin/innobase/pars/pars0lex.l"
1742 return(PARS_LOCK_TOKEN);
1747 #line 521 "plugin/innobase/pars/pars0lex.l"
1749 return(PARS_SHARE_TOKEN);
1754 #line 525 "plugin/innobase/pars/pars0lex.l"
1756 return(PARS_MODE_TOKEN);
1761 #line 529 "plugin/innobase/pars/pars0lex.l"
1766 return(PARS_ID_TOKEN);
1771 #line 536 "plugin/innobase/pars/pars0lex.l"
1773 return(PARS_DDOT_TOKEN);
1778 #line 540 "plugin/innobase/pars/pars0lex.l"
1780 return(PARS_ASSIGN_TOKEN);
1785 #line 544 "plugin/innobase/pars/pars0lex.l"
1787 return(PARS_LE_TOKEN);
1792 #line 548 "plugin/innobase/pars/pars0lex.l"
1794 return(PARS_GE_TOKEN);
1799 #line 552 "plugin/innobase/pars/pars0lex.l"
1801 return(PARS_NE_TOKEN);
1806 #line 556 "plugin/innobase/pars/pars0lex.l"
1809 return((
int)(*yytext));
1814 #line 561 "plugin/innobase/pars/pars0lex.l"
1817 return((
int)(*yytext));
1822 #line 566 "plugin/innobase/pars/pars0lex.l"
1825 return((
int)(*yytext));
1830 #line 571 "plugin/innobase/pars/pars0lex.l"
1833 return((
int)(*yytext));
1838 #line 576 "plugin/innobase/pars/pars0lex.l"
1841 return((
int)(*yytext));
1846 #line 581 "plugin/innobase/pars/pars0lex.l"
1849 return((
int)(*yytext));
1854 #line 586 "plugin/innobase/pars/pars0lex.l"
1857 return((
int)(*yytext));
1862 #line 591 "plugin/innobase/pars/pars0lex.l"
1865 return((
int)(*yytext));
1870 #line 596 "plugin/innobase/pars/pars0lex.l"
1873 return((
int)(*yytext));
1878 #line 601 "plugin/innobase/pars/pars0lex.l"
1881 return((
int)(*yytext));
1886 #line 606 "plugin/innobase/pars/pars0lex.l"
1889 return((
int)(*yytext));
1894 #line 611 "plugin/innobase/pars/pars0lex.l"
1897 return((
int)(*yytext));
1902 #line 616 "plugin/innobase/pars/pars0lex.l"
1905 return((
int)(*yytext));
1910 #line 621 "plugin/innobase/pars/pars0lex.l"
1913 return((
int)(*yytext));
1918 #line 626 "plugin/innobase/pars/pars0lex.l"
1921 return((
int)(*yytext));
1926 #line 631 "plugin/innobase/pars/pars0lex.l"
1932 #line 633 "plugin/innobase/pars/pars0lex.l"
1938 #line 634 "plugin/innobase/pars/pars0lex.l"
1943 #line 635 "plugin/innobase/pars/pars0lex.l"
1949 #line 637 "plugin/innobase/pars/pars0lex.l"
1954 #line 640 "plugin/innobase/pars/pars0lex.l"
1956 fprintf(stderr,
"Unrecognized character: %02x\n",
1966 #line 649 "plugin/innobase/pars/pars0lex.l"
1967 YY_FATAL_ERROR(
"flex scanner jammed" );
1969 #line 1969 "plugin/innobase/pars/pars0lex.c"
1970 case YY_STATE_EOF(INITIAL):
1971 case YY_STATE_EOF(comment):
1972 case YY_STATE_EOF(quoted):
1973 case YY_STATE_EOF(id):
1976 case YY_END_OF_BUFFER:
1979 int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
1982 *yy_cp = (yy_hold_char);
1983 YY_RESTORE_YY_MORE_OFFSET
1985 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
1996 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1997 YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
1998 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
2008 if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
2010 yy_state_type yy_next_state;
2012 (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
2014 yy_current_state = yy_get_previous_state( );
2025 yy_next_state = yy_try_NUL_trans( yy_current_state );
2027 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
2029 if ( yy_next_state )
2032 yy_cp = ++(yy_c_buf_p);
2033 yy_current_state = yy_next_state;
2039 yy_cp = (yy_last_accepting_cpos);
2040 yy_current_state = (yy_last_accepting_state);
2041 goto yy_find_action;
2045 else switch ( yy_get_next_buffer( ) )
2047 case EOB_ACT_END_OF_FILE:
2049 (yy_did_buffer_switch_on_eof) = 0;
2062 (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
2064 yy_act = YY_STATE_EOF(YY_START);
2070 if ( ! (yy_did_buffer_switch_on_eof) )
2076 case EOB_ACT_CONTINUE_SCAN:
2078 (yytext_ptr) + yy_amount_of_matched_text;
2080 yy_current_state = yy_get_previous_state( );
2082 yy_cp = (yy_c_buf_p);
2083 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
2086 case EOB_ACT_LAST_MATCH:
2088 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
2090 yy_current_state = yy_get_previous_state( );
2092 yy_cp = (yy_c_buf_p);
2093 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
2094 goto yy_find_action;
2101 "fatal flex scanner internal error--no action found" );
2113 static int yy_get_next_buffer (
void)
2115 register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
2116 register char *source = (yytext_ptr);
2117 register int number_to_move, i;
2120 if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
2122 "fatal flex scanner internal error--end of buffer missed" );
2124 if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
2126 if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
2131 return EOB_ACT_END_OF_FILE;
2139 return EOB_ACT_LAST_MATCH;
2146 number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1;
2148 for ( i = 0; i < number_to_move; ++i )
2149 *(dest++) = *(source++);
2151 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
2155 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
2160 YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
2162 while ( num_to_read <= 0 )
2166 YY_BUFFER_STATE b = YY_CURRENT_BUFFER;
2168 int yy_c_buf_p_offset =
2169 (int) ((yy_c_buf_p) - b->yy_ch_buf);
2171 if ( b->yy_is_our_buffer )
2173 int new_size = b->yy_buf_size * 2;
2175 if ( new_size <= 0 )
2176 b->yy_buf_size += b->yy_buf_size / 8;
2178 b->yy_buf_size *= 2;
2180 b->yy_ch_buf = (
char *)
2182 yyrealloc((
void *) b->yy_ch_buf,b->yy_buf_size + 2 );
2188 if ( ! b->yy_ch_buf )
2190 "fatal error - scanner input buffer overflow" );
2192 (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
2194 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
2199 if ( num_to_read > YY_READ_BUF_SIZE )
2200 num_to_read = YY_READ_BUF_SIZE;
2203 YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
2204 (yy_n_chars), (
size_t) num_to_read );
2206 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
2209 if ( (yy_n_chars) == 0 )
2211 if ( number_to_move == YY_MORE_ADJ )
2213 ret_val = EOB_ACT_END_OF_FILE;
2219 ret_val = EOB_ACT_LAST_MATCH;
2220 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
2221 YY_BUFFER_EOF_PENDING;
2226 ret_val = EOB_ACT_CONTINUE_SCAN;
2228 if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
2230 yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
2231 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (
char *) yyrealloc((
void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size );
2232 if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
2233 YY_FATAL_ERROR(
"out of dynamic memory in yy_get_next_buffer()" );
2236 (yy_n_chars) += number_to_move;
2237 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
2238 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
2240 (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
2247 static yy_state_type yy_get_previous_state (
void)
2249 register yy_state_type yy_current_state;
2250 register char *yy_cp;
2252 yy_current_state = (yy_start);
2254 for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
2256 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
2257 if ( yy_accept[yy_current_state] )
2259 (yy_last_accepting_state) = yy_current_state;
2260 (yy_last_accepting_cpos) = yy_cp;
2262 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2264 yy_current_state = (int) yy_def[yy_current_state];
2265 if ( yy_current_state >= 399 )
2266 yy_c = yy_meta[(
unsigned int) yy_c];
2268 yy_current_state = yy_nxt[yy_base[yy_current_state] + (
unsigned int) yy_c];
2271 return yy_current_state;
2279 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
2281 register int yy_is_jam;
2282 register char *yy_cp = (yy_c_buf_p);
2284 register YY_CHAR yy_c = 1;
2285 if ( yy_accept[yy_current_state] )
2287 (yy_last_accepting_state) = yy_current_state;
2288 (yy_last_accepting_cpos) = yy_cp;
2290 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2292 yy_current_state = (int) yy_def[yy_current_state];
2293 if ( yy_current_state >= 399 )
2294 yy_c = yy_meta[(
unsigned int) yy_c];
2296 yy_current_state = yy_nxt[yy_base[yy_current_state] + (
unsigned int) yy_c];
2297 yy_is_jam = (yy_current_state == 398);
2299 return yy_is_jam ? 0 : yy_current_state;
2304 static int yyinput (
void)
2306 static int input (
void)
2312 *(yy_c_buf_p) = (yy_hold_char);
2314 if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
2320 if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
2322 *(yy_c_buf_p) =
'\0';
2326 int offset = (int)((yy_c_buf_p) - (yytext_ptr));
2329 switch ( yy_get_next_buffer( ) )
2331 case EOB_ACT_LAST_MATCH:
2347 case EOB_ACT_END_OF_FILE:
2352 if ( ! (yy_did_buffer_switch_on_eof) )
2361 case EOB_ACT_CONTINUE_SCAN:
2362 (yy_c_buf_p) = (yytext_ptr) + offset;
2368 c = *(
unsigned char *) (yy_c_buf_p);
2369 *(yy_c_buf_p) =
'\0';
2370 (yy_hold_char) = *++(yy_c_buf_p);
2381 static void yyrestart (FILE * input_file )
2384 if ( ! YY_CURRENT_BUFFER ){
2385 yyensure_buffer_stack ();
2386 YY_CURRENT_BUFFER_LVALUE =
2387 yy_create_buffer(yyin,YY_BUF_SIZE );
2390 yy_init_buffer(YY_CURRENT_BUFFER,input_file );
2391 yy_load_buffer_state( );
2398 __attribute__((unused)) static
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
2406 yyensure_buffer_stack ();
2407 if ( YY_CURRENT_BUFFER == new_buffer )
2410 if ( YY_CURRENT_BUFFER )
2413 *(yy_c_buf_p) = (yy_hold_char);
2414 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
2415 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
2418 YY_CURRENT_BUFFER_LVALUE = new_buffer;
2419 yy_load_buffer_state( );
2426 (yy_did_buffer_switch_on_eof) = 1;
2429 static void yy_load_buffer_state (
void)
2431 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
2432 (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
2433 yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
2434 (yy_hold_char) = *(yy_c_buf_p);
2443 static YY_BUFFER_STATE yy_create_buffer (FILE * file,
int size )
2449 YY_FATAL_ERROR(
"out of dynamic memory in yy_create_buffer()" );
2451 b->yy_buf_size = size;
2456 b->yy_ch_buf = (
char *)
yyalloc(b->yy_buf_size + 2 );
2457 if ( ! b->yy_ch_buf )
2458 YY_FATAL_ERROR(
"out of dynamic memory in yy_create_buffer()" );
2460 b->yy_is_our_buffer = 1;
2462 yy_init_buffer(b,file );
2471 static void yy_delete_buffer (YY_BUFFER_STATE b )
2477 if ( b == YY_CURRENT_BUFFER )
2478 YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
2480 if ( b->yy_is_our_buffer )
2481 yyfree((
void *) b->yy_ch_buf );
2483 yyfree((
void *) b );
2490 static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
2495 yy_flush_buffer(b );
2497 b->yy_input_file = file;
2498 b->yy_fill_buffer = 1;
2504 if (b != YY_CURRENT_BUFFER){
2509 b->yy_is_interactive = 0;
2518 static void yy_flush_buffer (YY_BUFFER_STATE b )
2529 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
2530 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
2532 b->yy_buf_pos = &b->yy_ch_buf[0];
2535 b->yy_buffer_status = YY_BUFFER_NEW;
2537 if ( b == YY_CURRENT_BUFFER )
2538 yy_load_buffer_state( );
2547 __attribute__((unused)) static
void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
2549 if (new_buffer == NULL)
2552 yyensure_buffer_stack();
2555 if ( YY_CURRENT_BUFFER )
2558 *(yy_c_buf_p) = (yy_hold_char);
2559 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
2560 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
2564 if (YY_CURRENT_BUFFER)
2565 (yy_buffer_stack_top)++;
2566 YY_CURRENT_BUFFER_LVALUE = new_buffer;
2569 yy_load_buffer_state( );
2570 (yy_did_buffer_switch_on_eof) = 1;
2577 __attribute__((unused)) static
void yypop_buffer_state (
void)
2579 if (!YY_CURRENT_BUFFER)
2582 yy_delete_buffer(YY_CURRENT_BUFFER );
2583 YY_CURRENT_BUFFER_LVALUE = NULL;
2584 if ((yy_buffer_stack_top) > 0)
2585 --(yy_buffer_stack_top);
2587 if (YY_CURRENT_BUFFER) {
2588 yy_load_buffer_state( );
2589 (yy_did_buffer_switch_on_eof) = 1;
2596 static void yyensure_buffer_stack (
void)
2600 if (!(yy_buffer_stack)) {
2610 if ( ! (yy_buffer_stack) )
2611 YY_FATAL_ERROR(
"out of dynamic memory in yyensure_buffer_stack()" );
2613 memset((yy_buffer_stack), 0, num_to_alloc *
sizeof(
struct yy_buffer_state*));
2615 (yy_buffer_stack_max) = num_to_alloc;
2616 (yy_buffer_stack_top) = 0;
2620 if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
2625 num_to_alloc = (yy_buffer_stack_max) + grow_size;
2630 if ( ! (yy_buffer_stack) )
2631 YY_FATAL_ERROR(
"out of dynamic memory in yyensure_buffer_stack()" );
2634 memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size *
sizeof(
struct yy_buffer_state*));
2635 (yy_buffer_stack_max) = num_to_alloc;
2639 #ifndef YY_EXIT_FAILURE
2640 #define YY_EXIT_FAILURE 2
2643 static void yy_fatal_error (yyconst
char* msg )
2645 (void) fprintf( stderr,
"%s\n", msg );
2646 exit( YY_EXIT_FAILURE );
2656 int yyless_macro_arg = (n); \
2657 YY_LESS_LINENO(yyless_macro_arg);\
2658 yytext[yyleng] = (yy_hold_char); \
2659 (yy_c_buf_p) = yytext + yyless_macro_arg; \
2660 (yy_hold_char) = *(yy_c_buf_p); \
2661 *(yy_c_buf_p) = '\0'; \
2662 yyleng = yyless_macro_arg; \
2671 __attribute__((unused)) static
int yyget_lineno (
void)
2680 __attribute__((unused)) static FILE *yyget_in (
void)
2688 __attribute__((unused)) static FILE *yyget_out (
void)
2696 __attribute__((unused)) static
int yyget_leng (
void)
2705 __attribute__((unused)) static
char *yyget_text (
void)
2714 __attribute__((unused)) static
void yyset_lineno (
int line_number )
2717 yylineno = line_number;
2726 __attribute__((unused)) static
void yyset_in (FILE * in_str )
2731 __attribute__((unused)) static
void yyset_out (FILE * out_str )
2736 __attribute__((unused)) static
int yyget_debug (
void)
2738 return yy_flex_debug;
2741 __attribute__((unused)) static
void yyset_debug (
int bdebug )
2743 yy_flex_debug = bdebug ;
2746 static int yy_init_globals (
void)
2752 (yy_buffer_stack) = 0;
2753 (yy_buffer_stack_top) = 0;
2754 (yy_buffer_stack_max) = 0;
2755 (yy_c_buf_p) = (
char *) 0;
2775 __attribute__((unused)) static
int yylex_destroy (
void)
2779 while(YY_CURRENT_BUFFER){
2780 yy_delete_buffer(YY_CURRENT_BUFFER );
2781 YY_CURRENT_BUFFER_LVALUE = NULL;
2782 yypop_buffer_state();
2786 yyfree((yy_buffer_stack) );
2787 (yy_buffer_stack) = NULL;
2801 static void yy_flex_strncpy (
char* s1, yyconst
char * s2,
int n )
2804 for ( i = 0; i < n; ++i )
2809 #ifdef YY_NEED_STRLEN
2810 static int yy_flex_strlen (yyconst
char * s )
2813 for ( n = 0; s[n]; ++n )
2820 static void *
yyalloc (yy_size_t size )
2822 return (
void *) malloc( size );
2825 static void *yyrealloc (
void * ptr, yy_size_t size )
2834 return (
void *) realloc( (
char *) ptr, size );
2837 static void yyfree (
void * ptr )
2839 free( (
char *) ptr );
2842 #define YYTABLES_NAME "yytables"
2844 #line 649 "plugin/innobase/pars/pars0lex.l"
2852 #if !defined(YY_FLEX_MAJOR_VERSION) || YY_FLEX_MAJOR_VERSION < 2 \
2853 || (YY_FLEX_MAJOR_VERSION == 2 \
2854 && (!defined(YY_FLEX_MINOR_VERSION) || YY_FLEX_MINOR_VERSION < 5 \
2855 || (YY_FLEX_MINOR_VERSION == 5 \
2856 && (!defined(YY_FLEX_SUBMINOR_VERSION) \
2857 || YY_FLEX_SUBMINOR_VERSION < 9))))
2858 # define yylex_destroy() yy_delete_buffer(YY_CURRENT_BUFFER)
2871 stringbuf_len_alloc = stringbuf_len = 0;
UNIV_INTERN sym_node_t * sym_tab_add_id(sym_tab_t *sym_tab, byte *name, ulint len)
UNIV_INTERN sym_node_t * sym_tab_add_str_lit(sym_tab_t *sym_tab, byte *str, ulint len)
UNIV_INTERN sym_node_t * sym_tab_add_null_lit(sym_tab_t *sym_tab)
UNIV_INTERN sym_node_t * sym_tab_add_bound_id(sym_tab_t *sym_tab, const char *name)
UNIV_INTERN sym_node_t * sym_tab_add_bound_lit(sym_tab_t *sym_tab, const char *name, ulint *lit_type)
UNIV_INTERN void pars_lexer_close(void)
UNIV_INTERN sym_node_t * sym_tab_add_int_lit(sym_tab_t *sym_tab, ulint val)