1 #line 2 "scan_citi.cpp"
3 #line 4 "scan_citi.cpp"
5 #define YY_INT_ALIGNED short int
9 #define yy_create_buffer citi__create_buffer
10 #define yy_delete_buffer citi__delete_buffer
11 #define yy_flex_debug citi__flex_debug
12 #define yy_init_buffer citi__init_buffer
13 #define yy_flush_buffer citi__flush_buffer
14 #define yy_load_buffer_state citi__load_buffer_state
15 #define yy_switch_to_buffer citi__switch_to_buffer
17 #define yyleng citi_leng
18 #define yylex citi_lex
19 #define yylineno citi_lineno
20 #define yyout citi_out
21 #define yyrestart citi_restart
22 #define yytext citi_text
23 #define yywrap citi_wrap
24 #define yyalloc citi_alloc
25 #define yyrealloc citi_realloc
26 #define yyfree citi_free
29 #define YY_FLEX_MAJOR_VERSION 2
30 #define YY_FLEX_MINOR_VERSION 5
31 #define YY_FLEX_SUBMINOR_VERSION 35
32 #if YY_FLEX_SUBMINOR_VERSION > 0
53 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
58 #ifndef __STDC_LIMIT_MACROS
59 #define __STDC_LIMIT_MACROS 1
79 #define INT8_MIN (-128)
82 #define INT16_MIN (-32767-1)
85 #define INT32_MIN (-2147483647-1)
88 #define INT8_MAX (127)
91 #define INT16_MAX (32767)
94 #define INT32_MAX (2147483647)
97 #define UINT8_MAX (255U)
100 #define UINT16_MAX (65535U)
103 #define UINT32_MAX (4294967295U)
118 #if defined (__STDC__)
126 #define yyconst const
139 #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
145 #define BEGIN (yy_start) = 1 + 2 *
151 #define YY_START (((yy_start) - 1) / 2)
152 #define YYSTATE YY_START
155 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
158 #define YY_NEW_FILE citi_restart(citi_in )
160 #define YY_END_OF_BUFFER_CHAR 0
169 #define YY_BUF_SIZE 32768
171 #define YY_BUF_SIZE 16384
177 #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
179 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
180 #define YY_TYPEDEF_YY_BUFFER_STATE
188 #define EOB_ACT_CONTINUE_SCAN 0
189 #define EOB_ACT_END_OF_FILE 1
190 #define EOB_ACT_LAST_MATCH 2
199 #define YY_LESS_LINENO(n) \
202 for ( yyl = n; yyl < citi_leng; ++yyl )\
203 if ( citi_text[yyl] == '\n' )\
212 int yyless_macro_arg = (n); \
213 YY_LESS_LINENO(yyless_macro_arg);\
214 *yy_cp = (yy_hold_char); \
215 YY_RESTORE_YY_MORE_OFFSET \
216 (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
217 YY_DO_BEFORE_ACTION; \
221 #define unput(c) yyunput( c, (yytext_ptr) )
223 #ifndef YY_TYPEDEF_YY_SIZE_T
224 #define YY_TYPEDEF_YY_SIZE_T
228 #ifndef YY_STRUCT_YY_BUFFER_STATE
229 #define YY_STRUCT_YY_BUFFER_STATE
276 #define YY_BUFFER_NEW 0
277 #define YY_BUFFER_NORMAL 1
288 #define YY_BUFFER_EOF_PENDING 2
294 static size_t yy_buffer_stack_top = 0;
295 static size_t yy_buffer_stack_max = 0;
296 static YY_BUFFER_STATE * yy_buffer_stack = 0;
304 #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
305 ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
311 #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
314 static char yy_hold_char;
315 static int yy_n_chars;
319 static char *yy_c_buf_p = (
char *) 0;
320 static int yy_init = 0;
321 static int yy_start = 0;
326 static int yy_did_buffer_switch_on_eof;
336 static void citi_ensure_buffer_stack (
void );
337 static void citi__load_buffer_state (
void );
338 static void citi__init_buffer (YY_BUFFER_STATE
b,FILE *file );
340 #define YY_FLUSH_BUFFER citi__flush_buffer(YY_CURRENT_BUFFER )
350 #define yy_new_buffer citi__create_buffer
352 #define yy_set_interactive(is_interactive) \
354 if ( ! YY_CURRENT_BUFFER ){ \
355 citi_ensure_buffer_stack (); \
356 YY_CURRENT_BUFFER_LVALUE = \
357 citi__create_buffer(citi_in,YY_BUF_SIZE ); \
359 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
362 #define yy_set_bol(at_bol) \
364 if ( ! YY_CURRENT_BUFFER ){\
365 citi_ensure_buffer_stack (); \
366 YY_CURRENT_BUFFER_LVALUE = \
367 citi__create_buffer(citi_in,YY_BUF_SIZE ); \
369 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
372 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
376 #define citi_wrap(n) 1
377 #define YY_SKIP_YYWRAP
390 #define yytext_ptr citi_text
392 static yy_state_type yy_get_previous_state (
void );
393 static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
394 static int yy_get_next_buffer (
void );
395 static void yy_fatal_error (
yyconst char msg[] );
400 #define YY_DO_BEFORE_ACTION \
401 (yytext_ptr) = yy_bp; \
402 citi_leng = (size_t) (yy_cp - yy_bp); \
403 (yy_hold_char) = *yy_cp; \
405 (yy_c_buf_p) = yy_cp;
407 #define YY_NUM_RULES 31
408 #define YY_END_OF_BUFFER 32
418 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
419 0, 0, 32, 30, 2, 1, 30, 30, 3, 18,
420 18, 18, 18, 18, 27, 18, 18, 18, 18, 18,
421 18, 28, 2, 29, 28, 30, 25, 30, 19, 30,
422 30, 30, 24, 30, 21, 18, 18, 18, 22, 23,
423 20, 30, 1, 0, 3, 18, 18, 18, 18, 5,
424 18, 18, 18, 18, 18, 18, 18, 29, 0, 0,
425 19, 19, 0, 0, 0, 0, 24, 0, 20, 0,
426 18, 18, 5, 18, 18, 18, 18, 18, 18, 18,
427 7, 0, 0, 19, 26, 17, 0, 18, 18, 18,
429 18, 18, 18, 18, 8, 9, 18, 18, 0, 19,
430 0, 0, 4, 18, 18, 10, 18, 18, 18, 18,
431 18, 0, 0, 18, 18, 18, 18, 18, 18, 18,
432 0, 0, 18, 18, 12, 18, 18, 18, 0, 0,
433 6, 11, 18, 18, 0, 0, 18, 18, 0, 0,
434 18, 18, 0, 0, 18, 18, 0, 0, 18, 18,
435 15, 16, 18, 18, 13, 14, 0
440 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
441 1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
442 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
443 1, 2, 1, 1, 5, 1, 1, 1, 1, 1,
444 1, 1, 6, 7, 6, 8, 1, 9, 9, 9,
445 9, 9, 9, 9, 9, 9, 9, 1, 1, 1,
446 1, 1, 1, 1, 10, 11, 12, 13, 14, 15,
447 16, 17, 18, 17, 17, 19, 20, 21, 22, 17,
448 17, 23, 24, 25, 17, 26, 17, 17, 17, 17,
449 27, 1, 28, 1, 29, 1, 17, 17, 17, 17,
451 30, 17, 17, 17, 17, 17, 17, 17, 17, 17,
452 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
453 17, 17, 1, 1, 1, 1, 1, 1, 1, 1,
454 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
455 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
456 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
457 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
458 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
459 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
460 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
462 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
463 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
464 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
465 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
466 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
472 1, 1, 1, 1, 1, 1, 1, 2, 2, 2,
473 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
474 2, 2, 2, 2, 2, 2, 1, 1, 2, 2
479 0, 26, 30, 38, 51, 59, 29, 57, 83, 0,
480 111, 0, 273, 274, 274, 41, 269, 262, 261, 261,
481 38, 62, 61, 0, 274, 66, 108, 67, 113, 68,
482 117, 274, 274, 125, 265, 124, 274, 258, 127, 245,
483 251, 254, 139, 260, 274, 251, 251, 242, 274, 274,
484 141, 256, 143, 255, 248, 247, 0, 245, 238, 0,
485 237, 227, 128, 226, 230, 233, 225, 147, 244, 237,
486 144, 145, 42, 232, 228, 220, 152, 239, 157, 238,
487 154, 219, 229, 220, 219, 216, 211, 224, 219, 203,
488 202, 131, 221, 220, 274, 199, 198, 217, 209, 203,
490 202, 207, 207, 195, 0, 0, 200, 199, 208, 207,
491 196, 195, 204, 193, 195, 0, 192, 188, 198, 189,
492 188, 187, 186, 189, 183, 182, 175, 178, 174, 173,
493 172, 171, 180, 179, 0, 167, 166, 165, 164, 163,
494 0, 0, 158, 157, 156, 155, 172, 171, 167, 166,
495 159, 158, 150, 149, 153, 152, 154, 153, 147, 146,
496 274, 274, 101, 35, 0, 0, 274, 175, 177, 33
501 167, 1, 168, 168, 169, 169, 6, 6, 167, 9,
502 9, 11, 167, 167, 167, 167, 167, 167, 167, 170,
503 170, 170, 170, 170, 167, 170, 170, 170, 170, 170,
504 170, 167, 167, 167, 167, 167, 167, 167, 167, 167,
505 167, 167, 167, 167, 167, 170, 170, 170, 167, 167,
506 167, 167, 167, 167, 167, 170, 170, 170, 170, 170,
507 170, 170, 170, 170, 170, 170, 170, 167, 167, 167,
508 167, 167, 167, 167, 167, 167, 167, 167, 167, 167,
509 170, 170, 170, 170, 170, 170, 170, 170, 170, 170,
510 170, 167, 167, 167, 167, 167, 167, 170, 170, 170,
512 170, 170, 170, 170, 170, 170, 170, 170, 167, 167,
513 167, 167, 170, 170, 170, 170, 170, 170, 170, 170,
514 170, 167, 167, 170, 170, 170, 170, 170, 170, 170,
515 167, 167, 170, 170, 170, 170, 170, 170, 167, 167,
516 170, 170, 170, 170, 167, 167, 170, 170, 167, 167,
517 170, 170, 167, 167, 170, 170, 167, 167, 170, 170,
518 167, 167, 170, 170, 170, 170, 0, 167, 167, 167
523 14, 15, 16, 17, 14, 18, 14, 14, 19, 20,
524 20, 20, 21, 20, 20, 20, 20, 20, 20, 22,
525 20, 20, 23, 20, 20, 20, 14, 14, 24, 20,
526 25, 33, 34, 35, 57, 14, 26, 27, 28, 33,
527 34, 35, 14, 53, 54, 56, 29, 93, 58, 30,
528 94, 31, 15, 16, 17, 166, 36, 37, 38, 39,
529 15, 16, 17, 14, 36, 37, 38, 39, 56, 56,
530 14, 59, 40, 56, 56, 56, 64, 58, 60, 61,
531 41, 66, 42, 14, 15, 43, 44, 14, 18, 45,
532 14, 19, 24, 24, 24, 46, 24, 24, 24, 24,
534 24, 24, 47, 24, 24, 48, 24, 24, 24, 49,
535 50, 24, 24, 51, 52, 56, 36, 14, 38, 39,
536 56, 165, 65, 24, 56, 62, 67, 68, 69, 63,
537 24, 70, 71, 24, 70, 71, 109, 14, 14, 110,
538 73, 77, 78, 79, 80, 53, 54, 86, 87, 68,
539 69, 70, 71, 72, 77, 78, 73, 73, 92, 79,
540 80, 98, 81, 164, 163, 162, 161, 160, 159, 158,
541 157, 156, 155, 73, 92, 32, 32, 14, 14, 154,
542 153, 152, 151, 150, 149, 148, 147, 146, 145, 144,
543 143, 142, 141, 60, 140, 139, 138, 137, 136, 135,
545 134, 133, 60, 132, 131, 130, 129, 128, 127, 126,
546 125, 124, 113, 123, 122, 110, 110, 121, 120, 119,
547 118, 117, 116, 115, 114, 113, 112, 111, 94, 94,
548 108, 107, 106, 105, 104, 103, 102, 101, 100, 99,
549 79, 77, 97, 96, 95, 72, 68, 91, 90, 89,
550 88, 85, 84, 83, 82, 81, 55, 53, 79, 60,
551 59, 58, 77, 76, 75, 74, 72, 68, 56, 55,
552 55, 53, 167, 13, 167, 167, 167, 167, 167, 167,
553 167, 167, 167, 167, 167, 167, 167, 167, 167, 167,
554 167, 167, 167, 167, 167, 167, 167, 167, 167, 167,
561 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
562 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
563 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
564 2, 3, 3, 3, 170, 7, 2, 2, 2, 4,
565 4, 4, 7, 16, 16, 21, 2, 73, 21, 2,
566 73, 2, 5, 5, 5, 164, 5, 5, 5, 5,
567 6, 6, 6, 8, 6, 6, 6, 6, 23, 22,
568 8, 22, 6, 26, 28, 30, 28, 28, 23, 26,
569 8, 30, 8, 9, 9, 9, 9, 9, 9, 9,
570 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
572 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
573 9, 9, 9, 11, 11, 27, 11, 11, 11, 11,
574 29, 163, 29, 11, 31, 27, 31, 34, 34, 27,
575 11, 36, 36, 11, 39, 39, 92, 11, 11, 92,
576 39, 43, 43, 51, 51, 53, 53, 63, 63, 68,
577 68, 71, 71, 72, 77, 77, 39, 71, 72, 79,
578 79, 81, 81, 160, 159, 158, 157, 156, 155, 154,
579 153, 152, 151, 71, 72, 168, 168, 169, 169, 150,
580 149, 148, 147, 146, 145, 144, 143, 140, 139, 138,
581 137, 136, 134, 133, 132, 131, 130, 129, 128, 127,
583 126, 125, 124, 123, 122, 121, 120, 119, 118, 117,
584 115, 114, 113, 112, 111, 110, 109, 108, 107, 104,
585 103, 102, 101, 100, 99, 98, 97, 96, 94, 93,
586 91, 90, 89, 88, 87, 86, 85, 84, 83, 82,
587 80, 78, 76, 75, 74, 70, 69, 67, 66, 65,
588 64, 62, 61, 59, 58, 56, 55, 54, 52, 48,
589 47, 46, 44, 42, 41, 40, 38, 35, 20, 19,
590 18, 17, 13, 167, 167, 167, 167, 167, 167, 167,
591 167, 167, 167, 167, 167, 167, 167, 167, 167, 167,
592 167, 167, 167, 167, 167, 167, 167, 167, 167, 167,
600 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
601 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, };
603 static yy_state_type yy_last_accepting_state;
604 static char *yy_last_accepting_cpos;
607 int citi__flex_debug = 0;
612 #define REJECT reject_used_but_not_detected
613 #define yymore() yymore_used_but_not_detected
614 #define YY_MORE_ADJ 0
615 #define YY_RESTORE_YY_MORE_OFFSET
617 #line 1 "scan_citi.l"
619 #line 4 "scan_citi.l"
670 #line 671 "scan_citi.cpp"
679 #ifndef YY_EXTRA_TYPE
680 #define YY_EXTRA_TYPE void *
683 static int yy_init_globals (
void );
718 #ifndef YY_SKIP_YYWRAP
727 static void yy_flex_strncpy (
char *,
yyconst char *,
int );
730 #ifdef YY_NEED_STRLEN
731 static int yy_flex_strlen (
yyconst char * );
737 static int yyinput (
void );
739 static int input (
void );
745 #ifndef YY_READ_BUF_SIZE
748 #define YY_READ_BUF_SIZE 16384
750 #define YY_READ_BUF_SIZE 8192
759 #define ECHO do { if (fwrite( citi_text, citi_leng, 1, citi_out )) {} } while (0)
766 #define YY_INPUT(buf,result,max_size) \
767 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
771 for ( n = 0; n < max_size && \
772 (c = getc( citi_in )) != EOF && c != '\n'; ++n ) \
775 buf[n++] = (char) c; \
776 if ( c == EOF && ferror( citi_in ) ) \
777 YY_FATAL_ERROR( "input in flex scanner failed" ); \
783 while ( (result = fread(buf, 1, max_size, citi_in))==0 && ferror(citi_in)) \
785 if( errno != EINTR) \
787 YY_FATAL_ERROR( "input in flex scanner failed" ); \
803 #define yyterminate() return YY_NULL
807 #ifndef YY_START_STACK_INCR
808 #define YY_START_STACK_INCR 25
812 #ifndef YY_FATAL_ERROR
813 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
822 #define YY_DECL_IS_OURS 1
826 #define YY_DECL int citi_lex (void)
832 #ifndef YY_USER_ACTION
833 #define YY_USER_ACTION
838 #define YY_BREAK break;
841 #define YY_RULE_SETUP \
842 if ( citi_leng > 0 ) \
843 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \
844 (citi_text[citi_leng - 1] == '\n'); \
851 register yy_state_type yy_current_state;
855 #line 68 "scan_citi.l"
858 #line 859 "scan_citi.cpp"
878 citi_ensure_buffer_stack ();
883 citi__load_buffer_state( );
888 yy_cp = (yy_c_buf_p);
891 *yy_cp = (yy_hold_char);
898 yy_current_state = (yy_start);
904 if ( yy_accept[yy_current_state] )
906 (yy_last_accepting_state) = yy_current_state;
907 (yy_last_accepting_cpos) = yy_cp;
909 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
911 yy_current_state = (int) yy_def[yy_current_state];
912 if ( yy_current_state >= 168 )
913 yy_c = yy_meta[(
unsigned int) yy_c];
915 yy_current_state = yy_nxt[yy_base[yy_current_state] + (
unsigned int) yy_c];
918 while ( yy_base[yy_current_state] != 274 );
921 yy_act = yy_accept[yy_current_state];
924 yy_cp = (yy_last_accepting_cpos);
925 yy_current_state = (yy_last_accepting_state);
926 yy_act = yy_accept[yy_current_state];
935 if ( citi_text[yyl] ==
'\n' )
947 *yy_cp = (yy_hold_char);
948 yy_cp = (yy_last_accepting_cpos);
949 yy_current_state = (yy_last_accepting_state);
955 #line 70 "scan_citi.l"
960 #line 72 "scan_citi.l"
965 #line 74 "scan_citi.l"
973 #line 79 "scan_citi.l"
980 #line 83 "scan_citi.l"
988 #line 88 "scan_citi.l"
993 #line 89 "scan_citi.l"
998 #line 90 "scan_citi.l"
1003 #line 91 "scan_citi.l"
1008 #line 92 "scan_citi.l"
1013 #line 93 "scan_citi.l"
1018 #line 94 "scan_citi.l"
1023 #line 96 "scan_citi.l"
1028 #line 97 "scan_citi.l"
1033 #line 98 "scan_citi.l"
1038 #line 99 "scan_citi.l"
1043 #line 100 "scan_citi.l"
1048 #line 102 "scan_citi.l"
1056 #line 107 "scan_citi.l"
1065 #line 112 "scan_citi.l"
1070 #line 114 "scan_citi.l"
1075 #line 115 "scan_citi.l"
1080 #line 116 "scan_citi.l"
1086 #line 117 "scan_citi.l"
1091 #line 119 "scan_citi.l"
1096 #line 121 "scan_citi.l"
1101 #line 123 "scan_citi.l"
1108 #line 127 "scan_citi.l"
1114 #line 128 "scan_citi.l"
1119 #line 130 "scan_citi.l"
1122 "line %d: syntax error, unrecognized character: `%s'\n",
1123 citi_lineno, citi_text);
1129 #line 137 "scan_citi.l"
1132 #line 1133 "scan_citi.cpp"
1144 int yy_amount_of_matched_text = (int) (yy_cp - (
yytext_ptr)) - 1;
1147 *yy_cp = (yy_hold_char);
1175 yy_state_type yy_next_state;
1177 (yy_c_buf_p) = (
yytext_ptr) + yy_amount_of_matched_text;
1179 yy_current_state = yy_get_previous_state( );
1190 yy_next_state = yy_try_NUL_trans( yy_current_state );
1194 if ( yy_next_state )
1197 yy_cp = ++(yy_c_buf_p);
1198 yy_current_state = yy_next_state;
1204 yy_cp = (yy_c_buf_p);
1205 goto yy_find_action;
1209 else switch ( yy_get_next_buffer( ) )
1213 (yy_did_buffer_switch_on_eof) = 0;
1234 if ( ! (yy_did_buffer_switch_on_eof) )
1244 yy_current_state = yy_get_previous_state( );
1246 yy_cp = (yy_c_buf_p);
1254 yy_current_state = yy_get_previous_state( );
1256 yy_cp = (yy_c_buf_p);
1258 goto yy_find_action;
1265 "fatal flex scanner internal error--no action found" );
1277 static int yy_get_next_buffer (
void)
1281 register int number_to_move,
i;
1286 "fatal flex scanner internal error--end of buffer missed" );
1310 number_to_move = (int) ((yy_c_buf_p) - (
yytext_ptr)) - 1;
1312 for ( i = 0; i < number_to_move; ++
i )
1313 *(dest++) = *(source++);
1326 while ( num_to_read <= 0 )
1332 int yy_c_buf_p_offset =
1339 if ( new_size <= 0 )
1354 "fatal error - scanner input buffer overflow" );
1356 (yy_c_buf_p) = &b->
yy_ch_buf[yy_c_buf_p_offset];
1368 (yy_n_chars), (
size_t) num_to_read );
1373 if ( (yy_n_chars) == 0 )
1394 yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
1397 YY_FATAL_ERROR(
"out of dynamic memory in yy_get_next_buffer()" );
1400 (yy_n_chars) += number_to_move;
1411 static yy_state_type yy_get_previous_state (
void)
1413 register yy_state_type yy_current_state;
1414 register char *
yy_cp;
1416 yy_current_state = (yy_start);
1422 if ( yy_accept[yy_current_state] )
1424 (yy_last_accepting_state) = yy_current_state;
1425 (yy_last_accepting_cpos) = yy_cp;
1427 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1429 yy_current_state = (int) yy_def[yy_current_state];
1430 if ( yy_current_state >= 168 )
1431 yy_c = yy_meta[(
unsigned int) yy_c];
1433 yy_current_state = yy_nxt[yy_base[yy_current_state] + (
unsigned int) yy_c];
1436 return yy_current_state;
1444 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
1446 register int yy_is_jam;
1447 register char *yy_cp = (yy_c_buf_p);
1450 if ( yy_accept[yy_current_state] )
1452 (yy_last_accepting_state) = yy_current_state;
1453 (yy_last_accepting_cpos) = yy_cp;
1455 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1457 yy_current_state = (int) yy_def[yy_current_state];
1458 if ( yy_current_state >= 168 )
1459 yy_c = yy_meta[(
unsigned int) yy_c];
1461 yy_current_state = yy_nxt[yy_base[yy_current_state] + (
unsigned int) yy_c];
1462 yy_is_jam = (yy_current_state == 167);
1464 return yy_is_jam ? 0 : yy_current_state;
1469 static int yyinput (
void)
1471 static int input (
void)
1477 *(yy_c_buf_p) = (yy_hold_char);
1487 *(yy_c_buf_p) =
'\0';
1494 switch ( yy_get_next_buffer( ) )
1517 if ( ! (yy_did_buffer_switch_on_eof) )
1533 c = *(
unsigned char *) (yy_c_buf_p);
1534 *(yy_c_buf_p) =
'\0';
1535 (yy_hold_char) = *++(yy_c_buf_p);
1556 citi_ensure_buffer_stack ();
1562 citi__load_buffer_state( );
1577 citi_ensure_buffer_stack ();
1584 *(yy_c_buf_p) = (yy_hold_char);
1590 citi__load_buffer_state( );
1597 (yy_did_buffer_switch_on_eof) = 1;
1600 static void citi__load_buffer_state (
void)
1605 (yy_hold_char) = *(yy_c_buf_p);
1620 YY_FATAL_ERROR(
"out of dynamic memory in citi__create_buffer()" );
1629 YY_FATAL_ERROR(
"out of dynamic memory in citi__create_buffer()" );
1633 citi__init_buffer(b,file );
1658 extern int isatty (
int );
1665 static void citi__init_buffer (YY_BUFFER_STATE b, FILE * file )
1713 citi__load_buffer_state( );
1724 if (new_buffer == NULL)
1727 citi_ensure_buffer_stack();
1733 *(yy_c_buf_p) = (yy_hold_char);
1740 (yy_buffer_stack_top)++;
1744 citi__load_buffer_state( );
1745 (yy_did_buffer_switch_on_eof) = 1;
1759 if ((yy_buffer_stack_top) > 0)
1760 --(yy_buffer_stack_top);
1763 citi__load_buffer_state( );
1764 (yy_did_buffer_switch_on_eof) = 1;
1771 static void citi_ensure_buffer_stack (
void)
1775 if (!(yy_buffer_stack)) {
1785 if ( ! (yy_buffer_stack) )
1786 YY_FATAL_ERROR(
"out of dynamic memory in citi_ensure_buffer_stack()" );
1788 memset((yy_buffer_stack), 0, num_to_alloc *
sizeof(
struct yy_buffer_state*));
1790 (yy_buffer_stack_max) = num_to_alloc;
1791 (yy_buffer_stack_top) = 0;
1795 if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
1800 num_to_alloc = (yy_buffer_stack_max) + grow_size;
1805 if ( ! (yy_buffer_stack) )
1806 YY_FATAL_ERROR(
"out of dynamic memory in citi_ensure_buffer_stack()" );
1809 memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size *
sizeof(
struct yy_buffer_state*));
1810 (yy_buffer_stack_max) = num_to_alloc;
1832 YY_FATAL_ERROR(
"out of dynamic memory in citi__scan_buffer()" );
1878 n = _yybytes_len + 2;
1883 for ( i = 0; i < _yybytes_len; ++
i )
1884 buf[i] = yybytes[i];
1900 #ifndef YY_EXIT_FAILURE
1901 #define YY_EXIT_FAILURE 2
1904 static void yy_fatal_error (
yyconst char* msg )
1906 (void)
fprintf( stderr,
"%s\n", msg );
1917 int yyless_macro_arg = (n); \
1918 YY_LESS_LINENO(yyless_macro_arg);\
1919 citi_text[citi_leng] = (yy_hold_char); \
1920 (yy_c_buf_p) = citi_text + yyless_macro_arg; \
1921 (yy_hold_char) = *(yy_c_buf_p); \
1922 *(yy_c_buf_p) = '\0'; \
1923 citi_leng = yyless_macro_arg; \
1978 citi_lineno = line_number;
2004 citi__flex_debug = bdebug ;
2007 static int yy_init_globals (
void)
2016 (yy_buffer_stack) = 0;
2017 (yy_buffer_stack_top) = 0;
2018 (yy_buffer_stack_max) = 0;
2019 (yy_c_buf_p) = (
char *) 0;
2051 (yy_buffer_stack) = NULL;
2065 static void yy_flex_strncpy (
char* s1,
yyconst char * s2,
int n )
2068 for ( i = 0; i <
n; ++
i )
2073 #ifdef YY_NEED_STRLEN
2074 static int yy_flex_strlen (
yyconst char *
s )
2077 for ( n = 0; s[
n]; ++
n )
2086 return (
void *) malloc( size );
2098 return (
void *) realloc( (
char *) ptr, size );
2103 free( (
char *) ptr );
2106 #define YYTABLES_NAME "yytables"
2108 #line 137 "scan_citi.l"