1 #line 2 "libmemcached/options/scanner.cc"
2 #line 22 "libmemcached/options/scanner.l"
4 #pragma GCC diagnostic ignored "-Wold-style-cast"
5 #pragma GCC diagnostic ignored "-Wsign-compare"
6 #pragma GCC diagnostic ignored "-Wunused-parameter"
8 #include <libmemcached/options/context.h>
9 #include <libmemcached/options/parser.h>
10 #include <libmemcached/options/string.h>
11 #include <libmemcached/options/symbol.h>
13 #define YY_EXTRA_TYPE Context*
18 #line 19 "libmemcached/options/scanner.cc"
20 #define YY_INT_ALIGNED short int
22 /* A lexical scanner generated by flex */
27 /* %if-not-reentrant */
33 #define YY_FLEX_MAJOR_VERSION 2
34 #define YY_FLEX_MINOR_VERSION 5
35 #define YY_FLEX_SUBMINOR_VERSION 35
36 #if YY_FLEX_SUBMINOR_VERSION > 0
51 /* First, we deal with platform-specific or compiler-specific issues. */
53 /* begin standard C headers. */
61 /* %if-tables-serialization */
63 /* end standard C headers. */
66 /* flex integer type definitions */
71 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
73 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
75 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
76 * if you want the limit (max/min) macros for int types.
78 #ifndef __STDC_LIMIT_MACROS
79 #define __STDC_LIMIT_MACROS 1
83 typedef int8_t flex_int8_t
;
84 typedef uint8_t flex_uint8_t
;
85 typedef int16_t flex_int16_t
;
86 typedef uint16_t flex_uint16_t
;
87 typedef int32_t flex_int32_t
;
88 typedef uint32_t flex_uint32_t
;
90 typedef signed char flex_int8_t
;
91 typedef short int flex_int16_t
;
92 typedef int flex_int32_t
;
93 typedef unsigned char flex_uint8_t
;
94 typedef unsigned short int flex_uint16_t
;
95 typedef unsigned int flex_uint32_t
;
98 /* Limits of integral types. */
100 #define INT8_MIN (-128)
103 #define INT16_MIN (-32767-1)
106 #define INT32_MIN (-2147483647-1)
109 #define INT8_MAX (127)
112 #define INT16_MAX (32767)
115 #define INT32_MAX (2147483647)
118 #define UINT8_MAX (255U)
121 #define UINT16_MAX (65535U)
124 #define UINT32_MAX (4294967295U)
127 #endif /* ! FLEXINT_H */
136 /* The "const" storage-class-modifier is valid. */
139 #else /* ! __cplusplus */
141 /* C99 requires __STDC__ to be defined as 1. */
142 #if defined (__STDC__)
146 #endif /* defined (__STDC__) */
147 #endif /* ! __cplusplus */
150 #define yyconst const
155 /* %not-for-header */
157 /* Returned upon end-of-file. */
161 /* %not-for-header */
163 /* Promotes a possibly negative, possibly signed char to an unsigned
164 * integer for use as an array index. If the signed char is negative,
165 * we want to instead treat it as an 8-bit unsigned char, hence the
168 #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
173 /* An opaque pointer. */
174 #ifndef YY_TYPEDEF_YY_SCANNER_T
175 #define YY_TYPEDEF_YY_SCANNER_T
176 typedef void* yyscan_t
;
179 /* For convenience, these vars (plus the bison vars far below)
180 are macros in the reentrant scanner. */
181 #define yyin yyg->yyin_r
182 #define yyout yyg->yyout_r
183 #define yyextra yyg->yyextra_r
184 #define yyleng yyg->yyleng_r
185 #define yytext yyg->yytext_r
186 #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
187 #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
188 #define yy_flex_debug yyg->yy_flex_debug_r
192 /* %if-not-reentrant */
195 /* Enter a start condition. This macro really ought to take a parameter,
196 * but we do it the disgusting crufty way forced on us by the ()-less
197 * definition of BEGIN.
199 #define BEGIN yyg->yy_start = 1 + 2 *
201 /* Translate the current start state into a value that can be later handed
202 * to BEGIN to return to the state. The YYSTATE alias is for lex
205 #define YY_START ((yyg->yy_start - 1) / 2)
206 #define YYSTATE YY_START
208 /* Action number for EOF rule of a given start state. */
209 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
211 /* Special action meaning "start processing a new file". */
212 #define YY_NEW_FILE config_restart(yyin ,yyscanner )
214 #define YY_END_OF_BUFFER_CHAR 0
216 /* Size of default input buffer. */
218 #define YY_BUF_SIZE 16384
221 /* The state buf must be large enough to hold one state per character in the main buffer.
223 #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
225 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
226 #define YY_TYPEDEF_YY_BUFFER_STATE
227 typedef struct yy_buffer_state
*YY_BUFFER_STATE
;
230 /* %if-not-reentrant */
234 /* %if-not-reentrant */
238 #define EOB_ACT_CONTINUE_SCAN 0
239 #define EOB_ACT_END_OF_FILE 1
240 #define EOB_ACT_LAST_MATCH 2
242 #define YY_LESS_LINENO(n)
244 /* Return all but the first "n" matched characters back to the input stream. */
248 /* Undo effects of setting up yytext. */ \
249 int yyless_macro_arg = (n); \
250 YY_LESS_LINENO(yyless_macro_arg);\
251 *yy_cp = yyg->yy_hold_char; \
252 YY_RESTORE_YY_MORE_OFFSET \
253 yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
254 YY_DO_BEFORE_ACTION; /* set up yytext again */ \
258 #define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner )
260 #ifndef YY_TYPEDEF_YY_SIZE_T
261 #define YY_TYPEDEF_YY_SIZE_T
262 typedef size_t yy_size_t
;
265 #ifndef YY_STRUCT_YY_BUFFER_STATE
266 #define YY_STRUCT_YY_BUFFER_STATE
267 struct yy_buffer_state
276 char *yy_ch_buf
; /* input buffer */
277 char *yy_buf_pos
; /* current position in input buffer */
279 /* Size of input buffer in bytes, not including room for EOB
282 yy_size_t yy_buf_size
;
284 /* Number of characters read into yy_ch_buf, not including EOB
289 /* Whether we "own" the buffer - i.e., we know we created it,
290 * and can realloc() it to grow it, and should free() it to
293 int yy_is_our_buffer
;
295 /* Whether this is an "interactive" input source; if so, and
296 * if we're using stdio for input, then we want to use getc()
297 * instead of fread(), to make sure we stop fetching input after
300 int yy_is_interactive
;
302 /* Whether we're considered to be at the beginning of a line.
303 * If so, '^' rules will be active on the next match, otherwise
308 int yy_bs_lineno
; /**< The line count. */
309 int yy_bs_column
; /**< The column count. */
311 /* Whether to try to fill the input buffer when we reach the
316 int yy_buffer_status
;
318 #define YY_BUFFER_NEW 0
319 #define YY_BUFFER_NORMAL 1
320 /* When an EOF's been seen but there's still some text to process
321 * then we mark the buffer as YY_EOF_PENDING, to indicate that we
322 * shouldn't try reading from the input source any more. We might
323 * still have a bunch of tokens to match, though, because of
324 * possible backing-up.
326 * When we actually see the EOF, we change the status to "new"
327 * (via config_restart()), so that the user can continue scanning by
328 * just pointing yyin at a new input file.
330 #define YY_BUFFER_EOF_PENDING 2
333 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
335 /* %if-c-only Standard (non-C++) definition */
336 /* %not-for-header */
338 /* %if-not-reentrant */
344 /* We provide macros for accessing buffer states in case in the
345 * future we want to put the buffer states in a more general
348 * Returns the top of the stack, or NULL.
350 #define YY_CURRENT_BUFFER ( yyg->yy_buffer_stack \
351 ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
354 /* Same as previous macro, but useful when we know that the buffer stack is not
355 * NULL or when we need an lvalue. For internal use only.
357 #define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
359 /* %if-c-only Standard (non-C++) definition */
361 /* %if-not-reentrant */
362 /* %not-for-header */
368 void config_restart (FILE *input_file
,yyscan_t yyscanner
);
369 void config__switch_to_buffer (YY_BUFFER_STATE new_buffer
,yyscan_t yyscanner
);
370 YY_BUFFER_STATE
config__create_buffer (FILE *file
,int size
,yyscan_t yyscanner
);
371 void config__delete_buffer (YY_BUFFER_STATE b
,yyscan_t yyscanner
);
372 void config__flush_buffer (YY_BUFFER_STATE b
,yyscan_t yyscanner
);
373 void config_push_buffer_state (YY_BUFFER_STATE new_buffer
,yyscan_t yyscanner
);
374 void config_pop_buffer_state (yyscan_t yyscanner
);
376 static void config_ensure_buffer_stack (yyscan_t yyscanner
);
377 static void config__load_buffer_state (yyscan_t yyscanner
);
378 static void config__init_buffer (YY_BUFFER_STATE b
,FILE *file
,yyscan_t yyscanner
);
380 #define YY_FLUSH_BUFFER config__flush_buffer(YY_CURRENT_BUFFER ,yyscanner)
382 YY_BUFFER_STATE
config__scan_buffer (char *base
,yy_size_t size
,yyscan_t yyscanner
);
383 YY_BUFFER_STATE
config__scan_string (yyconst
char *yy_str
,yyscan_t yyscanner
);
384 YY_BUFFER_STATE
config__scan_bytes (yyconst
char *bytes
,int len
,yyscan_t yyscanner
);
388 void *config_alloc (yy_size_t
,yyscan_t yyscanner
);
389 void *config_realloc (void *,yy_size_t
,yyscan_t yyscanner
);
390 void config_free (void * ,yyscan_t yyscanner
);
392 #define yy_new_buffer config__create_buffer
394 #define yy_set_interactive(is_interactive) \
396 if ( ! YY_CURRENT_BUFFER ){ \
397 config_ensure_buffer_stack (yyscanner); \
398 YY_CURRENT_BUFFER_LVALUE = \
399 config__create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
401 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
404 #define yy_set_bol(at_bol) \
406 if ( ! YY_CURRENT_BUFFER ){\
407 config_ensure_buffer_stack (yyscanner); \
408 YY_CURRENT_BUFFER_LVALUE = \
409 config__create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
411 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
414 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
416 /* %% [1.0] yytext/yyin/yyout/yy_state_type/yylineno etc. def's & init go here */
417 /* Begin user sect3 */
419 #define config_wrap(n) 1
420 #define YY_SKIP_YYWRAP
424 typedef unsigned char YY_CHAR
;
426 typedef int yy_state_type
;
428 #define yytext_ptr yytext_r
430 /* %if-c-only Standard (non-C++) definition */
432 static yy_state_type
yy_get_previous_state (yyscan_t yyscanner
);
433 static yy_state_type
yy_try_NUL_trans (yy_state_type current_state
,yyscan_t yyscanner
);
434 static int yy_get_next_buffer (yyscan_t yyscanner
);
435 static void yy_fatal_error (yyconst
char msg
[] ,yyscan_t yyscanner
);
439 /* Done after the current pattern has been matched and before the
440 * corresponding action - sets up yytext.
442 #define YY_DO_BEFORE_ACTION \
443 yyg->yytext_ptr = yy_bp; \
444 /* %% [2.0] code to fiddle yytext and yyleng for yymore() goes here \ */\
445 yyleng = (size_t) (yy_cp - yy_bp); \
446 yyg->yy_hold_char = *yy_cp; \
448 /* %% [3.0] code to copy yytext_ptr to yytext[] goes here, if %array \ */\
449 yyg->yy_c_buf_p = yy_cp;
451 /* %% [4.0] data tables for the DFA and the user's section 1 definitions go here */
452 #define YY_NUM_RULES 88
453 #define YY_END_OF_BUFFER 89
454 /* This struct is not used in this scanner,
455 but its presence is necessary. */
458 flex_int32_t yy_verify
;
461 static yyconst flex_int16_t yy_accept
[747] =
463 0, 0, 89, 87, 5, 5, 1, 87, 87, 87,
464 2, 87, 87, 87, 87, 87, 87, 87, 87, 87,
465 87, 87, 87, 87, 87, 0, 86, 71, 0, 0,
466 0, 2, 3, 0, 0, 0, 0, 0, 0, 0,
467 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
468 0, 6, 71, 71, 71, 71, 71, 71, 71, 71,
469 71, 71, 71, 71, 71, 4, 85, 85, 2, 3,
470 85, 76, 85, 67, 85, 85, 85, 85, 85, 85,
471 75, 85, 85, 85, 85, 85, 85, 71, 71, 71,
472 71, 71, 71, 71, 71, 71, 71, 71, 71, 71,
474 71, 71, 71, 71, 71, 71, 71, 4, 0, 85,
475 2, 3, 85, 85, 85, 85, 85, 85, 85, 85,
476 85, 85, 85, 85, 85, 69, 71, 71, 71, 71,
477 71, 0, 0, 71, 71, 71, 71, 71, 71, 71,
478 71, 71, 71, 71, 71, 71, 71, 71, 71, 4,
479 85, 85, 3, 85, 65, 68, 70, 85, 0, 81,
480 85, 85, 85, 85, 85, 64, 85, 71, 71, 71,
481 71, 71, 71, 0, 0, 0, 0, 0, 0, 71,
482 71, 71, 71, 71, 0, 0, 71, 71, 71, 0,
483 0, 71, 71, 71, 0, 0, 0, 71, 0, 71,
485 4, 0, 85, 3, 85, 0, 85, 85, 85, 85,
486 73, 82, 74, 85, 71, 71, 71, 71, 71, 0,
487 19, 0, 0, 0, 0, 0, 0, 0, 71, 71,
488 0, 0, 71, 71, 0, 0, 71, 71, 71, 0,
489 0, 71, 0, 0, 71, 0, 0, 0, 0, 0,
490 0, 0, 0, 71, 4, 84, 85, 85, 85, 85,
491 79, 77, 63, 83, 66, 71, 71, 71, 71, 71,
492 0, 0, 0, 0, 0, 0, 0, 0, 71, 71,
493 0, 0, 71, 71, 0, 0, 71, 0, 0, 71,
494 0, 0, 71, 0, 0, 71, 0, 0, 0, 0,
496 0, 0, 0, 0, 71, 84, 85, 80, 78, 0,
497 0, 0, 0, 71, 71, 71, 0, 0, 0, 0,
498 0, 0, 0, 0, 28, 0, 0, 0, 0, 0,
499 0, 71, 0, 0, 0, 0, 0, 0, 7, 0,
500 0, 0, 0, 0, 0, 71, 0, 0, 0, 0,
501 60, 0, 0, 59, 0, 0, 84, 85, 0, 0,
502 0, 0, 71, 0, 0, 71, 0, 0, 0, 0,
503 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
504 71, 0, 0, 0, 0, 0, 0, 0, 0, 0,
505 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
507 0, 0, 0, 0, 0, 72, 0, 0, 0, 0,
508 71, 0, 0, 71, 0, 0, 0, 0, 0, 0,
509 0, 0, 0, 0, 0, 0, 0, 0, 71, 0,
510 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
511 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
512 0, 58, 57, 0, 0, 0, 0, 0, 0, 0,
513 0, 0, 0, 71, 0, 0, 0, 0, 0, 0,
514 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
515 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
516 0, 0, 48, 47, 0, 0, 0, 0, 0, 0,
518 0, 0, 9, 8, 0, 0, 0, 0, 0, 0,
519 0, 0, 71, 0, 0, 0, 0, 0, 0, 0,
520 0, 0, 0, 0, 0, 61, 62, 0, 0, 0,
521 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
522 0, 50, 49, 0, 0, 52, 0, 0, 51, 0,
523 0, 0, 0, 0, 0, 0, 0, 71, 0, 0,
524 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
525 0, 0, 36, 35, 0, 0, 0, 0, 40, 39,
526 0, 0, 0, 0, 0, 56, 0, 55, 0, 0,
527 0, 0, 0, 0, 0, 0, 18, 0, 0, 0,
529 0, 0, 0, 0, 0, 0, 0, 32, 31, 0,
530 0, 0, 0, 0, 0, 0, 0, 0, 0, 54,
531 53, 0, 0, 0, 0, 0, 0, 0, 0, 0,
532 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
533 0, 0, 0, 38, 37, 0, 0, 0, 0, 11,
534 10, 13, 12, 15, 14, 0, 0, 0, 0, 0,
535 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
536 0, 0, 0, 0, 0, 17, 16, 0, 0, 0,
537 25, 0, 0, 24, 0, 0, 0, 0, 0, 0,
538 0, 0, 0, 0, 0, 0, 0, 0, 27, 0,
540 26, 0, 0, 0, 0, 0, 0, 44, 46, 43,
541 45, 0, 0, 0, 0, 0, 0, 0, 0, 0,
542 0, 0, 0, 23, 22, 30, 29, 0, 0, 0,
543 0, 21, 20, 0, 0, 0, 0, 0, 0, 0,
547 static yyconst flex_int32_t yy_ec
[256] =
549 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
550 1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
551 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
552 1, 4, 1, 5, 6, 1, 1, 1, 1, 1,
553 1, 1, 1, 7, 8, 9, 10, 11, 12, 13,
554 14, 15, 16, 17, 11, 11, 11, 18, 1, 1,
555 19, 1, 20, 1, 21, 22, 23, 24, 25, 26,
556 27, 28, 29, 30, 31, 32, 33, 34, 35, 36,
557 37, 38, 39, 40, 41, 42, 43, 44, 45, 46,
558 1, 1, 1, 1, 47, 1, 48, 49, 50, 51,
560 52, 53, 54, 55, 56, 57, 58, 59, 60, 61,
561 62, 63, 64, 65, 66, 67, 68, 69, 70, 71,
562 72, 73, 1, 1, 1, 1, 1, 1, 1, 1,
563 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
564 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
565 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
566 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
567 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
568 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
569 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
571 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
572 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
573 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
574 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
575 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
579 static yyconst flex_int32_t yy_meta
[74] =
581 1, 1, 2, 1, 3, 1, 1, 3, 3, 1,
582 3, 3, 3, 3, 3, 3, 3, 1, 1, 1,
583 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
584 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
585 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
586 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
587 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
591 static yyconst flex_int16_t yy_base
[751] =
593 0, 722, 724, 2044, 2044, 2044, 2044, 716, 712, 693,
594 65, 72, 0, 55, 50, 57, 71, 55, 62, 72,
595 74, 78, 75, 63, 709, 701, 675, 132, 195, 103,
596 208, 251, 215, 235, 228, 230, 237, 245, 265, 281,
597 286, 294, 296, 311, 313, 327, 343, 354, 361, 370,
598 672, 2044, 417, 305, 69, 77, 86, 75, 246, 291,
599 362, 361, 90, 75, 127, 419, 416, 482, 525, 489,
600 504, 502, 509, 511, 517, 539, 519, 560, 552, 566,
601 554, 582, 584, 595, 601, 613, 627, 180, 223, 224,
602 241, 272, 210, 275, 312, 317, 329, 321, 325, 404,
604 333, 356, 377, 353, 355, 418, 409, 650, 678, 721,
605 764, 685, 625, 700, 702, 714, 736, 743, 750, 777,
606 755, 784, 791, 796, 804, 668, 427, 423, 428, 410,
607 424, 786, 799, 436, 443, 476, 520, 529, 292, 519,
608 517, 525, 568, 567, 574, 580, 580, 802, 591, 857,
609 870, 709, 877, 856, 891, 893, 899, 901, 906, 916,
610 921, 923, 928, 942, 934, 950, 957, 613, 632, 629,
611 679, 678, 808, 743, 770, 768, 775, 798, 800, 891,
612 909, 641, 915, 917, 916, 920, 922, 924, 948, 934,
613 938, 957, 695, 950, 959, 968, 945, 795, 947, 966,
615 1019, 1032, 1075, 2044, 1053, 1051, 1058, 1067, 1069, 1094,
616 1099, 1101, 1110, 1119, 953, 973, 996, 1001, 998, 985,
617 2044, 999, 1030, 1040, 1069, 1071, 1068, 1090, 1093, 1088,
618 1089, 1092, 1090, 1102, 1107, 1108, 1117, 829, 1105, 1116,
619 1118, 1109, 1122, 1123, 1116, 1130, 1130, 1142, 1133, 1147,
620 1149, 1151, 1155, 1135, 2044, 1203, 1178, 1188, 1196, 1218,
621 1223, 1229, 1236, 1243, 1248, 833, 850, 1162, 1182, 1214,
622 1210, 1213, 1221, 663, 662, 1222, 622, 621, 1209, 869,
623 1226, 1229, 969, 1230, 1227, 1228, 1006, 1222, 1224, 640,
624 1234, 1238, 1010, 1237, 1240, 1237, 1253, 1255, 1255, 1260,
626 1256, 1272, 1275, 1261, 1182, 1320, 1304, 1309, 1334, 1264,
627 1267, 1283, 1284, 1288, 1293, 1300, 1304, 1305, 1307, 1311,
628 1307, 1313, 1319, 1314, 0, 1323, 1324, 1327, 1328, 1331,
629 1332, 1318, 1341, 1344, 1344, 1349, 1347, 1349, 2044, 1355,
630 1358, 1356, 1360, 1353, 1361, 1307, 1365, 1379, 1370, 1383,
631 2044, 1369, 1371, 2044, 1381, 1382, 1409, 1415, 1377, 1378,
632 1405, 1407, 1409, 1397, 1401, 1404, 1417, 1418, 648, 1409,
633 1427, 598, 1411, 1429, 1425, 1426, 1428, 1429, 1433, 1435,
634 1438, 1430, 1431, 1446, 1448, 1437, 1450, 1449, 1451, 1463,
635 1464, 1466, 1470, 1458, 1459, 1477, 1478, 1483, 1470, 1485,
637 1471, 1484, 1486, 1483, 1484, 1512, 1484, 1488, 1487, 1500,
638 1530, 1511, 1513, 1514, 632, 592, 1501, 1520, 1507, 1505,
639 1524, 1512, 630, 590, 1518, 1519, 1510, 1511, 1549, 1517,
640 1519, 1532, 1533, 1538, 1540, 1525, 1527, 1550, 1544, 1561,
641 1552, 1552, 1555, 1576, 1577, 1567, 1577, 1581, 1571, 1580,
642 1585, 2044, 2044, 1562, 1563, 1569, 1570, 1571, 1573, 1589,
643 1590, 1584, 1586, 1585, 1586, 1587, 1606, 1606, 1613, 1619,
644 1619, 1623, 1613, 1614, 1612, 1614, 609, 589, 1618, 1619,
645 1618, 1620, 1629, 1630, 1628, 1629, 1626, 1628, 1627, 1646,
646 1629, 1649, 2044, 2044, 1635, 1637, 1648, 1649, 1641, 1663,
648 1662, 1654, 2044, 2044, 1667, 1670, 1681, 1682, 1680, 1681,
649 1686, 1687, 1680, 1677, 1678, 1677, 1693, 1682, 1682, 1698,
650 1686, 1700, 1702, 1688, 1690, 2044, 2044, 1706, 1710, 583,
651 577, 1715, 1721, 1707, 1712, 576, 564, 537, 524, 476,
652 474, 2044, 2044, 1714, 1734, 2044, 1718, 1736, 2044, 1740,
653 1741, 1726, 1727, 1736, 1737, 1735, 1736, 496, 1747, 1749,
654 1751, 1737, 1745, 1754, 1741, 1749, 1748, 1749, 450, 441,
655 1753, 1758, 2044, 2044, 1776, 1778, 1767, 1770, 2044, 2044,
656 1774, 1775, 1776, 1778, 1793, 2044, 1794, 2044, 1785, 1787,
657 1783, 1784, 1800, 1801, 1787, 1789, 2044, 1805, 1806, 1795,
659 1812, 1815, 1800, 1816, 1822, 1816, 1822, 2044, 2044, 1824,
660 1829, 420, 372, 390, 387, 1835, 1838, 1839, 1840, 2044,
661 2044, 1839, 1840, 1834, 1835, 386, 384, 1836, 1837, 1849,
662 1850, 1847, 1854, 1846, 1852, 1858, 1849, 1860, 1861, 1863,
663 1864, 1858, 1863, 2044, 2044, 1862, 1864, 1869, 1872, 2044,
664 2044, 2044, 2044, 2044, 2044, 378, 369, 1877, 1878, 1902,
665 365, 1894, 1905, 349, 1896, 1905, 1907, 1908, 1909, 1908,
666 1909, 1911, 1913, 1914, 1915, 2044, 2044, 300, 284, 1903,
667 2044, 306, 1905, 2044, 290, 1923, 1925, 1926, 1930, 1918,
668 1924, 287, 274, 253, 252, 1933, 1938, 1941, 2044, 1944,
670 2044, 1937, 1938, 240, 200, 1937, 1938, 2044, 2044, 2044,
671 2044, 1956, 1957, 215, 196, 132, 120, 1946, 1947, 1961,
672 1962, 1943, 1945, 2044, 2044, 2044, 2044, 1967, 1968, 1956,
673 1957, 2044, 2044, 1976, 1977, 1961, 1962, 1981, 1986, 119,
674 116, 2044, 2044, 2044, 2044, 2044, 2037, 126, 2040, 113
677 static yyconst flex_int16_t yy_def
[751] =
679 746, 1, 746, 746, 746, 746, 746, 747, 746, 746,
680 748, 746, 748, 748, 748, 748, 748, 748, 748, 748,
681 748, 748, 748, 748, 749, 747, 747, 746, 746, 750,
682 750, 750, 746, 750, 750, 750, 750, 750, 750, 750,
683 750, 750, 750, 750, 750, 750, 750, 750, 750, 750,
684 749, 746, 28, 53, 53, 53, 53, 53, 53, 53,
685 53, 53, 53, 53, 53, 746, 750, 750, 750, 746,
686 750, 750, 750, 750, 750, 750, 750, 750, 750, 750,
687 750, 750, 750, 750, 750, 750, 750, 53, 53, 53,
688 53, 53, 53, 53, 53, 53, 53, 53, 53, 53,
690 53, 53, 53, 53, 53, 53, 53, 746, 750, 750,
691 750, 746, 750, 750, 750, 750, 750, 750, 750, 750,
692 750, 750, 750, 750, 750, 750, 53, 53, 53, 53,
693 53, 746, 746, 53, 53, 53, 53, 53, 53, 53,
694 53, 53, 53, 53, 53, 53, 53, 53, 53, 746,
695 750, 750, 746, 750, 750, 750, 750, 750, 750, 750,
696 750, 750, 750, 750, 750, 750, 750, 53, 53, 53,
697 53, 53, 53, 746, 746, 746, 746, 746, 746, 53,
698 53, 53, 53, 53, 746, 746, 53, 53, 53, 746,
699 746, 53, 53, 53, 746, 746, 746, 53, 746, 53,
701 746, 750, 750, 746, 750, 750, 750, 750, 750, 750,
702 750, 750, 750, 750, 53, 53, 53, 53, 53, 746,
703 746, 746, 746, 746, 746, 746, 746, 746, 53, 53,
704 746, 746, 53, 53, 746, 746, 53, 53, 53, 746,
705 746, 53, 746, 746, 53, 746, 746, 746, 746, 746,
706 746, 746, 746, 53, 746, 750, 750, 750, 750, 750,
707 750, 750, 750, 750, 750, 53, 53, 53, 53, 53,
708 746, 746, 746, 746, 746, 746, 746, 746, 53, 53,
709 746, 746, 53, 53, 746, 746, 53, 746, 746, 53,
710 746, 746, 53, 746, 746, 53, 746, 746, 746, 746,
712 746, 746, 746, 746, 53, 750, 750, 750, 750, 746,
713 746, 746, 746, 53, 53, 53, 746, 746, 746, 746,
714 746, 746, 746, 746, 53, 746, 746, 746, 746, 746,
715 746, 53, 746, 746, 746, 746, 746, 746, 746, 746,
716 746, 746, 746, 746, 746, 53, 746, 746, 746, 746,
717 746, 746, 746, 746, 746, 746, 750, 750, 746, 746,
718 746, 746, 53, 746, 746, 53, 746, 746, 746, 746,
719 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
720 53, 746, 746, 746, 746, 746, 746, 746, 746, 746,
721 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
723 746, 746, 746, 746, 746, 750, 746, 746, 746, 746,
724 53, 746, 746, 53, 746, 746, 746, 746, 746, 746,
725 746, 746, 746, 746, 746, 746, 746, 746, 53, 746,
726 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
727 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
728 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
729 746, 746, 746, 53, 746, 746, 746, 746, 746, 746,
730 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
731 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
732 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
734 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
735 746, 746, 53, 746, 746, 746, 746, 746, 746, 746,
736 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
737 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
738 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
739 746, 746, 746, 746, 746, 746, 746, 53, 746, 746,
740 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
741 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
742 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
743 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
745 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
746 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
747 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
748 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
749 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
750 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
751 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
752 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
753 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
754 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
756 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
757 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
758 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
759 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
760 746, 746, 746, 746, 746, 0, 746, 746, 746, 746
763 static yyconst flex_int16_t yy_nxt
[2118] =
765 4, 5, 6, 7, 8, 4, 7, 9, 4, 10,
766 11, 11, 11, 11, 11, 11, 11, 12, 7, 4,
767 13, 13, 14, 15, 16, 17, 13, 18, 19, 20,
768 13, 13, 21, 13, 13, 13, 13, 22, 23, 24,
769 13, 13, 13, 13, 13, 13, 4, 13, 13, 14,
770 15, 16, 17, 13, 18, 19, 20, 13, 13, 21,
771 13, 13, 13, 13, 22, 23, 24, 13, 13, 13,
772 13, 13, 13, 31, 36, 32, 32, 32, 32, 32,
773 32, 32, 33, 33, 33, 33, 33, 33, 33, 34,
774 37, 39, 35, 41, 38, 42, 43, 44, 47, 49,
776 50, 36, 48, 90, 40, 91, 92, 30, 45, 93,
777 30, 30, 105, 106, 46, 67, 34, 37, 39, 35,
778 41, 38, 42, 43, 44, 47, 49, 50, 30, 48,
779 90, 40, 91, 92, 745, 45, 93, 744, 727, 105,
780 106, 46, 53, 53, 53, 53, 53, 53, 53, 30,
781 726, 107, 53, 54, 55, 56, 53, 53, 53, 57,
782 58, 53, 53, 53, 53, 59, 53, 60, 53, 61,
783 62, 63, 64, 65, 53, 53, 53, 53, 107, 53,
784 54, 55, 56, 53, 53, 53, 57, 58, 53, 53,
785 53, 53, 59, 53, 60, 53, 61, 62, 63, 64,
787 65, 53, 53, 53, 53, 66, 66, 66, 66, 66,
788 66, 66, 30, 127, 725, 30, 30, 132, 68, 68,
789 68, 68, 68, 68, 68, 70, 70, 70, 70, 70,
790 70, 70, 30, 724, 30, 30, 30, 30, 30, 30,
791 127, 30, 30, 30, 30, 30, 719, 718, 128, 30,
792 72, 73, 30, 30, 30, 30, 133, 129, 30, 31,
793 74, 69, 69, 69, 69, 69, 69, 69, 71, 30,
794 711, 710, 30, 30, 30, 128, 30, 72, 73, 130,
795 94, 30, 75, 30, 129, 30, 95, 74, 30, 30,
796 30, 30, 709, 30, 30, 71, 76, 30, 30, 185,
798 30, 30, 30, 30, 30, 708, 130, 94, 701, 75,
799 131, 30, 134, 95, 78, 30, 79, 30, 30, 30,
800 30, 30, 77, 76, 699, 96, 81, 30, 97, 80,
801 697, 30, 30, 88, 30, 30, 82, 131, 186, 134,
802 30, 78, 30, 79, 135, 89, 696, 30, 136, 77,
803 30, 30, 96, 137, 138, 97, 80, 30, 30, 30,
804 88, 30, 30, 82, 83, 30, 139, 684, 30, 30,
805 142, 135, 89, 30, 30, 136, 84, 30, 30, 143,
806 137, 138, 98, 681, 99, 101, 100, 677, 146, 30,
807 147, 83, 85, 139, 102, 103, 676, 142, 86, 144,
809 30, 104, 655, 84, 654, 645, 143, 30, 644, 98,
810 87, 99, 101, 100, 145, 146, 30, 147, 643, 85,
811 30, 102, 103, 30, 30, 86, 144, 642, 104, 108,
812 108, 108, 108, 108, 108, 108, 140, 87, 53, 53,
813 53, 145, 148, 141, 53, 53, 149, 168, 169, 172,
814 53, 173, 53, 170, 53, 53, 53, 53, 53, 609,
815 180, 171, 30, 140, 181, 53, 53, 53, 608, 148,
816 141, 53, 53, 149, 168, 169, 172, 53, 173, 53,
817 170, 53, 53, 53, 53, 53, 30, 180, 171, 30,
818 109, 181, 110, 110, 110, 110, 110, 110, 110, 112,
820 112, 112, 112, 112, 112, 112, 30, 182, 30, 30,
821 30, 30, 30, 30, 597, 30, 30, 30, 30, 30,
822 584, 30, 583, 30, 30, 30, 30, 30, 30, 30,
823 117, 582, 30, 31, 182, 111, 111, 111, 111, 111,
824 111, 111, 113, 30, 581, 183, 30, 30, 30, 114,
825 30, 115, 184, 187, 188, 30, 30, 30, 30, 30,
826 30, 30, 30, 30, 30, 30, 189, 30, 30, 113,
827 30, 30, 183, 30, 30, 190, 114, 116, 115, 184,
828 187, 188, 580, 119, 118, 30, 30, 195, 30, 30,
829 30, 30, 30, 189, 579, 574, 120, 192, 30, 30,
831 30, 573, 30, 30, 116, 30, 30, 527, 30, 30,
832 119, 118, 30, 193, 191, 194, 122, 30, 123, 200,
833 30, 30, 121, 120, 192, 124, 196, 526, 30, 30,
834 30, 30, 30, 30, 30, 30, 474, 473, 466, 465,
835 193, 30, 194, 122, 420, 123, 200, 30, 231, 121,
836 215, 126, 124, 154, 125, 417, 216, 217, 339, 30,
837 150, 150, 150, 150, 150, 150, 150, 324, 323, 321,
838 320, 30, 30, 30, 52, 30, 30, 215, 126, 27,
839 154, 125, 30, 216, 217, 30, 30, 232, 151, 151,
840 151, 151, 151, 151, 151, 153, 153, 153, 153, 153,
842 153, 153, 243, 218, 30, 27, 30, 30, 30, 30,
843 30, 52, 29, 30, 30, 219, 30, 109, 30, 28,
844 27, 30, 30, 746, 30, 30, 155, 25, 30, 109,
845 218, 152, 152, 152, 152, 152, 152, 152, 157, 156,
846 30, 244, 219, 30, 30, 746, 30, 30, 30, 746,
847 30, 30, 746, 155, 30, 30, 158, 30, 30, 30,
848 30, 746, 30, 30, 746, 157, 156, 30, 30, 746,
849 160, 30, 30, 746, 111, 111, 111, 111, 111, 111,
850 111, 30, 159, 158, 30, 30, 163, 223, 30, 30,
851 161, 30, 30, 746, 224, 30, 30, 160, 30, 30,
853 30, 30, 251, 30, 30, 162, 225, 174, 30, 197,
854 30, 30, 30, 163, 223, 220, 175, 161, 176, 226,
855 177, 224, 227, 30, 164, 165, 221, 746, 167, 178,
856 30, 179, 162, 225, 174, 166, 288, 30, 228, 198,
857 310, 252, 30, 175, 746, 176, 226, 177, 199, 227,
858 30, 164, 165, 746, 222, 167, 178, 312, 179, 746,
859 30, 746, 166, 30, 30, 228, 198, 201, 201, 201,
860 201, 201, 201, 201, 30, 289, 326, 30, 202, 311,
861 203, 203, 203, 203, 203, 203, 203, 204, 204, 204,
862 204, 204, 204, 204, 205, 30, 313, 30, 30, 30,
864 30, 30, 30, 30, 746, 30, 30, 30, 30, 30,
865 30, 746, 746, 30, 30, 327, 30, 746, 746, 207,
866 30, 205, 208, 30, 30, 30, 229, 30, 30, 30,
867 30, 30, 30, 230, 746, 30, 30, 30, 30, 30,
868 746, 30, 30, 233, 209, 30, 30, 206, 211, 30,
869 30, 234, 30, 229, 30, 235, 210, 30, 30, 236,
870 230, 30, 30, 237, 30, 30, 213, 30, 238, 30,
871 233, 209, 239, 240, 30, 211, 330, 241, 234, 212,
872 30, 242, 235, 210, 245, 250, 236, 253, 30, 246,
873 237, 254, 247, 213, 214, 238, 30, 266, 248, 239,
875 240, 249, 746, 30, 241, 746, 212, 746, 242, 746,
876 267, 245, 250, 335, 253, 331, 246, 342, 254, 247,
877 746, 214, 268, 269, 266, 248, 270, 271, 249, 255,
878 255, 255, 255, 255, 255, 255, 30, 267, 746, 30,
879 30, 272, 256, 256, 256, 256, 256, 256, 256, 268,
880 269, 746, 336, 270, 271, 30, 343, 30, 30, 30,
881 30, 30, 30, 746, 259, 30, 30, 260, 272, 273,
882 261, 30, 746, 30, 30, 30, 30, 30, 30, 30,
883 746, 262, 30, 202, 274, 257, 257, 257, 257, 257,
884 257, 257, 258, 263, 746, 275, 273, 30, 30, 30,
886 746, 30, 30, 30, 30, 30, 30, 30, 30, 30,
887 276, 274, 277, 30, 30, 30, 278, 30, 30, 258,
888 263, 30, 275, 30, 279, 280, 30, 30, 281, 746,
889 746, 282, 264, 283, 284, 285, 286, 276, 746, 277,
890 30, 287, 290, 278, 291, 30, 292, 30, 293, 294,
891 295, 279, 280, 296, 297, 281, 30, 265, 282, 264,
892 283, 284, 285, 286, 298, 30, 299, 300, 287, 290,
893 301, 291, 302, 292, 303, 293, 294, 295, 304, 305,
894 296, 297, 30, 746, 265, 30, 202, 746, 746, 355,
895 746, 298, 30, 299, 300, 30, 30, 301, 746, 302,
897 30, 303, 314, 30, 30, 304, 305, 30, 308, 746,
898 30, 30, 307, 306, 306, 306, 306, 306, 306, 306,
899 746, 315, 30, 746, 30, 30, 30, 30, 356, 314,
900 30, 30, 309, 30, 30, 316, 30, 30, 317, 307,
901 30, 318, 30, 30, 30, 319, 322, 30, 315, 30,
902 30, 30, 30, 325, 328, 30, 30, 329, 332, 333,
903 334, 337, 316, 338, 30, 317, 340, 746, 318, 30,
904 341, 344, 319, 322, 345, 30, 346, 347, 348, 349,
905 325, 328, 30, 350, 329, 332, 333, 334, 337, 30,
906 338, 351, 352, 340, 30, 353, 354, 341, 344, 359,
908 364, 345, 360, 346, 347, 348, 349, 746, 30, 746,
909 350, 30, 30, 30, 396, 746, 30, 30, 351, 352,
910 361, 362, 353, 354, 30, 363, 359, 30, 30, 360,
911 357, 357, 357, 357, 357, 357, 357, 358, 30, 365,
912 366, 30, 30, 367, 368, 369, 370, 361, 362, 371,
913 30, 372, 363, 397, 373, 30, 374, 375, 376, 377,
914 378, 379, 380, 381, 358, 382, 30, 366, 383, 384,
915 367, 368, 369, 370, 385, 386, 371, 387, 372, 388,
916 30, 373, 389, 374, 375, 376, 377, 378, 379, 380,
917 381, 394, 382, 390, 391, 383, 384, 392, 393, 395,
919 398, 385, 386, 399, 387, 400, 388, 401, 402, 389,
920 403, 404, 405, 30, 407, 408, 30, 30, 394, 30,
921 390, 391, 30, 30, 392, 393, 395, 398, 746, 409,
922 399, 410, 400, 411, 401, 402, 412, 403, 404, 405,
923 413, 407, 408, 414, 415, 416, 418, 419, 421, 422,
924 423, 424, 425, 426, 406, 30, 409, 427, 410, 428,
925 411, 30, 429, 412, 430, 431, 432, 413, 433, 434,
926 414, 415, 416, 418, 419, 421, 422, 423, 424, 425,
927 426, 406, 435, 436, 427, 437, 428, 438, 439, 429,
928 440, 430, 431, 432, 441, 433, 434, 442, 443, 444,
930 445, 448, 451, 446, 452, 449, 453, 454, 455, 435,
931 436, 447, 437, 450, 438, 439, 30, 440, 456, 30,
932 30, 441, 457, 458, 442, 443, 444, 445, 448, 451,
933 446, 452, 449, 453, 454, 455, 459, 460, 447, 462,
934 450, 463, 464, 467, 468, 456, 469, 470, 471, 457,
935 458, 472, 475, 476, 477, 478, 479, 481, 30, 482,
936 483, 484, 485, 459, 486, 487, 462, 488, 463, 464,
937 467, 468, 489, 469, 470, 471, 461, 490, 472, 475,
938 476, 477, 478, 491, 481, 492, 482, 483, 484, 485,
939 493, 486, 487, 494, 488, 480, 495, 496, 497, 489,
941 498, 499, 500, 501, 490, 502, 503, 504, 505, 506,
942 491, 507, 492, 508, 509, 510, 511, 493, 512, 513,
943 494, 514, 515, 495, 496, 497, 516, 498, 499, 500,
944 501, 517, 502, 503, 504, 505, 506, 518, 507, 519,
945 508, 509, 510, 511, 520, 512, 513, 521, 514, 515,
946 522, 523, 524, 516, 525, 528, 529, 530, 517, 531,
947 532, 533, 534, 535, 518, 536, 519, 537, 538, 539,
948 540, 520, 541, 542, 521, 543, 544, 522, 523, 524,
949 545, 525, 528, 529, 530, 546, 531, 532, 533, 534,
950 535, 547, 536, 548, 537, 538, 539, 540, 549, 541,
952 542, 550, 543, 544, 551, 552, 553, 545, 554, 555,
953 556, 557, 546, 558, 559, 560, 561, 562, 547, 563,
954 548, 564, 565, 566, 567, 549, 568, 569, 550, 570,
955 571, 551, 552, 553, 572, 554, 555, 556, 557, 575,
956 558, 559, 560, 561, 562, 576, 563, 577, 564, 565,
957 566, 567, 578, 568, 569, 585, 570, 571, 586, 587,
958 588, 572, 589, 590, 591, 592, 575, 593, 594, 595,
959 596, 598, 576, 599, 577, 600, 601, 602, 603, 578,
960 604, 605, 585, 606, 607, 586, 587, 588, 610, 589,
961 590, 591, 592, 611, 593, 594, 595, 596, 598, 612,
963 599, 613, 600, 601, 602, 603, 614, 604, 605, 615,
964 606, 607, 616, 617, 618, 610, 619, 620, 621, 622,
965 611, 623, 624, 625, 626, 627, 612, 628, 613, 629,
966 630, 631, 632, 614, 633, 634, 615, 635, 636, 616,
967 617, 618, 637, 619, 620, 621, 622, 638, 623, 624,
968 625, 626, 627, 639, 628, 640, 629, 630, 631, 632,
969 641, 633, 634, 646, 635, 636, 647, 648, 649, 637,
970 650, 651, 652, 653, 638, 656, 657, 658, 659, 660,
971 639, 661, 640, 662, 663, 664, 665, 641, 666, 667,
972 646, 668, 669, 647, 648, 649, 670, 650, 651, 652,
974 653, 671, 656, 657, 658, 659, 660, 672, 661, 673,
975 662, 663, 664, 665, 674, 666, 667, 675, 668, 669,
976 678, 679, 680, 670, 682, 683, 685, 686, 671, 687,
977 688, 689, 690, 691, 672, 692, 673, 693, 694, 695,
978 698, 674, 700, 702, 675, 703, 704, 678, 679, 680,
979 705, 682, 683, 685, 686, 706, 687, 688, 689, 690,
980 691, 707, 692, 712, 693, 694, 695, 698, 713, 700,
981 702, 714, 703, 704, 715, 716, 717, 705, 720, 721,
982 722, 723, 706, 728, 729, 730, 731, 732, 707, 733,
983 712, 734, 735, 736, 737, 713, 738, 739, 714, 740,
985 741, 715, 716, 717, 742, 720, 721, 722, 723, 743,
986 728, 729, 730, 731, 732, 746, 733, 746, 734, 735,
987 736, 737, 746, 738, 739, 746, 740, 741, 746, 746,
988 746, 742, 746, 746, 746, 746, 743, 26, 746, 26,
989 51, 51, 51, 3, 746, 746, 746, 746, 746, 746,
990 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
991 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
992 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
993 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
994 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
996 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
997 746, 746, 746, 746, 746, 746, 746
1000 static yyconst flex_int16_t yy_chk
[2118] =
1002 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1003 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1004 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1005 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1006 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1007 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1008 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1009 1, 1, 1, 11, 15, 11, 11, 11, 11, 11,
1010 11, 11, 12, 12, 12, 12, 12, 12, 12, 14,
1011 16, 17, 14, 18, 16, 19, 20, 21, 22, 23,
1013 24, 15, 22, 55, 17, 56, 57, 30, 21, 58,
1014 30, 30, 63, 64, 21, 750, 14, 16, 17, 14,
1015 18, 16, 19, 20, 21, 22, 23, 24, 748, 22,
1016 55, 17, 56, 57, 741, 21, 58, 740, 717, 63,
1017 64, 21, 28, 28, 28, 28, 28, 28, 28, 30,
1018 716, 65, 28, 28, 28, 28, 28, 28, 28, 28,
1019 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
1020 28, 28, 28, 28, 28, 28, 28, 28, 65, 28,
1021 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
1022 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
1024 28, 28, 28, 28, 28, 29, 29, 29, 29, 29,
1025 29, 29, 31, 88, 715, 31, 31, 93, 31, 31,
1026 31, 31, 31, 31, 31, 33, 33, 33, 33, 33,
1027 33, 33, 35, 714, 36, 35, 35, 36, 36, 34,
1028 88, 37, 34, 34, 37, 37, 705, 704, 89, 38,
1029 35, 36, 38, 38, 31, 32, 93, 90, 32, 32,
1030 37, 32, 32, 32, 32, 32, 32, 32, 34, 39,
1031 695, 694, 39, 39, 35, 89, 36, 35, 36, 91,
1032 59, 34, 38, 37, 90, 40, 59, 37, 40, 40,
1033 41, 38, 693, 41, 41, 34, 39, 32, 42, 139,
1035 43, 42, 42, 43, 43, 692, 91, 59, 685, 38,
1036 92, 39, 94, 59, 41, 44, 42, 45, 44, 44,
1037 45, 45, 40, 39, 682, 60, 44, 40, 60, 43,
1038 679, 46, 41, 54, 46, 46, 45, 92, 139, 94,
1039 42, 41, 43, 42, 95, 54, 678, 47, 96, 40,
1040 47, 47, 60, 97, 98, 60, 43, 44, 48, 45,
1041 54, 48, 48, 45, 46, 49, 99, 664, 49, 49,
1042 101, 95, 54, 46, 50, 96, 47, 50, 50, 102,
1043 97, 98, 61, 661, 61, 62, 61, 657, 104, 47,
1044 105, 46, 48, 99, 62, 62, 656, 101, 49, 103,
1046 48, 62, 627, 47, 626, 615, 102, 49, 614, 61,
1047 50, 61, 62, 61, 103, 104, 50, 105, 613, 48,
1048 67, 62, 62, 67, 67, 49, 103, 612, 62, 66,
1049 66, 66, 66, 66, 66, 66, 100, 50, 53, 53,
1050 53, 103, 106, 100, 53, 53, 107, 127, 128, 130,
1051 53, 131, 53, 129, 53, 53, 53, 53, 53, 570,
1052 134, 129, 67, 100, 135, 53, 53, 53, 569, 106,
1053 100, 53, 53, 107, 127, 128, 130, 53, 131, 53,
1054 129, 53, 53, 53, 53, 53, 68, 134, 129, 68,
1055 68, 135, 68, 68, 68, 68, 68, 68, 68, 70,
1057 70, 70, 70, 70, 70, 70, 72, 136, 71, 72,
1058 72, 71, 71, 73, 558, 74, 73, 73, 74, 74,
1059 541, 75, 540, 77, 75, 75, 77, 77, 68, 69,
1060 77, 539, 69, 69, 136, 69, 69, 69, 69, 69,
1061 69, 69, 71, 76, 538, 137, 76, 76, 72, 73,
1062 71, 75, 138, 140, 141, 73, 79, 74, 81, 79,
1063 79, 81, 81, 75, 78, 77, 142, 78, 78, 71,
1064 80, 69, 137, 80, 80, 143, 73, 76, 75, 138,
1065 140, 141, 537, 79, 78, 76, 82, 147, 83, 82,
1066 82, 83, 83, 142, 536, 531, 80, 144, 79, 84,
1068 81, 530, 84, 84, 76, 85, 78, 478, 85, 85,
1069 79, 78, 80, 145, 143, 146, 83, 86, 84, 149,
1070 86, 86, 82, 80, 144, 85, 147, 477, 82, 113,
1071 83, 87, 113, 113, 87, 87, 424, 423, 416, 415,
1072 145, 84, 146, 83, 372, 84, 149, 85, 182, 82,
1073 168, 87, 85, 113, 86, 369, 169, 170, 290, 86,
1074 108, 108, 108, 108, 108, 108, 108, 278, 277, 275,
1075 274, 113, 126, 87, 51, 126, 126, 168, 87, 27,
1076 113, 86, 109, 169, 170, 109, 109, 182, 109, 109,
1077 109, 109, 109, 109, 109, 112, 112, 112, 112, 112,
1079 112, 112, 193, 171, 114, 26, 115, 114, 114, 115,
1080 115, 25, 10, 152, 126, 172, 152, 152, 116, 9,
1081 8, 116, 116, 3, 109, 110, 114, 2, 110, 110,
1082 171, 110, 110, 110, 110, 110, 110, 110, 116, 115,
1083 117, 193, 172, 117, 117, 0, 114, 118, 115, 0,
1084 118, 118, 0, 114, 119, 152, 117, 119, 119, 121,
1085 116, 0, 121, 121, 0, 116, 115, 110, 111, 0,
1086 118, 111, 111, 0, 111, 111, 111, 111, 111, 111,
1087 111, 120, 117, 117, 120, 120, 121, 174, 122, 118,
1088 119, 122, 122, 0, 175, 123, 119, 118, 123, 123,
1090 124, 121, 198, 124, 124, 120, 176, 132, 125, 148,
1091 111, 125, 125, 121, 174, 173, 132, 119, 132, 177,
1092 133, 175, 178, 120, 122, 123, 173, 0, 125, 133,
1093 122, 133, 120, 176, 132, 124, 238, 123, 179, 148,
1094 266, 198, 124, 132, 0, 132, 177, 133, 148, 178,
1095 125, 122, 123, 0, 173, 125, 133, 267, 133, 0,
1096 154, 0, 124, 154, 154, 179, 148, 150, 150, 150,
1097 150, 150, 150, 150, 151, 238, 280, 151, 151, 266,
1098 151, 151, 151, 151, 151, 151, 151, 153, 153, 153,
1099 153, 153, 153, 153, 154, 155, 267, 156, 155, 155,
1101 156, 156, 154, 157, 0, 158, 157, 157, 158, 158,
1102 159, 0, 0, 159, 159, 280, 151, 0, 0, 159,
1103 160, 154, 159, 160, 160, 161, 180, 162, 161, 161,
1104 162, 162, 163, 181, 0, 163, 163, 155, 165, 156,
1105 0, 165, 165, 183, 161, 157, 164, 158, 163, 164,
1106 164, 184, 159, 180, 166, 185, 162, 166, 166, 186,
1107 181, 167, 160, 187, 167, 167, 165, 161, 188, 162,
1108 183, 161, 189, 190, 163, 163, 283, 191, 184, 164,
1109 165, 192, 185, 162, 194, 197, 186, 199, 164, 195,
1110 187, 200, 195, 165, 167, 188, 166, 215, 196, 189,
1112 190, 196, 0, 167, 191, 0, 164, 0, 192, 0,
1113 216, 194, 197, 287, 199, 283, 195, 293, 200, 195,
1114 0, 167, 217, 218, 215, 196, 219, 220, 196, 201,
1115 201, 201, 201, 201, 201, 201, 202, 216, 0, 202,
1116 202, 222, 202, 202, 202, 202, 202, 202, 202, 217,
1117 218, 0, 287, 219, 220, 206, 293, 205, 206, 206,
1118 205, 205, 207, 0, 206, 207, 207, 206, 222, 223,
1119 207, 208, 0, 209, 208, 208, 209, 209, 202, 203,
1120 0, 208, 203, 203, 224, 203, 203, 203, 203, 203,
1121 203, 203, 205, 209, 0, 225, 223, 206, 210, 205,
1123 0, 210, 210, 211, 207, 212, 211, 211, 212, 212,
1124 226, 224, 227, 208, 213, 209, 228, 213, 213, 205,
1125 209, 203, 225, 214, 229, 230, 214, 214, 231, 0,
1126 0, 232, 210, 233, 234, 235, 236, 226, 0, 227,
1127 210, 237, 239, 228, 240, 211, 241, 212, 242, 243,
1128 244, 229, 230, 245, 246, 231, 213, 214, 232, 210,
1129 233, 234, 235, 236, 247, 214, 248, 249, 237, 239,
1130 250, 240, 251, 241, 252, 242, 243, 244, 253, 254,
1131 245, 246, 257, 0, 214, 257, 257, 0, 0, 305,
1132 0, 247, 258, 248, 249, 258, 258, 250, 0, 251,
1134 259, 252, 268, 259, 259, 253, 254, 256, 259, 0,
1135 256, 256, 258, 256, 256, 256, 256, 256, 256, 256,
1136 0, 269, 260, 0, 257, 260, 260, 261, 305, 268,
1137 261, 261, 260, 262, 258, 270, 262, 262, 271, 258,
1138 263, 272, 259, 263, 263, 273, 276, 264, 269, 256,
1139 264, 264, 265, 279, 281, 265, 265, 282, 284, 285,
1140 286, 288, 270, 289, 260, 271, 291, 0, 272, 261,
1141 292, 294, 273, 276, 295, 262, 296, 297, 298, 299,
1142 279, 281, 263, 300, 282, 284, 285, 286, 288, 264,
1143 289, 301, 302, 291, 265, 303, 304, 292, 294, 310,
1145 315, 295, 311, 296, 297, 298, 299, 0, 307, 0,
1146 300, 307, 307, 308, 346, 0, 308, 308, 301, 302,
1147 312, 313, 303, 304, 306, 314, 310, 306, 306, 311,
1148 306, 306, 306, 306, 306, 306, 306, 307, 309, 315,
1149 316, 309, 309, 317, 318, 319, 320, 312, 313, 321,
1150 307, 322, 314, 346, 323, 308, 324, 326, 327, 328,
1151 329, 330, 331, 332, 307, 333, 306, 316, 334, 335,
1152 317, 318, 319, 320, 336, 337, 321, 338, 322, 340,
1153 309, 323, 341, 324, 326, 327, 328, 329, 330, 331,
1154 332, 344, 333, 342, 342, 334, 335, 343, 343, 345,
1156 347, 336, 337, 348, 338, 349, 340, 350, 352, 341,
1157 353, 355, 356, 357, 359, 360, 357, 357, 344, 358,
1158 342, 342, 358, 358, 343, 343, 345, 347, 0, 361,
1159 348, 362, 349, 363, 350, 352, 364, 353, 355, 356,
1160 365, 359, 360, 366, 367, 368, 370, 371, 373, 374,
1161 375, 376, 377, 378, 358, 357, 361, 379, 362, 380,
1162 363, 358, 381, 364, 382, 383, 384, 365, 385, 386,
1163 366, 367, 368, 370, 371, 373, 374, 375, 376, 377,
1164 378, 358, 387, 388, 379, 389, 380, 390, 391, 381,
1165 392, 382, 383, 384, 393, 385, 386, 394, 395, 396,
1167 397, 399, 401, 398, 402, 400, 403, 404, 405, 387,
1168 388, 398, 389, 400, 390, 391, 406, 392, 407, 406,
1169 406, 393, 408, 409, 394, 395, 396, 397, 399, 401,
1170 398, 402, 400, 403, 404, 405, 410, 411, 398, 412,
1171 400, 413, 414, 417, 418, 407, 419, 420, 421, 408,
1172 409, 422, 425, 426, 427, 428, 429, 430, 406, 431,
1173 432, 433, 434, 410, 435, 436, 412, 437, 413, 414,
1174 417, 418, 438, 419, 420, 421, 411, 439, 422, 425,
1175 426, 427, 428, 440, 430, 441, 431, 432, 433, 434,
1176 442, 435, 436, 443, 437, 429, 444, 445, 446, 438,
1178 447, 448, 449, 450, 439, 451, 454, 455, 456, 457,
1179 440, 458, 441, 459, 460, 461, 462, 442, 463, 464,
1180 443, 465, 466, 444, 445, 446, 467, 447, 448, 449,
1181 450, 468, 451, 454, 455, 456, 457, 469, 458, 470,
1182 459, 460, 461, 462, 471, 463, 464, 472, 465, 466,
1183 473, 474, 475, 467, 476, 479, 480, 481, 468, 482,
1184 483, 484, 485, 486, 469, 487, 470, 488, 489, 490,
1185 491, 471, 492, 495, 472, 496, 497, 473, 474, 475,
1186 498, 476, 479, 480, 481, 499, 482, 483, 484, 485,
1187 486, 500, 487, 501, 488, 489, 490, 491, 502, 492,
1189 495, 505, 496, 497, 506, 507, 508, 498, 509, 510,
1190 511, 512, 499, 513, 514, 515, 516, 517, 500, 518,
1191 501, 519, 520, 521, 522, 502, 523, 524, 505, 525,
1192 528, 506, 507, 508, 529, 509, 510, 511, 512, 532,
1193 513, 514, 515, 516, 517, 533, 518, 534, 519, 520,
1194 521, 522, 535, 523, 524, 544, 525, 528, 545, 547,
1195 548, 529, 550, 551, 552, 553, 532, 554, 555, 556,
1196 557, 559, 533, 560, 534, 561, 562, 563, 564, 535,
1197 565, 566, 544, 567, 568, 545, 547, 548, 571, 550,
1198 551, 552, 553, 572, 554, 555, 556, 557, 559, 575,
1200 560, 576, 561, 562, 563, 564, 577, 565, 566, 578,
1201 567, 568, 581, 582, 583, 571, 584, 585, 587, 589,
1202 572, 590, 591, 592, 593, 594, 575, 595, 576, 596,
1203 598, 599, 600, 577, 601, 602, 578, 603, 604, 581,
1204 582, 583, 605, 584, 585, 587, 589, 606, 590, 591,
1205 592, 593, 594, 607, 595, 610, 596, 598, 599, 600,
1206 611, 601, 602, 616, 603, 604, 617, 618, 619, 605,
1207 622, 623, 624, 625, 606, 628, 629, 630, 631, 632,
1208 607, 633, 610, 634, 635, 636, 637, 611, 638, 639,
1209 616, 640, 641, 617, 618, 619, 642, 622, 623, 624,
1211 625, 643, 628, 629, 630, 631, 632, 646, 633, 647,
1212 634, 635, 636, 637, 648, 638, 639, 649, 640, 641,
1213 658, 659, 660, 642, 662, 663, 665, 666, 643, 667,
1214 668, 669, 670, 671, 646, 672, 647, 673, 674, 675,
1215 680, 648, 683, 686, 649, 687, 688, 658, 659, 660,
1216 689, 662, 663, 665, 666, 690, 667, 668, 669, 670,
1217 671, 691, 672, 696, 673, 674, 675, 680, 697, 683,
1218 686, 698, 687, 688, 700, 702, 703, 689, 706, 707,
1219 712, 713, 690, 718, 719, 720, 721, 722, 691, 723,
1220 696, 728, 729, 730, 731, 697, 734, 735, 698, 736,
1222 737, 700, 702, 703, 738, 706, 707, 712, 713, 739,
1223 718, 719, 720, 721, 722, 0, 723, 0, 728, 729,
1224 730, 731, 0, 734, 735, 0, 736, 737, 0, 0,
1225 0, 738, 0, 0, 0, 0, 739, 747, 0, 747,
1226 749, 749, 749, 746, 746, 746, 746, 746, 746, 746,
1227 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
1228 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
1229 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
1230 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
1231 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
1233 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
1234 746, 746, 746, 746, 746, 746, 746
1237 static yyconst flex_int16_t yy_rule_linenum
[88] =
1239 77, 79, 81, 83, 85, 88, 92, 94, 95, 96,
1240 97, 98, 99, 100, 101, 102, 103, 104, 105, 106,
1241 107, 108, 109, 110, 111, 112, 113, 114, 115, 116,
1242 117, 118, 119, 120, 121, 122, 123, 124, 125, 126,
1243 127, 128, 129, 130, 131, 132, 133, 134, 135, 136,
1244 137, 138, 139, 140, 141, 142, 143, 144, 145, 146,
1245 148, 149, 151, 152, 153, 154, 155, 156, 158, 159,
1246 162, 167, 168, 169, 171, 172, 173, 174, 175, 176,
1247 177, 178, 179, 181, 190, 208, 214
1250 /* The intent behind this definition is that it'll catch
1251 * any uses of REJECT which flex missed.
1253 #define REJECT reject_used_but_not_detected
1254 #define yymore() yymore_used_but_not_detected
1255 #define YY_MORE_ADJ 0
1256 #define YY_RESTORE_YY_MORE_OFFSET
1257 #line 1 "libmemcached/options/scanner.l"
1258 /* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
1260 * Libmemcached Scanner and Parser
1262 * Copyright (C) 2011 DataDifferental, http://datadifferential.com
1264 * This program is free software: you can redistribute it and/or modify
1265 * it under the terms of the GNU Affero General Public License as
1266 * published by the Free Software Foundation, either version 3 of the
1267 * License, or (at your option) any later version.
1269 * This program is distributed in the hope that it will be useful,
1270 * but WITHOUT ANY WARRANTY; without even the implied warranty of
1271 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1272 * GNU Affero General Public License for more details.
1274 * You should have received a copy of the GNU Affero General Public License
1275 * along with this program. If not, see <http://www.gnu.org/licenses/>.
1278 #line 38 "libmemcached/options/scanner.l"
1282 #define PARAM config_get_extra(yyscanner)
1284 #define get_lex_chars(buffer, result, max_size, context) \
1286 if (context->pos >= context->length) \
1292 result= (int)(context->length - context->pos); \
1293 (size_t)result > (size_t)max_size ? result= max_size : 0; \
1294 memcpy(buffer, context->buf + context->pos, result); \
1295 context->pos += result; \
1300 #define YY_INPUT(buffer, result, max_size) get_lex_chars(buffer, result, max_size, PARAM)
1302 #line 1303 "libmemcached/options/scanner.cc"
1306 #ifndef YY_NO_UNISTD_H
1307 /* Special case for "unistd.h", since it is non-ANSI. We include it way
1308 * down here because we want the user's section 1 to have been scanned first.
1309 * The user has a chance to override it with an option.
1318 #ifndef YY_EXTRA_TYPE
1319 #define YY_EXTRA_TYPE void *
1322 /* %if-c-only Reentrant structure and macros (non-C++). */
1325 /* Holds the entire state of the reentrant scanner. */
1329 /* User-defined. Not touched by flex. */
1330 YY_EXTRA_TYPE yyextra_r
;
1332 /* The rest are the same as the globals declared in the non-reentrant scanner. */
1333 FILE *yyin_r
, *yyout_r
;
1334 size_t yy_buffer_stack_top
; /**< index of top of stack. */
1335 size_t yy_buffer_stack_max
; /**< capacity of stack. */
1336 YY_BUFFER_STATE
* yy_buffer_stack
; /**< Stack as an array. */
1343 int yy_did_buffer_switch_on_eof
;
1344 int yy_start_stack_ptr
;
1345 int yy_start_stack_depth
;
1346 int *yy_start_stack
;
1347 yy_state_type yy_last_accepting_state
;
1348 char* yy_last_accepting_cpos
;
1351 int yy_flex_debug_r
;
1359 }; /* end struct yyguts_t */
1363 static int yy_init_globals (yyscan_t yyscanner
);
1369 /* This must go here because YYSTYPE and YYLTYPE are included
1370 * from bison output in section 1.*/
1371 # define yylval yyg->yylval_r
1373 int config_lex_init (yyscan_t
* scanner
);
1375 int config_lex_init_extra (YY_EXTRA_TYPE user_defined
,yyscan_t
* scanner
);
1379 /* %endif End reentrant structures and macros. */
1381 /* Accessor methods to globals.
1382 These are made visible to non-reentrant scanners for convenience. */
1384 int config_lex_destroy (yyscan_t yyscanner
);
1386 int config_get_debug (yyscan_t yyscanner
);
1388 void config_set_debug (int debug_flag
,yyscan_t yyscanner
);
1390 YY_EXTRA_TYPE
config_get_extra (yyscan_t yyscanner
);
1392 void config_set_extra (YY_EXTRA_TYPE user_defined
,yyscan_t yyscanner
);
1394 FILE *config_get_in (yyscan_t yyscanner
);
1396 void config_set_in (FILE * in_str
,yyscan_t yyscanner
);
1398 FILE *config_get_out (yyscan_t yyscanner
);
1400 void config_set_out (FILE * out_str
,yyscan_t yyscanner
);
1402 int config_get_leng (yyscan_t yyscanner
);
1404 char *config_get_text (yyscan_t yyscanner
);
1406 int config_get_lineno (yyscan_t yyscanner
);
1408 void config_set_lineno (int line_number
,yyscan_t yyscanner
);
1410 int config_get_column (yyscan_t yyscanner
);
1412 void config_set_column (int column_no
,yyscan_t yyscanner
);
1414 /* %if-bison-bridge */
1416 YYSTYPE
* config_get_lval (yyscan_t yyscanner
);
1418 void config_set_lval (YYSTYPE
* yylval_param
,yyscan_t yyscanner
);
1422 /* Macros after this point can all be overridden by user definitions in
1426 #ifndef YY_SKIP_YYWRAP
1428 extern "C" int config_wrap (yyscan_t yyscanner
);
1430 extern int config_wrap (yyscan_t yyscanner
);
1434 /* %not-for-header */
1436 /* %ok-for-header */
1441 static void yy_flex_strncpy (char *,yyconst
char *,int ,yyscan_t yyscanner
);
1444 #ifdef YY_NEED_STRLEN
1445 static int yy_flex_strlen (yyconst
char * ,yyscan_t yyscanner
);
1449 /* %if-c-only Standard (non-C++) definition */
1450 /* %not-for-header */
1453 static int yyinput (yyscan_t yyscanner
);
1455 static int input (yyscan_t yyscanner
);
1457 /* %ok-for-header */
1466 /* Amount of stuff to slurp up with each read. */
1467 #ifndef YY_READ_BUF_SIZE
1468 #define YY_READ_BUF_SIZE 8192
1471 /* Copy whatever the last rule matched to the standard output. */
1473 /* %if-c-only Standard (non-C++) definition */
1474 /* This used to be an fputs(), but since the string might contain NUL's,
1475 * we now use fwrite().
1477 #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
1479 /* %if-c++-only C++ definition */
1483 /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
1484 * is returned in "result".
1487 #define YY_INPUT(buf,result,max_size) \
1488 /* %% [5.0] fread()/read() definition of YY_INPUT goes here unless we're doing C++ \ */\
1489 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
1493 for ( n = 0; n < max_size && \
1494 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
1495 buf[n] = (char) c; \
1497 buf[n++] = (char) c; \
1498 if ( c == EOF && ferror( yyin ) ) \
1499 YY_FATAL_ERROR( "input in flex scanner failed" ); \
1505 while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
1507 if( errno != EINTR) \
1509 YY_FATAL_ERROR( "input in flex scanner failed" ); \
1517 /* %if-c++-only C++ definition \ */\
1522 /* No semi-colon after return; correct usage is to write "yyterminate();" -
1523 * we don't want an extra ';' after the "return" because that will cause
1524 * some compilers to complain about unreachable statements.
1527 #define yyterminate() return YY_NULL
1530 /* Number of entries by which start-condition stack grows. */
1531 #ifndef YY_START_STACK_INCR
1532 #define YY_START_STACK_INCR 25
1535 /* Report a fatal error. */
1536 #ifndef YY_FATAL_ERROR
1538 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner)
1544 /* %if-tables-serialization structures and prototypes */
1545 /* %not-for-header */
1547 /* %ok-for-header */
1549 /* %not-for-header */
1551 /* %tables-yydmap generated elements */
1553 /* end tables serialization structures and prototypes */
1555 /* %ok-for-header */
1557 /* Default declaration of generated scanner - a define so the user can
1558 * easily add parameters.
1561 #define YY_DECL_IS_OURS 1
1562 /* %if-c-only Standard (non-C++) definition */
1564 extern int config_lex \
1565 (YYSTYPE
* yylval_param
,yyscan_t yyscanner
);
1567 #define YY_DECL int config_lex \
1568 (YYSTYPE * yylval_param , yyscan_t yyscanner)
1570 /* %if-c++-only C++ definition */
1572 #endif /* !YY_DECL */
1574 /* Code executed at the beginning of each rule, after yytext and yyleng
1577 #ifndef YY_USER_ACTION
1578 #define YY_USER_ACTION
1581 /* Code executed at the end of each rule. */
1583 #define YY_BREAK break;
1586 /* %% [6.0] YY_RULE_SETUP definition goes here */
1587 #define YY_RULE_SETUP \
1589 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \
1590 (yytext[yyleng - 1] == '\n'); \
1593 /* %not-for-header */
1595 /** The main scanner function which does all the work.
1599 register yy_state_type yy_current_state
;
1600 register char *yy_cp
, *yy_bp
;
1601 register int yy_act
;
1602 struct yyguts_t
* yyg
= (struct yyguts_t
*)yyscanner
;
1604 /* %% [7.0] user's declarations go here */
1605 #line 74 "libmemcached/options/scanner.l"
1609 #line 1610 "libmemcached/options/scanner.cc"
1611 yylval
= yylval_param
;
1613 if ( !yyg
->yy_init
)
1621 if ( ! yyg
->yy_start
)
1622 yyg
->yy_start
= 1; /* first start state */
1638 if ( ! YY_CURRENT_BUFFER
) {
1639 config_ensure_buffer_stack (yyscanner
);
1640 YY_CURRENT_BUFFER_LVALUE
=
1641 config__create_buffer(yyin
,YY_BUF_SIZE
,yyscanner
);
1644 config__load_buffer_state(yyscanner
);
1647 while ( 1 ) /* loops until end-of-file is reached */
1649 /* %% [8.0] yymore()-related code goes here */
1650 yy_cp
= yyg
->yy_c_buf_p
;
1652 /* Support of yytext. */
1653 *yy_cp
= yyg
->yy_hold_char
;
1655 /* yy_bp points to the position in yy_ch_buf of the start of
1660 /* %% [9.0] code to set up and find next match goes here */
1661 yy_current_state
= yyg
->yy_start
;
1662 yy_current_state
+= YY_AT_BOL();
1666 register YY_CHAR yy_c
= yy_ec
[YY_SC_TO_UI(*yy_cp
)];
1667 if ( yy_accept
[yy_current_state
] )
1669 yyg
->yy_last_accepting_state
= yy_current_state
;
1670 yyg
->yy_last_accepting_cpos
= yy_cp
;
1672 while ( yy_chk
[yy_base
[yy_current_state
] + yy_c
] != yy_current_state
)
1674 yy_current_state
= (int) yy_def
[yy_current_state
];
1675 if ( yy_current_state
>= 747 )
1676 yy_c
= yy_meta
[(unsigned int) yy_c
];
1678 yy_current_state
= yy_nxt
[yy_base
[yy_current_state
] + (unsigned int) yy_c
];
1681 while ( yy_base
[yy_current_state
] != 2044 );
1684 /* %% [10.0] code to find the action number goes here */
1685 yy_act
= yy_accept
[yy_current_state
];
1687 { /* have to back up */
1688 yy_cp
= yyg
->yy_last_accepting_cpos
;
1689 yy_current_state
= yyg
->yy_last_accepting_state
;
1690 yy_act
= yy_accept
[yy_current_state
];
1693 YY_DO_BEFORE_ACTION
;
1695 /* %% [11.0] code for yylineno update goes here */
1697 do_action
: /* This label is used only to access EOF actions. */
1699 /* %% [12.0] debug code goes here */
1700 if ( yy_flex_debug
)
1703 fprintf( stderr
, "--scanner backing up\n" );
1704 else if ( yy_act
< 88 )
1705 fprintf( stderr
, "--accepting rule at line %ld (\"%s\")\n",
1706 (long)yy_rule_linenum
[yy_act
], yytext
);
1707 else if ( yy_act
== 88 )
1708 fprintf( stderr
, "--accepting default rule (\"%s\")\n",
1710 else if ( yy_act
== 89 )
1711 fprintf( stderr
, "--(end of buffer or a NUL)\n" );
1713 fprintf( stderr
, "--EOF (start condition %d)\n", YY_START
);
1717 { /* beginning of action switch */
1718 /* %% [13.0] actions go here */
1719 case 0: /* must back up */
1720 /* undo the effects of YY_DO_BEFORE_ACTION */
1721 *yy_cp
= yyg
->yy_hold_char
;
1722 yy_cp
= yyg
->yy_last_accepting_cpos
;
1723 yy_current_state
= yyg
->yy_last_accepting_state
;
1724 goto yy_find_action
;
1728 #line 77 "libmemcached/options/scanner.l"
1729 { return yytext
[0];}
1733 #line 79 "libmemcached/options/scanner.l"
1734 { yylval
->number
= atoi(yytext
); return (NUMBER
); }
1738 #line 81 "libmemcached/options/scanner.l"
1739 { yylval
->server
.port
= atoi(yytext
+1); return PORT
; }
1743 #line 83 "libmemcached/options/scanner.l"
1744 { yylval
->server
.weight
= atoi(yytext
+2); return WEIGHT_START
; }
1747 /* rule 5 can match eol */
1749 #line 85 "libmemcached/options/scanner.l"
1750 ; /* skip whitespace */
1753 *yy_cp
= yyg
->yy_hold_char
; /* undo effects of setting up yytext */
1754 yyg
->yy_c_buf_p
= yy_cp
-= 1;
1755 YY_DO_BEFORE_ACTION
; /* set up yytext again */
1757 #line 88 "libmemcached/options/scanner.l"
1764 #line 92 "libmemcached/options/scanner.l"
1765 { yyextra
->begin
= yytext
; yyextra
->set_server(); return SERVER
; }
1769 #line 94 "libmemcached/options/scanner.l"
1770 { yyextra
->begin
= yytext
; return VERIFY_KEY
; }
1774 #line 95 "libmemcached/options/scanner.l"
1775 { yyextra
->begin
= yytext
; return VERIFY_KEY
; }
1779 #line 96 "libmemcached/options/scanner.l"
1780 { yyextra
->begin
= yytext
; return BINARY_PROTOCOL
; }
1784 #line 97 "libmemcached/options/scanner.l"
1785 { yyextra
->begin
= yytext
; return BINARY_PROTOCOL
; }
1789 #line 98 "libmemcached/options/scanner.l"
1790 { yyextra
->begin
= yytext
; return BUFFER_REQUESTS
; }
1794 #line 99 "libmemcached/options/scanner.l"
1795 { yyextra
->begin
= yytext
; return BUFFER_REQUESTS
; }
1799 #line 100 "libmemcached/options/scanner.l"
1800 { yyextra
->begin
= yytext
; return CONFIGURE_FILE
; }
1804 #line 101 "libmemcached/options/scanner.l"
1805 { yyextra
->begin
= yytext
; return CONFIGURE_FILE
; }
1809 #line 102 "libmemcached/options/scanner.l"
1810 { yyextra
->begin
= yytext
; return CONNECT_TIMEOUT
; }
1814 #line 103 "libmemcached/options/scanner.l"
1815 { yyextra
->begin
= yytext
; return CONNECT_TIMEOUT
; }
1819 #line 104 "libmemcached/options/scanner.l"
1820 { yyextra
->begin
= yytext
; return DISTRIBUTION
; }
1824 #line 105 "libmemcached/options/scanner.l"
1825 { yyextra
->begin
= yytext
; return HASH
; }
1829 #line 106 "libmemcached/options/scanner.l"
1830 { yyextra
->begin
= yytext
; return HASH_WITH_PREFIX_KEY
; }
1834 #line 107 "libmemcached/options/scanner.l"
1835 { yyextra
->begin
= yytext
; return HASH_WITH_PREFIX_KEY
; }
1839 #line 108 "libmemcached/options/scanner.l"
1840 { yyextra
->begin
= yytext
; return IO_BYTES_WATERMARK
; }
1844 #line 109 "libmemcached/options/scanner.l"
1845 { yyextra
->begin
= yytext
; return IO_BYTES_WATERMARK
; }
1849 #line 110 "libmemcached/options/scanner.l"
1850 { yyextra
->begin
= yytext
; return IO_KEY_PREFETCH
; }
1854 #line 111 "libmemcached/options/scanner.l"
1855 { yyextra
->begin
= yytext
; return IO_KEY_PREFETCH
; }
1859 #line 112 "libmemcached/options/scanner.l"
1860 { yyextra
->begin
= yytext
; return IO_MSG_WATERMARK
; }
1864 #line 113 "libmemcached/options/scanner.l"
1865 { yyextra
->begin
= yytext
; return IO_MSG_WATERMARK
; }
1869 #line 114 "libmemcached/options/scanner.l"
1870 { yyextra
->begin
= yytext
; return NOREPLY
; }
1874 #line 115 "libmemcached/options/scanner.l"
1875 { yyextra
->begin
= yytext
; return NUMBER_OF_REPLICAS
; }
1879 #line 116 "libmemcached/options/scanner.l"
1880 { yyextra
->begin
= yytext
; return NUMBER_OF_REPLICAS
; }
1884 #line 117 "libmemcached/options/scanner.l"
1885 { yyextra
->begin
= yytext
; return POLL_TIMEOUT
; }
1889 #line 118 "libmemcached/options/scanner.l"
1890 { yyextra
->begin
= yytext
; return POLL_TIMEOUT
; }
1894 #line 119 "libmemcached/options/scanner.l"
1895 { yyextra
->begin
= yytext
; return RANDOMIZE_REPLICA_READ
; }
1899 #line 120 "libmemcached/options/scanner.l"
1900 { yyextra
->begin
= yytext
; return RANDOMIZE_REPLICA_READ
; }
1904 #line 121 "libmemcached/options/scanner.l"
1905 { yyextra
->begin
= yytext
; return RCV_TIMEOUT
; }
1909 #line 122 "libmemcached/options/scanner.l"
1910 { yyextra
->begin
= yytext
; return RCV_TIMEOUT
; }
1914 #line 123 "libmemcached/options/scanner.l"
1915 { yyextra
->begin
= yytext
; return RETRY_TIMEOUT
; }
1919 #line 124 "libmemcached/options/scanner.l"
1920 { yyextra
->begin
= yytext
; return RETRY_TIMEOUT
; }
1924 #line 125 "libmemcached/options/scanner.l"
1925 { yyextra
->begin
= yytext
; return SND_TIMEOUT
; }
1929 #line 126 "libmemcached/options/scanner.l"
1930 { yyextra
->begin
= yytext
; return SND_TIMEOUT
; }
1934 #line 127 "libmemcached/options/scanner.l"
1935 { yyextra
->begin
= yytext
; return REMOVE_FAILED_SERVERS
; }
1939 #line 128 "libmemcached/options/scanner.l"
1940 { yyextra
->begin
= yytext
; return REMOVE_FAILED_SERVERS
; }
1944 #line 129 "libmemcached/options/scanner.l"
1945 { yyextra
->begin
= yytext
; return SOCKET_RECV_SIZE
; }
1949 #line 130 "libmemcached/options/scanner.l"
1950 { yyextra
->begin
= yytext
; return SOCKET_RECV_SIZE
; }
1954 #line 131 "libmemcached/options/scanner.l"
1955 { yyextra
->begin
= yytext
; return SOCKET_SEND_SIZE
; }
1959 #line 132 "libmemcached/options/scanner.l"
1960 { yyextra
->begin
= yytext
; return SOCKET_SEND_SIZE
; }
1964 #line 133 "libmemcached/options/scanner.l"
1965 { yyextra
->begin
= yytext
; return SORT_HOSTS
; }
1969 #line 134 "libmemcached/options/scanner.l"
1970 { yyextra
->begin
= yytext
; return SORT_HOSTS
; }
1974 #line 135 "libmemcached/options/scanner.l"
1975 { yyextra
->begin
= yytext
; return SUPPORT_CAS
; }
1979 #line 136 "libmemcached/options/scanner.l"
1980 { yyextra
->begin
= yytext
; return SUPPORT_CAS
; }
1984 #line 137 "libmemcached/options/scanner.l"
1985 { yyextra
->begin
= yytext
; return _TCP_NODELAY
; }
1989 #line 138 "libmemcached/options/scanner.l"
1990 { yyextra
->begin
= yytext
; return _TCP_NODELAY
; }
1994 #line 139 "libmemcached/options/scanner.l"
1995 { yyextra
->begin
= yytext
; return _TCP_KEEPALIVE
; }
1999 #line 140 "libmemcached/options/scanner.l"
2000 { yyextra
->begin
= yytext
; return _TCP_KEEPALIVE
; }
2004 #line 141 "libmemcached/options/scanner.l"
2005 { yyextra
->begin
= yytext
; return _TCP_KEEPIDLE
; }
2009 #line 142 "libmemcached/options/scanner.l"
2010 { yyextra
->begin
= yytext
; return _TCP_KEEPIDLE
; }
2014 #line 143 "libmemcached/options/scanner.l"
2015 { yyextra
->begin
= yytext
; return USER_DATA
; }
2019 #line 144 "libmemcached/options/scanner.l"
2020 { yyextra
->begin
= yytext
; return USER_DATA
; }
2024 #line 145 "libmemcached/options/scanner.l"
2025 { yyextra
->begin
= yytext
; return USE_UDP
; }
2029 #line 146 "libmemcached/options/scanner.l"
2030 { yyextra
->begin
= yytext
; return USE_UDP
; }
2034 #line 148 "libmemcached/options/scanner.l"
2035 { yyextra
->begin
= yytext
; return PREFIX_KEY
; }
2039 #line 149 "libmemcached/options/scanner.l"
2040 { yyextra
->begin
= yytext
; return PREFIX_KEY
; }
2044 #line 151 "libmemcached/options/scanner.l"
2045 { yyextra
->begin
= yytext
; return INCLUDE
; }
2049 #line 152 "libmemcached/options/scanner.l"
2050 { yyextra
->begin
= yytext
; return RESET
; }
2054 #line 153 "libmemcached/options/scanner.l"
2055 { yyextra
->begin
= yytext
; return PARSER_DEBUG
; }
2059 #line 154 "libmemcached/options/scanner.l"
2060 { yyextra
->begin
= yytext
; return SERVERS
; }
2064 #line 155 "libmemcached/options/scanner.l"
2065 { yyextra
->begin
= yytext
; return END
; }
2069 #line 156 "libmemcached/options/scanner.l"
2070 { yyextra
->begin
= yytext
; return ERROR
; }
2074 #line 158 "libmemcached/options/scanner.l"
2079 #line 159 "libmemcached/options/scanner.l"
2084 #line 162 "libmemcached/options/scanner.l"
2086 yyextra
->begin
= yytext
;
2087 return UNKNOWN_OPTION
;
2092 #line 167 "libmemcached/options/scanner.l"
2093 { return CONSISTENT
; }
2097 #line 168 "libmemcached/options/scanner.l"
2102 #line 169 "libmemcached/options/scanner.l"
2107 #line 171 "libmemcached/options/scanner.l"
2112 #line 172 "libmemcached/options/scanner.l"
2117 #line 173 "libmemcached/options/scanner.l"
2122 #line 174 "libmemcached/options/scanner.l"
2123 { return FNV1A_64
; }
2127 #line 175 "libmemcached/options/scanner.l"
2132 #line 176 "libmemcached/options/scanner.l"
2133 { return FNV1A_32
; }
2137 #line 177 "libmemcached/options/scanner.l"
2142 #line 178 "libmemcached/options/scanner.l"
2147 #line 179 "libmemcached/options/scanner.l"
2152 #line 181 "libmemcached/options/scanner.l"
2154 yylval
->server
.port
= MEMCACHED_DEFAULT_PORT
;
2155 yylval
->server
.weight
= 1;
2156 yylval
->server
.c_str
= yyextra
->set_hostname(yytext
, yyleng
);
2157 if (yylval
->server
.c_str
)
2158 yylval
->server
.length
= yyleng
;
2164 #line 190 "libmemcached/options/scanner.l"
2166 if (yyextra
->is_server())
2168 yylval
->server
.port
= MEMCACHED_DEFAULT_PORT
;
2169 yylval
->server
.weight
= 1;
2170 yylval
->server
.c_str
= yyextra
->set_hostname(yytext
, yyleng
);
2171 if (yylval
->server
.c_str
)
2172 yylval
->server
.length
= yyleng
;
2177 yylval
->string
.c_str
= yytext
;
2178 yylval
->string
.length
= yyleng
;
2185 #line 208 "libmemcached/options/scanner.l"
2187 yylval
->string
.c_str
= yytext
;
2188 yylval
->string
.length
= yyleng
;
2189 return QUOTED_STRING
;
2194 #line 214 "libmemcached/options/scanner.l"
2196 yyextra
->begin
= yytext
;
2202 #line 219 "libmemcached/options/scanner.l"
2205 #line 2206 "libmemcached/options/scanner.cc"
2206 case YY_STATE_EOF(INITIAL
):
2209 case YY_END_OF_BUFFER
:
2211 /* Amount of text matched not including the EOB char. */
2212 int yy_amount_of_matched_text
= (int) (yy_cp
- yyg
->yytext_ptr
) - 1;
2214 /* Undo the effects of YY_DO_BEFORE_ACTION. */
2215 *yy_cp
= yyg
->yy_hold_char
;
2216 YY_RESTORE_YY_MORE_OFFSET
2218 if ( YY_CURRENT_BUFFER_LVALUE
->yy_buffer_status
== YY_BUFFER_NEW
)
2220 /* We're scanning a new file or input source. It's
2221 * possible that this happened because the user
2222 * just pointed yyin at a new source and called
2223 * config_lex(). If so, then we have to assure
2224 * consistency between YY_CURRENT_BUFFER and our
2225 * globals. Here is the right place to do so, because
2226 * this is the first action (other than possibly a
2227 * back-up) that will match for the new input source.
2229 yyg
->yy_n_chars
= YY_CURRENT_BUFFER_LVALUE
->yy_n_chars
;
2230 YY_CURRENT_BUFFER_LVALUE
->yy_input_file
= yyin
;
2231 YY_CURRENT_BUFFER_LVALUE
->yy_buffer_status
= YY_BUFFER_NORMAL
;
2234 /* Note that here we test for yy_c_buf_p "<=" to the position
2235 * of the first EOB in the buffer, since yy_c_buf_p will
2236 * already have been incremented past the NUL character
2237 * (since all states make transitions on EOB to the
2238 * end-of-buffer state). Contrast this with the test
2241 if ( yyg
->yy_c_buf_p
<= &YY_CURRENT_BUFFER_LVALUE
->yy_ch_buf
[yyg
->yy_n_chars
] )
2242 { /* This was really a NUL. */
2243 yy_state_type yy_next_state
;
2245 yyg
->yy_c_buf_p
= yyg
->yytext_ptr
+ yy_amount_of_matched_text
;
2247 yy_current_state
= yy_get_previous_state( yyscanner
);
2249 /* Okay, we're now positioned to make the NUL
2250 * transition. We couldn't have
2251 * yy_get_previous_state() go ahead and do it
2252 * for us because it doesn't know how to deal
2253 * with the possibility of jamming (and we don't
2254 * want to build jamming into it because then it
2255 * will run more slowly).
2258 yy_next_state
= yy_try_NUL_trans( yy_current_state
, yyscanner
);
2260 yy_bp
= yyg
->yytext_ptr
+ YY_MORE_ADJ
;
2262 if ( yy_next_state
)
2264 /* Consume the NUL. */
2265 yy_cp
= ++yyg
->yy_c_buf_p
;
2266 yy_current_state
= yy_next_state
;
2272 /* %% [14.0] code to do back-up for compressed tables and set up yy_cp goes here */
2273 yy_cp
= yyg
->yy_c_buf_p
;
2274 goto yy_find_action
;
2278 else switch ( yy_get_next_buffer( yyscanner
) )
2280 case EOB_ACT_END_OF_FILE
:
2282 yyg
->yy_did_buffer_switch_on_eof
= 0;
2284 if ( config_wrap(yyscanner
) )
2286 /* Note: because we've taken care in
2287 * yy_get_next_buffer() to have set up
2288 * yytext, we can now set up
2289 * yy_c_buf_p so that if some total
2290 * hoser (like flex itself) wants to
2291 * call the scanner after we return the
2292 * YY_NULL, it'll still work - another
2293 * YY_NULL will get returned.
2295 yyg
->yy_c_buf_p
= yyg
->yytext_ptr
+ YY_MORE_ADJ
;
2297 yy_act
= YY_STATE_EOF(YY_START
);
2303 if ( ! yyg
->yy_did_buffer_switch_on_eof
)
2309 case EOB_ACT_CONTINUE_SCAN
:
2311 yyg
->yytext_ptr
+ yy_amount_of_matched_text
;
2313 yy_current_state
= yy_get_previous_state( yyscanner
);
2315 yy_cp
= yyg
->yy_c_buf_p
;
2316 yy_bp
= yyg
->yytext_ptr
+ YY_MORE_ADJ
;
2319 case EOB_ACT_LAST_MATCH
:
2321 &YY_CURRENT_BUFFER_LVALUE
->yy_ch_buf
[yyg
->yy_n_chars
];
2323 yy_current_state
= yy_get_previous_state( yyscanner
);
2325 yy_cp
= yyg
->yy_c_buf_p
;
2326 yy_bp
= yyg
->yytext_ptr
+ YY_MORE_ADJ
;
2327 goto yy_find_action
;
2334 "fatal flex scanner internal error--no action found" );
2335 } /* end of action switch */
2336 } /* end of scanning one token */
2337 } /* end of config_lex */
2338 /* %ok-for-header */
2341 /* %not-for-header */
2343 /* %ok-for-header */
2347 /* yy_get_next_buffer - try to read in a new buffer
2349 * Returns a code representing an action:
2350 * EOB_ACT_LAST_MATCH -
2351 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
2352 * EOB_ACT_END_OF_FILE - end of file
2355 static int yy_get_next_buffer (yyscan_t yyscanner
)
2360 struct yyguts_t
* yyg
= (struct yyguts_t
*)yyscanner
;
2361 register char *dest
= YY_CURRENT_BUFFER_LVALUE
->yy_ch_buf
;
2362 register char *source
= yyg
->yytext_ptr
;
2363 register int number_to_move
, i
;
2366 if ( yyg
->yy_c_buf_p
> &YY_CURRENT_BUFFER_LVALUE
->yy_ch_buf
[yyg
->yy_n_chars
+ 1] )
2368 "fatal flex scanner internal error--end of buffer missed" );
2370 if ( YY_CURRENT_BUFFER_LVALUE
->yy_fill_buffer
== 0 )
2371 { /* Don't try to fill the buffer, so this is an EOF. */
2372 if ( yyg
->yy_c_buf_p
- yyg
->yytext_ptr
- YY_MORE_ADJ
== 1 )
2374 /* We matched a single character, the EOB, so
2375 * treat this as a final EOF.
2377 return EOB_ACT_END_OF_FILE
;
2382 /* We matched some text prior to the EOB, first
2385 return EOB_ACT_LAST_MATCH
;
2389 /* Try to read more data. */
2391 /* First move last chars to start of buffer. */
2392 number_to_move
= (int) (yyg
->yy_c_buf_p
- yyg
->yytext_ptr
) - 1;
2394 for ( i
= 0; i
< number_to_move
; ++i
)
2395 *(dest
++) = *(source
++);
2397 if ( YY_CURRENT_BUFFER_LVALUE
->yy_buffer_status
== YY_BUFFER_EOF_PENDING
)
2398 /* don't do the read, it's not guaranteed to return an EOF,
2401 YY_CURRENT_BUFFER_LVALUE
->yy_n_chars
= yyg
->yy_n_chars
= 0;
2406 YY_CURRENT_BUFFER_LVALUE
->yy_buf_size
- number_to_move
- 1;
2408 while ( num_to_read
<= 0 )
2409 { /* Not enough room in the buffer - grow it. */
2411 /* just a shorter name for the current buffer */
2412 YY_BUFFER_STATE b
= YY_CURRENT_BUFFER
;
2414 int yy_c_buf_p_offset
=
2415 (int) (yyg
->yy_c_buf_p
- b
->yy_ch_buf
);
2417 if ( b
->yy_is_our_buffer
)
2419 int new_size
= b
->yy_buf_size
* 2;
2421 if ( new_size
<= 0 )
2422 b
->yy_buf_size
+= b
->yy_buf_size
/ 8;
2424 b
->yy_buf_size
*= 2;
2426 b
->yy_ch_buf
= (char *)
2427 /* Include room in for 2 EOB chars. */
2428 config_realloc((void *) b
->yy_ch_buf
,b
->yy_buf_size
+ 2 ,yyscanner
);
2431 /* Can't grow it, we don't own it. */
2434 if ( ! b
->yy_ch_buf
)
2436 "fatal error - scanner input buffer overflow" );
2438 yyg
->yy_c_buf_p
= &b
->yy_ch_buf
[yy_c_buf_p_offset
];
2440 num_to_read
= YY_CURRENT_BUFFER_LVALUE
->yy_buf_size
-
2445 if ( num_to_read
> YY_READ_BUF_SIZE
)
2446 num_to_read
= YY_READ_BUF_SIZE
;
2448 /* Read in more data. */
2449 YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE
->yy_ch_buf
[number_to_move
]),
2450 yyg
->yy_n_chars
, (size_t) num_to_read
);
2452 YY_CURRENT_BUFFER_LVALUE
->yy_n_chars
= yyg
->yy_n_chars
;
2455 if ( yyg
->yy_n_chars
== 0 )
2457 if ( number_to_move
== YY_MORE_ADJ
)
2459 ret_val
= EOB_ACT_END_OF_FILE
;
2460 config_restart(yyin
,yyscanner
);
2465 ret_val
= EOB_ACT_LAST_MATCH
;
2466 YY_CURRENT_BUFFER_LVALUE
->yy_buffer_status
=
2467 YY_BUFFER_EOF_PENDING
;
2472 ret_val
= EOB_ACT_CONTINUE_SCAN
;
2474 if ((yy_size_t
) (yyg
->yy_n_chars
+ number_to_move
) > YY_CURRENT_BUFFER_LVALUE
->yy_buf_size
) {
2475 /* Extend the array by 50%, plus the number we really need. */
2476 yy_size_t new_size
= yyg
->yy_n_chars
+ number_to_move
+ (yyg
->yy_n_chars
>> 1);
2477 YY_CURRENT_BUFFER_LVALUE
->yy_ch_buf
= (char *) config_realloc((void *) YY_CURRENT_BUFFER_LVALUE
->yy_ch_buf
,new_size
,yyscanner
);
2478 if ( ! YY_CURRENT_BUFFER_LVALUE
->yy_ch_buf
)
2479 YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
2482 yyg
->yy_n_chars
+= number_to_move
;
2483 YY_CURRENT_BUFFER_LVALUE
->yy_ch_buf
[yyg
->yy_n_chars
] = YY_END_OF_BUFFER_CHAR
;
2484 YY_CURRENT_BUFFER_LVALUE
->yy_ch_buf
[yyg
->yy_n_chars
+ 1] = YY_END_OF_BUFFER_CHAR
;
2486 yyg
->yytext_ptr
= &YY_CURRENT_BUFFER_LVALUE
->yy_ch_buf
[0];
2491 /* yy_get_previous_state - get the state just before the EOB char was reached */
2494 /* %not-for-header */
2496 static yy_state_type
yy_get_previous_state (yyscan_t yyscanner
)
2501 register yy_state_type yy_current_state
;
2502 register char *yy_cp
;
2503 struct yyguts_t
* yyg
= (struct yyguts_t
*)yyscanner
;
2505 /* %% [15.0] code to get the start state into yy_current_state goes here */
2506 yy_current_state
= yyg
->yy_start
;
2507 yy_current_state
+= YY_AT_BOL();
2509 for ( yy_cp
= yyg
->yytext_ptr
+ YY_MORE_ADJ
; yy_cp
< yyg
->yy_c_buf_p
; ++yy_cp
)
2511 /* %% [16.0] code to find the next state goes here */
2512 register YY_CHAR yy_c
= (*yy_cp
? yy_ec
[YY_SC_TO_UI(*yy_cp
)] : 1);
2513 if ( yy_accept
[yy_current_state
] )
2515 yyg
->yy_last_accepting_state
= yy_current_state
;
2516 yyg
->yy_last_accepting_cpos
= yy_cp
;
2518 while ( yy_chk
[yy_base
[yy_current_state
] + yy_c
] != yy_current_state
)
2520 yy_current_state
= (int) yy_def
[yy_current_state
];
2521 if ( yy_current_state
>= 747 )
2522 yy_c
= yy_meta
[(unsigned int) yy_c
];
2524 yy_current_state
= yy_nxt
[yy_base
[yy_current_state
] + (unsigned int) yy_c
];
2527 return yy_current_state
;
2530 /* yy_try_NUL_trans - try to make a transition on the NUL character
2533 * next_state = yy_try_NUL_trans( current_state );
2536 static yy_state_type
yy_try_NUL_trans (yy_state_type yy_current_state
, yyscan_t yyscanner
)
2541 register int yy_is_jam
;
2542 struct yyguts_t
* yyg
= (struct yyguts_t
*)yyscanner
; /* This var may be unused depending upon options. */
2543 /* %% [17.0] code to find the next state, and perhaps do backing up, goes here */
2544 register char *yy_cp
= yyg
->yy_c_buf_p
;
2546 register YY_CHAR yy_c
= 1;
2547 if ( yy_accept
[yy_current_state
] )
2549 yyg
->yy_last_accepting_state
= yy_current_state
;
2550 yyg
->yy_last_accepting_cpos
= yy_cp
;
2552 while ( yy_chk
[yy_base
[yy_current_state
] + yy_c
] != yy_current_state
)
2554 yy_current_state
= (int) yy_def
[yy_current_state
];
2555 if ( yy_current_state
>= 747 )
2556 yy_c
= yy_meta
[(unsigned int) yy_c
];
2558 yy_current_state
= yy_nxt
[yy_base
[yy_current_state
] + (unsigned int) yy_c
];
2559 yy_is_jam
= (yy_current_state
== 746);
2561 return yy_is_jam
? 0 : yy_current_state
;
2571 static int yyinput (yyscan_t yyscanner
)
2573 static int input (yyscan_t yyscanner
)
2581 struct yyguts_t
* yyg
= (struct yyguts_t
*)yyscanner
;
2583 *yyg
->yy_c_buf_p
= yyg
->yy_hold_char
;
2585 if ( *yyg
->yy_c_buf_p
== YY_END_OF_BUFFER_CHAR
)
2587 /* yy_c_buf_p now points to the character we want to return.
2588 * If this occurs *before* the EOB characters, then it's a
2589 * valid NUL; if not, then we've hit the end of the buffer.
2591 if ( yyg
->yy_c_buf_p
< &YY_CURRENT_BUFFER_LVALUE
->yy_ch_buf
[yyg
->yy_n_chars
] )
2592 /* This was really a NUL. */
2593 *yyg
->yy_c_buf_p
= '\0';
2596 { /* need more input */
2597 int offset
= yyg
->yy_c_buf_p
- yyg
->yytext_ptr
;
2600 switch ( yy_get_next_buffer( yyscanner
) )
2602 case EOB_ACT_LAST_MATCH
:
2603 /* This happens because yy_g_n_b()
2604 * sees that we've accumulated a
2605 * token and flags that we need to
2606 * try matching the token before
2607 * proceeding. But for input(),
2608 * there's no matching to consider.
2609 * So convert the EOB_ACT_LAST_MATCH
2610 * to EOB_ACT_END_OF_FILE.
2613 /* Reset buffer status. */
2614 config_restart(yyin
,yyscanner
);
2618 case EOB_ACT_END_OF_FILE
:
2620 if ( config_wrap(yyscanner
) )
2623 if ( ! yyg
->yy_did_buffer_switch_on_eof
)
2626 return yyinput(yyscanner
);
2628 return input(yyscanner
);
2632 case EOB_ACT_CONTINUE_SCAN
:
2633 yyg
->yy_c_buf_p
= yyg
->yytext_ptr
+ offset
;
2639 c
= *(unsigned char *) yyg
->yy_c_buf_p
; /* cast for 8-bit char's */
2640 *yyg
->yy_c_buf_p
= '\0'; /* preserve yytext */
2641 yyg
->yy_hold_char
= *++yyg
->yy_c_buf_p
;
2643 /* %% [19.0] update BOL and yylineno */
2644 YY_CURRENT_BUFFER_LVALUE
->yy_at_bol
= (c
== '\n');
2649 #endif /* ifndef YY_NO_INPUT */
2652 /** Immediately switch to a different input stream.
2653 * @param input_file A readable stream.
2654 * @param yyscanner The scanner object.
2655 * @note This function does not reset the start condition to @c INITIAL .
2658 void config_restart (FILE * input_file
, yyscan_t yyscanner
)
2663 struct yyguts_t
* yyg
= (struct yyguts_t
*)yyscanner
;
2665 if ( ! YY_CURRENT_BUFFER
){
2666 config_ensure_buffer_stack (yyscanner
);
2667 YY_CURRENT_BUFFER_LVALUE
=
2668 config__create_buffer(yyin
,YY_BUF_SIZE
,yyscanner
);
2671 config__init_buffer(YY_CURRENT_BUFFER
,input_file
,yyscanner
);
2672 config__load_buffer_state(yyscanner
);
2675 /** Switch to a different input buffer.
2676 * @param new_buffer The new input buffer.
2677 * @param yyscanner The scanner object.
2680 void config__switch_to_buffer (YY_BUFFER_STATE new_buffer
, yyscan_t yyscanner
)
2685 struct yyguts_t
* yyg
= (struct yyguts_t
*)yyscanner
;
2687 /* TODO. We should be able to replace this entire function body
2689 * config_pop_buffer_state();
2690 * config_push_buffer_state(new_buffer);
2692 config_ensure_buffer_stack (yyscanner
);
2693 if ( YY_CURRENT_BUFFER
== new_buffer
)
2696 if ( YY_CURRENT_BUFFER
)
2698 /* Flush out information for old buffer. */
2699 *yyg
->yy_c_buf_p
= yyg
->yy_hold_char
;
2700 YY_CURRENT_BUFFER_LVALUE
->yy_buf_pos
= yyg
->yy_c_buf_p
;
2701 YY_CURRENT_BUFFER_LVALUE
->yy_n_chars
= yyg
->yy_n_chars
;
2704 YY_CURRENT_BUFFER_LVALUE
= new_buffer
;
2705 config__load_buffer_state(yyscanner
);
2707 /* We don't actually know whether we did this switch during
2708 * EOF (config_wrap()) processing, but the only time this flag
2709 * is looked at is after config_wrap() is called, so it's safe
2710 * to go ahead and always set it.
2712 yyg
->yy_did_buffer_switch_on_eof
= 1;
2716 static void config__load_buffer_state (yyscan_t yyscanner
)
2721 struct yyguts_t
* yyg
= (struct yyguts_t
*)yyscanner
;
2722 yyg
->yy_n_chars
= YY_CURRENT_BUFFER_LVALUE
->yy_n_chars
;
2723 yyg
->yytext_ptr
= yyg
->yy_c_buf_p
= YY_CURRENT_BUFFER_LVALUE
->yy_buf_pos
;
2724 yyin
= YY_CURRENT_BUFFER_LVALUE
->yy_input_file
;
2725 yyg
->yy_hold_char
= *yyg
->yy_c_buf_p
;
2728 /** Allocate and initialize an input buffer state.
2729 * @param file A readable stream.
2730 * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
2731 * @param yyscanner The scanner object.
2732 * @return the allocated buffer state.
2735 YY_BUFFER_STATE
config__create_buffer (FILE * file
, int size
, yyscan_t yyscanner
)
2742 b
= (YY_BUFFER_STATE
) config_alloc(sizeof( struct yy_buffer_state
) ,yyscanner
);
2744 YY_FATAL_ERROR( "out of dynamic memory in config__create_buffer()" );
2746 b
->yy_buf_size
= size
;
2748 /* yy_ch_buf has to be 2 characters longer than the size given because
2749 * we need to put in 2 end-of-buffer characters.
2751 b
->yy_ch_buf
= (char *) config_alloc(b
->yy_buf_size
+ 2 ,yyscanner
);
2752 if ( ! b
->yy_ch_buf
)
2753 YY_FATAL_ERROR( "out of dynamic memory in config__create_buffer()" );
2755 b
->yy_is_our_buffer
= 1;
2757 config__init_buffer(b
,file
,yyscanner
);
2762 /** Destroy the buffer.
2763 * @param b a buffer created with config__create_buffer()
2764 * @param yyscanner The scanner object.
2767 void config__delete_buffer (YY_BUFFER_STATE b
, yyscan_t yyscanner
)
2772 struct yyguts_t
* yyg
= (struct yyguts_t
*)yyscanner
;
2777 if ( b
== YY_CURRENT_BUFFER
) /* Not sure if we should pop here. */
2778 YY_CURRENT_BUFFER_LVALUE
= (YY_BUFFER_STATE
) 0;
2780 if ( b
->yy_is_our_buffer
)
2781 config_free((void *) b
->yy_ch_buf
,yyscanner
);
2783 config_free((void *) b
,yyscanner
);
2789 extern int isatty (int );
2790 #endif /* __cplusplus */
2797 /* Initializes or reinitializes a buffer.
2798 * This function is sometimes called more than once on the same buffer,
2799 * such as during a config_restart() or at EOF.
2802 static void config__init_buffer (YY_BUFFER_STATE b
, FILE * file
, yyscan_t yyscanner
)
2809 struct yyguts_t
* yyg
= (struct yyguts_t
*)yyscanner
;
2811 config__flush_buffer(b
,yyscanner
);
2813 b
->yy_input_file
= file
;
2814 b
->yy_fill_buffer
= 1;
2816 /* If b is the current buffer, then config__init_buffer was _probably_
2817 * called from config_restart() or through yy_get_next_buffer.
2818 * In that case, we don't want to reset the lineno or column.
2820 if (b
!= YY_CURRENT_BUFFER
){
2821 b
->yy_bs_lineno
= 1;
2822 b
->yy_bs_column
= 0;
2827 b
->yy_is_interactive
= file
? (isatty( fileno(file
) ) > 0) : 0;
2835 /** Discard all buffered characters. On the next scan, YY_INPUT will be called.
2836 * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
2837 * @param yyscanner The scanner object.
2840 void config__flush_buffer (YY_BUFFER_STATE b
, yyscan_t yyscanner
)
2845 struct yyguts_t
* yyg
= (struct yyguts_t
*)yyscanner
;
2851 /* We always need two end-of-buffer characters. The first causes
2852 * a transition to the end-of-buffer state. The second causes
2853 * a jam in that state.
2855 b
->yy_ch_buf
[0] = YY_END_OF_BUFFER_CHAR
;
2856 b
->yy_ch_buf
[1] = YY_END_OF_BUFFER_CHAR
;
2858 b
->yy_buf_pos
= &b
->yy_ch_buf
[0];
2861 b
->yy_buffer_status
= YY_BUFFER_NEW
;
2863 if ( b
== YY_CURRENT_BUFFER
)
2864 config__load_buffer_state(yyscanner
);
2868 /** Pushes the new state onto the stack. The new state becomes
2869 * the current state. This function will allocate the stack
2871 * @param new_buffer The new state.
2872 * @param yyscanner The scanner object.
2875 void config_push_buffer_state (YY_BUFFER_STATE new_buffer
, yyscan_t yyscanner
)
2880 struct yyguts_t
* yyg
= (struct yyguts_t
*)yyscanner
;
2881 if (new_buffer
== NULL
)
2884 config_ensure_buffer_stack(yyscanner
);
2886 /* This block is copied from config__switch_to_buffer. */
2887 if ( YY_CURRENT_BUFFER
)
2889 /* Flush out information for old buffer. */
2890 *yyg
->yy_c_buf_p
= yyg
->yy_hold_char
;
2891 YY_CURRENT_BUFFER_LVALUE
->yy_buf_pos
= yyg
->yy_c_buf_p
;
2892 YY_CURRENT_BUFFER_LVALUE
->yy_n_chars
= yyg
->yy_n_chars
;
2895 /* Only push if top exists. Otherwise, replace top. */
2896 if (YY_CURRENT_BUFFER
)
2897 yyg
->yy_buffer_stack_top
++;
2898 YY_CURRENT_BUFFER_LVALUE
= new_buffer
;
2900 /* copied from config__switch_to_buffer. */
2901 config__load_buffer_state(yyscanner
);
2902 yyg
->yy_did_buffer_switch_on_eof
= 1;
2907 /** Removes and deletes the top of the stack, if present.
2908 * The next element becomes the new top.
2909 * @param yyscanner The scanner object.
2912 void config_pop_buffer_state (yyscan_t yyscanner
)
2917 struct yyguts_t
* yyg
= (struct yyguts_t
*)yyscanner
;
2918 if (!YY_CURRENT_BUFFER
)
2921 config__delete_buffer(YY_CURRENT_BUFFER
,yyscanner
);
2922 YY_CURRENT_BUFFER_LVALUE
= NULL
;
2923 if (yyg
->yy_buffer_stack_top
> 0)
2924 --yyg
->yy_buffer_stack_top
;
2926 if (YY_CURRENT_BUFFER
) {
2927 config__load_buffer_state(yyscanner
);
2928 yyg
->yy_did_buffer_switch_on_eof
= 1;
2934 /* Allocates the stack if it does not exist.
2935 * Guarantees space for at least one push.
2938 static void config_ensure_buffer_stack (yyscan_t yyscanner
)
2944 struct yyguts_t
* yyg
= (struct yyguts_t
*)yyscanner
;
2946 if (!yyg
->yy_buffer_stack
) {
2948 /* First allocation is just for 2 elements, since we don't know if this
2949 * scanner will even need a stack. We use 2 instead of 1 to avoid an
2950 * immediate realloc on the next call.
2953 yyg
->yy_buffer_stack
= (struct yy_buffer_state
**)config_alloc
2954 (num_to_alloc
* sizeof(struct yy_buffer_state
*)
2956 if ( ! yyg
->yy_buffer_stack
)
2957 YY_FATAL_ERROR( "out of dynamic memory in config_ensure_buffer_stack()" );
2959 memset(yyg
->yy_buffer_stack
, 0, num_to_alloc
* sizeof(struct yy_buffer_state
*));
2961 yyg
->yy_buffer_stack_max
= num_to_alloc
;
2962 yyg
->yy_buffer_stack_top
= 0;
2966 if (yyg
->yy_buffer_stack_top
>= (yyg
->yy_buffer_stack_max
) - 1){
2968 /* Increase the buffer to prepare for a possible push. */
2969 int grow_size
= 8 /* arbitrary grow size */;
2971 num_to_alloc
= yyg
->yy_buffer_stack_max
+ grow_size
;
2972 yyg
->yy_buffer_stack
= (struct yy_buffer_state
**)config_realloc
2973 (yyg
->yy_buffer_stack
,
2974 num_to_alloc
* sizeof(struct yy_buffer_state
*)
2976 if ( ! yyg
->yy_buffer_stack
)
2977 YY_FATAL_ERROR( "out of dynamic memory in config_ensure_buffer_stack()" );
2979 /* zero only the new slots.*/
2980 memset(yyg
->yy_buffer_stack
+ yyg
->yy_buffer_stack_max
, 0, grow_size
* sizeof(struct yy_buffer_state
*));
2981 yyg
->yy_buffer_stack_max
= num_to_alloc
;
2987 /** Setup the input buffer state to scan directly from a user-specified character buffer.
2988 * @param base the character buffer
2989 * @param size the size in bytes of the character buffer
2990 * @param yyscanner The scanner object.
2991 * @return the newly allocated buffer state object.
2993 YY_BUFFER_STATE
config__scan_buffer (char * base
, yy_size_t size
, yyscan_t yyscanner
)
2998 base
[size
-2] != YY_END_OF_BUFFER_CHAR
||
2999 base
[size
-1] != YY_END_OF_BUFFER_CHAR
)
3000 /* They forgot to leave room for the EOB's. */
3003 b
= (YY_BUFFER_STATE
) config_alloc(sizeof( struct yy_buffer_state
) ,yyscanner
);
3005 YY_FATAL_ERROR( "out of dynamic memory in config__scan_buffer()" );
3007 b
->yy_buf_size
= size
- 2; /* "- 2" to take care of EOB's */
3008 b
->yy_buf_pos
= b
->yy_ch_buf
= base
;
3009 b
->yy_is_our_buffer
= 0;
3010 b
->yy_input_file
= 0;
3011 b
->yy_n_chars
= b
->yy_buf_size
;
3012 b
->yy_is_interactive
= 0;
3014 b
->yy_fill_buffer
= 0;
3015 b
->yy_buffer_status
= YY_BUFFER_NEW
;
3017 config__switch_to_buffer(b
,yyscanner
);
3024 /** Setup the input buffer state to scan a string. The next call to config_lex() will
3025 * scan from a @e copy of @a str.
3026 * @param yystr a NUL-terminated string to scan
3027 * @param yyscanner The scanner object.
3028 * @return the newly allocated buffer state object.
3029 * @note If you want to scan bytes that may contain NUL values, then use
3030 * config__scan_bytes() instead.
3032 YY_BUFFER_STATE
config__scan_string (yyconst
char * yystr
, yyscan_t yyscanner
)
3035 return config__scan_bytes(yystr
,strlen(yystr
) ,yyscanner
);
3040 /** Setup the input buffer state to scan the given bytes. The next call to config_lex() will
3041 * scan from a @e copy of @a bytes.
3042 * @param bytes the byte buffer to scan
3043 * @param len the number of bytes in the buffer pointed to by @a bytes.
3044 * @param yyscanner The scanner object.
3045 * @return the newly allocated buffer state object.
3047 YY_BUFFER_STATE
config__scan_bytes (yyconst
char * yybytes
, int _yybytes_len
, yyscan_t yyscanner
)
3054 /* Get memory for full buffer, including space for trailing EOB's. */
3055 n
= _yybytes_len
+ 2;
3056 buf
= (char *) config_alloc(n
,yyscanner
);
3058 YY_FATAL_ERROR( "out of dynamic memory in config__scan_bytes()" );
3060 for ( i
= 0; i
< _yybytes_len
; ++i
)
3061 buf
[i
] = yybytes
[i
];
3063 buf
[_yybytes_len
] = buf
[_yybytes_len
+1] = YY_END_OF_BUFFER_CHAR
;
3065 b
= config__scan_buffer(buf
,n
,yyscanner
);
3067 YY_FATAL_ERROR( "bad buffer in config__scan_bytes()" );
3069 /* It's okay to grow etc. this buffer, and we should throw it
3070 * away when we're done.
3072 b
->yy_is_our_buffer
= 1;
3078 #ifndef YY_EXIT_FAILURE
3079 #define YY_EXIT_FAILURE 2
3083 static void yy_fatal_error (yyconst
char* msg
, yyscan_t yyscanner
)
3085 (void) fprintf( stderr
, "%s\n", msg
);
3086 exit( YY_EXIT_FAILURE
);
3092 /* Redefine yyless() so it works in section 3 code. */
3098 /* Undo effects of setting up yytext. */ \
3099 int yyless_macro_arg = (n); \
3100 YY_LESS_LINENO(yyless_macro_arg);\
3101 yytext[yyleng] = yyg->yy_hold_char; \
3102 yyg->yy_c_buf_p = yytext + yyless_macro_arg; \
3103 yyg->yy_hold_char = *yyg->yy_c_buf_p; \
3104 *yyg->yy_c_buf_p = '\0'; \
3105 yyleng = yyless_macro_arg; \
3109 /* Accessor methods (get/set functions) to struct members. */
3114 /** Get the user-defined data for this scanner.
3115 * @param yyscanner The scanner object.
3117 YY_EXTRA_TYPE
config_get_extra (yyscan_t yyscanner
)
3119 struct yyguts_t
* yyg
= (struct yyguts_t
*)yyscanner
;
3125 /** Get the current line number.
3126 * @param yyscanner The scanner object.
3128 int config_get_lineno (yyscan_t yyscanner
)
3130 struct yyguts_t
* yyg
= (struct yyguts_t
*)yyscanner
;
3132 if (! YY_CURRENT_BUFFER
)
3138 /** Get the current column number.
3139 * @param yyscanner The scanner object.
3141 int config_get_column (yyscan_t yyscanner
)
3143 struct yyguts_t
* yyg
= (struct yyguts_t
*)yyscanner
;
3145 if (! YY_CURRENT_BUFFER
)
3151 /** Get the input stream.
3152 * @param yyscanner The scanner object.
3154 FILE *config_get_in (yyscan_t yyscanner
)
3156 struct yyguts_t
* yyg
= (struct yyguts_t
*)yyscanner
;
3160 /** Get the output stream.
3161 * @param yyscanner The scanner object.
3163 FILE *config_get_out (yyscan_t yyscanner
)
3165 struct yyguts_t
* yyg
= (struct yyguts_t
*)yyscanner
;
3169 /** Get the length of the current token.
3170 * @param yyscanner The scanner object.
3172 int config_get_leng (yyscan_t yyscanner
)
3174 struct yyguts_t
* yyg
= (struct yyguts_t
*)yyscanner
;
3178 /** Get the current token.
3179 * @param yyscanner The scanner object.
3182 char *config_get_text (yyscan_t yyscanner
)
3184 struct yyguts_t
* yyg
= (struct yyguts_t
*)yyscanner
;
3190 /** Set the user-defined data. This data is never touched by the scanner.
3191 * @param user_defined The data to be associated with this scanner.
3192 * @param yyscanner The scanner object.
3194 void config_set_extra (YY_EXTRA_TYPE user_defined
, yyscan_t yyscanner
)
3196 struct yyguts_t
* yyg
= (struct yyguts_t
*)yyscanner
;
3197 yyextra
= user_defined
;
3202 /** Set the current line number.
3203 * @param line_number
3204 * @param yyscanner The scanner object.
3206 void config_set_lineno (int line_number
, yyscan_t yyscanner
)
3208 struct yyguts_t
* yyg
= (struct yyguts_t
*)yyscanner
;
3210 /* lineno is only valid if an input buffer exists. */
3211 if (! YY_CURRENT_BUFFER
)
3212 yy_fatal_error( "config_set_lineno called with no buffer" , yyscanner
);
3214 yylineno
= line_number
;
3217 /** Set the current column.
3218 * @param line_number
3219 * @param yyscanner The scanner object.
3221 void config_set_column (int column_no
, yyscan_t yyscanner
)
3223 struct yyguts_t
* yyg
= (struct yyguts_t
*)yyscanner
;
3225 /* column is only valid if an input buffer exists. */
3226 if (! YY_CURRENT_BUFFER
)
3227 yy_fatal_error( "config_set_column called with no buffer" , yyscanner
);
3229 yycolumn
= column_no
;
3232 /** Set the input stream. This does not discard the current
3234 * @param in_str A readable stream.
3235 * @param yyscanner The scanner object.
3236 * @see config__switch_to_buffer
3238 void config_set_in (FILE * in_str
, yyscan_t yyscanner
)
3240 struct yyguts_t
* yyg
= (struct yyguts_t
*)yyscanner
;
3244 void config_set_out (FILE * out_str
, yyscan_t yyscanner
)
3246 struct yyguts_t
* yyg
= (struct yyguts_t
*)yyscanner
;
3250 int config_get_debug (yyscan_t yyscanner
)
3252 struct yyguts_t
* yyg
= (struct yyguts_t
*)yyscanner
;
3253 return yy_flex_debug
;
3256 void config_set_debug (int bdebug
, yyscan_t yyscanner
)
3258 struct yyguts_t
* yyg
= (struct yyguts_t
*)yyscanner
;
3259 yy_flex_debug
= bdebug
;
3265 /* Accessor methods for yylval and yylloc */
3267 /* %if-bison-bridge */
3269 YYSTYPE
* config_get_lval (yyscan_t yyscanner
)
3271 struct yyguts_t
* yyg
= (struct yyguts_t
*)yyscanner
;
3275 void config_set_lval (YYSTYPE
* yylval_param
, yyscan_t yyscanner
)
3277 struct yyguts_t
* yyg
= (struct yyguts_t
*)yyscanner
;
3278 yylval
= yylval_param
;
3283 /* User-visible API */
3285 /* config_lex_init is special because it creates the scanner itself, so it is
3286 * the ONLY reentrant function that doesn't take the scanner as the last argument.
3287 * That's why we explicitly handle the declaration, instead of using our macros.
3290 int config_lex_init(yyscan_t
* ptr_yy_globals
)
3293 if (ptr_yy_globals
== NULL
){
3298 *ptr_yy_globals
= (yyscan_t
) config_alloc ( sizeof( struct yyguts_t
), NULL
);
3300 if (*ptr_yy_globals
== NULL
){
3305 /* By setting to 0xAA, we expose bugs in yy_init_globals. Leave at 0x00 for releases. */
3306 memset(*ptr_yy_globals
,0x00,sizeof(struct yyguts_t
));
3308 return yy_init_globals ( *ptr_yy_globals
);
3311 /* config_lex_init_extra has the same functionality as config_lex_init, but follows the
3312 * convention of taking the scanner as the last argument. Note however, that
3313 * this is a *pointer* to a scanner, as it will be allocated by this call (and
3314 * is the reason, too, why this function also must handle its own declaration).
3315 * The user defined value in the first argument will be available to config_alloc in
3316 * the yyextra field.
3319 int config_lex_init_extra(YY_EXTRA_TYPE yy_user_defined
,yyscan_t
* ptr_yy_globals
)
3322 struct yyguts_t dummy_yyguts
;
3324 config_set_extra (yy_user_defined
, &dummy_yyguts
);
3326 if (ptr_yy_globals
== NULL
){
3331 *ptr_yy_globals
= (yyscan_t
) config_alloc ( sizeof( struct yyguts_t
), &dummy_yyguts
);
3333 if (*ptr_yy_globals
== NULL
){
3338 /* By setting to 0xAA, we expose bugs in
3339 yy_init_globals. Leave at 0x00 for releases. */
3340 memset(*ptr_yy_globals
,0x00,sizeof(struct yyguts_t
));
3342 config_set_extra (yy_user_defined
, *ptr_yy_globals
);
3344 return yy_init_globals ( *ptr_yy_globals
);
3347 /* %endif if-c-only */
3350 static int yy_init_globals (yyscan_t yyscanner
)
3352 struct yyguts_t
* yyg
= (struct yyguts_t
*)yyscanner
;
3353 /* Initialization is the same as for the non-reentrant scanner.
3354 * This function is called from config_lex_destroy(), so don't allocate here.
3357 yyg
->yy_buffer_stack
= 0;
3358 yyg
->yy_buffer_stack_top
= 0;
3359 yyg
->yy_buffer_stack_max
= 0;
3360 yyg
->yy_c_buf_p
= (char *) 0;
3364 yyg
->yy_start_stack_ptr
= 0;
3365 yyg
->yy_start_stack_depth
= 0;
3366 yyg
->yy_start_stack
= NULL
;
3368 /* Defined in main.c */
3377 /* For future reference: Set errno on error, since we are called by
3384 /* %if-c-only SNIP! this currently causes conflicts with the c++ scanner */
3385 /* config_lex_destroy is for both reentrant and non-reentrant scanners. */
3386 int config_lex_destroy (yyscan_t yyscanner
)
3388 struct yyguts_t
* yyg
= (struct yyguts_t
*)yyscanner
;
3390 /* Pop the buffer stack, destroying each element. */
3391 while(YY_CURRENT_BUFFER
){
3392 config__delete_buffer(YY_CURRENT_BUFFER
,yyscanner
);
3393 YY_CURRENT_BUFFER_LVALUE
= NULL
;
3394 config_pop_buffer_state(yyscanner
);
3397 /* Destroy the stack itself. */
3398 config_free(yyg
->yy_buffer_stack
,yyscanner
);
3399 yyg
->yy_buffer_stack
= NULL
;
3401 /* Destroy the start condition stack. */
3402 config_free(yyg
->yy_start_stack
,yyscanner
);
3403 yyg
->yy_start_stack
= NULL
;
3405 /* Reset the globals. This is important in a non-reentrant scanner so the next time
3406 * config_lex() is called, initialization will occur. */
3407 yy_init_globals( yyscanner
);
3410 /* Destroy the main struct (reentrant only). */
3411 config_free ( yyscanner
, yyscanner
);
3419 * Internal utility routines.
3423 static void yy_flex_strncpy (char* s1
, yyconst
char * s2
, int n
, yyscan_t yyscanner
)
3426 for ( i
= 0; i
< n
; ++i
)
3431 #ifdef YY_NEED_STRLEN
3432 static int yy_flex_strlen (yyconst
char * s
, yyscan_t yyscanner
)
3435 for ( n
= 0; s
[n
]; ++n
)
3442 void *config_alloc (yy_size_t size
, yyscan_t yyscanner
)
3444 return (void *) malloc( size
);
3447 void *config_realloc (void * ptr
, yy_size_t size
, yyscan_t yyscanner
)
3449 /* The cast to (char *) in the following accommodates both
3450 * implementations that use char* generic pointers, and those
3451 * that use void* generic pointers. It works with the latter
3452 * because both ANSI C and C++ allow castless assignment from
3453 * any pointer type to void*, and deal with argument conversions
3454 * as though doing an assignment.
3456 return (void *) realloc( (char *) ptr
, size
);
3459 void config_free (void * ptr
, yyscan_t yyscanner
)
3461 free( (char *) ptr
); /* see config_realloc() for (char *) cast */
3464 /* %if-tables-serialization definitions */
3465 /* %define-yytables The name for this specific scanner's tables. */
3466 #define YYTABLES_NAME "yytables"
3469 /* %ok-for-header */
3471 #line 219 "libmemcached/options/scanner.l"
3475 void Context::init_scanner()
3477 config_lex_init(&scanner
);
3478 config_set_extra(this,scanner
);
3481 void Context::destroy_scanner()
3483 config_lex_destroy(scanner
);