4 #define YY_INT_ALIGNED short int
6 /* A lexical scanner generated by flex */
9 #define YY_FLEX_MAJOR_VERSION 2
10 #define YY_FLEX_MINOR_VERSION 5
11 #define YY_FLEX_SUBMINOR_VERSION 35
12 #if YY_FLEX_SUBMINOR_VERSION > 0
16 /* First, we deal with platform-specific or compiler-specific issues. */
18 /* begin standard C headers. */
24 /* end standard C headers. */
26 /* flex integer type definitions */
31 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
33 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
35 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
36 * if you want the limit (max/min) macros for int types.
38 #ifndef __STDC_LIMIT_MACROS
39 #define __STDC_LIMIT_MACROS 1
43 typedef int8_t flex_int8_t;
44 typedef uint8_t flex_uint8_t;
45 typedef int16_t flex_int16_t;
46 typedef uint16_t flex_uint16_t;
47 typedef int32_t flex_int32_t;
48 typedef uint32_t flex_uint32_t;
50 typedef signed char flex_int8_t;
51 typedef short int flex_int16_t;
52 typedef int flex_int32_t;
53 typedef unsigned char flex_uint8_t;
54 typedef unsigned short int flex_uint16_t;
55 typedef unsigned int flex_uint32_t;
57 /* Limits of integral types. */
59 #define INT8_MIN (-128)
62 #define INT16_MIN (-32767-1)
65 #define INT32_MIN (-2147483647-1)
68 #define INT8_MAX (127)
71 #define INT16_MAX (32767)
74 #define INT32_MAX (2147483647)
77 #define UINT8_MAX (255U)
80 #define UINT16_MAX (65535U)
83 #define UINT32_MAX (4294967295U)
88 #endif /* ! FLEXINT_H */
92 /* The "const" storage-class-modifier is valid. */
95 #else /* ! __cplusplus */
97 /* C99 requires __STDC__ to be defined as 1. */
98 #if defined (__STDC__)
102 #endif /* defined (__STDC__) */
103 #endif /* ! __cplusplus */
106 #define yyconst const
111 /* Returned upon end-of-file. */
114 /* Promotes a possibly negative, possibly signed char to an unsigned
115 * integer for use as an array index. If the signed char is negative,
116 * we want to instead treat it as an 8-bit unsigned char, hence the
119 #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
121 /* Enter a start condition. This macro really ought to take a parameter,
122 * but we do it the disgusting crufty way forced on us by the ()-less
123 * definition of BEGIN.
125 #define BEGIN (yy_start) = 1 + 2 *
127 /* Translate the current start state into a value that can be later handed
128 * to BEGIN to return to the state. The YYSTATE alias is for lex
131 #define YY_START (((yy_start) - 1) / 2)
132 #define YYSTATE YY_START
134 /* Action number for EOF rule of a given start state. */
135 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
137 /* Special action meaning "start processing a new file". */
138 #define YY_NEW_FILE yyrestart(yyin )
140 #define YY_END_OF_BUFFER_CHAR 0
142 /* Size of default input buffer. */
145 /* On IA-64, the buffer size is 16k, not 8k.
146 * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
147 * Ditto for the __ia64__ case accordingly.
149 #define YY_BUF_SIZE 32768
151 #define YY_BUF_SIZE 16384
152 #endif /* __ia64__ */
155 /* The state buf must be large enough to hold one state per character in the main buffer.
157 #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
159 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
160 #define YY_TYPEDEF_YY_BUFFER_STATE
161 typedef struct yy_buffer_state *YY_BUFFER_STATE;
166 extern FILE *yyin, *yyout;
168 #define EOB_ACT_CONTINUE_SCAN 0
169 #define EOB_ACT_END_OF_FILE 1
170 #define EOB_ACT_LAST_MATCH 2
172 #define YY_LESS_LINENO(n)
174 /* Return all but the first "n" matched characters back to the input stream. */
178 /* Undo effects of setting up yytext. */ \
179 int yyless_macro_arg = (n); \
180 YY_LESS_LINENO(yyless_macro_arg);\
181 *yy_cp = (yy_hold_char); \
182 YY_RESTORE_YY_MORE_OFFSET \
183 (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
184 YY_DO_BEFORE_ACTION; /* set up yytext again */ \
188 #define unput(c) yyunput( c, (yytext_ptr) )
190 #ifndef YY_TYPEDEF_YY_SIZE_T
191 #define YY_TYPEDEF_YY_SIZE_T
192 typedef size_t yy_size_t;
195 #ifndef YY_STRUCT_YY_BUFFER_STATE
196 #define YY_STRUCT_YY_BUFFER_STATE
197 struct yy_buffer_state
201 char *yy_ch_buf; /* input buffer */
202 char *yy_buf_pos; /* current position in input buffer */
204 /* Size of input buffer in bytes, not including room for EOB
207 yy_size_t yy_buf_size;
209 /* Number of characters read into yy_ch_buf, not including EOB
214 /* Whether we "own" the buffer - i.e., we know we created it,
215 * and can realloc() it to grow it, and should free() it to
218 int yy_is_our_buffer;
220 /* Whether this is an "interactive" input source; if so, and
221 * if we're using stdio for input, then we want to use getc()
222 * instead of fread(), to make sure we stop fetching input after
225 int yy_is_interactive;
227 /* Whether we're considered to be at the beginning of a line.
228 * If so, '^' rules will be active on the next match, otherwise
233 int yy_bs_lineno; /**< The line count. */
234 int yy_bs_column; /**< The column count. */
236 /* Whether to try to fill the input buffer when we reach the
241 int yy_buffer_status;
243 #define YY_BUFFER_NEW 0
244 #define YY_BUFFER_NORMAL 1
245 /* When an EOF's been seen but there's still some text to process
246 * then we mark the buffer as YY_EOF_PENDING, to indicate that we
247 * shouldn't try reading from the input source any more. We might
248 * still have a bunch of tokens to match, though, because of
249 * possible backing-up.
251 * When we actually see the EOF, we change the status to "new"
252 * (via yyrestart()), so that the user can continue scanning by
253 * just pointing yyin at a new input file.
255 #define YY_BUFFER_EOF_PENDING 2
258 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
260 /* Stack of input buffers. */
261 static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
262 static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
263 static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
265 /* We provide macros for accessing buffer states in case in the
266 * future we want to put the buffer states in a more general
269 * Returns the top of the stack, or NULL.
271 #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
272 ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
275 /* Same as previous macro, but useful when we know that the buffer stack is not
276 * NULL or when we need an lvalue. For internal use only.
278 #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
280 /* yy_hold_char holds the character lost when yytext is formed. */
281 static char yy_hold_char;
282 static int yy_n_chars; /* number of characters read into yy_ch_buf */
285 /* Points to current character in buffer. */
286 static char *yy_c_buf_p = (char *) 0;
287 static int yy_init = 0; /* whether we need to initialize */
288 static int yy_start = 0; /* start state number */
290 /* Flag which is used to allow yywrap()'s to do buffer switches
291 * instead of setting up a fresh yyin. A bit of a hack ...
293 static int yy_did_buffer_switch_on_eof;
295 void yyrestart (FILE *input_file );
296 void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer );
297 YY_BUFFER_STATE yy_create_buffer (FILE *file,int size );
298 void yy_delete_buffer (YY_BUFFER_STATE b );
299 void yy_flush_buffer (YY_BUFFER_STATE b );
300 void yypush_buffer_state (YY_BUFFER_STATE new_buffer );
301 void yypop_buffer_state (void );
303 static void yyensure_buffer_stack (void );
304 static void yy_load_buffer_state (void );
305 static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file );
307 #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER )
309 YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size );
310 YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str );
311 YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len );
313 void *yyalloc (yy_size_t );
314 void *yyrealloc (void *,yy_size_t );
315 void yyfree (void * );
317 #define yy_new_buffer yy_create_buffer
319 #define yy_set_interactive(is_interactive) \
321 if ( ! YY_CURRENT_BUFFER ){ \
322 yyensure_buffer_stack (); \
323 YY_CURRENT_BUFFER_LVALUE = \
324 yy_create_buffer(yyin,YY_BUF_SIZE ); \
326 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
329 #define yy_set_bol(at_bol) \
331 if ( ! YY_CURRENT_BUFFER ){\
332 yyensure_buffer_stack (); \
333 YY_CURRENT_BUFFER_LVALUE = \
334 yy_create_buffer(yyin,YY_BUF_SIZE ); \
336 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
339 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
341 /* Begin user sect3 */
343 typedef unsigned char YY_CHAR;
345 FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
347 typedef int yy_state_type;
354 #define yytext_ptr yytext
356 static yy_state_type yy_get_previous_state (void );
357 static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
358 static int yy_get_next_buffer (void );
359 static void yy_fatal_error (yyconst char msg[] );
361 /* Done after the current pattern has been matched and before the
362 * corresponding action - sets up yytext.
364 #define YY_DO_BEFORE_ACTION \
365 (yytext_ptr) = yy_bp; \
366 yyleng = (size_t) (yy_cp - yy_bp); \
367 (yy_hold_char) = *yy_cp; \
369 (yy_c_buf_p) = yy_cp;
371 #define YY_NUM_RULES 121
372 #define YY_END_OF_BUFFER 122
373 /* This struct is not used in this scanner,
374 but its presence is necessary. */
377 flex_int32_t yy_verify;
380 static yyconst flex_int16_t yy_acclist[652] =
382 122, 119, 121, 117, 119, 121, 1, 118, 121, 118,
383 119, 121, 119, 121, 119, 121, 119, 121, 106, 119,
384 121, 106, 119, 121, 119, 121, 110, 119, 121, 110,
385 119, 121, 110, 119, 121, 110, 119, 121, 117, 119,
386 121, 119, 121, 119, 121, 110, 119, 121, 110, 119,
387 121, 29, 119, 121, 1, 30, 118, 121, 29, 118,
388 119, 121, 29, 119, 121, 29, 119, 121, 29, 119,
389 121, 54, 119, 121, 1, 55, 118, 121, 54, 118,
390 119, 121, 46, 54, 119, 121, 54, 119, 121, 54,
391 119, 121, 54, 119, 121, 52, 54, 119, 121, 53,
393 54, 119, 121, 54, 119, 121, 54, 119, 121, 50,
394 119, 121, 1, 51, 118, 121, 50, 118, 119, 121,
395 49, 50, 119, 121, 50, 119, 121, 50, 119, 121,
396 63, 119, 121, 119, 121, 110, 119, 121, 110, 119,
397 121, 110, 119, 121, 114, 119, 121, 66, 119, 121,
398 1, 67, 118, 121, 66, 118, 119, 121, 65, 66,
399 119, 121, 66, 119, 121, 66, 119, 121, 119, 121,
400 119, 121, 119, 121, 119, 121, 110, 119, 121, 110,
401 119, 121, 110, 119, 121, 110, 119, 121, 110, 119,
402 121, 110, 119, 121, 110, 119, 121, 110, 119, 121,
404 110, 119, 121, 110, 119, 121, 110, 119, 121, 110,
405 119, 121, 115, 119, 121, 116, 119, 121, 103, 119,
406 121, 47, 119, 121, 104, 119, 121, 105, 119, 121,
407 119, 121, 110, 119, 121, 110, 119, 121, 110, 119,
408 121, 110, 119, 121, 110, 119, 121, 110, 119, 121,
409 110, 119, 121, 110, 119, 121, 110, 119, 121, 110,
410 119, 121, 110, 119, 121, 110, 119, 121, 10, 119,
411 121, 10, 118, 119, 121, 10, 119, 121, 10, 119,
412 121, 10, 119, 121, 10, 119, 121, 15, 119, 121,
413 15, 118, 119, 121, 15, 119, 121, 15, 119, 121,
415 15, 119, 121, 15, 119, 121, 18, 119, 121, 18,
416 118, 119, 121, 18, 119, 121, 18, 119, 121, 106,
417 23, 106, 106, 109, 110, 110, 110, 110, 110, 36,
418 110, 110, 28, 24, 45, 38, 48, 25, 110, 110,
419 110, 64, 26, 113, 112, 110, 110, 110, 110, 110,
420 110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
421 110, 110, 110, 27, 110, 110, 110, 110, 110, 110,
422 110, 110, 110, 110, 110, 110, 9, 7, 14, 13,
423 11, 12, 14, 17, 16, 111, 111, 106, 3, 106,
424 106, 109, 107, 108, 110, 110, 110, 110, 31, 35,
426 110, 110, 43, 39, 41, 19, 20, 110, 110, 110,
427 81, 21, 110, 110, 110, 110, 110, 110, 110, 76,
428 110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
429 110, 110, 110, 22, 110, 110, 110, 110, 110, 110,
430 110, 110, 110, 110, 110, 110, 12, 109, 107, 108,
431 110, 58, 110, 110, 110, 37, 32, 33, 34, 110,
432 110, 44, 40, 42, 110, 62, 110, 61, 110, 6,
433 110, 79, 110, 110, 110, 110, 71, 110, 110, 74,
434 110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
435 110, 110, 68, 110, 110, 110, 110, 71, 110, 110,
437 110, 110, 91, 110, 110, 110, 110, 97, 110, 8,
438 109, 56, 110, 57, 110, 59, 110, 110, 110, 110,
439 61, 110, 80, 110, 110, 77, 110, 110, 110, 110,
440 110, 110, 75, 110, 110, 110, 110, 70, 110, 110,
441 110, 92, 110, 110, 110, 110, 96, 110, 110, 110,
442 110, 110, 110, 110, 110, 110, 78, 110, 110, 110,
443 110, 110, 82, 110, 88, 110, 72, 110, 69, 110,
444 110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
445 4, 110, 110, 110, 110, 110, 83, 110, 110, 110,
446 110, 87, 110, 110, 110, 110, 110, 93, 110, 94,
448 110, 110, 110, 110, 110, 86, 110, 110, 89, 110,
449 90, 110, 110, 73, 110, 110, 110, 110, 110, 110,
450 110, 85, 110, 84, 110, 110, 110, 99, 110, 110,
451 110, 110, 4, 2, 101, 110, 110, 98, 110, 110,
452 100, 110, 120, 5, 110, 102, 110, 110, 95, 110,
456 static yyconst flex_int16_t yy_accept[562] =
458 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
459 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
460 1, 1, 1, 1, 1, 2, 4, 7, 10, 13,
461 15, 17, 19, 22, 25, 27, 30, 33, 36, 39,
462 42, 44, 46, 49, 52, 55, 59, 63, 66, 69,
463 72, 75, 79, 83, 87, 90, 93, 96, 100, 104,
464 107, 110, 113, 117, 121, 125, 128, 131, 134, 136,
465 139, 142, 145, 148, 151, 155, 159, 163, 166, 169,
466 171, 173, 175, 177, 180, 183, 186, 189, 192, 195,
467 198, 201, 204, 207, 210, 213, 216, 219, 222, 225,
469 228, 231, 233, 236, 239, 242, 245, 248, 251, 254,
470 257, 260, 263, 266, 269, 272, 276, 279, 282, 285,
471 288, 291, 295, 298, 301, 304, 307, 310, 314, 317,
472 320, 320, 320, 321, 322, 322, 322, 323, 323, 323,
473 324, 325, 326, 326, 327, 328, 329, 330, 330, 330,
474 330, 330, 330, 330, 330, 330, 331, 332, 333, 334,
475 334, 334, 334, 334, 334, 335, 335, 336, 336, 336,
476 337, 338, 339, 339, 340, 341, 342, 343, 343, 344,
477 344, 345, 345, 345, 346, 347, 348, 349, 350, 351,
478 352, 353, 354, 355, 356, 357, 358, 359, 360, 361,
480 362, 363, 364, 365, 365, 366, 367, 368, 369, 370,
481 371, 372, 373, 374, 375, 376, 377, 378, 378, 378,
482 378, 379, 379, 380, 380, 380, 381, 382, 382, 384,
483 385, 386, 387, 387, 388, 389, 389, 390, 391, 392,
484 393, 393, 394, 395, 396, 397, 398, 399, 399, 399,
485 399, 399, 399, 399, 399, 400, 400, 400, 401, 401,
486 401, 402, 403, 403, 404, 404, 404, 404, 405, 406,
487 406, 407, 407, 407, 408, 409, 410, 411, 412, 412,
488 412, 413, 413, 413, 414, 415, 416, 417, 418, 419,
489 420, 422, 423, 424, 425, 426, 427, 428, 429, 430,
491 431, 432, 433, 434, 434, 435, 436, 437, 438, 439,
492 440, 441, 442, 443, 444, 445, 446, 447, 447, 448,
493 448, 449, 450, 450, 451, 451, 452, 454, 455, 456,
494 456, 456, 456, 457, 457, 457, 458, 458, 459, 460,
495 460, 461, 462, 462, 463, 464, 465, 465, 466, 468,
496 470, 470, 471, 472, 474, 475, 476, 477, 479, 480,
497 482, 483, 484, 485, 486, 487, 488, 489, 490, 491,
498 492, 493, 495, 496, 497, 498, 500, 501, 502, 503,
499 505, 506, 507, 508, 510, 510, 511, 511, 511, 512,
500 514, 516, 518, 518, 518, 518, 518, 518, 518, 518,
502 519, 520, 520, 520, 521, 523, 525, 526, 528, 529,
503 530, 531, 532, 533, 535, 536, 537, 538, 540, 541,
504 542, 544, 545, 546, 547, 549, 550, 551, 552, 553,
505 553, 553, 553, 553, 553, 553, 553, 554, 555, 555,
506 555, 556, 557, 559, 560, 561, 562, 563, 565, 567,
507 569, 571, 572, 573, 574, 575, 576, 577, 578, 579,
508 580, 581, 581, 581, 582, 582, 582, 582, 583, 584,
509 584, 584, 585, 586, 587, 589, 590, 591, 592, 594,
510 595, 596, 597, 598, 600, 602, 603, 604, 604, 604,
511 604, 604, 604, 604, 605, 606, 606, 606, 608, 609,
513 611, 613, 614, 616, 617, 618, 619, 620, 621, 622,
514 622, 622, 622, 622, 622, 622, 622, 622, 622, 622,
515 622, 624, 626, 627, 628, 630, 631, 632, 633, 633,
516 634, 634, 634, 634, 634, 634, 635, 635, 637, 638,
517 640, 641, 643, 643, 643, 644, 644, 644, 645, 646,
518 648, 648, 648, 649, 649, 649, 651, 651, 651, 652,
522 static yyconst flex_int32_t yy_ec[256] =
524 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
525 1, 4, 5, 1, 1, 1, 1, 1, 1, 1,
526 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
527 1, 6, 1, 7, 8, 1, 9, 1, 10, 11,
528 12, 13, 1, 1, 1, 14, 15, 16, 17, 18,
529 18, 18, 18, 18, 18, 19, 19, 20, 1, 21,
530 1, 22, 1, 1, 23, 23, 23, 23, 24, 23,
531 25, 25, 26, 25, 25, 25, 25, 25, 25, 25,
532 25, 27, 28, 25, 25, 25, 25, 25, 25, 25,
533 29, 30, 31, 1, 32, 1, 33, 34, 35, 36,
535 37, 38, 39, 40, 41, 42, 43, 44, 45, 46,
536 47, 48, 49, 50, 51, 52, 53, 54, 55, 56,
537 57, 25, 58, 1, 59, 1, 1, 1, 1, 1,
538 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
539 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
540 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
541 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
542 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
543 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
544 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
546 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
547 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
548 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
549 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
550 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
554 static yyconst flex_int32_t yy_meta[60] =
556 1, 2, 3, 4, 5, 2, 1, 1, 1, 1,
557 1, 1, 1, 1, 1, 6, 6, 6, 6, 7,
558 1, 1, 8, 8, 9, 9, 9, 9, 1, 1,
559 10, 9, 8, 8, 8, 8, 8, 8, 9, 9,
560 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
561 9, 9, 9, 9, 9, 9, 9, 1, 1
564 static yyconst flex_int16_t yy_base[595] =
566 0, 58, 58, 65, 69, 126, 80, 85, 74, 87,
567 93, 113, 172, 1348, 131, 136, 225, 1347, 100, 147,
568 135, 159, 175, 190, 1354, 1357, 1357, 1357, 1357, 1323,
569 225, 62, 231, 237, 0, 1332, 42, 150, 60, 232,
570 63, 164, 156, 77, 1357, 1357, 1357, 1336, 173, 1322,
571 1357, 1357, 1357, 1357, 245, 104, 0, 1357, 1357, 279,
572 1290, 1357, 1357, 1357, 1357, 0, 262, 1357, 144, 110,
573 161, 143, 1357, 1357, 1357, 1357, 1357, 0, 282, 275,
574 214, 279, 283, 171, 285, 263, 182, 138, 219, 266,
575 179, 287, 295, 270, 292, 1357, 1357, 1357, 1357, 1357,
577 1357, 296, 297, 298, 311, 288, 170, 310, 226, 308,
578 326, 329, 299, 307, 1357, 1357, 1333, 351, 359, 360,
579 1357, 1357, 1332, 365, 366, 371, 1343, 1342, 373, 377,
580 1334, 1333, 373, 1357, 1339, 377, 383, 390, 0, 397,
581 1321, 1320, 1319, 365, 302, 332, 385, 417, 1288, 1300,
582 418, 1295, 389, 380, 310, 1357, 198, 402, 1357, 0,
583 1325, 405, 1324, 1323, 1357, 1329, 1357, 428, 1285, 1357,
584 1357, 1357, 1327, 406, 408, 409, 1357, 1315, 1315, 1324,
585 426, 440, 1295, 1296, 62, 415, 416, 420, 417, 426,
586 433, 432, 440, 237, 434, 448, 441, 453, 454, 456,
588 458, 457, 1357, 1321, 463, 465, 467, 469, 470, 471,
589 473, 474, 476, 475, 481, 480, 1357, 500, 508, 527,
590 1357, 529, 1357, 532, 534, 540, 1357, 1308, 1357, 1357,
591 1357, 1357, 1312, 1311, 534, 1317, 1357, 538, 0, 1299,
592 0, 1298, 1297, 519, 479, 521, 524, 1279, 1266, 1268,
593 1255, 1260, 1267, 1252, 1357, 1276, 1250, 1357, 1249, 1265,
594 528, 506, 1278, 1357, 1294, 1293, 1292, 1357, 1357, 1298,
595 1357, 1265, 1296, 1357, 538, 540, 542, 1357, 563, 1295,
596 1357, 1266, 555, 544, 555, 547, 556, 557, 558, 559,
597 1276, 560, 561, 562, 567, 564, 563, 568, 570, 574,
599 576, 575, 582, 1292, 1357, 580, 589, 592, 584, 581,
600 590, 602, 604, 608, 613, 586, 614, 633, 1357, 635,
601 1274, 1273, 1272, 1271, 1270, 620, 1269, 622, 624, 1255,
602 1234, 1249, 1357, 1248, 596, 1357, 1248, 1357, 1357, 1229,
603 629, 635, 1256, 1357, 1357, 1357, 1237, 630, 1260, 1259,
604 654, 1357, 632, 1258, 638, 639, 641, 1257, 642, 1256,
605 643, 645, 646, 647, 649, 644, 662, 666, 654, 648,
606 650, 1255, 668, 672, 659, 677, 660, 678, 684, 1254,
607 685, 686, 687, 1253, 711, 1357, 713, 719, 1252, 1251,
608 1250, 1249, 1224, 1226, 724, 1216, 1218, 1227, 1230, 690,
610 698, 0, 1209, 707, 708, 1241, 712, 1240, 715, 716,
611 717, 718, 719, 1239, 720, 721, 722, 1238, 723, 725,
612 1237, 727, 726, 730, 740, 731, 732, 735, 741, 1212,
613 1200, 760, 1212, 1192, 1189, 1186, 745, 751, 1204, 1181,
614 755, 761, 1196, 760, 763, 766, 769, 1181, 1180, 1179,
615 1178, 770, 771, 773, 774, 775, 777, 778, 779, 784,
616 783, 1135, 1106, 825, 1095, 753, 1076, 793, 786, 1096,
617 1061, 788, 794, 797, 1068, 789, 799, 802, 1058, 790,
618 813, 800, 792, 1042, 965, 819, 830, 949, 932, 975,
619 946, 933, 939, 849, 850, 840, 858, 957, 841, 946,
621 945, 843, 940, 833, 834, 845, 842, 846, 847, 866,
622 871, 936, 898, 887, 878, 883, 890, 894, 902, 873,
623 884, 866, 854, 864, 855, 856, 878, 885, 516, 1357,
624 464, 479, 921, 914, 929, 1357, 922, 411, 905, 367,
625 897, 304, 285, 948, 1357, 939, 945, 1357, 863, 238,
626 178, 945, 916, 127, 952, 117, 970, 972, 1357, 1357,
627 989, 999, 1009, 1019, 1029, 1039, 1049, 1059, 1062, 1066,
628 1075, 1085, 1095, 1100, 1110, 1120, 1125, 1128, 1131, 1140,
629 1150, 1160, 1170, 1175, 1185, 1194, 1196, 1200, 1204, 1212,
630 1216, 1225, 1235, 1245
634 static yyconst flex_int16_t yy_def[595] =
636 560, 1, 561, 561, 562, 562, 563, 563, 1, 1,
637 564, 564, 1, 13, 1, 1, 1, 17, 565, 565,
638 566, 566, 567, 567, 560, 560, 560, 560, 560, 568,
639 560, 560, 560, 560, 569, 570, 570, 570, 570, 560,
640 560, 560, 570, 570, 560, 560, 560, 560, 560, 560,
641 560, 560, 560, 560, 560, 560, 571, 560, 560, 560,
642 560, 560, 560, 560, 560, 572, 560, 560, 560, 570,
643 570, 570, 560, 560, 560, 560, 560, 573, 560, 560,
644 560, 569, 574, 570, 570, 570, 570, 570, 570, 570,
645 570, 570, 570, 570, 570, 560, 560, 560, 560, 560,
647 560, 560, 570, 570, 570, 570, 570, 570, 570, 570,
648 570, 570, 570, 570, 560, 560, 560, 560, 560, 560,
649 560, 560, 560, 560, 560, 560, 560, 560, 560, 560,
650 560, 575, 560, 560, 576, 560, 560, 560, 577, 560,
651 578, 570, 579, 570, 570, 570, 570, 560, 560, 560,
652 560, 560, 560, 560, 560, 560, 570, 570, 560, 580,
653 560, 560, 560, 560, 560, 581, 560, 560, 560, 560,
654 560, 560, 582, 570, 570, 570, 560, 560, 560, 583,
655 560, 560, 584, 560, 570, 570, 570, 570, 570, 570,
656 570, 570, 570, 570, 570, 570, 570, 570, 570, 570,
658 570, 570, 560, 585, 570, 570, 570, 570, 570, 570,
659 570, 570, 570, 570, 570, 570, 560, 560, 560, 560,
660 560, 586, 560, 560, 560, 560, 560, 560, 560, 560,
661 560, 560, 560, 560, 560, 576, 560, 560, 577, 578,
662 587, 588, 589, 570, 570, 570, 570, 560, 560, 560,
663 560, 560, 560, 560, 560, 560, 560, 560, 560, 560,
664 570, 570, 560, 560, 560, 560, 560, 560, 560, 581,
665 560, 560, 582, 560, 570, 570, 570, 560, 560, 583,
666 560, 584, 574, 570, 570, 570, 570, 570, 570, 570,
667 570, 570, 570, 570, 570, 570, 570, 570, 570, 570,
669 570, 570, 570, 585, 560, 570, 570, 570, 570, 570,
670 570, 570, 570, 570, 570, 570, 570, 590, 560, 560,
671 591, 588, 560, 589, 579, 570, 570, 570, 570, 560,
672 560, 560, 560, 560, 560, 560, 560, 560, 560, 560,
673 570, 570, 560, 560, 560, 560, 560, 570, 570, 570,
674 560, 560, 570, 570, 570, 570, 570, 570, 570, 570,
675 570, 570, 570, 570, 570, 570, 570, 570, 570, 570,
676 570, 570, 570, 570, 570, 570, 570, 570, 570, 570,
677 570, 570, 570, 570, 560, 560, 590, 560, 591, 570,
678 570, 570, 560, 560, 560, 560, 560, 560, 560, 570,
680 570, 592, 560, 570, 570, 570, 570, 570, 570, 570,
681 570, 570, 570, 570, 570, 570, 570, 570, 570, 570,
682 570, 570, 570, 570, 570, 570, 570, 570, 570, 560,
683 560, 560, 560, 560, 560, 560, 570, 570, 560, 560,
684 570, 570, 570, 570, 570, 570, 570, 570, 570, 570,
685 570, 570, 570, 570, 570, 570, 570, 570, 570, 570,
686 570, 560, 560, 560, 560, 560, 560, 570, 570, 560,
687 560, 570, 570, 570, 570, 570, 570, 570, 570, 570,
688 570, 570, 570, 570, 570, 570, 570, 560, 560, 560,
689 560, 560, 560, 570, 570, 560, 560, 570, 570, 570,
691 570, 570, 570, 570, 570, 570, 570, 570, 570, 560,
692 560, 593, 560, 560, 560, 560, 560, 560, 560, 560,
693 570, 570, 570, 570, 570, 570, 570, 570, 593, 560,
694 560, 560, 560, 560, 560, 560, 594, 570, 570, 570,
695 570, 570, 560, 560, 560, 560, 594, 560, 570, 570,
696 560, 560, 570, 560, 560, 570, 560, 560, 560, 0,
697 560, 560, 560, 560, 560, 560, 560, 560, 560, 560,
698 560, 560, 560, 560, 560, 560, 560, 560, 560, 560,
699 560, 560, 560, 560, 560, 560, 560, 560, 560, 560,
704 static yyconst flex_int16_t yy_nxt[1417] =
706 26, 27, 28, 27, 29, 27, 26, 26, 26, 30,
707 26, 26, 26, 31, 32, 33, 34, 34, 34, 35,
708 26, 26, 36, 36, 36, 36, 36, 36, 26, 26,
709 26, 36, 36, 36, 37, 36, 38, 39, 36, 36,
710 36, 36, 36, 36, 36, 36, 36, 36, 36, 36,
711 36, 36, 36, 36, 36, 36, 36, 26, 26, 40,
712 46, 143, 47, 40, 151, 41, 42, 46, 151, 47,
713 48, 52, 49, 53, 134, 54, 135, 48, 55, 143,
714 68, 143, 63, 56, 64, 144, 65, 63, 69, 64,
715 50, 65, 67, 68, 41, 75, 143, 76, 57, 77,
717 284, 69, 28, 147, 116, 43, 152, 44, 70, 66,
718 36, 71, 117, 158, 66, 75, 165, 76, 166, 77,
719 79, 70, 78, 36, 71, 72, 58, 59, 52, 143,
720 53, 73, 54, 60, 61, 55, 143, 28, 72, 122,
721 56, 98, 78, 41, 73, 26, 98, 123, 118, 28,
722 26, 116, 118, 174, 119, 57, 172, 143, 173, 120,
723 124, 28, 143, 122, 124, 36, 125, 36, 36, 143,
724 36, 126, 36, 36, 151, 143, 259, 28, 151, 128,
725 143, 191, 176, 58, 59, 80, 81, 129, 96, 143,
726 143, 82, 28, 96, 128, 145, 153, 130, 143, 146,
728 83, 143, 129, 154, 84, 157, 85, 86, 87, 88,
729 175, 155, 89, 209, 554, 90, 152, 143, 91, 92,
730 185, 156, 93, 72, 94, 95, 179, 190, 180, 96,
731 97, 99, 194, 148, 261, 100, 101, 148, 143, 102,
732 133, 133, 133, 133, 136, 143, 137, 137, 137, 138,
733 136, 161, 140, 140, 140, 140, 143, 143, 103, 104,
734 105, 106, 107, 151, 192, 89, 212, 151, 90, 108,
735 109, 110, 111, 293, 162, 112, 113, 94, 114, 149,
736 168, 150, 143, 151, 168, 143, 139, 151, 178, 143,
737 133, 133, 133, 133, 181, 181, 181, 181, 182, 182,
739 182, 182, 163, 164, 143, 152, 143, 143, 203, 189,
740 204, 143, 193, 184, 143, 200, 143, 143, 143, 169,
741 551, 143, 152, 143, 186, 152, 143, 143, 187, 143,
742 143, 188, 201, 208, 197, 198, 195, 186, 202, 196,
743 205, 213, 210, 206, 188, 143, 199, 207, 143, 259,
744 211, 143, 218, 202, 245, 216, 218, 189, 214, 260,
745 151, 220, 221, 219, 151, 222, 224, 151, 197, 215,
746 224, 151, 226, 227, 217, 230, 226, 225, 151, 230,
747 199, 246, 151, 228, 143, 229, 143, 231, 235, 235,
748 235, 235, 238, 238, 238, 238, 136, 244, 137, 137,
750 137, 138, 152, 136, 143, 138, 138, 138, 138, 152,
751 136, 265, 140, 140, 140, 140, 256, 247, 148, 151,
752 152, 143, 148, 151, 251, 143, 252, 143, 143, 168,
753 143, 257, 253, 168, 143, 143, 143, 258, 275, 143,
754 254, 181, 181, 181, 181, 143, 255, 285, 286, 277,
755 262, 143, 143, 143, 276, 182, 182, 182, 182, 143,
756 143, 152, 266, 267, 149, 287, 150, 143, 169, 288,
757 184, 152, 143, 143, 294, 143, 143, 143, 289, 290,
758 295, 296, 143, 291, 143, 292, 143, 297, 143, 143,
759 143, 298, 143, 143, 143, 143, 300, 303, 143, 143,
761 143, 218, 310, 299, 308, 218, 301, 302, 313, 220,
762 221, 543, 219, 222, 251, 306, 290, 314, 312, 316,
763 307, 309, 530, 327, 315, 143, 311, 317, 220, 221,
764 220, 221, 220, 224, 220, 226, 227, 224, 143, 226,
765 143, 320, 227, 143, 225, 320, 228, 143, 319, 235,
766 235, 235, 235, 238, 238, 238, 238, 143, 342, 143,
767 341, 143, 329, 143, 351, 352, 143, 328, 351, 326,
768 182, 182, 182, 182, 143, 143, 143, 143, 143, 143,
769 143, 143, 143, 143, 349, 184, 143, 143, 348, 143,
770 357, 359, 350, 143, 143, 143, 353, 355, 360, 143,
772 143, 143, 358, 143, 354, 143, 356, 365, 143, 143,
773 361, 143, 366, 367, 363, 362, 370, 372, 364, 377,
774 369, 143, 368, 143, 375, 374, 371, 143, 376, 373,
775 378, 383, 143, 143, 385, 386, 320, 227, 385, 143,
776 320, 143, 379, 143, 381, 382, 380, 397, 143, 143,
777 384, 143, 388, 255, 143, 351, 352, 143, 143, 351,
778 143, 143, 143, 143, 143, 143, 143, 143, 143, 143,
779 390, 391, 400, 143, 392, 401, 404, 410, 143, 143,
780 350, 143, 411, 412, 407, 143, 419, 143, 405, 413,
781 406, 143, 409, 408, 415, 414, 143, 143, 416, 418,
783 417, 421, 420, 143, 143, 143, 143, 422, 424, 143,
784 425, 423, 385, 386, 385, 386, 385, 143, 385, 428,
785 385, 386, 426, 416, 385, 432, 143, 143, 427, 432,
786 429, 143, 388, 437, 143, 143, 143, 143, 143, 143,
787 143, 143, 143, 441, 143, 143, 143, 438, 443, 143,
788 143, 143, 447, 448, 143, 444, 450, 453, 454, 143,
789 143, 432, 442, 449, 143, 432, 446, 445, 452, 455,
790 143, 457, 461, 451, 143, 464, 464, 464, 464, 143,
791 143, 456, 143, 458, 459, 143, 460, 469, 143, 143,
792 143, 468, 143, 143, 143, 474, 143, 143, 143, 475,
794 472, 473, 143, 143, 492, 143, 478, 143, 143, 143,
795 258, 143, 143, 143, 479, 486, 143, 476, 143, 143,
796 477, 143, 484, 485, 480, 481, 490, 494, 483, 499,
797 490, 482, 143, 500, 487, 502, 495, 503, 143, 498,
798 464, 464, 464, 464, 505, 501, 504, 506, 507, 143,
799 516, 517, 143, 143, 516, 517, 518, 519, 519, 520,
800 143, 143, 143, 520, 143, 143, 143, 516, 143, 143,
801 508, 516, 517, 143, 143, 143, 517, 521, 522, 537,
802 523, 525, 143, 143, 516, 143, 509, 524, 516, 526,
803 538, 517, 540, 537, 528, 517, 539, 143, 533, 533,
805 533, 533, 527, 143, 143, 534, 534, 534, 534, 535,
806 535, 535, 535, 536, 532, 553, 143, 535, 535, 535,
807 535, 542, 544, 545, 143, 541, 544, 546, 548, 534,
808 534, 534, 534, 550, 257, 143, 533, 533, 533, 533,
809 536, 531, 530, 548, 535, 535, 535, 535, 549, 544,
810 545, 548, 556, 544, 552, 552, 552, 552, 555, 143,
811 552, 552, 552, 552, 143, 143, 548, 557, 557, 557,
812 557, 558, 559, 558, 559, 558, 143, 558, 515, 514,
813 513, 512, 511, 510, 143, 557, 557, 557, 557, 45,
814 45, 45, 45, 45, 45, 45, 45, 45, 45, 51,
816 51, 51, 51, 51, 51, 51, 51, 51, 51, 62,
817 62, 62, 62, 62, 62, 62, 62, 62, 62, 74,
818 74, 74, 74, 74, 74, 74, 74, 74, 74, 115,
819 115, 115, 115, 115, 115, 115, 115, 115, 115, 121,
820 121, 121, 121, 121, 121, 121, 121, 121, 121, 127,
821 127, 127, 127, 127, 127, 127, 127, 127, 127, 131,
822 131, 143, 131, 131, 131, 131, 131, 131, 131, 141,
823 141, 142, 142, 142, 142, 167, 167, 143, 167, 167,
824 167, 167, 167, 167, 167, 171, 171, 143, 171, 171,
825 171, 171, 171, 171, 171, 177, 177, 497, 177, 177,
827 177, 177, 177, 177, 177, 183, 496, 183, 183, 183,
828 233, 233, 493, 233, 233, 233, 233, 233, 233, 233,
829 236, 236, 236, 236, 236, 236, 236, 236, 236, 236,
830 239, 491, 239, 240, 240, 240, 240, 243, 243, 243,
831 263, 263, 489, 263, 263, 263, 263, 263, 263, 263,
832 270, 270, 270, 270, 270, 270, 270, 270, 270, 270,
833 273, 273, 273, 273, 273, 273, 273, 273, 273, 273,
834 280, 280, 280, 280, 280, 280, 280, 280, 280, 280,
835 282, 488, 282, 282, 282, 304, 304, 304, 304, 304,
836 304, 304, 304, 304, 304, 318, 318, 143, 143, 143,
838 143, 318, 318, 321, 321, 322, 322, 322, 322, 324,
839 324, 324, 324, 387, 387, 143, 471, 387, 387, 387,
840 387, 389, 389, 389, 389, 439, 439, 470, 439, 439,
841 439, 439, 439, 439, 439, 529, 529, 467, 466, 254,
842 529, 529, 529, 529, 529, 547, 547, 465, 547, 463,
843 547, 547, 547, 547, 547, 462, 143, 143, 143, 143,
844 143, 440, 436, 435, 434, 433, 431, 430, 143, 143,
845 143, 241, 143, 143, 143, 143, 143, 143, 143, 143,
846 403, 402, 399, 398, 396, 395, 394, 393, 143, 560,
847 325, 242, 323, 241, 305, 143, 184, 281, 274, 347,
849 271, 346, 345, 344, 343, 340, 339, 338, 337, 336,
850 335, 334, 333, 332, 331, 330, 325, 323, 241, 237,
851 232, 232, 319, 305, 283, 184, 281, 279, 278, 274,
852 272, 271, 269, 268, 264, 250, 249, 248, 242, 143,
853 241, 237, 234, 232, 230, 230, 223, 217, 170, 160,
854 159, 143, 132, 560, 41, 41, 25, 560, 560, 560,
855 560, 560, 560, 560, 560, 560, 560, 560, 560, 560,
856 560, 560, 560, 560, 560, 560, 560, 560, 560, 560,
857 560, 560, 560, 560, 560, 560, 560, 560, 560, 560,
858 560, 560, 560, 560, 560, 560, 560, 560, 560, 560,
860 560, 560, 560, 560, 560, 560, 560, 560, 560, 560,
861 560, 560, 560, 560, 560, 560
864 static yyconst flex_int16_t yy_chk[1417] =
866 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
867 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
868 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
869 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
870 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
871 1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
872 3, 37, 3, 2, 41, 2, 2, 4, 41, 4,
873 3, 5, 4, 5, 32, 5, 32, 4, 5, 39,
874 9, 185, 7, 5, 7, 37, 7, 8, 9, 8,
875 4, 8, 8, 10, 10, 11, 44, 11, 5, 11,
877 185, 10, 19, 39, 19, 2, 41, 2, 9, 7,
878 9, 9, 19, 44, 8, 12, 56, 12, 56, 12,
879 12, 10, 11, 10, 10, 9, 5, 5, 6, 70,
880 6, 9, 6, 6, 6, 6, 556, 21, 10, 21,
881 6, 15, 12, 16, 10, 15, 16, 21, 20, 20,
882 16, 20, 20, 70, 20, 6, 69, 88, 69, 20,
883 22, 22, 72, 22, 22, 15, 22, 15, 15, 38,
884 16, 22, 16, 16, 49, 43, 554, 23, 49, 23,
885 71, 88, 72, 6, 6, 13, 13, 23, 15, 107,
886 84, 13, 24, 16, 24, 38, 42, 24, 91, 38,
888 13, 87, 24, 42, 13, 43, 13, 13, 13, 13,
889 71, 42, 13, 107, 551, 13, 49, 157, 13, 13,
890 84, 42, 13, 13, 13, 13, 81, 87, 81, 13,
891 13, 17, 91, 40, 157, 17, 17, 40, 89, 17,
892 31, 31, 31, 31, 33, 109, 33, 33, 33, 33,
893 34, 55, 34, 34, 34, 34, 194, 550, 17, 17,
894 17, 17, 17, 67, 89, 17, 109, 67, 17, 17,
895 17, 17, 17, 194, 55, 17, 17, 17, 17, 40,
896 60, 40, 86, 79, 60, 90, 33, 79, 80, 94,
897 80, 80, 80, 80, 82, 82, 82, 82, 83, 83,
899 83, 83, 55, 55, 85, 67, 92, 106, 102, 86,
900 102, 95, 90, 83, 93, 94, 103, 104, 113, 60,
901 543, 145, 60, 542, 85, 79, 114, 110, 85, 108,
902 105, 85, 95, 106, 93, 93, 92, 104, 95, 92,
903 103, 110, 108, 103, 104, 111, 93, 105, 112, 155,
904 108, 146, 118, 114, 145, 113, 118, 105, 111, 155,
905 119, 120, 120, 118, 119, 120, 124, 125, 112, 112,
906 124, 125, 126, 126, 120, 129, 126, 124, 130, 130,
907 112, 146, 130, 126, 144, 126, 540, 129, 133, 133,
908 133, 133, 136, 136, 136, 136, 137, 144, 137, 137,
910 137, 137, 119, 138, 147, 138, 138, 138, 138, 125,
911 140, 162, 140, 140, 140, 140, 154, 147, 148, 151,
912 130, 158, 148, 151, 153, 174, 153, 175, 176, 168,
913 538, 154, 153, 168, 186, 187, 189, 154, 174, 188,
914 153, 181, 181, 181, 181, 190, 153, 186, 187, 176,
915 158, 192, 191, 195, 175, 182, 182, 182, 182, 193,
916 197, 151, 162, 162, 148, 188, 148, 196, 168, 189,
917 182, 168, 198, 199, 195, 200, 202, 201, 190, 191,
918 195, 196, 205, 192, 206, 193, 207, 197, 208, 209,
919 210, 198, 211, 212, 214, 213, 200, 202, 245, 216,
921 215, 218, 209, 199, 207, 218, 200, 201, 212, 219,
922 219, 532, 218, 219, 531, 205, 209, 213, 211, 215,
923 206, 208, 529, 245, 214, 262, 210, 216, 220, 220,
924 222, 222, 220, 224, 222, 225, 225, 224, 244, 225,
925 246, 226, 226, 247, 224, 226, 225, 261, 225, 235,
926 235, 235, 235, 238, 238, 238, 238, 275, 262, 276,
927 261, 277, 247, 284, 279, 279, 286, 246, 279, 244,
928 283, 283, 283, 283, 285, 287, 288, 289, 290, 292,
929 293, 294, 297, 296, 276, 283, 295, 298, 275, 299,
930 288, 290, 277, 300, 302, 301, 284, 286, 292, 306,
932 310, 303, 289, 309, 285, 316, 287, 296, 307, 311,
933 293, 308, 297, 298, 295, 294, 301, 303, 295, 310,
934 300, 312, 299, 313, 308, 307, 302, 314, 309, 306,
935 311, 316, 315, 317, 318, 318, 320, 320, 318, 326,
936 320, 328, 312, 329, 314, 315, 313, 335, 341, 348,
937 317, 353, 318, 335, 342, 351, 351, 355, 356, 351,
938 357, 359, 361, 366, 362, 363, 364, 370, 365, 371,
939 326, 328, 341, 369, 329, 342, 353, 362, 375, 377,
940 348, 367, 363, 364, 357, 368, 370, 373, 355, 365,
941 356, 374, 361, 359, 367, 366, 376, 378, 367, 369,
943 368, 373, 371, 379, 381, 382, 383, 374, 376, 400,
944 377, 375, 385, 385, 387, 387, 385, 401, 387, 381,
945 388, 388, 378, 383, 388, 395, 404, 405, 379, 395,
946 382, 407, 387, 400, 409, 410, 411, 412, 413, 415,
947 416, 417, 419, 404, 420, 423, 422, 401, 407, 424,
948 426, 427, 412, 413, 428, 409, 416, 420, 422, 425,
949 429, 432, 405, 415, 437, 432, 411, 410, 419, 423,
950 438, 425, 429, 417, 441, 432, 432, 432, 432, 444,
951 442, 424, 445, 426, 427, 446, 428, 438, 447, 452,
952 453, 437, 454, 455, 456, 444, 457, 458, 459, 445,
954 441, 442, 461, 460, 466, 469, 452, 472, 476, 480,
955 466, 483, 468, 473, 453, 460, 474, 446, 477, 482,
956 447, 478, 458, 459, 454, 455, 464, 468, 457, 473,
957 464, 456, 481, 474, 461, 477, 469, 478, 486, 472,
958 464, 464, 464, 464, 481, 476, 480, 482, 483, 487,
959 494, 495, 504, 505, 494, 495, 496, 496, 496, 497,
960 499, 507, 502, 497, 506, 508, 509, 510, 494, 495,
961 486, 510, 511, 523, 525, 526, 511, 499, 502, 520,
962 504, 506, 549, 524, 516, 522, 487, 505, 516, 507,
963 523, 517, 526, 520, 509, 517, 524, 527, 516, 516,
965 516, 516, 508, 521, 528, 517, 517, 517, 517, 518,
966 518, 518, 518, 519, 515, 549, 541, 519, 519, 519,
967 519, 528, 533, 533, 539, 527, 533, 534, 537, 534,
968 534, 534, 534, 541, 514, 553, 533, 533, 533, 533,
969 535, 513, 512, 537, 535, 535, 535, 535, 539, 544,
970 544, 547, 553, 544, 546, 546, 546, 546, 552, 503,
971 552, 552, 552, 552, 501, 500, 547, 555, 555, 555,
972 555, 557, 557, 558, 558, 557, 498, 558, 493, 492,
973 491, 490, 489, 488, 485, 557, 557, 557, 557, 561,
974 561, 561, 561, 561, 561, 561, 561, 561, 561, 562,
976 562, 562, 562, 562, 562, 562, 562, 562, 562, 563,
977 563, 563, 563, 563, 563, 563, 563, 563, 563, 564,
978 564, 564, 564, 564, 564, 564, 564, 564, 564, 565,
979 565, 565, 565, 565, 565, 565, 565, 565, 565, 566,
980 566, 566, 566, 566, 566, 566, 566, 566, 566, 567,
981 567, 567, 567, 567, 567, 567, 567, 567, 567, 568,
982 568, 484, 568, 568, 568, 568, 568, 568, 568, 569,
983 569, 570, 570, 570, 570, 571, 571, 479, 571, 571,
984 571, 571, 571, 571, 571, 572, 572, 475, 572, 572,
985 572, 572, 572, 572, 572, 573, 573, 471, 573, 573,
987 573, 573, 573, 573, 573, 574, 470, 574, 574, 574,
988 575, 575, 467, 575, 575, 575, 575, 575, 575, 575,
989 576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
990 577, 465, 577, 578, 578, 578, 578, 579, 579, 579,
991 580, 580, 463, 580, 580, 580, 580, 580, 580, 580,
992 581, 581, 581, 581, 581, 581, 581, 581, 581, 581,
993 582, 582, 582, 582, 582, 582, 582, 582, 582, 582,
994 583, 583, 583, 583, 583, 583, 583, 583, 583, 583,
995 584, 462, 584, 584, 584, 585, 585, 585, 585, 585,
996 585, 585, 585, 585, 585, 586, 586, 451, 450, 449,
998 448, 586, 586, 587, 587, 588, 588, 588, 588, 589,
999 589, 589, 589, 590, 590, 443, 440, 590, 590, 590,
1000 590, 591, 591, 591, 591, 592, 592, 439, 592, 592,
1001 592, 592, 592, 592, 592, 593, 593, 436, 435, 434,
1002 593, 593, 593, 593, 593, 594, 594, 433, 594, 431,
1003 594, 594, 594, 594, 594, 430, 421, 418, 414, 408,
1004 406, 403, 399, 398, 397, 396, 394, 393, 392, 391,
1005 390, 389, 384, 380, 372, 360, 358, 354, 350, 349,
1006 347, 343, 340, 337, 334, 332, 331, 330, 327, 325,
1007 324, 323, 322, 321, 304, 291, 282, 280, 273, 272,
1009 270, 267, 266, 265, 263, 260, 259, 257, 256, 254,
1010 253, 252, 251, 250, 249, 248, 243, 242, 240, 236,
1011 234, 233, 228, 204, 184, 183, 180, 179, 178, 173,
1012 169, 166, 164, 163, 161, 152, 150, 149, 143, 142,
1013 141, 135, 132, 131, 128, 127, 123, 117, 61, 50,
1014 48, 36, 30, 25, 18, 14, 560, 560, 560, 560,
1015 560, 560, 560, 560, 560, 560, 560, 560, 560, 560,
1016 560, 560, 560, 560, 560, 560, 560, 560, 560, 560,
1017 560, 560, 560, 560, 560, 560, 560, 560, 560, 560,
1018 560, 560, 560, 560, 560, 560, 560, 560, 560, 560,
1020 560, 560, 560, 560, 560, 560, 560, 560, 560, 560,
1021 560, 560, 560, 560, 560, 560
1024 extern int yy_flex_debug;
1025 int yy_flex_debug = 0;
1027 static yy_state_type *yy_state_buf=0, *yy_state_ptr=0;
1028 static char *yy_full_match;
1032 *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ \
1033 yy_cp = (yy_full_match); /* restore poss. backed-over text */ \
1038 #define yymore() yymore_used_but_not_detected
1039 #define YY_MORE_ADJ 0
1040 #define YY_RESTORE_YY_MORE_OFFSET
1043 /* GOB C Preprocessor
1044 * Copyright (C) 1999-2000 the Free Software Foundation.
1045 * Copyright (C) 2000 Eazel, Inc.
1046 * Copyright (C) 2001-2009 George (Jiri) Lebl
1048 * Author: George Lebl
1050 * This program is free software; you can redistribute it and/or modify
1051 * it under the terms of the GNU General Public License as published by
1052 * the Free Software Foundation; either version 2 of the License, or
1053 * (at your option) any later version.
1055 * This program is distributed in the hope that it will be useful,
1056 * but WITHOUT ANY WARRANTY; without even the implied warranty of
1057 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1058 * GNU General Public License for more details.
1060 * You should have received a copy of the GNU General Public License
1061 * along with this program; if not, write to the Free Software
1062 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
1073 #include "treefuncs.h"
1078 static int parenth_depth = 0;
1079 static int before_comment
1080 /* New flex is on drugs */
1081 #if defined(FLEX_SCANNER) && ! defined(INITIAL)
1086 static gboolean class_after_c = FALSE;
1087 static int code_type = CCODE;
1088 static int before_string;
1089 static int property_paren_depth = 0;
1091 /* GTK+ doc stuff */
1092 static char *gtk_doc_func = NULL; /* current gtk-doc func */
1093 GHashTable *gtk_doc_hash = NULL;
1095 static GString *cbuf = NULL;
1098 GList *include_files = NULL;
1099 /* 0 no, 1 means yes, 2+ means don't even start looking anymore */
1100 static int look_for_includes = 0;
1103 /* last filename parsed from a #line directive */
1104 char *hline_filename = NULL;
1110 cbuf = g_string_new(NULL);
1112 cbuf = g_string_assign(cbuf, "");
1117 add_to_cbuf(char *s)
1120 cbuf = g_string_new(s);
1122 cbuf = g_string_append(cbuf,s);
1127 add_gtk_doc_func(void)
1133 gtk_doc_hash = g_hash_table_new(g_str_hash, g_str_equal);
1134 g_hash_table_insert(gtk_doc_hash, gtk_doc_func, g_strdup(cbuf->str));
1137 gtk_doc_func = NULL;
1140 /* Ugly warning avoiding */
1156 #line 1157 "lexer.c"
1161 #define CODE_STRING 3
1162 #define CLASS_CODE 4
1163 #define CLASS_STRING 5
1164 #define CLASS_CODE_I 6
1165 #define PROPERTY_CODE 7
1166 #define PROPERTY_CODE_I 8
1167 #define GTK_DOC_BEFORE_NAME 9
1169 #define GTK_DOC_LINE 11
1171 #ifndef YY_NO_UNISTD_H
1172 /* Special case for "unistd.h", since it is non-ANSI. We include it way
1173 * down here because we want the user's section 1 to have been scanned first.
1174 * The user has a chance to override it with an option.
1179 #ifndef YY_EXTRA_TYPE
1180 #define YY_EXTRA_TYPE void *
1183 static int yy_init_globals (void );
1185 /* Accessor methods to globals.
1186 These are made visible to non-reentrant scanners for convenience. */
1188 int yylex_destroy (void );
1190 int yyget_debug (void );
1192 void yyset_debug (int debug_flag );
1194 YY_EXTRA_TYPE yyget_extra (void );
1196 void yyset_extra (YY_EXTRA_TYPE user_defined );
1198 FILE *yyget_in (void );
1200 void yyset_in (FILE * in_str );
1202 FILE *yyget_out (void );
1204 void yyset_out (FILE * out_str );
1206 int yyget_leng (void );
1208 char *yyget_text (void );
1210 int yyget_lineno (void );
1212 void yyset_lineno (int line_number );
1214 /* Macros after this point can all be overridden by user definitions in
1218 #ifndef YY_SKIP_YYWRAP
1220 extern "C" int yywrap (void );
1222 extern int yywrap (void );
1226 static void yyunput (int c,char *buf_ptr );
1229 static void yy_flex_strncpy (char *,yyconst char *,int );
1232 #ifdef YY_NEED_STRLEN
1233 static int yy_flex_strlen (yyconst char * );
1239 static int yyinput (void );
1241 static int input (void );
1246 /* Amount of stuff to slurp up with each read. */
1247 #ifndef YY_READ_BUF_SIZE
1249 /* On IA-64, the buffer size is 16k, not 8k */
1250 #define YY_READ_BUF_SIZE 16384
1252 #define YY_READ_BUF_SIZE 8192
1253 #endif /* __ia64__ */
1256 /* Copy whatever the last rule matched to the standard output. */
1258 /* This used to be an fputs(), but since the string might contain NUL's,
1259 * we now use fwrite().
1261 #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
1264 /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
1265 * is returned in "result".
1268 #define YY_INPUT(buf,result,max_size) \
1269 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
1273 for ( n = 0; n < max_size && \
1274 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
1275 buf[n] = (char) c; \
1277 buf[n++] = (char) c; \
1278 if ( c == EOF && ferror( yyin ) ) \
1279 YY_FATAL_ERROR( "input in flex scanner failed" ); \
1285 while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
1287 if( errno != EINTR) \
1289 YY_FATAL_ERROR( "input in flex scanner failed" ); \
1300 /* No semi-colon after return; correct usage is to write "yyterminate();" -
1301 * we don't want an extra ';' after the "return" because that will cause
1302 * some compilers to complain about unreachable statements.
1305 #define yyterminate() return YY_NULL
1308 /* Number of entries by which start-condition stack grows. */
1309 #ifndef YY_START_STACK_INCR
1310 #define YY_START_STACK_INCR 25
1313 /* Report a fatal error. */
1314 #ifndef YY_FATAL_ERROR
1315 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
1318 /* end tables serialization structures and prototypes */
1320 /* Default declaration of generated scanner - a define so the user can
1321 * easily add parameters.
1324 #define YY_DECL_IS_OURS 1
1326 extern int yylex (void);
1328 #define YY_DECL int yylex (void)
1329 #endif /* !YY_DECL */
1331 /* Code executed at the beginning of each rule, after yytext and yyleng
1334 #ifndef YY_USER_ACTION
1335 #define YY_USER_ACTION
1338 /* Code executed at the end of each rule. */
1340 #define YY_BREAK break;
1343 #define YY_RULE_SETUP \
1345 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \
1346 (yytext[yyleng - 1] == '\n'); \
1349 /** The main scanner function which does all the work.
1353 register yy_state_type yy_current_state;
1354 register char *yy_cp, *yy_bp;
1355 register int yy_act;
1361 /* Avoid warning from flex, cuz flex sucks */
1363 yy_current_state = 0;
1368 #line 1369 "lexer.c"
1378 /* Create the reject buffer large enough to save one state per allowed character. */
1379 if ( ! (yy_state_buf) )
1380 (yy_state_buf) = (yy_state_type *)yyalloc(YY_STATE_BUF_SIZE );
1381 if ( ! (yy_state_buf) )
1382 YY_FATAL_ERROR( "out of dynamic memory in yylex()" );
1385 (yy_start) = 1; /* first start state */
1393 if ( ! YY_CURRENT_BUFFER ) {
1394 yyensure_buffer_stack ();
1395 YY_CURRENT_BUFFER_LVALUE =
1396 yy_create_buffer(yyin,YY_BUF_SIZE );
1399 yy_load_buffer_state( );
1402 while ( 1 ) /* loops until end-of-file is reached */
1404 yy_cp = (yy_c_buf_p);
1406 /* Support of yytext. */
1407 *yy_cp = (yy_hold_char);
1409 /* yy_bp points to the position in yy_ch_buf of the start of
1414 yy_current_state = (yy_start);
1415 yy_current_state += YY_AT_BOL();
1417 (yy_state_ptr) = (yy_state_buf);
1418 *(yy_state_ptr)++ = yy_current_state;
1423 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
1424 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1426 yy_current_state = (int) yy_def[yy_current_state];
1427 if ( yy_current_state >= 561 )
1428 yy_c = yy_meta[(unsigned int) yy_c];
1430 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1431 *(yy_state_ptr)++ = yy_current_state;
1434 while ( yy_base[yy_current_state] != 1357 );
1437 yy_current_state = *--(yy_state_ptr);
1438 (yy_lp) = yy_accept[yy_current_state];
1439 find_rule: /* we branch to this label when backing up */
1440 for ( ; ; ) /* until we find what rule we matched */
1442 if ( (yy_lp) && (yy_lp) < yy_accept[yy_current_state + 1] )
1444 yy_act = yy_acclist[(yy_lp)];
1446 (yy_full_match) = yy_cp;
1451 yy_current_state = *--(yy_state_ptr);
1452 (yy_lp) = yy_accept[yy_current_state];
1455 YY_DO_BEFORE_ACTION;
1457 do_action: /* This label is used only to access EOF actions. */
1460 { /* beginning of action switch */
1462 /* rule 1 can match eol */
1465 { line_no++; REJECT; }
1468 *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
1469 (yy_c_buf_p) = yy_cp -= 1;
1470 YY_DO_BEFORE_ACTION; /* set up yytext again */
1474 /* Thy evil easter egg */
1475 #define QQ(x) long x
1476 #define KK(x) =atoi(__(&,,x,))
1477 #define MM(x,a) {QQ(i);for(i=2;i<x;i++){a}}
1478 #define PP(Q) (P%Q)==0
1479 #define ___(x,y,z) if(x z y)
1480 #define __(a,x,y,z) a(yytext[y] x z)
1481 #define O__O(a,b) fprintf(stderr,"%s is %s!\n",a,b)
1482 QQ(m)=1;___(__(,==,2,'P'),__(,==,5,'M'),&&
1483 ){QQ(P)KK(8);MM(P,___(PP(i),,)m=0;)}__(,=,
1484 7,0);___(,,m){O__O(__( &,,8,),__(&,,2,));}
1496 *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
1497 (yy_c_buf_p) = yy_cp -= 1;
1498 YY_DO_BEFORE_ACTION; /* set up yytext again */
1501 { ; /*comment, ignore*/ }
1510 char *str=g_strdup(yytext);
1512 /* find first digit of line number */
1514 while(*p&&!isdigit(*p)) p++;
1517 /* find end of line number */
1518 while(*p&&isdigit(*p)) p++;
1521 /* find beginning of filename */
1526 /* find end of filename */
1527 if(p) p=strchr(p,'"');
1530 /* stash number (minus one because we don't count this line) */
1531 if(number) line_no=atoi(number)-1;
1533 /* stash filename */
1535 if(hline_filename) g_free(hline_filename);
1536 hline_filename=g_strdup(filename);
1547 if(look_for_includes==1) {
1550 char *str = g_strdup(yytext);
1551 file = strchr(str,'"');
1552 if(!file) file = strchr(str,'<');
1554 p = strchr(file,'"');
1555 if(!p) p = strchr(file,'>');
1558 include_files = g_list_prepend(include_files,g_strdup(file));
1566 *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
1567 (yy_c_buf_p) = yy_cp -= 1;
1568 YY_DO_BEFORE_ACTION; /* set up yytext again */
1572 /* eat out gtk doc stuff */
1573 BEGIN(GTK_DOC_BEFORE_NAME);
1578 *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
1579 (yy_c_buf_p) = yy_cp -= 1;
1580 YY_DO_BEFORE_ACTION; /* set up yytext again */
1584 /* empty doc lines */
1589 *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
1590 (yy_c_buf_p) = yy_cp -= 1;
1591 YY_DO_BEFORE_ACTION; /* set up yytext again */
1597 p = strchr(yytext, '*');
1598 g_free(gtk_doc_func);
1599 gtk_doc_func = g_strdup(p+2);
1600 p = strchr(gtk_doc_func, ':');
1602 g_strstrip(gtk_doc_func);
1609 BEGIN(CLASS_CODE_I);
1617 before_comment = CLASS_CODE_I;
1621 *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
1622 (yy_c_buf_p) = yy_cp -= 1;
1623 YY_DO_BEFORE_ACTION; /* set up yytext again */
1627 /* empty doc lines */
1628 add_to_cbuf(" *\n");
1635 BEGIN(CLASS_CODE_I);
1645 BEGIN(GTK_DOC_LINE);
1652 BEGIN(CLASS_CODE_I);
1660 before_comment = CLASS_CODE_I;
1667 BEGIN(CLASS_CODE_I);
1673 *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
1674 (yy_c_buf_p) = yy_cp -= 1;
1675 YY_DO_BEFORE_ACTION; /* set up yytext again */
1680 add_to_cbuf(yytext);
1689 add_to_cbuf(yytext);
1693 *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
1694 (yy_c_buf_p) = yy_cp -= 1;
1695 YY_DO_BEFORE_ACTION; /* set up yytext again */
1698 { add_to_cbuf(yytext); /*comment, ignore*/ }
1701 *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
1702 (yy_c_buf_p) = yy_cp -= 1;
1703 YY_DO_BEFORE_ACTION; /* set up yytext again */
1706 { ; /*comment, ignore*/ }
1709 *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
1710 (yy_c_buf_p) = yy_cp -= 1;
1711 YY_DO_BEFORE_ACTION; /* set up yytext again */
1714 { ; /*comment, ignore*/ }
1717 *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
1718 (yy_c_buf_p) = yy_cp -= 1;
1719 YY_DO_BEFORE_ACTION; /* set up yytext again */
1722 { ; /*comment, ignore*/ }
1727 {BEGIN(COMMENT); before_comment = INITIAL; }
1733 add_to_cbuf(yytext);
1735 before_comment = C_CODE;
1741 {BEGIN(COMMENT); before_comment = CLASS_CODE; }
1746 {BEGIN(COMMENT); before_comment = CLASS_CODE_I; }
1751 {BEGIN(COMMENT); before_comment = PROPERTY_CODE_I; }
1757 if(before_comment == C_CODE) add_to_cbuf(yytext);
1758 BEGIN(before_comment);
1765 /* comment, ignore */
1766 if(before_comment == C_CODE) add_to_cbuf(yytext);
1770 /* rule 30 can match eol */
1774 /* comment, ignore */
1775 if(before_comment == C_CODE) add_to_cbuf(yytext);
1784 class_after_c = FALSE;
1787 ccode_line = line_no;
1796 class_after_c = FALSE;
1799 ccode_line = line_no;
1808 class_after_c = FALSE;
1811 ccode_line = line_no;
1820 class_after_c = FALSE;
1823 ccode_line = line_no;
1832 class_after_c = FALSE;
1835 ccode_line = line_no;
1844 class_after_c = FALSE;
1847 ccode_line = line_no;
1848 if(look_for_includes==0)
1849 look_for_includes=1;
1858 class_after_c = FALSE;
1861 ccode_line = line_no;
1871 if(look_for_includes==1)
1872 look_for_includes=0;
1879 { add_to_cbuf(yytext); }
1884 { add_to_cbuf(yytext); }
1889 { add_to_cbuf(yytext); }
1894 { add_to_cbuf(yytext); }
1899 { add_to_cbuf(yytext); }
1904 { add_to_cbuf(yytext); }
1909 { add_to_cbuf(yytext); }
1916 before_string = C_CODE;
1917 add_to_cbuf(yytext);
1925 before_string = PROPERTY_CODE_I;
1926 add_to_cbuf(yytext);
1932 { add_to_cbuf(yytext); }
1938 BEGIN(before_string);
1939 add_to_cbuf(yytext);
1940 if (before_string == PROPERTY_CODE_I) {
1941 yylval.id = cbuf->str;
1942 g_string_free (cbuf, FALSE);
1951 { add_to_cbuf(yytext); }
1954 /* rule 51 can match eol */
1957 { add_to_cbuf(yytext); }
1964 add_to_cbuf(yytext);
1972 if(parenth_depth<0) {
1974 } else if(parenth_depth==0 && class_after_c) {
1975 BEGIN(CLASS_CODE_I);
1980 add_to_cbuf(yytext);
1986 { add_to_cbuf(yytext); }
1989 /* rule 55 can match eol */
1992 { add_to_cbuf(yytext); }
1998 static int found_classes = 0;
1999 look_for_includes = 2;
2002 if(++found_classes > 1) {
2003 error_print(GOB_ERROR, line_no,
2004 "Only one class per file allowed");
2026 *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
2027 (yy_c_buf_p) = yy_cp -= 1;
2028 YY_DO_BEFORE_ACTION; /* set up yytext again */
2032 int maj = 0, min = 0, pl = 0;
2033 int rmaj = 0, rmin = 0, rpl = 0;
2034 int effective_maj = 0;
2035 int effective_rmaj = 0;
2038 sscanf (VERSION, "%d.%d.%d", &rmaj, &rmin, &rpl);
2039 effective_rmaj = rmaj;
2041 effective_rmaj = rmaj + 1;
2043 p = strchr (yytext,'r');
2044 g_assert (p); /* we MUST have found it */
2045 sscanf (p, "requires %d.%d.%d", &maj, &min, &pl);
2046 effective_maj = maj;
2048 effective_maj = maj + 1;
2051 (rmaj == maj && rmin < min) ||
2052 (rmaj == maj && rmin == min && rpl < pl)) {
2053 error_printf (GOB_ERROR, line_no,
2054 "GOB version at least %d.%d.%d required "
2056 "To upgrade your gob, see: "
2057 "http://www.5z.com/jirka/gob.html",
2058 maj, min, pl, VERSION);
2061 if(effective_rmaj != effective_maj) {
2062 error_printf(GOB_ERROR, line_no,
2063 "GOB major version %d required "
2065 "To upgrade your gob, see: "
2066 "http://www.5z.com/jirka/gob.html",
2067 effective_maj, VERSION);
2077 error_printf(GOB_WARN, line_no,
2078 "'%s' keyword should not "
2079 "be used when generating "
2080 "C++ code", yytext);
2094 BEGIN(CLASS_STRING);
2095 before_string = CLASS_CODE;
2096 add_to_cbuf(yytext);
2102 { add_to_cbuf(yytext); }
2108 BEGIN(before_string);
2109 add_to_cbuf(yytext);
2110 yylval.id = cbuf->str;
2111 g_string_free (cbuf, FALSE);
2119 { add_to_cbuf(yytext); }
2122 /* rule 67 can match eol */
2125 { add_to_cbuf(yytext); }
2200 {yylval.line = line_no; return PUBLIC;}
2205 {yylval.line = line_no; return PRIVATE;}
2210 {yylval.line = line_no; return PROTECTED;}
2215 {yylval.line = line_no; return CLASSWIDE;}
2220 {yylval.line = line_no; return ARGUMENT;}
2225 {yylval.line = line_no; return VIRTUAL;}
2230 {yylval.line = line_no; return SIGNAL;}
2235 {yylval.line = line_no; return OVERRIDE;}
2241 yylval.line = line_no;
2242 BEGIN(PROPERTY_CODE);
2249 { yylval.line = line_no; return NICK; }
2254 { yylval.line = line_no; return BLURB; }
2259 { yylval.line = line_no; return MAXIMUM; }
2264 { yylval.line = line_no; return MINIMUM; }
2269 { yylval.line = line_no; return DEFAULT_VALUE; }
2274 { yylval.line = line_no; return FLAGS; }
2279 { yylval.line = line_no; return TYPE; }
2284 { yylval.line = line_no; return FLAGS_TYPE; }
2289 { yylval.line = line_no; return ENUM_TYPE; }
2294 { yylval.line = line_no; return PARAM_TYPE; }
2299 { yylval.line = line_no; return BOXED_TYPE; }
2304 { yylval.line = line_no; return OBJECT_TYPE; }
2310 yylval.line = line_no;
2311 property_paren_depth = 1;
2312 BEGIN(PROPERTY_CODE_I);
2320 yylval.line = line_no;
2321 property_paren_depth++;
2329 yylval.line = line_no;
2330 property_paren_depth--;
2331 if (property_paren_depth == 0) {
2332 BEGIN(CLASS_CODE_I);
2341 yylval.id = g_strdup(yytext);
2349 /* This is cpp kind of token thingie */
2351 yylval.id = g_strdup(yytext);
2362 /* this one is for a classname with a namespace */
2363 yylval.id = g_strdup(yytext);
2371 /* this is for a classname with an empty namespace */
2372 yylval.id = g_strdup(yytext);
2380 yylval.id = g_strdup(yytext);
2388 yylval.id = g_strdup(yytext);
2396 yylval.id = g_strdup(yytext);
2404 /* cheat for bitfield */
2405 yylval.id = g_strdup(yytext);
2413 BEGIN(CLASS_CODE_I);
2423 class_after_c = TRUE;
2424 yylval.line = line_no;
2426 ccode_line = line_no;
2444 /* rule 118 can match eol */
2453 yylval.line = line_no;
2458 *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
2459 (yy_c_buf_p) = yy_cp -= 1;
2460 YY_DO_BEFORE_ACTION; /* set up yytext again */
2466 p = strchr (yytext,'p');
2467 g_assert (p); /* we MUST have found it */
2468 sscanf (p, "prealloc %d", &t);
2477 #line 2478 "lexer.c"
2478 case YY_STATE_EOF(INITIAL):
2479 case YY_STATE_EOF(COMMENT):
2480 case YY_STATE_EOF(C_CODE):
2481 case YY_STATE_EOF(CODE_STRING):
2482 case YY_STATE_EOF(CLASS_CODE):
2483 case YY_STATE_EOF(CLASS_STRING):
2484 case YY_STATE_EOF(CLASS_CODE_I):
2485 case YY_STATE_EOF(PROPERTY_CODE):
2486 case YY_STATE_EOF(PROPERTY_CODE_I):
2487 case YY_STATE_EOF(GTK_DOC_BEFORE_NAME):
2488 case YY_STATE_EOF(GTK_DOC):
2489 case YY_STATE_EOF(GTK_DOC_LINE):
2492 case YY_END_OF_BUFFER:
2494 /* Amount of text matched not including the EOB char. */
2495 int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
2497 /* Undo the effects of YY_DO_BEFORE_ACTION. */
2498 *yy_cp = (yy_hold_char);
2499 YY_RESTORE_YY_MORE_OFFSET
2501 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
2503 /* We're scanning a new file or input source. It's
2504 * possible that this happened because the user
2505 * just pointed yyin at a new source and called
2506 * yylex(). If so, then we have to assure
2507 * consistency between YY_CURRENT_BUFFER and our
2508 * globals. Here is the right place to do so, because
2509 * this is the first action (other than possibly a
2510 * back-up) that will match for the new input source.
2512 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
2513 YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
2514 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
2517 /* Note that here we test for yy_c_buf_p "<=" to the position
2518 * of the first EOB in the buffer, since yy_c_buf_p will
2519 * already have been incremented past the NUL character
2520 * (since all states make transitions on EOB to the
2521 * end-of-buffer state). Contrast this with the test
2524 if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
2525 { /* This was really a NUL. */
2526 yy_state_type yy_next_state;
2528 (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
2530 yy_current_state = yy_get_previous_state( );
2532 /* Okay, we're now positioned to make the NUL
2533 * transition. We couldn't have
2534 * yy_get_previous_state() go ahead and do it
2535 * for us because it doesn't know how to deal
2536 * with the possibility of jamming (and we don't
2537 * want to build jamming into it because then it
2538 * will run more slowly).
2541 yy_next_state = yy_try_NUL_trans( yy_current_state );
2543 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
2545 if ( yy_next_state )
2547 /* Consume the NUL. */
2548 yy_cp = ++(yy_c_buf_p);
2549 yy_current_state = yy_next_state;
2555 yy_cp = (yy_c_buf_p);
2556 goto yy_find_action;
2560 else switch ( yy_get_next_buffer( ) )
2562 case EOB_ACT_END_OF_FILE:
2564 (yy_did_buffer_switch_on_eof) = 0;
2568 /* Note: because we've taken care in
2569 * yy_get_next_buffer() to have set up
2570 * yytext, we can now set up
2571 * yy_c_buf_p so that if some total
2572 * hoser (like flex itself) wants to
2573 * call the scanner after we return the
2574 * YY_NULL, it'll still work - another
2575 * YY_NULL will get returned.
2577 (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
2579 yy_act = YY_STATE_EOF(YY_START);
2585 if ( ! (yy_did_buffer_switch_on_eof) )
2591 case EOB_ACT_CONTINUE_SCAN:
2593 (yytext_ptr) + yy_amount_of_matched_text;
2595 yy_current_state = yy_get_previous_state( );
2597 yy_cp = (yy_c_buf_p);
2598 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
2601 case EOB_ACT_LAST_MATCH:
2603 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
2605 yy_current_state = yy_get_previous_state( );
2607 yy_cp = (yy_c_buf_p);
2608 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
2609 goto yy_find_action;
2616 "fatal flex scanner internal error--no action found" );
2617 } /* end of action switch */
2618 } /* end of scanning one token */
2619 } /* end of yylex */
2621 /* yy_get_next_buffer - try to read in a new buffer
2623 * Returns a code representing an action:
2624 * EOB_ACT_LAST_MATCH -
2625 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
2626 * EOB_ACT_END_OF_FILE - end of file
2628 static int yy_get_next_buffer (void)
2630 register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
2631 register char *source = (yytext_ptr);
2632 register int number_to_move, i;
2635 if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
2637 "fatal flex scanner internal error--end of buffer missed" );
2639 if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
2640 { /* Don't try to fill the buffer, so this is an EOF. */
2641 if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
2643 /* We matched a single character, the EOB, so
2644 * treat this as a final EOF.
2646 return EOB_ACT_END_OF_FILE;
2651 /* We matched some text prior to the EOB, first
2654 return EOB_ACT_LAST_MATCH;
2658 /* Try to read more data. */
2660 /* First move last chars to start of buffer. */
2661 number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1;
2663 for ( i = 0; i < number_to_move; ++i )
2664 *(dest++) = *(source++);
2666 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
2667 /* don't do the read, it's not guaranteed to return an EOF,
2670 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
2675 YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
2677 while ( num_to_read <= 0 )
2678 { /* Not enough room in the buffer - grow it. */
2681 "input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
2685 if ( num_to_read > YY_READ_BUF_SIZE )
2686 num_to_read = YY_READ_BUF_SIZE;
2688 /* Read in more data. */
2689 YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
2690 (yy_n_chars), (size_t) num_to_read );
2692 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
2695 if ( (yy_n_chars) == 0 )
2697 if ( number_to_move == YY_MORE_ADJ )
2699 ret_val = EOB_ACT_END_OF_FILE;
2705 ret_val = EOB_ACT_LAST_MATCH;
2706 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
2707 YY_BUFFER_EOF_PENDING;
2712 ret_val = EOB_ACT_CONTINUE_SCAN;
2714 if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
2715 /* Extend the array by 50%, plus the number we really need. */
2716 yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
2717 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size );
2718 if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
2719 YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
2722 (yy_n_chars) += number_to_move;
2723 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
2724 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
2726 (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
2731 /* yy_get_previous_state - get the state just before the EOB char was reached */
2733 static yy_state_type yy_get_previous_state (void)
2735 register yy_state_type yy_current_state;
2736 register char *yy_cp;
2738 yy_current_state = (yy_start);
2739 yy_current_state += YY_AT_BOL();
2741 (yy_state_ptr) = (yy_state_buf);
2742 *(yy_state_ptr)++ = yy_current_state;
2744 for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
2746 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
2747 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2749 yy_current_state = (int) yy_def[yy_current_state];
2750 if ( yy_current_state >= 561 )
2751 yy_c = yy_meta[(unsigned int) yy_c];
2753 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
2754 *(yy_state_ptr)++ = yy_current_state;
2757 return yy_current_state;
2760 /* yy_try_NUL_trans - try to make a transition on the NUL character
2763 * next_state = yy_try_NUL_trans( current_state );
2765 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
2767 register int yy_is_jam;
2769 register YY_CHAR yy_c = 1;
2770 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2772 yy_current_state = (int) yy_def[yy_current_state];
2773 if ( yy_current_state >= 561 )
2774 yy_c = yy_meta[(unsigned int) yy_c];
2776 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
2777 yy_is_jam = (yy_current_state == 560);
2779 *(yy_state_ptr)++ = yy_current_state;
2781 return yy_is_jam ? 0 : yy_current_state;
2784 static void yyunput (int c, register char * yy_bp )
2786 register char *yy_cp;
2788 yy_cp = (yy_c_buf_p);
2790 /* undo effects of setting up yytext */
2791 *yy_cp = (yy_hold_char);
2793 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
2794 { /* need to shift things up to make room */
2795 /* +2 for EOB chars. */
2796 register int number_to_move = (yy_n_chars) + 2;
2797 register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
2798 YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
2799 register char *source =
2800 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
2802 while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
2803 *--dest = *--source;
2805 yy_cp += (int) (dest - source);
2806 yy_bp += (int) (dest - source);
2807 YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
2808 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
2810 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
2811 YY_FATAL_ERROR( "flex scanner push-back overflow" );
2814 *--yy_cp = (char) c;
2816 (yytext_ptr) = yy_bp;
2817 (yy_hold_char) = *yy_cp;
2818 (yy_c_buf_p) = yy_cp;
2823 static int yyinput (void)
2825 static int input (void)
2831 *(yy_c_buf_p) = (yy_hold_char);
2833 if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
2835 /* yy_c_buf_p now points to the character we want to return.
2836 * If this occurs *before* the EOB characters, then it's a
2837 * valid NUL; if not, then we've hit the end of the buffer.
2839 if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
2840 /* This was really a NUL. */
2841 *(yy_c_buf_p) = '\0';
2844 { /* need more input */
2845 int offset = (yy_c_buf_p) - (yytext_ptr);
2848 switch ( yy_get_next_buffer( ) )
2850 case EOB_ACT_LAST_MATCH:
2851 /* This happens because yy_g_n_b()
2852 * sees that we've accumulated a
2853 * token and flags that we need to
2854 * try matching the token before
2855 * proceeding. But for input(),
2856 * there's no matching to consider.
2857 * So convert the EOB_ACT_LAST_MATCH
2858 * to EOB_ACT_END_OF_FILE.
2861 /* Reset buffer status. */
2866 case EOB_ACT_END_OF_FILE:
2871 if ( ! (yy_did_buffer_switch_on_eof) )
2880 case EOB_ACT_CONTINUE_SCAN:
2881 (yy_c_buf_p) = (yytext_ptr) + offset;
2887 c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
2888 *(yy_c_buf_p) = '\0'; /* preserve yytext */
2889 (yy_hold_char) = *++(yy_c_buf_p);
2891 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n');
2895 #endif /* ifndef YY_NO_INPUT */
2897 /** Immediately switch to a different input stream.
2898 * @param input_file A readable stream.
2900 * @note This function does not reset the start condition to @c INITIAL .
2902 void yyrestart (FILE * input_file )
2905 if ( ! YY_CURRENT_BUFFER ){
2906 yyensure_buffer_stack ();
2907 YY_CURRENT_BUFFER_LVALUE =
2908 yy_create_buffer(yyin,YY_BUF_SIZE );
2911 yy_init_buffer(YY_CURRENT_BUFFER,input_file );
2912 yy_load_buffer_state( );
2915 /** Switch to a different input buffer.
2916 * @param new_buffer The new input buffer.
2919 void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
2922 /* TODO. We should be able to replace this entire function body
2924 * yypop_buffer_state();
2925 * yypush_buffer_state(new_buffer);
2927 yyensure_buffer_stack ();
2928 if ( YY_CURRENT_BUFFER == new_buffer )
2931 if ( YY_CURRENT_BUFFER )
2933 /* Flush out information for old buffer. */
2934 *(yy_c_buf_p) = (yy_hold_char);
2935 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
2936 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
2939 YY_CURRENT_BUFFER_LVALUE = new_buffer;
2940 yy_load_buffer_state( );
2942 /* We don't actually know whether we did this switch during
2943 * EOF (yywrap()) processing, but the only time this flag
2944 * is looked at is after yywrap() is called, so it's safe
2945 * to go ahead and always set it.
2947 (yy_did_buffer_switch_on_eof) = 1;
2950 static void yy_load_buffer_state (void)
2952 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
2953 (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
2954 yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
2955 (yy_hold_char) = *(yy_c_buf_p);
2958 /** Allocate and initialize an input buffer state.
2959 * @param file A readable stream.
2960 * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
2962 * @return the allocated buffer state.
2964 YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
2968 b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
2970 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2972 b->yy_buf_size = size;
2974 /* yy_ch_buf has to be 2 characters longer than the size given because
2975 * we need to put in 2 end-of-buffer characters.
2977 b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 );
2978 if ( ! b->yy_ch_buf )
2979 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2981 b->yy_is_our_buffer = 1;
2983 yy_init_buffer(b,file );
2988 /** Destroy the buffer.
2989 * @param b a buffer created with yy_create_buffer()
2992 void yy_delete_buffer (YY_BUFFER_STATE b )
2998 if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
2999 YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
3001 if ( b->yy_is_our_buffer )
3002 yyfree((void *) b->yy_ch_buf );
3004 yyfree((void *) b );
3008 extern int isatty (int );
3009 #endif /* __cplusplus */
3011 /* Initializes or reinitializes a buffer.
3012 * This function is sometimes called more than once on the same buffer,
3013 * such as during a yyrestart() or at EOF.
3015 static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
3020 yy_flush_buffer(b );
3022 b->yy_input_file = file;
3023 b->yy_fill_buffer = 1;
3025 /* If b is the current buffer, then yy_init_buffer was _probably_
3026 * called from yyrestart() or through yy_get_next_buffer.
3027 * In that case, we don't want to reset the lineno or column.
3029 if (b != YY_CURRENT_BUFFER){
3030 b->yy_bs_lineno = 1;
3031 b->yy_bs_column = 0;
3034 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
3039 /** Discard all buffered characters. On the next scan, YY_INPUT will be called.
3040 * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
3043 void yy_flush_buffer (YY_BUFFER_STATE b )
3050 /* We always need two end-of-buffer characters. The first causes
3051 * a transition to the end-of-buffer state. The second causes
3052 * a jam in that state.
3054 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
3055 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
3057 b->yy_buf_pos = &b->yy_ch_buf[0];
3060 b->yy_buffer_status = YY_BUFFER_NEW;
3062 if ( b == YY_CURRENT_BUFFER )
3063 yy_load_buffer_state( );
3066 /** Pushes the new state onto the stack. The new state becomes
3067 * the current state. This function will allocate the stack
3069 * @param new_buffer The new state.
3072 void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
3074 if (new_buffer == NULL)
3077 yyensure_buffer_stack();
3079 /* This block is copied from yy_switch_to_buffer. */
3080 if ( YY_CURRENT_BUFFER )
3082 /* Flush out information for old buffer. */
3083 *(yy_c_buf_p) = (yy_hold_char);
3084 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
3085 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
3088 /* Only push if top exists. Otherwise, replace top. */
3089 if (YY_CURRENT_BUFFER)
3090 (yy_buffer_stack_top)++;
3091 YY_CURRENT_BUFFER_LVALUE = new_buffer;
3093 /* copied from yy_switch_to_buffer. */
3094 yy_load_buffer_state( );
3095 (yy_did_buffer_switch_on_eof) = 1;
3098 /** Removes and deletes the top of the stack, if present.
3099 * The next element becomes the new top.
3102 void yypop_buffer_state (void)
3104 if (!YY_CURRENT_BUFFER)
3107 yy_delete_buffer(YY_CURRENT_BUFFER );
3108 YY_CURRENT_BUFFER_LVALUE = NULL;
3109 if ((yy_buffer_stack_top) > 0)
3110 --(yy_buffer_stack_top);
3112 if (YY_CURRENT_BUFFER) {
3113 yy_load_buffer_state( );
3114 (yy_did_buffer_switch_on_eof) = 1;
3118 /* Allocates the stack if it does not exist.
3119 * Guarantees space for at least one push.
3121 static void yyensure_buffer_stack (void)
3125 if (!(yy_buffer_stack)) {
3127 /* First allocation is just for 2 elements, since we don't know if this
3128 * scanner will even need a stack. We use 2 instead of 1 to avoid an
3129 * immediate realloc on the next call.
3132 (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
3133 (num_to_alloc * sizeof(struct yy_buffer_state*)
3135 if ( ! (yy_buffer_stack) )
3136 YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
3138 memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
3140 (yy_buffer_stack_max) = num_to_alloc;
3141 (yy_buffer_stack_top) = 0;
3145 if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
3147 /* Increase the buffer to prepare for a possible push. */
3148 int grow_size = 8 /* arbitrary grow size */;
3150 num_to_alloc = (yy_buffer_stack_max) + grow_size;
3151 (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
3153 num_to_alloc * sizeof(struct yy_buffer_state*)
3155 if ( ! (yy_buffer_stack) )
3156 YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
3158 /* zero only the new slots.*/
3159 memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
3160 (yy_buffer_stack_max) = num_to_alloc;
3164 /** Setup the input buffer state to scan directly from a user-specified character buffer.
3165 * @param base the character buffer
3166 * @param size the size in bytes of the character buffer
3168 * @return the newly allocated buffer state object.
3170 YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
3175 base[size-2] != YY_END_OF_BUFFER_CHAR ||
3176 base[size-1] != YY_END_OF_BUFFER_CHAR )
3177 /* They forgot to leave room for the EOB's. */
3180 b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
3182 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
3184 b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
3185 b->yy_buf_pos = b->yy_ch_buf = base;
3186 b->yy_is_our_buffer = 0;
3187 b->yy_input_file = 0;
3188 b->yy_n_chars = b->yy_buf_size;
3189 b->yy_is_interactive = 0;
3191 b->yy_fill_buffer = 0;
3192 b->yy_buffer_status = YY_BUFFER_NEW;
3194 yy_switch_to_buffer(b );
3199 /** Setup the input buffer state to scan a string. The next call to yylex() will
3200 * scan from a @e copy of @a str.
3201 * @param yystr a NUL-terminated string to scan
3203 * @return the newly allocated buffer state object.
3204 * @note If you want to scan bytes that may contain NUL values, then use
3205 * yy_scan_bytes() instead.
3207 YY_BUFFER_STATE yy_scan_string (yyconst char * yystr )
3210 return yy_scan_bytes(yystr,strlen(yystr) );
3213 /** Setup the input buffer state to scan the given bytes. The next call to yylex() will
3214 * scan from a @e copy of @a bytes.
3215 * @param yybytes the byte buffer to scan
3216 * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
3218 * @return the newly allocated buffer state object.
3220 YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, int _yybytes_len )
3227 /* Get memory for full buffer, including space for trailing EOB's. */
3228 n = _yybytes_len + 2;
3229 buf = (char *) yyalloc(n );
3231 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
3233 for ( i = 0; i < _yybytes_len; ++i )
3234 buf[i] = yybytes[i];
3236 buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
3238 b = yy_scan_buffer(buf,n );
3240 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
3242 /* It's okay to grow etc. this buffer, and we should throw it
3243 * away when we're done.
3245 b->yy_is_our_buffer = 1;
3250 #ifndef YY_EXIT_FAILURE
3251 #define YY_EXIT_FAILURE 2
3254 static void yy_fatal_error (yyconst char* msg )
3256 (void) fprintf( stderr, "%s\n", msg );
3257 exit( YY_EXIT_FAILURE );
3260 /* Redefine yyless() so it works in section 3 code. */
3266 /* Undo effects of setting up yytext. */ \
3267 int yyless_macro_arg = (n); \
3268 YY_LESS_LINENO(yyless_macro_arg);\
3269 yytext[yyleng] = (yy_hold_char); \
3270 (yy_c_buf_p) = yytext + yyless_macro_arg; \
3271 (yy_hold_char) = *(yy_c_buf_p); \
3272 *(yy_c_buf_p) = '\0'; \
3273 yyleng = yyless_macro_arg; \
3277 /* Accessor methods (get/set functions) to struct members. */
3279 /** Get the current line number.
3282 int yyget_lineno (void)
3288 /** Get the input stream.
3291 FILE *yyget_in (void)
3296 /** Get the output stream.
3299 FILE *yyget_out (void)
3304 /** Get the length of the current token.
3307 int yyget_leng (void)
3312 /** Get the current token.
3316 char *yyget_text (void)
3321 /** Set the current line number.
3322 * @param line_number
3325 void yyset_lineno (int line_number )
3328 yylineno = line_number;
3331 /** Set the input stream. This does not discard the current
3333 * @param in_str A readable stream.
3335 * @see yy_switch_to_buffer
3337 void yyset_in (FILE * in_str )
3342 void yyset_out (FILE * out_str )
3347 int yyget_debug (void)
3349 return yy_flex_debug;
3352 void yyset_debug (int bdebug )
3354 yy_flex_debug = bdebug ;
3357 static int yy_init_globals (void)
3359 /* Initialization is the same as for the non-reentrant scanner.
3360 * This function is called from yylex_destroy(), so don't allocate here.
3363 (yy_buffer_stack) = 0;
3364 (yy_buffer_stack_top) = 0;
3365 (yy_buffer_stack_max) = 0;
3366 (yy_c_buf_p) = (char *) 0;
3372 (yy_full_match) = 0;
3375 /* Defined in main.c */
3384 /* For future reference: Set errno on error, since we are called by
3390 /* yylex_destroy is for both reentrant and non-reentrant scanners. */
3391 int yylex_destroy (void)
3394 /* Pop the buffer stack, destroying each element. */
3395 while(YY_CURRENT_BUFFER){
3396 yy_delete_buffer(YY_CURRENT_BUFFER );
3397 YY_CURRENT_BUFFER_LVALUE = NULL;
3398 yypop_buffer_state();
3401 /* Destroy the stack itself. */
3402 yyfree((yy_buffer_stack) );
3403 (yy_buffer_stack) = NULL;
3405 yyfree ( (yy_state_buf) );
3406 (yy_state_buf) = NULL;
3408 /* Reset the globals. This is important in a non-reentrant scanner so the next time
3409 * yylex() is called, initialization will occur. */
3416 * Internal utility routines.
3420 static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
3423 for ( i = 0; i < n; ++i )
3428 #ifdef YY_NEED_STRLEN
3429 static int yy_flex_strlen (yyconst char * s )
3432 for ( n = 0; s[n]; ++n )
3439 void *yyalloc (yy_size_t size )
3441 return (void *) malloc( size );
3444 void *yyrealloc (void * ptr, yy_size_t size )
3446 /* The cast to (char *) in the following accommodates both
3447 * implementations that use char* generic pointers, and those
3448 * that use void* generic pointers. It works with the latter
3449 * because both ANSI C and C++ allow castless assignment from
3450 * any pointer type to void*, and deal with argument conversions
3451 * as though doing an assignment.
3453 return (void *) realloc( (char *) ptr, size );
3456 void yyfree (void * ptr )
3458 free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
3461 #define YYTABLES_NAME "yytables"