Merge in more documentation.
[awesomized/libmemcached] / libmemcached / options / scanner.cc
1 #line 2 "libmemcached/options/scanner.cc"
2 #line 22 "libmemcached/options/scanner.l"
3
4 #pragma GCC diagnostic ignored "-Wold-style-cast"
5 #pragma GCC diagnostic ignored "-Wsign-compare"
6 #pragma GCC diagnostic ignored "-Wunused-parameter"
7
8 #include <libmemcached/options/context.h>
9 #include <libmemcached/options/parser.h>
10 #include <libmemcached/options/string.h>
11 #include <libmemcached/options/symbol.h>
12
13 #define YY_EXTRA_TYPE Context*
14
15
16
17
18 #line 19 "libmemcached/options/scanner.cc"
19
20 #define YY_INT_ALIGNED short int
21
22 /* A lexical scanner generated by flex */
23
24 /* %not-for-header */
25
26 /* %if-c-only */
27 /* %if-not-reentrant */
28 /* %endif */
29 /* %endif */
30 /* %ok-for-header */
31
32 #define FLEX_SCANNER
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
37 #define FLEX_BETA
38 #endif
39
40 /* %if-c++-only */
41 /* %endif */
42
43 /* %if-c-only */
44
45 /* %endif */
46
47 /* %if-c-only */
48
49 /* %endif */
50
51 /* First, we deal with platform-specific or compiler-specific issues. */
52
53 /* begin standard C headers. */
54 /* %if-c-only */
55 #include <stdio.h>
56 #include <string.h>
57 #include <errno.h>
58 #include <stdlib.h>
59 /* %endif */
60
61 /* %if-tables-serialization */
62 /* %endif */
63 /* end standard C headers. */
64
65 /* %if-c-or-c++ */
66 /* flex integer type definitions */
67
68 #ifndef FLEXINT_H
69 #define FLEXINT_H
70
71 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
72
73 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
74
75 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
76 * if you want the limit (max/min) macros for int types.
77 */
78 #ifndef __STDC_LIMIT_MACROS
79 #define __STDC_LIMIT_MACROS 1
80 #endif
81
82 #include <inttypes.h>
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;
89 #else
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;
96 #endif /* ! C99 */
97
98 /* Limits of integral types. */
99 #ifndef INT8_MIN
100 #define INT8_MIN (-128)
101 #endif
102 #ifndef INT16_MIN
103 #define INT16_MIN (-32767-1)
104 #endif
105 #ifndef INT32_MIN
106 #define INT32_MIN (-2147483647-1)
107 #endif
108 #ifndef INT8_MAX
109 #define INT8_MAX (127)
110 #endif
111 #ifndef INT16_MAX
112 #define INT16_MAX (32767)
113 #endif
114 #ifndef INT32_MAX
115 #define INT32_MAX (2147483647)
116 #endif
117 #ifndef UINT8_MAX
118 #define UINT8_MAX (255U)
119 #endif
120 #ifndef UINT16_MAX
121 #define UINT16_MAX (65535U)
122 #endif
123 #ifndef UINT32_MAX
124 #define UINT32_MAX (4294967295U)
125 #endif
126
127 #endif /* ! FLEXINT_H */
128
129 /* %endif */
130
131 /* %if-c++-only */
132 /* %endif */
133
134 #ifdef __cplusplus
135
136 /* The "const" storage-class-modifier is valid. */
137 #define YY_USE_CONST
138
139 #else /* ! __cplusplus */
140
141 /* C99 requires __STDC__ to be defined as 1. */
142 #if defined (__STDC__)
143
144 #define YY_USE_CONST
145
146 #endif /* defined (__STDC__) */
147 #endif /* ! __cplusplus */
148
149 #ifdef YY_USE_CONST
150 #define yyconst const
151 #else
152 #define yyconst
153 #endif
154
155 /* %not-for-header */
156
157 /* Returned upon end-of-file. */
158 #define YY_NULL 0
159 /* %ok-for-header */
160
161 /* %not-for-header */
162
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
166 * double cast.
167 */
168 #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
169 /* %ok-for-header */
170
171 /* %if-reentrant */
172
173 /* An opaque pointer. */
174 #ifndef YY_TYPEDEF_YY_SCANNER_T
175 #define YY_TYPEDEF_YY_SCANNER_T
176 typedef void* yyscan_t;
177 #endif
178
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
189
190 /* %endif */
191
192 /* %if-not-reentrant */
193 /* %endif */
194
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.
198 */
199 #define BEGIN yyg->yy_start = 1 + 2 *
200
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
203 * compatibility.
204 */
205 #define YY_START ((yyg->yy_start - 1) / 2)
206 #define YYSTATE YY_START
207
208 /* Action number for EOF rule of a given start state. */
209 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
210
211 /* Special action meaning "start processing a new file". */
212 #define YY_NEW_FILE config_restart(yyin ,yyscanner )
213
214 #define YY_END_OF_BUFFER_CHAR 0
215
216 /* Size of default input buffer. */
217 #ifndef YY_BUF_SIZE
218 #define YY_BUF_SIZE 16384
219 #endif
220
221 /* The state buf must be large enough to hold one state per character in the main buffer.
222 */
223 #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
224
225 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
226 #define YY_TYPEDEF_YY_BUFFER_STATE
227 typedef struct yy_buffer_state *YY_BUFFER_STATE;
228 #endif
229
230 /* %if-not-reentrant */
231 /* %endif */
232
233 /* %if-c-only */
234 /* %if-not-reentrant */
235 /* %endif */
236 /* %endif */
237
238 #define EOB_ACT_CONTINUE_SCAN 0
239 #define EOB_ACT_END_OF_FILE 1
240 #define EOB_ACT_LAST_MATCH 2
241
242 #define YY_LESS_LINENO(n)
243
244 /* Return all but the first "n" matched characters back to the input stream. */
245 #define yyless(n) \
246 do \
247 { \
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 */ \
255 } \
256 while ( 0 )
257
258 #define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner )
259
260 #ifndef YY_TYPEDEF_YY_SIZE_T
261 #define YY_TYPEDEF_YY_SIZE_T
262 typedef size_t yy_size_t;
263 #endif
264
265 #ifndef YY_STRUCT_YY_BUFFER_STATE
266 #define YY_STRUCT_YY_BUFFER_STATE
267 struct yy_buffer_state
268 {
269 /* %if-c-only */
270 FILE *yy_input_file;
271 /* %endif */
272
273 /* %if-c++-only */
274 /* %endif */
275
276 char *yy_ch_buf; /* input buffer */
277 char *yy_buf_pos; /* current position in input buffer */
278
279 /* Size of input buffer in bytes, not including room for EOB
280 * characters.
281 */
282 yy_size_t yy_buf_size;
283
284 /* Number of characters read into yy_ch_buf, not including EOB
285 * characters.
286 */
287 int yy_n_chars;
288
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
291 * delete it.
292 */
293 int yy_is_our_buffer;
294
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
298 * each newline.
299 */
300 int yy_is_interactive;
301
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
304 * not.
305 */
306 int yy_at_bol;
307
308 int yy_bs_lineno; /**< The line count. */
309 int yy_bs_column; /**< The column count. */
310
311 /* Whether to try to fill the input buffer when we reach the
312 * end of it.
313 */
314 int yy_fill_buffer;
315
316 int yy_buffer_status;
317
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.
325 *
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.
329 */
330 #define YY_BUFFER_EOF_PENDING 2
331
332 };
333 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
334
335 /* %if-c-only Standard (non-C++) definition */
336 /* %not-for-header */
337
338 /* %if-not-reentrant */
339 /* %endif */
340 /* %ok-for-header */
341
342 /* %endif */
343
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
346 * "scanner state".
347 *
348 * Returns the top of the stack, or NULL.
349 */
350 #define YY_CURRENT_BUFFER ( yyg->yy_buffer_stack \
351 ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
352 : NULL)
353
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.
356 */
357 #define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
358
359 /* %if-c-only Standard (non-C++) definition */
360
361 /* %if-not-reentrant */
362 /* %not-for-header */
363
364 /* %ok-for-header */
365
366 /* %endif */
367
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 );
375
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 );
379
380 #define YY_FLUSH_BUFFER config__flush_buffer(YY_CURRENT_BUFFER ,yyscanner)
381
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 );
385
386 /* %endif */
387
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 );
391
392 #define yy_new_buffer config__create_buffer
393
394 #define yy_set_interactive(is_interactive) \
395 { \
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); \
400 } \
401 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
402 }
403
404 #define yy_set_bol(at_bol) \
405 { \
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); \
410 } \
411 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
412 }
413
414 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
415
416 /* %% [1.0] yytext/yyin/yyout/yy_state_type/yylineno etc. def's & init go here */
417 /* Begin user sect3 */
418
419 #define config_wrap(n) 1
420 #define YY_SKIP_YYWRAP
421
422 #define FLEX_DEBUG
423
424 typedef unsigned char YY_CHAR;
425
426 typedef int yy_state_type;
427
428 #define yytext_ptr yytext_r
429
430 /* %if-c-only Standard (non-C++) definition */
431
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 );
436
437 /* %endif */
438
439 /* Done after the current pattern has been matched and before the
440 * corresponding action - sets up yytext.
441 */
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; \
447 *yy_cp = '\0'; \
448 /* %% [3.0] code to copy yytext_ptr to yytext[] goes here, if %array \ */\
449 yyg->yy_c_buf_p = yy_cp;
450
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. */
456 struct yy_trans_info
457 {
458 flex_int32_t yy_verify;
459 flex_int32_t yy_nxt;
460 };
461 static yyconst flex_int16_t yy_accept[747] =
462 { 0,
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,
473
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,
484
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,
495
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,
506
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,
517
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,
528
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,
539
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,
544 0, 34, 33, 42, 41, 0
545 } ;
546
547 static yyconst flex_int32_t yy_ec[256] =
548 { 0,
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,
559
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,
570
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,
576 1, 1, 1, 1, 1
577 } ;
578
579 static yyconst flex_int32_t yy_meta[74] =
580 { 0,
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,
588 3, 3, 3
589 } ;
590
591 static yyconst flex_int16_t yy_base[751] =
592 { 0,
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,
603
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,
614
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,
625
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,
636
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,
647
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,
658
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,
669
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
675 } ;
676
677 static yyconst flex_int16_t yy_def[751] =
678 { 0,
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,
689
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,
700
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,
711
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,
722
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,
733
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,
744
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,
755
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
761 } ;
762
763 static yyconst flex_int16_t yy_nxt[2118] =
764 { 0,
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,
775
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,
786
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,
797
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,
808
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,
819
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,
830
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,
841
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,
852
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,
863
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,
874
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,
885
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,
896
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,
907
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,
918
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,
929
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,
940
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,
951
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,
962
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,
973
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,
984
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,
995
996 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
997 746, 746, 746, 746, 746, 746, 746
998 } ;
999
1000 static yyconst flex_int16_t yy_chk[2118] =
1001 { 0,
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,
1012
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,
1023
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,
1034
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,
1045
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,
1056
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,
1067
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,
1078
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,
1089
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,
1100
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,
1111
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,
1122
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,
1133
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,
1144
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,
1155
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,
1166
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,
1177
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,
1188
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,
1199
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,
1210
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,
1221
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,
1232
1233 746, 746, 746, 746, 746, 746, 746, 746, 746, 746,
1234 746, 746, 746, 746, 746, 746, 746
1235 } ;
1236
1237 static yyconst flex_int16_t yy_rule_linenum[88] =
1238 { 0,
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
1248 } ;
1249
1250 /* The intent behind this definition is that it'll catch
1251 * any uses of REJECT which flex missed.
1252 */
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:
1259 *
1260 * Libmemcached Scanner and Parser
1261 *
1262 * Copyright (C) 2011 DataDifferental, http://datadifferential.com
1263 *
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.
1268 *
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.
1273 *
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/>.
1276 */
1277
1278 #line 38 "libmemcached/options/scanner.l"
1279 #include <cstdlib>
1280 #include <cstring>
1281
1282 #define PARAM config_get_extra(yyscanner)
1283
1284 #define get_lex_chars(buffer, result, max_size, context) \
1285 { \
1286 if (context->pos >= context->length) \
1287 { \
1288 result= YY_NULL; \
1289 } \
1290 else \
1291 { \
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; \
1296 } \
1297 }
1298
1299
1300 #define YY_INPUT(buffer, result, max_size) get_lex_chars(buffer, result, max_size, PARAM)
1301
1302 #line 1303 "libmemcached/options/scanner.cc"
1303
1304 #define INITIAL 0
1305
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.
1310 */
1311 /* %if-c-only */
1312 #include <unistd.h>
1313 /* %endif */
1314 /* %if-c++-only */
1315 /* %endif */
1316 #endif
1317
1318 #ifndef YY_EXTRA_TYPE
1319 #define YY_EXTRA_TYPE void *
1320 #endif
1321
1322 /* %if-c-only Reentrant structure and macros (non-C++). */
1323 /* %if-reentrant */
1324
1325 /* Holds the entire state of the reentrant scanner. */
1326 struct yyguts_t
1327 {
1328
1329 /* User-defined. Not touched by flex. */
1330 YY_EXTRA_TYPE yyextra_r;
1331
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. */
1337 char yy_hold_char;
1338 int yy_n_chars;
1339 int yyleng_r;
1340 char *yy_c_buf_p;
1341 int yy_init;
1342 int yy_start;
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;
1349
1350 int yylineno_r;
1351 int yy_flex_debug_r;
1352
1353 char *yytext_r;
1354 int yy_more_flag;
1355 int yy_more_len;
1356
1357 YYSTYPE * yylval_r;
1358
1359 }; /* end struct yyguts_t */
1360
1361 /* %if-c-only */
1362
1363 static int yy_init_globals (yyscan_t yyscanner );
1364
1365 /* %endif */
1366
1367 /* %if-reentrant */
1368
1369 /* This must go here because YYSTYPE and YYLTYPE are included
1370 * from bison output in section 1.*/
1371 # define yylval yyg->yylval_r
1372
1373 int config_lex_init (yyscan_t* scanner);
1374
1375 int config_lex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner);
1376
1377 /* %endif */
1378
1379 /* %endif End reentrant structures and macros. */
1380
1381 /* Accessor methods to globals.
1382 These are made visible to non-reentrant scanners for convenience. */
1383
1384 int config_lex_destroy (yyscan_t yyscanner );
1385
1386 int config_get_debug (yyscan_t yyscanner );
1387
1388 void config_set_debug (int debug_flag ,yyscan_t yyscanner );
1389
1390 YY_EXTRA_TYPE config_get_extra (yyscan_t yyscanner );
1391
1392 void config_set_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
1393
1394 FILE *config_get_in (yyscan_t yyscanner );
1395
1396 void config_set_in (FILE * in_str ,yyscan_t yyscanner );
1397
1398 FILE *config_get_out (yyscan_t yyscanner );
1399
1400 void config_set_out (FILE * out_str ,yyscan_t yyscanner );
1401
1402 int config_get_leng (yyscan_t yyscanner );
1403
1404 char *config_get_text (yyscan_t yyscanner );
1405
1406 int config_get_lineno (yyscan_t yyscanner );
1407
1408 void config_set_lineno (int line_number ,yyscan_t yyscanner );
1409
1410 int config_get_column (yyscan_t yyscanner );
1411
1412 void config_set_column (int column_no ,yyscan_t yyscanner );
1413
1414 /* %if-bison-bridge */
1415
1416 YYSTYPE * config_get_lval (yyscan_t yyscanner );
1417
1418 void config_set_lval (YYSTYPE * yylval_param ,yyscan_t yyscanner );
1419
1420 /* %endif */
1421
1422 /* Macros after this point can all be overridden by user definitions in
1423 * section 1.
1424 */
1425
1426 #ifndef YY_SKIP_YYWRAP
1427 #ifdef __cplusplus
1428 extern "C" int config_wrap (yyscan_t yyscanner );
1429 #else
1430 extern int config_wrap (yyscan_t yyscanner );
1431 #endif
1432 #endif
1433
1434 /* %not-for-header */
1435
1436 /* %ok-for-header */
1437
1438 /* %endif */
1439
1440 #ifndef yytext_ptr
1441 static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
1442 #endif
1443
1444 #ifdef YY_NEED_STRLEN
1445 static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
1446 #endif
1447
1448 #ifndef YY_NO_INPUT
1449 /* %if-c-only Standard (non-C++) definition */
1450 /* %not-for-header */
1451
1452 #ifdef __cplusplus
1453 static int yyinput (yyscan_t yyscanner );
1454 #else
1455 static int input (yyscan_t yyscanner );
1456 #endif
1457 /* %ok-for-header */
1458
1459 /* %endif */
1460 #endif
1461
1462 /* %if-c-only */
1463
1464 /* %endif */
1465
1466 /* Amount of stuff to slurp up with each read. */
1467 #ifndef YY_READ_BUF_SIZE
1468 #define YY_READ_BUF_SIZE 8192
1469 #endif
1470
1471 /* Copy whatever the last rule matched to the standard output. */
1472 #ifndef ECHO
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().
1476 */
1477 #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
1478 /* %endif */
1479 /* %if-c++-only C++ definition */
1480 /* %endif */
1481 #endif
1482
1483 /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
1484 * is returned in "result".
1485 */
1486 #ifndef YY_INPUT
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 ) \
1490 { \
1491 int c = '*'; \
1492 unsigned n; \
1493 for ( n = 0; n < max_size && \
1494 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
1495 buf[n] = (char) c; \
1496 if ( c == '\n' ) \
1497 buf[n++] = (char) c; \
1498 if ( c == EOF && ferror( yyin ) ) \
1499 YY_FATAL_ERROR( "input in flex scanner failed" ); \
1500 result = n; \
1501 } \
1502 else \
1503 { \
1504 errno=0; \
1505 while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
1506 { \
1507 if( errno != EINTR) \
1508 { \
1509 YY_FATAL_ERROR( "input in flex scanner failed" ); \
1510 break; \
1511 } \
1512 errno=0; \
1513 clearerr(yyin); \
1514 } \
1515 }\
1516 \
1517 /* %if-c++-only C++ definition \ */\
1518 /* %endif */
1519
1520 #endif
1521
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.
1525 */
1526 #ifndef yyterminate
1527 #define yyterminate() return YY_NULL
1528 #endif
1529
1530 /* Number of entries by which start-condition stack grows. */
1531 #ifndef YY_START_STACK_INCR
1532 #define YY_START_STACK_INCR 25
1533 #endif
1534
1535 /* Report a fatal error. */
1536 #ifndef YY_FATAL_ERROR
1537 /* %if-c-only */
1538 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner)
1539 /* %endif */
1540 /* %if-c++-only */
1541 /* %endif */
1542 #endif
1543
1544 /* %if-tables-serialization structures and prototypes */
1545 /* %not-for-header */
1546
1547 /* %ok-for-header */
1548
1549 /* %not-for-header */
1550
1551 /* %tables-yydmap generated elements */
1552 /* %endif */
1553 /* end tables serialization structures and prototypes */
1554
1555 /* %ok-for-header */
1556
1557 /* Default declaration of generated scanner - a define so the user can
1558 * easily add parameters.
1559 */
1560 #ifndef YY_DECL
1561 #define YY_DECL_IS_OURS 1
1562 /* %if-c-only Standard (non-C++) definition */
1563
1564 extern int config_lex \
1565 (YYSTYPE * yylval_param ,yyscan_t yyscanner);
1566
1567 #define YY_DECL int config_lex \
1568 (YYSTYPE * yylval_param , yyscan_t yyscanner)
1569 /* %endif */
1570 /* %if-c++-only C++ definition */
1571 /* %endif */
1572 #endif /* !YY_DECL */
1573
1574 /* Code executed at the beginning of each rule, after yytext and yyleng
1575 * have been set up.
1576 */
1577 #ifndef YY_USER_ACTION
1578 #define YY_USER_ACTION
1579 #endif
1580
1581 /* Code executed at the end of each rule. */
1582 #ifndef YY_BREAK
1583 #define YY_BREAK break;
1584 #endif
1585
1586 /* %% [6.0] YY_RULE_SETUP definition goes here */
1587 #define YY_RULE_SETUP \
1588 if ( yyleng > 0 ) \
1589 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \
1590 (yytext[yyleng - 1] == '\n'); \
1591 YY_USER_ACTION
1592
1593 /* %not-for-header */
1594
1595 /** The main scanner function which does all the work.
1596 */
1597 YY_DECL
1598 {
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;
1603
1604 /* %% [7.0] user's declarations go here */
1605 #line 74 "libmemcached/options/scanner.l"
1606
1607
1608
1609 #line 1610 "libmemcached/options/scanner.cc"
1610
1611 yylval = yylval_param;
1612
1613 if ( !yyg->yy_init )
1614 {
1615 yyg->yy_init = 1;
1616
1617 #ifdef YY_USER_INIT
1618 YY_USER_INIT;
1619 #endif
1620
1621 if ( ! yyg->yy_start )
1622 yyg->yy_start = 1; /* first start state */
1623
1624 if ( ! yyin )
1625 /* %if-c-only */
1626 yyin = stdin;
1627 /* %endif */
1628 /* %if-c++-only */
1629 /* %endif */
1630
1631 if ( ! yyout )
1632 /* %if-c-only */
1633 yyout = stdout;
1634 /* %endif */
1635 /* %if-c++-only */
1636 /* %endif */
1637
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);
1642 }
1643
1644 config__load_buffer_state(yyscanner );
1645 }
1646
1647 while ( 1 ) /* loops until end-of-file is reached */
1648 {
1649 /* %% [8.0] yymore()-related code goes here */
1650 yy_cp = yyg->yy_c_buf_p;
1651
1652 /* Support of yytext. */
1653 *yy_cp = yyg->yy_hold_char;
1654
1655 /* yy_bp points to the position in yy_ch_buf of the start of
1656 * the current run.
1657 */
1658 yy_bp = yy_cp;
1659
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();
1663 yy_match:
1664 do
1665 {
1666 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
1667 if ( yy_accept[yy_current_state] )
1668 {
1669 yyg->yy_last_accepting_state = yy_current_state;
1670 yyg->yy_last_accepting_cpos = yy_cp;
1671 }
1672 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1673 {
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];
1677 }
1678 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1679 ++yy_cp;
1680 }
1681 while ( yy_base[yy_current_state] != 2044 );
1682
1683 yy_find_action:
1684 /* %% [10.0] code to find the action number goes here */
1685 yy_act = yy_accept[yy_current_state];
1686 if ( yy_act == 0 )
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];
1691 }
1692
1693 YY_DO_BEFORE_ACTION;
1694
1695 /* %% [11.0] code for yylineno update goes here */
1696
1697 do_action: /* This label is used only to access EOF actions. */
1698
1699 /* %% [12.0] debug code goes here */
1700 if ( yy_flex_debug )
1701 {
1702 if ( yy_act == 0 )
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",
1709 yytext );
1710 else if ( yy_act == 89 )
1711 fprintf( stderr, "--(end of buffer or a NUL)\n" );
1712 else
1713 fprintf( stderr, "--EOF (start condition %d)\n", YY_START );
1714 }
1715
1716 switch ( yy_act )
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;
1725
1726 case 1:
1727 YY_RULE_SETUP
1728 #line 77 "libmemcached/options/scanner.l"
1729 { return yytext[0];}
1730 YY_BREAK
1731 case 2:
1732 YY_RULE_SETUP
1733 #line 79 "libmemcached/options/scanner.l"
1734 { yylval->number = atoi(yytext); return (NUMBER); }
1735 YY_BREAK
1736 case 3:
1737 YY_RULE_SETUP
1738 #line 81 "libmemcached/options/scanner.l"
1739 { yylval->server.port = atoi(yytext +1); return PORT; }
1740 YY_BREAK
1741 case 4:
1742 YY_RULE_SETUP
1743 #line 83 "libmemcached/options/scanner.l"
1744 { yylval->server.weight = atoi(yytext +2); return WEIGHT_START; }
1745 YY_BREAK
1746 case 5:
1747 /* rule 5 can match eol */
1748 YY_RULE_SETUP
1749 #line 85 "libmemcached/options/scanner.l"
1750 ; /* skip whitespace */
1751 YY_BREAK
1752 case 6:
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 */
1756 YY_RULE_SETUP
1757 #line 88 "libmemcached/options/scanner.l"
1758 {
1759 return COMMENT;
1760 }
1761 YY_BREAK
1762 case 7:
1763 YY_RULE_SETUP
1764 #line 92 "libmemcached/options/scanner.l"
1765 { yyextra->begin= yytext; yyextra->set_server(); return SERVER; }
1766 YY_BREAK
1767 case 8:
1768 YY_RULE_SETUP
1769 #line 94 "libmemcached/options/scanner.l"
1770 { yyextra->begin= yytext; return VERIFY_KEY; }
1771 YY_BREAK
1772 case 9:
1773 YY_RULE_SETUP
1774 #line 95 "libmemcached/options/scanner.l"
1775 { yyextra->begin= yytext; return VERIFY_KEY; }
1776 YY_BREAK
1777 case 10:
1778 YY_RULE_SETUP
1779 #line 96 "libmemcached/options/scanner.l"
1780 { yyextra->begin= yytext; return BINARY_PROTOCOL; }
1781 YY_BREAK
1782 case 11:
1783 YY_RULE_SETUP
1784 #line 97 "libmemcached/options/scanner.l"
1785 { yyextra->begin= yytext; return BINARY_PROTOCOL; }
1786 YY_BREAK
1787 case 12:
1788 YY_RULE_SETUP
1789 #line 98 "libmemcached/options/scanner.l"
1790 { yyextra->begin= yytext; return BUFFER_REQUESTS; }
1791 YY_BREAK
1792 case 13:
1793 YY_RULE_SETUP
1794 #line 99 "libmemcached/options/scanner.l"
1795 { yyextra->begin= yytext; return BUFFER_REQUESTS; }
1796 YY_BREAK
1797 case 14:
1798 YY_RULE_SETUP
1799 #line 100 "libmemcached/options/scanner.l"
1800 { yyextra->begin= yytext; return CONFIGURE_FILE; }
1801 YY_BREAK
1802 case 15:
1803 YY_RULE_SETUP
1804 #line 101 "libmemcached/options/scanner.l"
1805 { yyextra->begin= yytext; return CONFIGURE_FILE; }
1806 YY_BREAK
1807 case 16:
1808 YY_RULE_SETUP
1809 #line 102 "libmemcached/options/scanner.l"
1810 { yyextra->begin= yytext; return CONNECT_TIMEOUT; }
1811 YY_BREAK
1812 case 17:
1813 YY_RULE_SETUP
1814 #line 103 "libmemcached/options/scanner.l"
1815 { yyextra->begin= yytext; return CONNECT_TIMEOUT; }
1816 YY_BREAK
1817 case 18:
1818 YY_RULE_SETUP
1819 #line 104 "libmemcached/options/scanner.l"
1820 { yyextra->begin= yytext; return DISTRIBUTION; }
1821 YY_BREAK
1822 case 19:
1823 YY_RULE_SETUP
1824 #line 105 "libmemcached/options/scanner.l"
1825 { yyextra->begin= yytext; return HASH; }
1826 YY_BREAK
1827 case 20:
1828 YY_RULE_SETUP
1829 #line 106 "libmemcached/options/scanner.l"
1830 { yyextra->begin= yytext; return HASH_WITH_PREFIX_KEY; }
1831 YY_BREAK
1832 case 21:
1833 YY_RULE_SETUP
1834 #line 107 "libmemcached/options/scanner.l"
1835 { yyextra->begin= yytext; return HASH_WITH_PREFIX_KEY; }
1836 YY_BREAK
1837 case 22:
1838 YY_RULE_SETUP
1839 #line 108 "libmemcached/options/scanner.l"
1840 { yyextra->begin= yytext; return IO_BYTES_WATERMARK; }
1841 YY_BREAK
1842 case 23:
1843 YY_RULE_SETUP
1844 #line 109 "libmemcached/options/scanner.l"
1845 { yyextra->begin= yytext; return IO_BYTES_WATERMARK; }
1846 YY_BREAK
1847 case 24:
1848 YY_RULE_SETUP
1849 #line 110 "libmemcached/options/scanner.l"
1850 { yyextra->begin= yytext; return IO_KEY_PREFETCH; }
1851 YY_BREAK
1852 case 25:
1853 YY_RULE_SETUP
1854 #line 111 "libmemcached/options/scanner.l"
1855 { yyextra->begin= yytext; return IO_KEY_PREFETCH; }
1856 YY_BREAK
1857 case 26:
1858 YY_RULE_SETUP
1859 #line 112 "libmemcached/options/scanner.l"
1860 { yyextra->begin= yytext; return IO_MSG_WATERMARK; }
1861 YY_BREAK
1862 case 27:
1863 YY_RULE_SETUP
1864 #line 113 "libmemcached/options/scanner.l"
1865 { yyextra->begin= yytext; return IO_MSG_WATERMARK; }
1866 YY_BREAK
1867 case 28:
1868 YY_RULE_SETUP
1869 #line 114 "libmemcached/options/scanner.l"
1870 { yyextra->begin= yytext; return NOREPLY; }
1871 YY_BREAK
1872 case 29:
1873 YY_RULE_SETUP
1874 #line 115 "libmemcached/options/scanner.l"
1875 { yyextra->begin= yytext; return NUMBER_OF_REPLICAS; }
1876 YY_BREAK
1877 case 30:
1878 YY_RULE_SETUP
1879 #line 116 "libmemcached/options/scanner.l"
1880 { yyextra->begin= yytext; return NUMBER_OF_REPLICAS; }
1881 YY_BREAK
1882 case 31:
1883 YY_RULE_SETUP
1884 #line 117 "libmemcached/options/scanner.l"
1885 { yyextra->begin= yytext; return POLL_TIMEOUT; }
1886 YY_BREAK
1887 case 32:
1888 YY_RULE_SETUP
1889 #line 118 "libmemcached/options/scanner.l"
1890 { yyextra->begin= yytext; return POLL_TIMEOUT; }
1891 YY_BREAK
1892 case 33:
1893 YY_RULE_SETUP
1894 #line 119 "libmemcached/options/scanner.l"
1895 { yyextra->begin= yytext; return RANDOMIZE_REPLICA_READ; }
1896 YY_BREAK
1897 case 34:
1898 YY_RULE_SETUP
1899 #line 120 "libmemcached/options/scanner.l"
1900 { yyextra->begin= yytext; return RANDOMIZE_REPLICA_READ; }
1901 YY_BREAK
1902 case 35:
1903 YY_RULE_SETUP
1904 #line 121 "libmemcached/options/scanner.l"
1905 { yyextra->begin= yytext; return RCV_TIMEOUT; }
1906 YY_BREAK
1907 case 36:
1908 YY_RULE_SETUP
1909 #line 122 "libmemcached/options/scanner.l"
1910 { yyextra->begin= yytext; return RCV_TIMEOUT; }
1911 YY_BREAK
1912 case 37:
1913 YY_RULE_SETUP
1914 #line 123 "libmemcached/options/scanner.l"
1915 { yyextra->begin= yytext; return RETRY_TIMEOUT; }
1916 YY_BREAK
1917 case 38:
1918 YY_RULE_SETUP
1919 #line 124 "libmemcached/options/scanner.l"
1920 { yyextra->begin= yytext; return RETRY_TIMEOUT; }
1921 YY_BREAK
1922 case 39:
1923 YY_RULE_SETUP
1924 #line 125 "libmemcached/options/scanner.l"
1925 { yyextra->begin= yytext; return SND_TIMEOUT; }
1926 YY_BREAK
1927 case 40:
1928 YY_RULE_SETUP
1929 #line 126 "libmemcached/options/scanner.l"
1930 { yyextra->begin= yytext; return SND_TIMEOUT; }
1931 YY_BREAK
1932 case 41:
1933 YY_RULE_SETUP
1934 #line 127 "libmemcached/options/scanner.l"
1935 { yyextra->begin= yytext; return REMOVE_FAILED_SERVERS; }
1936 YY_BREAK
1937 case 42:
1938 YY_RULE_SETUP
1939 #line 128 "libmemcached/options/scanner.l"
1940 { yyextra->begin= yytext; return REMOVE_FAILED_SERVERS; }
1941 YY_BREAK
1942 case 43:
1943 YY_RULE_SETUP
1944 #line 129 "libmemcached/options/scanner.l"
1945 { yyextra->begin= yytext; return SOCKET_RECV_SIZE; }
1946 YY_BREAK
1947 case 44:
1948 YY_RULE_SETUP
1949 #line 130 "libmemcached/options/scanner.l"
1950 { yyextra->begin= yytext; return SOCKET_RECV_SIZE; }
1951 YY_BREAK
1952 case 45:
1953 YY_RULE_SETUP
1954 #line 131 "libmemcached/options/scanner.l"
1955 { yyextra->begin= yytext; return SOCKET_SEND_SIZE; }
1956 YY_BREAK
1957 case 46:
1958 YY_RULE_SETUP
1959 #line 132 "libmemcached/options/scanner.l"
1960 { yyextra->begin= yytext; return SOCKET_SEND_SIZE; }
1961 YY_BREAK
1962 case 47:
1963 YY_RULE_SETUP
1964 #line 133 "libmemcached/options/scanner.l"
1965 { yyextra->begin= yytext; return SORT_HOSTS; }
1966 YY_BREAK
1967 case 48:
1968 YY_RULE_SETUP
1969 #line 134 "libmemcached/options/scanner.l"
1970 { yyextra->begin= yytext; return SORT_HOSTS; }
1971 YY_BREAK
1972 case 49:
1973 YY_RULE_SETUP
1974 #line 135 "libmemcached/options/scanner.l"
1975 { yyextra->begin= yytext; return SUPPORT_CAS; }
1976 YY_BREAK
1977 case 50:
1978 YY_RULE_SETUP
1979 #line 136 "libmemcached/options/scanner.l"
1980 { yyextra->begin= yytext; return SUPPORT_CAS; }
1981 YY_BREAK
1982 case 51:
1983 YY_RULE_SETUP
1984 #line 137 "libmemcached/options/scanner.l"
1985 { yyextra->begin= yytext; return _TCP_NODELAY; }
1986 YY_BREAK
1987 case 52:
1988 YY_RULE_SETUP
1989 #line 138 "libmemcached/options/scanner.l"
1990 { yyextra->begin= yytext; return _TCP_NODELAY; }
1991 YY_BREAK
1992 case 53:
1993 YY_RULE_SETUP
1994 #line 139 "libmemcached/options/scanner.l"
1995 { yyextra->begin= yytext; return _TCP_KEEPALIVE; }
1996 YY_BREAK
1997 case 54:
1998 YY_RULE_SETUP
1999 #line 140 "libmemcached/options/scanner.l"
2000 { yyextra->begin= yytext; return _TCP_KEEPALIVE; }
2001 YY_BREAK
2002 case 55:
2003 YY_RULE_SETUP
2004 #line 141 "libmemcached/options/scanner.l"
2005 { yyextra->begin= yytext; return _TCP_KEEPIDLE; }
2006 YY_BREAK
2007 case 56:
2008 YY_RULE_SETUP
2009 #line 142 "libmemcached/options/scanner.l"
2010 { yyextra->begin= yytext; return _TCP_KEEPIDLE; }
2011 YY_BREAK
2012 case 57:
2013 YY_RULE_SETUP
2014 #line 143 "libmemcached/options/scanner.l"
2015 { yyextra->begin= yytext; return USER_DATA; }
2016 YY_BREAK
2017 case 58:
2018 YY_RULE_SETUP
2019 #line 144 "libmemcached/options/scanner.l"
2020 { yyextra->begin= yytext; return USER_DATA; }
2021 YY_BREAK
2022 case 59:
2023 YY_RULE_SETUP
2024 #line 145 "libmemcached/options/scanner.l"
2025 { yyextra->begin= yytext; return USE_UDP; }
2026 YY_BREAK
2027 case 60:
2028 YY_RULE_SETUP
2029 #line 146 "libmemcached/options/scanner.l"
2030 { yyextra->begin= yytext; return USE_UDP; }
2031 YY_BREAK
2032 case 61:
2033 YY_RULE_SETUP
2034 #line 148 "libmemcached/options/scanner.l"
2035 { yyextra->begin= yytext; return PREFIX_KEY; }
2036 YY_BREAK
2037 case 62:
2038 YY_RULE_SETUP
2039 #line 149 "libmemcached/options/scanner.l"
2040 { yyextra->begin= yytext; return PREFIX_KEY; }
2041 YY_BREAK
2042 case 63:
2043 YY_RULE_SETUP
2044 #line 151 "libmemcached/options/scanner.l"
2045 { yyextra->begin= yytext; return INCLUDE; }
2046 YY_BREAK
2047 case 64:
2048 YY_RULE_SETUP
2049 #line 152 "libmemcached/options/scanner.l"
2050 { yyextra->begin= yytext; return RESET; }
2051 YY_BREAK
2052 case 65:
2053 YY_RULE_SETUP
2054 #line 153 "libmemcached/options/scanner.l"
2055 { yyextra->begin= yytext; return PARSER_DEBUG; }
2056 YY_BREAK
2057 case 66:
2058 YY_RULE_SETUP
2059 #line 154 "libmemcached/options/scanner.l"
2060 { yyextra->begin= yytext; return SERVERS; }
2061 YY_BREAK
2062 case 67:
2063 YY_RULE_SETUP
2064 #line 155 "libmemcached/options/scanner.l"
2065 { yyextra->begin= yytext; return END; }
2066 YY_BREAK
2067 case 68:
2068 YY_RULE_SETUP
2069 #line 156 "libmemcached/options/scanner.l"
2070 { yyextra->begin= yytext; return ERROR; }
2071 YY_BREAK
2072 case 69:
2073 YY_RULE_SETUP
2074 #line 158 "libmemcached/options/scanner.l"
2075 { return TRUE; }
2076 YY_BREAK
2077 case 70:
2078 YY_RULE_SETUP
2079 #line 159 "libmemcached/options/scanner.l"
2080 { return FALSE; }
2081 YY_BREAK
2082 case 71:
2083 YY_RULE_SETUP
2084 #line 162 "libmemcached/options/scanner.l"
2085 {
2086 yyextra->begin= yytext;
2087 return UNKNOWN_OPTION;
2088 }
2089 YY_BREAK
2090 case 72:
2091 YY_RULE_SETUP
2092 #line 167 "libmemcached/options/scanner.l"
2093 { return CONSISTENT; }
2094 YY_BREAK
2095 case 73:
2096 YY_RULE_SETUP
2097 #line 168 "libmemcached/options/scanner.l"
2098 { return MODULA; }
2099 YY_BREAK
2100 case 74:
2101 YY_RULE_SETUP
2102 #line 169 "libmemcached/options/scanner.l"
2103 { return RANDOM; }
2104 YY_BREAK
2105 case 75:
2106 YY_RULE_SETUP
2107 #line 171 "libmemcached/options/scanner.l"
2108 { return MD5; }
2109 YY_BREAK
2110 case 76:
2111 YY_RULE_SETUP
2112 #line 172 "libmemcached/options/scanner.l"
2113 { return CRC; }
2114 YY_BREAK
2115 case 77:
2116 YY_RULE_SETUP
2117 #line 173 "libmemcached/options/scanner.l"
2118 { return FNV1_64; }
2119 YY_BREAK
2120 case 78:
2121 YY_RULE_SETUP
2122 #line 174 "libmemcached/options/scanner.l"
2123 { return FNV1A_64; }
2124 YY_BREAK
2125 case 79:
2126 YY_RULE_SETUP
2127 #line 175 "libmemcached/options/scanner.l"
2128 { return FNV1_32; }
2129 YY_BREAK
2130 case 80:
2131 YY_RULE_SETUP
2132 #line 176 "libmemcached/options/scanner.l"
2133 { return FNV1A_32; }
2134 YY_BREAK
2135 case 81:
2136 YY_RULE_SETUP
2137 #line 177 "libmemcached/options/scanner.l"
2138 { return HSIEH; }
2139 YY_BREAK
2140 case 82:
2141 YY_RULE_SETUP
2142 #line 178 "libmemcached/options/scanner.l"
2143 { return MURMUR; }
2144 YY_BREAK
2145 case 83:
2146 YY_RULE_SETUP
2147 #line 179 "libmemcached/options/scanner.l"
2148 { return JENKINS; }
2149 YY_BREAK
2150 case 84:
2151 YY_RULE_SETUP
2152 #line 181 "libmemcached/options/scanner.l"
2153 {
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;
2159 return IPADDRESS;
2160 }
2161 YY_BREAK
2162 case 85:
2163 YY_RULE_SETUP
2164 #line 190 "libmemcached/options/scanner.l"
2165 {
2166 if (yyextra->is_server())
2167 {
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;
2173
2174 return HOSTNAME;
2175 }
2176
2177 yylval->string.c_str = yytext;
2178 yylval->string.length = yyleng;
2179
2180 return STRING;
2181 }
2182 YY_BREAK
2183 case 86:
2184 YY_RULE_SETUP
2185 #line 208 "libmemcached/options/scanner.l"
2186 {
2187 yylval->string.c_str = yytext;
2188 yylval->string.length = yyleng;
2189 return QUOTED_STRING;
2190 }
2191 YY_BREAK
2192 case 87:
2193 YY_RULE_SETUP
2194 #line 214 "libmemcached/options/scanner.l"
2195 {
2196 yyextra->begin= yytext;
2197 return UNKNOWN;
2198 }
2199 YY_BREAK
2200 case 88:
2201 YY_RULE_SETUP
2202 #line 219 "libmemcached/options/scanner.l"
2203 ECHO;
2204 YY_BREAK
2205 #line 2206 "libmemcached/options/scanner.cc"
2206 case YY_STATE_EOF(INITIAL):
2207 yyterminate();
2208
2209 case YY_END_OF_BUFFER:
2210 {
2211 /* Amount of text matched not including the EOB char. */
2212 int yy_amount_of_matched_text = (int) (yy_cp - yyg->yytext_ptr) - 1;
2213
2214 /* Undo the effects of YY_DO_BEFORE_ACTION. */
2215 *yy_cp = yyg->yy_hold_char;
2216 YY_RESTORE_YY_MORE_OFFSET
2217
2218 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
2219 {
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.
2228 */
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;
2232 }
2233
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
2239 * in input().
2240 */
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;
2244
2245 yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text;
2246
2247 yy_current_state = yy_get_previous_state( yyscanner );
2248
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).
2256 */
2257
2258 yy_next_state = yy_try_NUL_trans( yy_current_state , yyscanner);
2259
2260 yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
2261
2262 if ( yy_next_state )
2263 {
2264 /* Consume the NUL. */
2265 yy_cp = ++yyg->yy_c_buf_p;
2266 yy_current_state = yy_next_state;
2267 goto yy_match;
2268 }
2269
2270 else
2271 {
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;
2275 }
2276 }
2277
2278 else switch ( yy_get_next_buffer( yyscanner ) )
2279 {
2280 case EOB_ACT_END_OF_FILE:
2281 {
2282 yyg->yy_did_buffer_switch_on_eof = 0;
2283
2284 if ( config_wrap(yyscanner ) )
2285 {
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.
2294 */
2295 yyg->yy_c_buf_p = yyg->yytext_ptr + YY_MORE_ADJ;
2296
2297 yy_act = YY_STATE_EOF(YY_START);
2298 goto do_action;
2299 }
2300
2301 else
2302 {
2303 if ( ! yyg->yy_did_buffer_switch_on_eof )
2304 YY_NEW_FILE;
2305 }
2306 break;
2307 }
2308
2309 case EOB_ACT_CONTINUE_SCAN:
2310 yyg->yy_c_buf_p =
2311 yyg->yytext_ptr + yy_amount_of_matched_text;
2312
2313 yy_current_state = yy_get_previous_state( yyscanner );
2314
2315 yy_cp = yyg->yy_c_buf_p;
2316 yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
2317 goto yy_match;
2318
2319 case EOB_ACT_LAST_MATCH:
2320 yyg->yy_c_buf_p =
2321 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars];
2322
2323 yy_current_state = yy_get_previous_state( yyscanner );
2324
2325 yy_cp = yyg->yy_c_buf_p;
2326 yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
2327 goto yy_find_action;
2328 }
2329 break;
2330 }
2331
2332 default:
2333 YY_FATAL_ERROR(
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 */
2339
2340 /* %if-c++-only */
2341 /* %not-for-header */
2342
2343 /* %ok-for-header */
2344
2345 /* %endif */
2346
2347 /* yy_get_next_buffer - try to read in a new buffer
2348 *
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
2353 */
2354 /* %if-c-only */
2355 static int yy_get_next_buffer (yyscan_t yyscanner)
2356 /* %endif */
2357 /* %if-c++-only */
2358 /* %endif */
2359 {
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;
2364 int ret_val;
2365
2366 if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] )
2367 YY_FATAL_ERROR(
2368 "fatal flex scanner internal error--end of buffer missed" );
2369
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 )
2373 {
2374 /* We matched a single character, the EOB, so
2375 * treat this as a final EOF.
2376 */
2377 return EOB_ACT_END_OF_FILE;
2378 }
2379
2380 else
2381 {
2382 /* We matched some text prior to the EOB, first
2383 * process it.
2384 */
2385 return EOB_ACT_LAST_MATCH;
2386 }
2387 }
2388
2389 /* Try to read more data. */
2390
2391 /* First move last chars to start of buffer. */
2392 number_to_move = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr) - 1;
2393
2394 for ( i = 0; i < number_to_move; ++i )
2395 *(dest++) = *(source++);
2396
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,
2399 * just force an EOF
2400 */
2401 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars = 0;
2402
2403 else
2404 {
2405 int num_to_read =
2406 YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
2407
2408 while ( num_to_read <= 0 )
2409 { /* Not enough room in the buffer - grow it. */
2410
2411 /* just a shorter name for the current buffer */
2412 YY_BUFFER_STATE b = YY_CURRENT_BUFFER;
2413
2414 int yy_c_buf_p_offset =
2415 (int) (yyg->yy_c_buf_p - b->yy_ch_buf);
2416
2417 if ( b->yy_is_our_buffer )
2418 {
2419 int new_size = b->yy_buf_size * 2;
2420
2421 if ( new_size <= 0 )
2422 b->yy_buf_size += b->yy_buf_size / 8;
2423 else
2424 b->yy_buf_size *= 2;
2425
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 );
2429 }
2430 else
2431 /* Can't grow it, we don't own it. */
2432 b->yy_ch_buf = 0;
2433
2434 if ( ! b->yy_ch_buf )
2435 YY_FATAL_ERROR(
2436 "fatal error - scanner input buffer overflow" );
2437
2438 yyg->yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
2439
2440 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
2441 number_to_move - 1;
2442
2443 }
2444
2445 if ( num_to_read > YY_READ_BUF_SIZE )
2446 num_to_read = YY_READ_BUF_SIZE;
2447
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 );
2451
2452 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
2453 }
2454
2455 if ( yyg->yy_n_chars == 0 )
2456 {
2457 if ( number_to_move == YY_MORE_ADJ )
2458 {
2459 ret_val = EOB_ACT_END_OF_FILE;
2460 config_restart(yyin ,yyscanner);
2461 }
2462
2463 else
2464 {
2465 ret_val = EOB_ACT_LAST_MATCH;
2466 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
2467 YY_BUFFER_EOF_PENDING;
2468 }
2469 }
2470
2471 else
2472 ret_val = EOB_ACT_CONTINUE_SCAN;
2473
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()" );
2480 }
2481
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;
2485
2486 yyg->yytext_ptr = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
2487
2488 return ret_val;
2489 }
2490
2491 /* yy_get_previous_state - get the state just before the EOB char was reached */
2492
2493 /* %if-c-only */
2494 /* %not-for-header */
2495
2496 static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
2497 /* %endif */
2498 /* %if-c++-only */
2499 /* %endif */
2500 {
2501 register yy_state_type yy_current_state;
2502 register char *yy_cp;
2503 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2504
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();
2508
2509 for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp )
2510 {
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] )
2514 {
2515 yyg->yy_last_accepting_state = yy_current_state;
2516 yyg->yy_last_accepting_cpos = yy_cp;
2517 }
2518 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2519 {
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];
2523 }
2524 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
2525 }
2526
2527 return yy_current_state;
2528 }
2529
2530 /* yy_try_NUL_trans - try to make a transition on the NUL character
2531 *
2532 * synopsis
2533 * next_state = yy_try_NUL_trans( current_state );
2534 */
2535 /* %if-c-only */
2536 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner)
2537 /* %endif */
2538 /* %if-c++-only */
2539 /* %endif */
2540 {
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;
2545
2546 register YY_CHAR yy_c = 1;
2547 if ( yy_accept[yy_current_state] )
2548 {
2549 yyg->yy_last_accepting_state = yy_current_state;
2550 yyg->yy_last_accepting_cpos = yy_cp;
2551 }
2552 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2553 {
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];
2557 }
2558 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
2559 yy_is_jam = (yy_current_state == 746);
2560
2561 return yy_is_jam ? 0 : yy_current_state;
2562 }
2563
2564 /* %if-c-only */
2565
2566 /* %endif */
2567
2568 /* %if-c-only */
2569 #ifndef YY_NO_INPUT
2570 #ifdef __cplusplus
2571 static int yyinput (yyscan_t yyscanner)
2572 #else
2573 static int input (yyscan_t yyscanner)
2574 #endif
2575
2576 /* %endif */
2577 /* %if-c++-only */
2578 /* %endif */
2579 {
2580 int c;
2581 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2582
2583 *yyg->yy_c_buf_p = yyg->yy_hold_char;
2584
2585 if ( *yyg->yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
2586 {
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.
2590 */
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';
2594
2595 else
2596 { /* need more input */
2597 int offset = yyg->yy_c_buf_p - yyg->yytext_ptr;
2598 ++yyg->yy_c_buf_p;
2599
2600 switch ( yy_get_next_buffer( yyscanner ) )
2601 {
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.
2611 */
2612
2613 /* Reset buffer status. */
2614 config_restart(yyin ,yyscanner);
2615
2616 /*FALLTHROUGH*/
2617
2618 case EOB_ACT_END_OF_FILE:
2619 {
2620 if ( config_wrap(yyscanner ) )
2621 return EOF;
2622
2623 if ( ! yyg->yy_did_buffer_switch_on_eof )
2624 YY_NEW_FILE;
2625 #ifdef __cplusplus
2626 return yyinput(yyscanner);
2627 #else
2628 return input(yyscanner);
2629 #endif
2630 }
2631
2632 case EOB_ACT_CONTINUE_SCAN:
2633 yyg->yy_c_buf_p = yyg->yytext_ptr + offset;
2634 break;
2635 }
2636 }
2637 }
2638
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;
2642
2643 /* %% [19.0] update BOL and yylineno */
2644 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n');
2645
2646 return c;
2647 }
2648 /* %if-c-only */
2649 #endif /* ifndef YY_NO_INPUT */
2650 /* %endif */
2651
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 .
2656 */
2657 /* %if-c-only */
2658 void config_restart (FILE * input_file , yyscan_t yyscanner)
2659 /* %endif */
2660 /* %if-c++-only */
2661 /* %endif */
2662 {
2663 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2664
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);
2669 }
2670
2671 config__init_buffer(YY_CURRENT_BUFFER,input_file ,yyscanner);
2672 config__load_buffer_state(yyscanner );
2673 }
2674
2675 /** Switch to a different input buffer.
2676 * @param new_buffer The new input buffer.
2677 * @param yyscanner The scanner object.
2678 */
2679 /* %if-c-only */
2680 void config__switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
2681 /* %endif */
2682 /* %if-c++-only */
2683 /* %endif */
2684 {
2685 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2686
2687 /* TODO. We should be able to replace this entire function body
2688 * with
2689 * config_pop_buffer_state();
2690 * config_push_buffer_state(new_buffer);
2691 */
2692 config_ensure_buffer_stack (yyscanner);
2693 if ( YY_CURRENT_BUFFER == new_buffer )
2694 return;
2695
2696 if ( YY_CURRENT_BUFFER )
2697 {
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;
2702 }
2703
2704 YY_CURRENT_BUFFER_LVALUE = new_buffer;
2705 config__load_buffer_state(yyscanner );
2706
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.
2711 */
2712 yyg->yy_did_buffer_switch_on_eof = 1;
2713 }
2714
2715 /* %if-c-only */
2716 static void config__load_buffer_state (yyscan_t yyscanner)
2717 /* %endif */
2718 /* %if-c++-only */
2719 /* %endif */
2720 {
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;
2726 }
2727
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.
2733 */
2734 /* %if-c-only */
2735 YY_BUFFER_STATE config__create_buffer (FILE * file, int size , yyscan_t yyscanner)
2736 /* %endif */
2737 /* %if-c++-only */
2738 /* %endif */
2739 {
2740 YY_BUFFER_STATE b;
2741
2742 b = (YY_BUFFER_STATE) config_alloc(sizeof( struct yy_buffer_state ) ,yyscanner );
2743 if ( ! b )
2744 YY_FATAL_ERROR( "out of dynamic memory in config__create_buffer()" );
2745
2746 b->yy_buf_size = size;
2747
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.
2750 */
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()" );
2754
2755 b->yy_is_our_buffer = 1;
2756
2757 config__init_buffer(b,file ,yyscanner);
2758
2759 return b;
2760 }
2761
2762 /** Destroy the buffer.
2763 * @param b a buffer created with config__create_buffer()
2764 * @param yyscanner The scanner object.
2765 */
2766 /* %if-c-only */
2767 void config__delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner)
2768 /* %endif */
2769 /* %if-c++-only */
2770 /* %endif */
2771 {
2772 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2773
2774 if ( ! b )
2775 return;
2776
2777 if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
2778 YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
2779
2780 if ( b->yy_is_our_buffer )
2781 config_free((void *) b->yy_ch_buf ,yyscanner );
2782
2783 config_free((void *) b ,yyscanner );
2784 }
2785
2786 /* %if-c-only */
2787
2788 #ifndef __cplusplus
2789 extern int isatty (int );
2790 #endif /* __cplusplus */
2791
2792 /* %endif */
2793
2794 /* %if-c++-only */
2795 /* %endif */
2796
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.
2800 */
2801 /* %if-c-only */
2802 static void config__init_buffer (YY_BUFFER_STATE b, FILE * file , yyscan_t yyscanner)
2803 /* %endif */
2804 /* %if-c++-only */
2805 /* %endif */
2806
2807 {
2808 int oerrno = errno;
2809 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2810
2811 config__flush_buffer(b ,yyscanner);
2812
2813 b->yy_input_file = file;
2814 b->yy_fill_buffer = 1;
2815
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.
2819 */
2820 if (b != YY_CURRENT_BUFFER){
2821 b->yy_bs_lineno = 1;
2822 b->yy_bs_column = 0;
2823 }
2824
2825 /* %if-c-only */
2826
2827 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
2828
2829 /* %endif */
2830 /* %if-c++-only */
2831 /* %endif */
2832 errno = oerrno;
2833 }
2834
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.
2838 */
2839 /* %if-c-only */
2840 void config__flush_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner)
2841 /* %endif */
2842 /* %if-c++-only */
2843 /* %endif */
2844 {
2845 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2846 if ( ! b )
2847 return;
2848
2849 b->yy_n_chars = 0;
2850
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.
2854 */
2855 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
2856 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
2857
2858 b->yy_buf_pos = &b->yy_ch_buf[0];
2859
2860 b->yy_at_bol = 1;
2861 b->yy_buffer_status = YY_BUFFER_NEW;
2862
2863 if ( b == YY_CURRENT_BUFFER )
2864 config__load_buffer_state(yyscanner );
2865 }
2866
2867 /* %if-c-or-c++ */
2868 /** Pushes the new state onto the stack. The new state becomes
2869 * the current state. This function will allocate the stack
2870 * if necessary.
2871 * @param new_buffer The new state.
2872 * @param yyscanner The scanner object.
2873 */
2874 /* %if-c-only */
2875 void config_push_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
2876 /* %endif */
2877 /* %if-c++-only */
2878 /* %endif */
2879 {
2880 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2881 if (new_buffer == NULL)
2882 return;
2883
2884 config_ensure_buffer_stack(yyscanner);
2885
2886 /* This block is copied from config__switch_to_buffer. */
2887 if ( YY_CURRENT_BUFFER )
2888 {
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;
2893 }
2894
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;
2899
2900 /* copied from config__switch_to_buffer. */
2901 config__load_buffer_state(yyscanner );
2902 yyg->yy_did_buffer_switch_on_eof = 1;
2903 }
2904 /* %endif */
2905
2906 /* %if-c-or-c++ */
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.
2910 */
2911 /* %if-c-only */
2912 void config_pop_buffer_state (yyscan_t yyscanner)
2913 /* %endif */
2914 /* %if-c++-only */
2915 /* %endif */
2916 {
2917 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2918 if (!YY_CURRENT_BUFFER)
2919 return;
2920
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;
2925
2926 if (YY_CURRENT_BUFFER) {
2927 config__load_buffer_state(yyscanner );
2928 yyg->yy_did_buffer_switch_on_eof = 1;
2929 }
2930 }
2931 /* %endif */
2932
2933 /* %if-c-or-c++ */
2934 /* Allocates the stack if it does not exist.
2935 * Guarantees space for at least one push.
2936 */
2937 /* %if-c-only */
2938 static void config_ensure_buffer_stack (yyscan_t yyscanner)
2939 /* %endif */
2940 /* %if-c++-only */
2941 /* %endif */
2942 {
2943 int num_to_alloc;
2944 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2945
2946 if (!yyg->yy_buffer_stack) {
2947
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.
2951 */
2952 num_to_alloc = 1;
2953 yyg->yy_buffer_stack = (struct yy_buffer_state**)config_alloc
2954 (num_to_alloc * sizeof(struct yy_buffer_state*)
2955 , yyscanner);
2956 if ( ! yyg->yy_buffer_stack )
2957 YY_FATAL_ERROR( "out of dynamic memory in config_ensure_buffer_stack()" );
2958
2959 memset(yyg->yy_buffer_stack, 0, num_to_alloc * sizeof(struct yy_buffer_state*));
2960
2961 yyg->yy_buffer_stack_max = num_to_alloc;
2962 yyg->yy_buffer_stack_top = 0;
2963 return;
2964 }
2965
2966 if (yyg->yy_buffer_stack_top >= (yyg->yy_buffer_stack_max) - 1){
2967
2968 /* Increase the buffer to prepare for a possible push. */
2969 int grow_size = 8 /* arbitrary grow size */;
2970
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*)
2975 , yyscanner);
2976 if ( ! yyg->yy_buffer_stack )
2977 YY_FATAL_ERROR( "out of dynamic memory in config_ensure_buffer_stack()" );
2978
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;
2982 }
2983 }
2984 /* %endif */
2985
2986 /* %if-c-only */
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.
2992 */
2993 YY_BUFFER_STATE config__scan_buffer (char * base, yy_size_t size , yyscan_t yyscanner)
2994 {
2995 YY_BUFFER_STATE b;
2996
2997 if ( size < 2 ||
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. */
3001 return 0;
3002
3003 b = (YY_BUFFER_STATE) config_alloc(sizeof( struct yy_buffer_state ) ,yyscanner );
3004 if ( ! b )
3005 YY_FATAL_ERROR( "out of dynamic memory in config__scan_buffer()" );
3006
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;
3013 b->yy_at_bol = 1;
3014 b->yy_fill_buffer = 0;
3015 b->yy_buffer_status = YY_BUFFER_NEW;
3016
3017 config__switch_to_buffer(b ,yyscanner );
3018
3019 return b;
3020 }
3021 /* %endif */
3022
3023 /* %if-c-only */
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.
3031 */
3032 YY_BUFFER_STATE config__scan_string (yyconst char * yystr , yyscan_t yyscanner)
3033 {
3034
3035 return config__scan_bytes(yystr,strlen(yystr) ,yyscanner);
3036 }
3037 /* %endif */
3038
3039 /* %if-c-only */
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.
3046 */
3047 YY_BUFFER_STATE config__scan_bytes (yyconst char * yybytes, int _yybytes_len , yyscan_t yyscanner)
3048 {
3049 YY_BUFFER_STATE b;
3050 char *buf;
3051 yy_size_t n;
3052 int i;
3053
3054 /* Get memory for full buffer, including space for trailing EOB's. */
3055 n = _yybytes_len + 2;
3056 buf = (char *) config_alloc(n ,yyscanner );
3057 if ( ! buf )
3058 YY_FATAL_ERROR( "out of dynamic memory in config__scan_bytes()" );
3059
3060 for ( i = 0; i < _yybytes_len; ++i )
3061 buf[i] = yybytes[i];
3062
3063 buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
3064
3065 b = config__scan_buffer(buf,n ,yyscanner);
3066 if ( ! b )
3067 YY_FATAL_ERROR( "bad buffer in config__scan_bytes()" );
3068
3069 /* It's okay to grow etc. this buffer, and we should throw it
3070 * away when we're done.
3071 */
3072 b->yy_is_our_buffer = 1;
3073
3074 return b;
3075 }
3076 /* %endif */
3077
3078 #ifndef YY_EXIT_FAILURE
3079 #define YY_EXIT_FAILURE 2
3080 #endif
3081
3082 /* %if-c-only */
3083 static void yy_fatal_error (yyconst char* msg , yyscan_t yyscanner)
3084 {
3085 (void) fprintf( stderr, "%s\n", msg );
3086 exit( YY_EXIT_FAILURE );
3087 }
3088 /* %endif */
3089 /* %if-c++-only */
3090 /* %endif */
3091
3092 /* Redefine yyless() so it works in section 3 code. */
3093
3094 #undef yyless
3095 #define yyless(n) \
3096 do \
3097 { \
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; \
3106 } \
3107 while ( 0 )
3108
3109 /* Accessor methods (get/set functions) to struct members. */
3110
3111 /* %if-c-only */
3112 /* %if-reentrant */
3113
3114 /** Get the user-defined data for this scanner.
3115 * @param yyscanner The scanner object.
3116 */
3117 YY_EXTRA_TYPE config_get_extra (yyscan_t yyscanner)
3118 {
3119 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3120 return yyextra;
3121 }
3122
3123 /* %endif */
3124
3125 /** Get the current line number.
3126 * @param yyscanner The scanner object.
3127 */
3128 int config_get_lineno (yyscan_t yyscanner)
3129 {
3130 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3131
3132 if (! YY_CURRENT_BUFFER)
3133 return 0;
3134
3135 return yylineno;
3136 }
3137
3138 /** Get the current column number.
3139 * @param yyscanner The scanner object.
3140 */
3141 int config_get_column (yyscan_t yyscanner)
3142 {
3143 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3144
3145 if (! YY_CURRENT_BUFFER)
3146 return 0;
3147
3148 return yycolumn;
3149 }
3150
3151 /** Get the input stream.
3152 * @param yyscanner The scanner object.
3153 */
3154 FILE *config_get_in (yyscan_t yyscanner)
3155 {
3156 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3157 return yyin;
3158 }
3159
3160 /** Get the output stream.
3161 * @param yyscanner The scanner object.
3162 */
3163 FILE *config_get_out (yyscan_t yyscanner)
3164 {
3165 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3166 return yyout;
3167 }
3168
3169 /** Get the length of the current token.
3170 * @param yyscanner The scanner object.
3171 */
3172 int config_get_leng (yyscan_t yyscanner)
3173 {
3174 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3175 return yyleng;
3176 }
3177
3178 /** Get the current token.
3179 * @param yyscanner The scanner object.
3180 */
3181
3182 char *config_get_text (yyscan_t yyscanner)
3183 {
3184 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3185 return yytext;
3186 }
3187
3188 /* %if-reentrant */
3189
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.
3193 */
3194 void config_set_extra (YY_EXTRA_TYPE user_defined , yyscan_t yyscanner)
3195 {
3196 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3197 yyextra = user_defined ;
3198 }
3199
3200 /* %endif */
3201
3202 /** Set the current line number.
3203 * @param line_number
3204 * @param yyscanner The scanner object.
3205 */
3206 void config_set_lineno (int line_number , yyscan_t yyscanner)
3207 {
3208 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3209
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);
3213
3214 yylineno = line_number;
3215 }
3216
3217 /** Set the current column.
3218 * @param line_number
3219 * @param yyscanner The scanner object.
3220 */
3221 void config_set_column (int column_no , yyscan_t yyscanner)
3222 {
3223 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3224
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);
3228
3229 yycolumn = column_no;
3230 }
3231
3232 /** Set the input stream. This does not discard the current
3233 * input buffer.
3234 * @param in_str A readable stream.
3235 * @param yyscanner The scanner object.
3236 * @see config__switch_to_buffer
3237 */
3238 void config_set_in (FILE * in_str , yyscan_t yyscanner)
3239 {
3240 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3241 yyin = in_str ;
3242 }
3243
3244 void config_set_out (FILE * out_str , yyscan_t yyscanner)
3245 {
3246 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3247 yyout = out_str ;
3248 }
3249
3250 int config_get_debug (yyscan_t yyscanner)
3251 {
3252 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3253 return yy_flex_debug;
3254 }
3255
3256 void config_set_debug (int bdebug , yyscan_t yyscanner)
3257 {
3258 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3259 yy_flex_debug = bdebug ;
3260 }
3261
3262 /* %endif */
3263
3264 /* %if-reentrant */
3265 /* Accessor methods for yylval and yylloc */
3266
3267 /* %if-bison-bridge */
3268
3269 YYSTYPE * config_get_lval (yyscan_t yyscanner)
3270 {
3271 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3272 return yylval;
3273 }
3274
3275 void config_set_lval (YYSTYPE * yylval_param , yyscan_t yyscanner)
3276 {
3277 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3278 yylval = yylval_param;
3279 }
3280
3281 /* %endif */
3282
3283 /* User-visible API */
3284
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.
3288 */
3289
3290 int config_lex_init(yyscan_t* ptr_yy_globals)
3291
3292 {
3293 if (ptr_yy_globals == NULL){
3294 errno = EINVAL;
3295 return 1;
3296 }
3297
3298 *ptr_yy_globals = (yyscan_t) config_alloc ( sizeof( struct yyguts_t ), NULL );
3299
3300 if (*ptr_yy_globals == NULL){
3301 errno = ENOMEM;
3302 return 1;
3303 }
3304
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));
3307
3308 return yy_init_globals ( *ptr_yy_globals );
3309 }
3310
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.
3317 */
3318
3319 int config_lex_init_extra(YY_EXTRA_TYPE yy_user_defined,yyscan_t* ptr_yy_globals )
3320
3321 {
3322 struct yyguts_t dummy_yyguts;
3323
3324 config_set_extra (yy_user_defined, &dummy_yyguts);
3325
3326 if (ptr_yy_globals == NULL){
3327 errno = EINVAL;
3328 return 1;
3329 }
3330
3331 *ptr_yy_globals = (yyscan_t) config_alloc ( sizeof( struct yyguts_t ), &dummy_yyguts );
3332
3333 if (*ptr_yy_globals == NULL){
3334 errno = ENOMEM;
3335 return 1;
3336 }
3337
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));
3341
3342 config_set_extra (yy_user_defined, *ptr_yy_globals);
3343
3344 return yy_init_globals ( *ptr_yy_globals );
3345 }
3346
3347 /* %endif if-c-only */
3348
3349 /* %if-c-only */
3350 static int yy_init_globals (yyscan_t yyscanner)
3351 {
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.
3355 */
3356
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;
3361 yyg->yy_init = 0;
3362 yyg->yy_start = 0;
3363
3364 yyg->yy_start_stack_ptr = 0;
3365 yyg->yy_start_stack_depth = 0;
3366 yyg->yy_start_stack = NULL;
3367
3368 /* Defined in main.c */
3369 #ifdef YY_STDINIT
3370 yyin = stdin;
3371 yyout = stdout;
3372 #else
3373 yyin = (FILE *) 0;
3374 yyout = (FILE *) 0;
3375 #endif
3376
3377 /* For future reference: Set errno on error, since we are called by
3378 * config_lex_init()
3379 */
3380 return 0;
3381 }
3382 /* %endif */
3383
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)
3387 {
3388 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3389
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);
3395 }
3396
3397 /* Destroy the stack itself. */
3398 config_free(yyg->yy_buffer_stack ,yyscanner);
3399 yyg->yy_buffer_stack = NULL;
3400
3401 /* Destroy the start condition stack. */
3402 config_free(yyg->yy_start_stack ,yyscanner );
3403 yyg->yy_start_stack = NULL;
3404
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);
3408
3409 /* %if-reentrant */
3410 /* Destroy the main struct (reentrant only). */
3411 config_free ( yyscanner , yyscanner );
3412 yyscanner = NULL;
3413 /* %endif */
3414 return 0;
3415 }
3416 /* %endif */
3417
3418 /*
3419 * Internal utility routines.
3420 */
3421
3422 #ifndef yytext_ptr
3423 static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yyscanner)
3424 {
3425 register int i;
3426 for ( i = 0; i < n; ++i )
3427 s1[i] = s2[i];
3428 }
3429 #endif
3430
3431 #ifdef YY_NEED_STRLEN
3432 static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner)
3433 {
3434 register int n;
3435 for ( n = 0; s[n]; ++n )
3436 ;
3437
3438 return n;
3439 }
3440 #endif
3441
3442 void *config_alloc (yy_size_t size , yyscan_t yyscanner)
3443 {
3444 return (void *) malloc( size );
3445 }
3446
3447 void *config_realloc (void * ptr, yy_size_t size , yyscan_t yyscanner)
3448 {
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.
3455 */
3456 return (void *) realloc( (char *) ptr, size );
3457 }
3458
3459 void config_free (void * ptr , yyscan_t yyscanner)
3460 {
3461 free( (char *) ptr ); /* see config_realloc() for (char *) cast */
3462 }
3463
3464 /* %if-tables-serialization definitions */
3465 /* %define-yytables The name for this specific scanner's tables. */
3466 #define YYTABLES_NAME "yytables"
3467 /* %endif */
3468
3469 /* %ok-for-header */
3470
3471 #line 219 "libmemcached/options/scanner.l"
3472
3473
3474
3475 void Context::init_scanner()
3476 {
3477 config_lex_init(&scanner);
3478 config_set_extra(this,scanner);
3479 }
3480
3481 void Context::destroy_scanner()
3482 {
3483 config_lex_destroy(scanner);
3484 }
3485
3486