24 #define YY_INT_ALIGNED short int 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 63 typedef int8_t flex_int8_t;
64 typedef uint8_t flex_uint8_t;
65 typedef int16_t flex_int16_t;
66 typedef uint16_t flex_uint16_t;
67 typedef int32_t flex_int32_t;
68 typedef uint32_t flex_uint32_t;
70 typedef signed char flex_int8_t;
71 typedef short int flex_int16_t;
72 typedef int flex_int32_t;
73 typedef unsigned char flex_uint8_t;
74 typedef unsigned short int flex_uint16_t;
75 typedef unsigned int flex_uint32_t;
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 yyrestart(yyin) 160 #define YY_END_OF_BUFFER_CHAR 0 169 #define YY_BUF_SIZE 32768 171 #define YY_BUF_SIZE 16384 178 #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) 180 #ifndef YY_TYPEDEF_YY_BUFFER_STATE 181 #define YY_TYPEDEF_YY_BUFFER_STATE 187 extern FILE *yyin, *yyout;
189 #define EOB_ACT_CONTINUE_SCAN 0 190 #define EOB_ACT_END_OF_FILE 1 191 #define EOB_ACT_LAST_MATCH 2 193 #define YY_LESS_LINENO(n) 200 int yyless_macro_arg = (n); \ 201 YY_LESS_LINENO(yyless_macro_arg); \ 202 *yy_cp = (yy_hold_char); \ 203 YY_RESTORE_YY_MORE_OFFSET(yy_c_buf_p) = yy_cp = \ 204 yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ 205 YY_DO_BEFORE_ACTION; \ 208 #define unput(c) yyunput(c, (yytext_ptr)) 210 #ifndef YY_TYPEDEF_YY_SIZE_T 211 #define YY_TYPEDEF_YY_SIZE_T 212 typedef size_t yy_size_t;
215 #ifndef YY_STRUCT_YY_BUFFER_STATE 216 #define YY_STRUCT_YY_BUFFER_STATE 227 yy_size_t yy_buf_size;
238 int yy_is_our_buffer;
245 int yy_is_interactive;
261 int yy_buffer_status;
263 #define YY_BUFFER_NEW 0 264 #define YY_BUFFER_NORMAL 1 275 #define YY_BUFFER_EOF_PENDING 2 280 static size_t yy_buffer_stack_top = 0;
281 static size_t yy_buffer_stack_max = 0;
282 static YY_BUFFER_STATE *yy_buffer_stack = 0;
290 #define YY_CURRENT_BUFFER \ 291 ((yy_buffer_stack) ? (yy_buffer_stack)[(yy_buffer_stack_top)] : NULL) 296 #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] 299 static char yy_hold_char;
300 static int yy_n_chars;
304 static char *yy_c_buf_p = (
char *) 0;
305 static int yy_init = 0;
306 static int yy_start = 0;
311 static int yy_did_buffer_switch_on_eof;
313 void yyrestart(
FILE *input_file);
314 void yy_switch_to_buffer(YY_BUFFER_STATE new_buffer);
315 YY_BUFFER_STATE yy_create_buffer(
FILE *file,
int size);
316 void yy_delete_buffer(YY_BUFFER_STATE b);
317 void yy_flush_buffer(YY_BUFFER_STATE b);
318 void yypush_buffer_state(YY_BUFFER_STATE new_buffer);
319 void yypop_buffer_state(
void);
321 static void yyensure_buffer_stack(
void);
322 static void yy_load_buffer_state(
void);
323 static void yy_init_buffer(YY_BUFFER_STATE b,
FILE *file);
325 #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER) 327 YY_BUFFER_STATE yy_scan_buffer(
char *base, yy_size_t size);
328 YY_BUFFER_STATE yy_scan_string(yyconst
char *yy_str);
329 YY_BUFFER_STATE yy_scan_bytes(yyconst
char *bytes,
int len);
332 void *yyrealloc(
void *, yy_size_t);
335 #define yy_new_buffer yy_create_buffer 337 #define yy_set_interactive(is_interactive) \ 339 if (!YY_CURRENT_BUFFER) \ 341 yyensure_buffer_stack(); \ 342 YY_CURRENT_BUFFER_LVALUE = yy_create_buffer(yyin, YY_BUF_SIZE); \ 344 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ 347 #define yy_set_bol(at_bol) \ 349 if (!YY_CURRENT_BUFFER) \ 351 yyensure_buffer_stack(); \ 352 YY_CURRENT_BUFFER_LVALUE = yy_create_buffer(yyin, YY_BUF_SIZE); \ 354 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ 357 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) 361 typedef unsigned char YY_CHAR;
365 typedef int yy_state_type;
372 #define yytext_ptr yytext 374 static yy_state_type yy_get_previous_state(
void);
375 static yy_state_type yy_try_NUL_trans(yy_state_type current_state);
376 static int yy_get_next_buffer(
void);
377 static void yy_fatal_error(yyconst
char msg[]);
382 #define YY_DO_BEFORE_ACTION \ 383 (yytext_ptr) = yy_bp; \ 384 yyleng = (size_t)(yy_cp - yy_bp); \ 385 (yy_hold_char) = *yy_cp; \ 387 (yy_c_buf_p) = yy_cp; 389 #define YY_NUM_RULES 26 390 #define YY_END_OF_BUFFER 27 395 flex_int32_t yy_verify;
398 static yyconst flex_int16_t yy_accept[85] = {
399 0, 0, 0, 27, 26, 25, 2, 4, 26, 24, 23, 23, 24, 24, 24, 24, 24,
400 20, 26, 21, 0, 1, 24, 23, 24, 24, 24, 24, 24, 24, 24, 0, 3, 22,
401 9, 24, 24, 24, 24, 24, 5, 24, 24, 6, 24, 24, 24, 10, 24, 24, 24,
402 24, 7, 24, 24, 24, 19, 24, 24, 17, 24, 24, 24, 24, 11, 24, 24, 24,
403 24, 24, 24, 12, 14, 8, 24, 24, 24, 18, 15, 24, 24, 13, 24, 16, 0};
405 static yyconst flex_int32_t yy_ec[256] = {
406 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 1, 1, 1, 1, 1, 1, 1, 1,
407 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 4, 5, 1, 1,
408 1, 1, 1, 1, 1, 6, 1, 7, 1, 1, 8, 9, 9, 9, 9, 9, 9, 9, 9,
409 9, 1, 1, 1, 1, 1, 1, 1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 19,
410 20, 21, 22, 23, 19, 19, 24, 25, 26, 27, 19, 19, 19, 19, 19, 28, 29, 30, 1,
411 19, 1, 31, 31, 31, 31,
413 31, 31, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
414 32, 19, 19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
415 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
416 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
417 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
420 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
421 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
422 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
424 static yyconst flex_int32_t yy_meta[33] = {0, 1, 1, 2, 1, 1, 1, 3, 4, 4, 4,
425 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3,
426 3, 3, 3, 3, 3, 3, 1, 1, 1, 4, 3};
428 static yyconst flex_int16_t yy_base[89] = {
429 0, 0, 0, 117, 118, 118, 118, 118, 113, 0, 25, 27, 95, 14, 100,
430 24, 107, 118, 0, 118, 109, 118, 0, 34, 50, 85, 89, 85, 93, 81,
431 88, 0, 118, 0, 89, 93, 83, 84, 94, 85, 0, 75, 80, 90, 74,
432 83, 68, 0, 71, 29, 78, 66, 73, 65, 58, 60, 0, 55, 65, 0,
433 48, 55, 61, 51, 54, 54, 50, 41, 42, 30, 33, 37, 0, 45, 37,
434 26, 39, 0, 0, 28, 21, 30, 21, 0, 118, 81, 83, 87, 40};
436 static yyconst flex_int16_t yy_def[89] = {
437 0, 84, 1, 84, 84, 84, 84, 84, 85, 86, 86, 86, 86, 86, 86, 86, 86, 84,
438 87, 84, 85, 84, 86, 86, 86, 86, 86, 86, 86, 86, 86, 88, 84, 24, 86, 86,
439 86, 86, 86, 86, 88, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86,
440 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86,
441 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 0, 84, 84, 84, 84};
443 static yyconst flex_int16_t yy_nxt[151] = {
444 0, 4, 5, 6, 7, 8, 4, 9, 10, 11, 12, 9, 13, 14, 9, 9, 9,
445 9, 9, 9, 9, 9, 9, 9, 9, 15, 9, 16, 17, 18, 19, 9, 9, 23,
446 23, 23, 23, 26, 29, 54, 27, 30, 23, 23, 40, 83, 82, 81, 80, 79, 78,
447 77, 76, 75, 55, 74, 73, 24, 33, 33, 33, 33, 33, 33, 33, 33, 72, 71,
448 70, 69, 68, 67, 66, 65, 64, 63, 62, 61, 60, 59, 58, 33, 20, 20, 20,
449 20, 22, 22, 32, 57, 32, 32, 56, 53, 52, 51, 50, 49, 48, 47, 46,
451 45, 44, 43, 42, 41, 39, 38, 37, 36, 35, 34, 21, 31, 28, 25, 21, 84,
452 3, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84,
453 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84};
455 static yyconst flex_int16_t yy_chk[151] = {
456 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
457 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10,
458 10, 11, 11, 13, 15, 49, 13, 15, 23, 23, 88, 82, 81, 80, 79, 76, 75,
459 74, 73, 71, 49, 70, 69, 10, 24, 24, 24, 24, 24, 24, 24, 24, 68, 67,
460 66, 65, 64, 63, 62, 61, 60, 58, 57, 55, 54, 53, 52, 24, 85, 85, 85,
461 85, 86, 86, 87, 51, 87, 87, 50, 48, 46, 45, 44, 43, 42, 41, 39,
463 38, 37, 36, 35, 34, 30, 29, 28, 27, 26, 25, 20, 16, 14, 12, 8, 3,
464 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84,
465 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84};
467 static yy_state_type yy_last_accepting_state;
468 static char *yy_last_accepting_cpos;
470 extern int yy_flex_debug;
471 int yy_flex_debug = 0;
476 #define REJECT reject_used_but_not_detected 477 #define yymore() yymore_used_but_not_detected 478 #define YY_MORE_ADJ 0 479 #define YY_RESTORE_YY_MORE_OFFSET 493 type_t unicode_var();
500 #ifndef YY_NO_UNISTD_H 508 #ifndef YY_EXTRA_TYPE 509 #define YY_EXTRA_TYPE void * 512 static int yy_init_globals(
void);
517 int yylex_destroy(
void);
519 int yyget_debug(
void);
521 void yyset_debug(
int debug_flag);
523 YY_EXTRA_TYPE yyget_extra(
void);
525 void yyset_extra(YY_EXTRA_TYPE user_defined);
527 FILE *yyget_in(
void);
529 void yyset_in(
FILE *in_str);
531 FILE *yyget_out(
void);
533 void yyset_out(
FILE *out_str);
535 int yyget_leng(
void);
537 char *yyget_text(
void);
539 int yyget_lineno(
void);
541 void yyset_lineno(
int line_number);
547 #ifndef YY_SKIP_YYWRAP 549 extern "C" int yywrap(
void);
551 extern int yywrap(
void);
555 static void yyunput(
int c,
char *buf_ptr);
558 static void yy_flex_strncpy(
char *, yyconst
char *,
int);
561 #ifdef YY_NEED_STRLEN 562 static int yy_flex_strlen(yyconst
char *);
568 static int yyinput(
void);
570 static int input(
void);
576 #ifndef YY_READ_BUF_SIZE 579 #define YY_READ_BUF_SIZE 16384 581 #define YY_READ_BUF_SIZE 8192 593 if (fwrite(yytext, yyleng, 1, yyout)) \ 603 #define YY_INPUT(buf, result, max_size) \ 604 if (YY_CURRENT_BUFFER_LVALUE->yy_is_interactive) \ 608 for (n = 0; n < max_size && (c = getc(yyin)) != EOF && c != '\n'; ++n) \ 611 buf[n++] = (char) c; \ 612 if (c == EOF && ferror(yyin)) \ 613 YY_FATAL_ERROR("input in flex scanner failed"); \ 619 while ((result = fread(buf, 1, max_size, yyin)) == 0 && ferror(yyin)) \ 621 if (errno != EINTR) \ 623 YY_FATAL_ERROR("input in flex scanner failed"); \ 638 #define yyterminate() return YY_NULL 642 #ifndef YY_START_STACK_INCR 643 #define YY_START_STACK_INCR 25 647 #ifndef YY_FATAL_ERROR 648 #define YY_FATAL_ERROR(msg) yy_fatal_error(msg) 657 #define YY_DECL_IS_OURS 1 659 extern int yylex(
void);
661 #define YY_DECL int yylex(void) 667 #ifndef YY_USER_ACTION 668 #define YY_USER_ACTION 673 #define YY_BREAK break; 676 #define YY_RULE_SETUP YY_USER_ACTION 682 register yy_state_type yy_current_state;
683 register char *yy_cp, *yy_bp;
707 if (!YY_CURRENT_BUFFER)
709 yyensure_buffer_stack();
710 YY_CURRENT_BUFFER_LVALUE = yy_create_buffer(yyin, YY_BUF_SIZE);
713 yy_load_buffer_state();
718 yy_cp = (yy_c_buf_p);
721 *yy_cp = (yy_hold_char);
728 yy_current_state = (yy_start);
732 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
733 if (yy_accept[yy_current_state])
735 (yy_last_accepting_state) = yy_current_state;
736 (yy_last_accepting_cpos) = yy_cp;
738 while (yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state)
740 yy_current_state = (int) yy_def[yy_current_state];
741 if (yy_current_state >= 85)
742 yy_c = yy_meta[(
unsigned int) yy_c];
745 yy_nxt[yy_base[yy_current_state] + (
unsigned int) yy_c];
747 }
while (yy_base[yy_current_state] != 118);
750 yy_act = yy_accept[yy_current_state];
753 yy_cp = (yy_last_accepting_cpos);
754 yy_current_state = (yy_last_accepting_state);
755 yy_act = yy_accept[yy_current_state];
766 *yy_cp = (yy_hold_char);
767 yy_cp = (yy_last_accepting_cpos);
768 yy_current_state = (yy_last_accepting_state);
772 *yy_cp = (yy_hold_char);
773 (yy_c_buf_p) = yy_cp -= 1;
792 yylval.c = yytext[1];
807 yylval = unicode_var();
864 return CTRL_SHIFT_ALT;
885 return CTRL_SHIFT_ALTGR;
953 case YY_STATE_EOF(INITIAL):
966 case YY_END_OF_BUFFER:
969 int yy_amount_of_matched_text =
970 (int) (yy_cp - (yytext_ptr)) - 1;
973 *yy_cp = (yy_hold_char);
974 YY_RESTORE_YY_MORE_OFFSET
976 if (YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW)
987 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
988 YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
989 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
1001 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)])
1003 yy_state_type yy_next_state;
1005 (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
1007 yy_current_state = yy_get_previous_state();
1018 yy_next_state = yy_try_NUL_trans(yy_current_state);
1020 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
1025 yy_cp = ++(yy_c_buf_p);
1026 yy_current_state = yy_next_state;
1032 yy_cp = (yy_c_buf_p);
1033 goto yy_find_action;
1038 switch (yy_get_next_buffer())
1040 case EOB_ACT_END_OF_FILE:
1042 (yy_did_buffer_switch_on_eof) = 0;
1055 (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
1057 yy_act = YY_STATE_EOF(YY_START);
1063 if (!(yy_did_buffer_switch_on_eof))
1069 case EOB_ACT_CONTINUE_SCAN:
1071 (yytext_ptr) + yy_amount_of_matched_text;
1073 yy_current_state = yy_get_previous_state();
1075 yy_cp = (yy_c_buf_p);
1076 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
1079 case EOB_ACT_LAST_MATCH:
1080 (yy_c_buf_p) = &YY_CURRENT_BUFFER_LVALUE
1081 ->yy_ch_buf[(yy_n_chars)];
1083 yy_current_state = yy_get_previous_state();
1085 yy_cp = (yy_c_buf_p);
1086 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
1087 goto yy_find_action;
1094 "fatal flex scanner internal error--no action found");
1106 static int yy_get_next_buffer(
void)
1108 register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
1109 register char *source = (yytext_ptr);
1110 register int number_to_move, i;
1113 if ((yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1])
1115 "fatal flex scanner internal error--end of buffer missed");
1117 if (YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0)
1119 if ((yy_c_buf_p) - (yytext_ptr) -YY_MORE_ADJ == 1)
1124 return EOB_ACT_END_OF_FILE;
1132 return EOB_ACT_LAST_MATCH;
1139 number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1;
1141 for (i = 0; i < number_to_move; ++i)
1142 *(dest++) = *(source++);
1144 if (YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING)
1148 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
1153 YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
1155 while (num_to_read <= 0)
1159 YY_BUFFER_STATE b = YY_CURRENT_BUFFER;
1161 int yy_c_buf_p_offset = (int) ((yy_c_buf_p) -b->yy_ch_buf);
1163 if (b->yy_is_our_buffer)
1165 int new_size = b->yy_buf_size * 2;
1168 b->yy_buf_size += b->yy_buf_size / 8;
1170 b->yy_buf_size *= 2;
1172 b->yy_ch_buf = (
char *)
1174 yyrealloc((
void *) b->yy_ch_buf, b->yy_buf_size + 2);
1181 YY_FATAL_ERROR(
"fatal error - scanner input buffer overflow");
1183 (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
1186 YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
1189 if (num_to_read > YY_READ_BUF_SIZE)
1190 num_to_read = YY_READ_BUF_SIZE;
1194 (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
1195 (yy_n_chars), (
size_t) num_to_read);
1197 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1200 if ((yy_n_chars) == 0)
1202 if (number_to_move == YY_MORE_ADJ)
1204 ret_val = EOB_ACT_END_OF_FILE;
1210 ret_val = EOB_ACT_LAST_MATCH;
1211 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_EOF_PENDING;
1216 ret_val = EOB_ACT_CONTINUE_SCAN;
1218 if ((yy_size_t)((yy_n_chars) + number_to_move) >
1219 YY_CURRENT_BUFFER_LVALUE->yy_buf_size)
1222 yy_size_t new_size =
1223 (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
1224 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (
char *) yyrealloc(
1225 (
void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, new_size);
1226 if (!YY_CURRENT_BUFFER_LVALUE->yy_ch_buf)
1227 YY_FATAL_ERROR(
"out of dynamic memory in yy_get_next_buffer()");
1230 (yy_n_chars) += number_to_move;
1231 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
1232 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] =
1233 YY_END_OF_BUFFER_CHAR;
1235 (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
1242 static yy_state_type yy_get_previous_state(
void)
1244 register yy_state_type yy_current_state;
1245 register char *yy_cp;
1247 yy_current_state = (yy_start);
1249 for (yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp)
1251 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
1252 if (yy_accept[yy_current_state])
1254 (yy_last_accepting_state) = yy_current_state;
1255 (yy_last_accepting_cpos) = yy_cp;
1257 while (yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state)
1259 yy_current_state = (int) yy_def[yy_current_state];
1260 if (yy_current_state >= 85)
1261 yy_c = yy_meta[(
unsigned int) yy_c];
1264 yy_nxt[yy_base[yy_current_state] + (
unsigned int) yy_c];
1267 return yy_current_state;
1275 static yy_state_type yy_try_NUL_trans(yy_state_type yy_current_state)
1277 register int yy_is_jam;
1278 register char *yy_cp = (yy_c_buf_p);
1280 register YY_CHAR yy_c = 1;
1281 if (yy_accept[yy_current_state])
1283 (yy_last_accepting_state) = yy_current_state;
1284 (yy_last_accepting_cpos) = yy_cp;
1286 while (yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state)
1288 yy_current_state = (int) yy_def[yy_current_state];
1289 if (yy_current_state >= 85)
1290 yy_c = yy_meta[(
unsigned int) yy_c];
1292 yy_current_state = yy_nxt[yy_base[yy_current_state] + (
unsigned int) yy_c];
1293 yy_is_jam = (yy_current_state == 84);
1295 return yy_is_jam ? 0 : yy_current_state;
1298 static void yyunput(
int c,
register char *yy_bp)
1300 register char *yy_cp;
1302 yy_cp = (yy_c_buf_p);
1305 *yy_cp = (yy_hold_char);
1307 if (yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2)
1310 register int number_to_move = (yy_n_chars) + 2;
1311 register char *dest =
1312 &YY_CURRENT_BUFFER_LVALUE
1313 ->yy_ch_buf[YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
1314 register char *source =
1315 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
1317 while (source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf)
1318 *--dest = *--source;
1320 yy_cp += (int) (dest - source);
1321 yy_bp += (int) (dest - source);
1322 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) =
1323 YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
1325 if (yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2)
1326 YY_FATAL_ERROR(
"flex scanner push-back overflow");
1329 *--yy_cp = (char) c;
1331 (yytext_ptr) = yy_bp;
1332 (yy_hold_char) = *yy_cp;
1333 (yy_c_buf_p) = yy_cp;
1338 static int yyinput(
void)
1340 static int input(
void)
1346 *(yy_c_buf_p) = (yy_hold_char);
1348 if (*(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR)
1354 if ((yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)])
1356 *(yy_c_buf_p) =
'\0';
1360 int offset = (yy_c_buf_p) - (yytext_ptr);
1363 switch (yy_get_next_buffer())
1365 case EOB_ACT_LAST_MATCH:
1381 case EOB_ACT_END_OF_FILE:
1386 if (!(yy_did_buffer_switch_on_eof))
1395 case EOB_ACT_CONTINUE_SCAN:
1396 (yy_c_buf_p) = (yytext_ptr) + offset;
1402 c = *(
unsigned char *) (yy_c_buf_p);
1403 *(yy_c_buf_p) =
'\0';
1404 (yy_hold_char) = *++(yy_c_buf_p);
1415 void yyrestart(
FILE *input_file)
1417 if (!YY_CURRENT_BUFFER)
1419 yyensure_buffer_stack();
1420 YY_CURRENT_BUFFER_LVALUE = yy_create_buffer(yyin, YY_BUF_SIZE);
1423 yy_init_buffer(YY_CURRENT_BUFFER, input_file);
1424 yy_load_buffer_state();
1431 void yy_switch_to_buffer(YY_BUFFER_STATE new_buffer)
1438 yyensure_buffer_stack();
1439 if (YY_CURRENT_BUFFER == new_buffer)
1442 if (YY_CURRENT_BUFFER)
1445 *(yy_c_buf_p) = (yy_hold_char);
1446 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
1447 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1450 YY_CURRENT_BUFFER_LVALUE = new_buffer;
1451 yy_load_buffer_state();
1458 (yy_did_buffer_switch_on_eof) = 1;
1461 static void yy_load_buffer_state(
void)
1463 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1464 (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
1465 yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
1466 (yy_hold_char) = *(yy_c_buf_p);
1476 YY_BUFFER_STATE yy_create_buffer(
FILE *file,
int size)
1482 YY_FATAL_ERROR(
"out of dynamic memory in yy_create_buffer()");
1484 b->yy_buf_size = size;
1489 b->yy_ch_buf = (
char *)
yyalloc(b->yy_buf_size + 2);
1491 YY_FATAL_ERROR(
"out of dynamic memory in yy_create_buffer()");
1493 b->yy_is_our_buffer = 1;
1495 yy_init_buffer(b, file);
1504 void yy_delete_buffer(YY_BUFFER_STATE b)
1509 if (b == YY_CURRENT_BUFFER)
1510 YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
1512 if (b->yy_is_our_buffer)
1513 yyfree((
void *) b->yy_ch_buf);
1519 extern int isatty(
int);
1526 static void yy_init_buffer(YY_BUFFER_STATE b,
FILE *file)
1533 b->yy_input_file = file;
1534 b->yy_fill_buffer = 1;
1540 if (b != YY_CURRENT_BUFFER)
1546 b->yy_is_interactive = file ? (isatty(fileno(file)) > 0) : 0;
1555 void yy_flush_buffer(YY_BUFFER_STATE b)
1566 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
1567 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
1569 b->yy_buf_pos = &b->yy_ch_buf[0];
1572 b->yy_buffer_status = YY_BUFFER_NEW;
1574 if (b == YY_CURRENT_BUFFER)
1575 yy_load_buffer_state();
1584 void yypush_buffer_state(YY_BUFFER_STATE new_buffer)
1586 if (new_buffer == NULL)
1589 yyensure_buffer_stack();
1592 if (YY_CURRENT_BUFFER)
1595 *(yy_c_buf_p) = (yy_hold_char);
1596 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
1597 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1601 if (YY_CURRENT_BUFFER)
1602 (yy_buffer_stack_top)++;
1603 YY_CURRENT_BUFFER_LVALUE = new_buffer;
1606 yy_load_buffer_state();
1607 (yy_did_buffer_switch_on_eof) = 1;
1614 void yypop_buffer_state(
void)
1616 if (!YY_CURRENT_BUFFER)
1619 yy_delete_buffer(YY_CURRENT_BUFFER);
1620 YY_CURRENT_BUFFER_LVALUE = NULL;
1621 if ((yy_buffer_stack_top) > 0)
1622 --(yy_buffer_stack_top);
1624 if (YY_CURRENT_BUFFER)
1626 yy_load_buffer_state();
1627 (yy_did_buffer_switch_on_eof) = 1;
1634 static void yyensure_buffer_stack(
void)
1638 if (!(yy_buffer_stack))
1647 if (!(yy_buffer_stack))
1648 YY_FATAL_ERROR(
"out of dynamic memory in yyensure_buffer_stack()");
1651 (yy_buffer_stack), 0,
1654 (yy_buffer_stack_max) = num_to_alloc;
1655 (yy_buffer_stack_top) = 0;
1659 if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1)
1664 num_to_alloc = (yy_buffer_stack_max) + grow_size;
1667 if (!(yy_buffer_stack))
1668 YY_FATAL_ERROR(
"out of dynamic memory in yyensure_buffer_stack()");
1672 (yy_buffer_stack) + (yy_buffer_stack_max), 0,
1674 (yy_buffer_stack_max) = num_to_alloc;
1685 YY_BUFFER_STATE yy_scan_buffer(
char *base, yy_size_t size)
1689 if (size < 2 || base[size - 2] != YY_END_OF_BUFFER_CHAR ||
1690 base[size - 1] != YY_END_OF_BUFFER_CHAR)
1696 YY_FATAL_ERROR(
"out of dynamic memory in yy_scan_buffer()");
1698 b->yy_buf_size = size - 2;
1699 b->yy_buf_pos = b->yy_ch_buf = base;
1700 b->yy_is_our_buffer = 0;
1701 b->yy_input_file = 0;
1702 b->yy_n_chars = b->yy_buf_size;
1703 b->yy_is_interactive = 0;
1705 b->yy_fill_buffer = 0;
1706 b->yy_buffer_status = YY_BUFFER_NEW;
1708 yy_switch_to_buffer(b);
1721 YY_BUFFER_STATE yy_scan_string(yyconst
char *yystr)
1723 return yy_scan_bytes(yystr, strlen(yystr));
1733 YY_BUFFER_STATE yy_scan_bytes(yyconst
char *yybytes,
int _yybytes_len)
1741 n = _yybytes_len + 2;
1744 YY_FATAL_ERROR(
"out of dynamic memory in yy_scan_bytes()");
1746 for (i = 0; i < _yybytes_len; ++i)
1747 buf[i] = yybytes[i];
1749 buf[_yybytes_len] = buf[_yybytes_len + 1] = YY_END_OF_BUFFER_CHAR;
1751 b = yy_scan_buffer(buf, n);
1753 YY_FATAL_ERROR(
"bad buffer in yy_scan_bytes()");
1758 b->yy_is_our_buffer = 1;
1763 #ifndef YY_EXIT_FAILURE 1764 #define YY_EXIT_FAILURE 2 1767 static void yy_fatal_error(yyconst
char *msg)
1769 (void) fprintf(stderr,
"%s\n", msg);
1770 exit(YY_EXIT_FAILURE);
1780 int yyless_macro_arg = (n); \ 1781 YY_LESS_LINENO(yyless_macro_arg); \ 1782 yytext[yyleng] = (yy_hold_char); \ 1783 (yy_c_buf_p) = yytext + yyless_macro_arg; \ 1784 (yy_hold_char) = *(yy_c_buf_p); \ 1785 *(yy_c_buf_p) = '\0'; \ 1786 yyleng = yyless_macro_arg; \ 1794 int yyget_lineno(
void)
1802 FILE *yyget_in(
void)
1810 FILE *yyget_out(
void)
1818 int yyget_leng(
void)
1827 char *yyget_text(
void)
1836 void yyset_lineno(
int line_number)
1838 yylineno = line_number;
1847 void yyset_in(
FILE *in_str)
1852 void yyset_out(
FILE *out_str)
1857 int yyget_debug(
void)
1859 return yy_flex_debug;
1862 void yyset_debug(
int bdebug)
1864 yy_flex_debug = bdebug;
1867 static int yy_init_globals(
void)
1873 (yy_buffer_stack) = 0;
1874 (yy_buffer_stack_top) = 0;
1875 (yy_buffer_stack_max) = 0;
1876 (yy_c_buf_p) = (
char *) 0;
1896 int yylex_destroy(
void)
1899 while (YY_CURRENT_BUFFER)
1901 yy_delete_buffer(YY_CURRENT_BUFFER);
1902 YY_CURRENT_BUFFER_LVALUE = NULL;
1903 yypop_buffer_state();
1907 yyfree((yy_buffer_stack));
1908 (yy_buffer_stack) = NULL;
1922 static void yy_flex_strncpy(
char *s1, yyconst
char *s2,
int n)
1925 for (i = 0; i < n; ++i)
1930 #ifdef YY_NEED_STRLEN 1931 static int yy_flex_strlen(yyconst
char *s)
1934 for (n = 0; s[n]; ++n)
1943 return (
void *) malloc(size);
1946 void *yyrealloc(
void *ptr, yy_size_t size)
1955 return (
void *) realloc((
char *) ptr, size);
1958 void yyfree(
void *ptr)
1963 #define YYTABLES_NAME "yytables" 1970 strncpy(toRet.str, yytext, yyleng);
1971 toRet.str[yyleng] =
'\0';
1978 toRet.n = atoi(yytext);
1982 type_t unicode_var()
1985 toRet.n = strtoul(yytext + 2, 0, 16);
1992 toRet.n = strtoul(yytext, 0, 16);