1 #line 2 "lex.he5das.cc"
3 #line 4 "lex.he5das.cc"
5 #define YY_INT_ALIGNED short int
9 #define yy_create_buffer he5das_create_buffer
10 #define yy_delete_buffer he5das_delete_buffer
11 #define yy_flex_debug he5das_flex_debug
12 #define yy_init_buffer he5das_init_buffer
13 #define yy_flush_buffer he5das_flush_buffer
14 #define yy_load_buffer_state he5das_load_buffer_state
15 #define yy_switch_to_buffer he5das_switch_to_buffer
17 #define yyleng he5dasleng
18 #define yylex he5daslex
19 #define yylineno he5daslineno
20 #define yyout he5dasout
21 #define yyrestart he5dasrestart
22 #define yytext he5dastext
23 #define yywrap he5daswrap
24 #define yyalloc he5dasalloc
25 #define yyrealloc he5dasrealloc
26 #define yyfree he5dasfree
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
69 typedef uint64_t flex_uint64_t;
81 #define INT8_MIN (-128)
84 #define INT16_MIN (-32767-1)
87 #define INT32_MIN (-2147483647-1)
90 #define INT8_MAX (127)
93 #define INT16_MAX (32767)
96 #define INT32_MAX (2147483647)
99 #define UINT8_MAX (255U)
102 #define UINT16_MAX (65535U)
105 #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 he5dasrestart(he5dasin )
160 #define YY_END_OF_BUFFER_CHAR 0
164 #define YY_BUF_SIZE 16384
169 #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
171 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
172 #define YY_TYPEDEF_YY_BUFFER_STATE
176 #ifndef YY_TYPEDEF_YY_SIZE_T
177 #define YY_TYPEDEF_YY_SIZE_T
185 #define EOB_ACT_CONTINUE_SCAN 0
186 #define EOB_ACT_END_OF_FILE 1
187 #define EOB_ACT_LAST_MATCH 2
189 #define YY_LESS_LINENO(n)
196 int yyless_macro_arg = (n); \
197 YY_LESS_LINENO(yyless_macro_arg);\
198 *yy_cp = (yy_hold_char); \
199 YY_RESTORE_YY_MORE_OFFSET \
200 (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
201 YY_DO_BEFORE_ACTION; \
205 #define unput(c) yyunput( c, (yytext_ptr) )
207 #ifndef YY_STRUCT_YY_BUFFER_STATE
208 #define YY_STRUCT_YY_BUFFER_STATE
209 struct yy_buffer_state
230 int yy_is_our_buffer;
237 int yy_is_interactive;
253 int yy_buffer_status;
255 #define YY_BUFFER_NEW 0
256 #define YY_BUFFER_NORMAL 1
267 #define YY_BUFFER_EOF_PENDING 2
273 static size_t yy_buffer_stack_top = 0;
274 static size_t yy_buffer_stack_max = 0;
283 #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
284 ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
290 #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
293 static char yy_hold_char;
298 static char *yy_c_buf_p = (
char *) 0;
299 static int yy_init = 0;
300 static int yy_start = 0;
305 static int yy_did_buffer_switch_on_eof;
315 static void he5dasensure_buffer_stack (
void );
316 static void he5das_load_buffer_state (
void );
319 #define YY_FLUSH_BUFFER he5das_flush_buffer(YY_CURRENT_BUFFER )
329 #define yy_new_buffer he5das_create_buffer
331 #define yy_set_interactive(is_interactive) \
333 if ( ! YY_CURRENT_BUFFER ){ \
334 he5dasensure_buffer_stack (); \
335 YY_CURRENT_BUFFER_LVALUE = \
336 he5das_create_buffer(he5dasin,YY_BUF_SIZE ); \
338 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
341 #define yy_set_bol(at_bol) \
343 if ( ! YY_CURRENT_BUFFER ){\
344 he5dasensure_buffer_stack (); \
345 YY_CURRENT_BUFFER_LVALUE = \
346 he5das_create_buffer(he5dasin,YY_BUF_SIZE ); \
348 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
351 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
355 #define he5daswrap(n) 1
356 #define YY_SKIP_YYWRAP
366 int he5daslineno = 1;
369 #define yytext_ptr he5dastext
371 static yy_state_type yy_get_previous_state (
void );
372 static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
373 static int yy_get_next_buffer (
void );
374 static void yy_fatal_error (
yyconst char msg[] );
379 #define YY_DO_BEFORE_ACTION \
380 (yytext_ptr) = yy_bp; \
381 (yytext_ptr) -= (yy_more_len); \
382 he5dasleng = (yy_size_t) (yy_cp - (yytext_ptr)); \
383 (yy_hold_char) = *yy_cp; \
385 (yy_c_buf_p) = yy_cp;
387 #define YY_NUM_RULES 30
388 #define YY_END_OF_BUFFER 31
398 0, 0, 25, 25, 19, 19, 31, 29, 15, 16,
399 24, 9, 11, 12, 9, 13, 9, 9, 6, 14,
400 10, 9, 9, 9, 9, 30, 25, 26, 28, 30,
401 19, 20, 30, 30, 15, 9, 9, 6, 7, 17,
402 7, 6, 9, 9, 9, 9, 9, 25, 26, 27,
403 19, 20, 21, 22, 18, 23, 7, 9, 7, 9,
404 5, 9, 9, 9, 9, 9, 9, 9, 9, 9,
405 1, 9, 9, 9, 9, 3, 9, 9, 9, 9,
406 9, 9, 8, 2, 9, 8, 4, 0
411 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
412 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
413 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
414 1, 2, 1, 4, 1, 1, 5, 1, 1, 6,
415 7, 8, 9, 10, 9, 11, 12, 13, 13, 13,
416 13, 13, 13, 13, 13, 13, 13, 5, 14, 1,
417 15, 1, 1, 1, 16, 17, 18, 19, 20, 16,
418 21, 16, 16, 22, 16, 16, 16, 23, 24, 25,
419 16, 26, 16, 27, 28, 16, 16, 16, 16, 16,
420 1, 29, 1, 1, 30, 1, 31, 5, 5, 5,
422 32, 5, 5, 5, 5, 5, 5, 5, 5, 5,
423 5, 33, 5, 5, 5, 34, 5, 5, 5, 5,
424 35, 5, 36, 1, 36, 1, 1, 1, 1, 1,
425 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
426 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
427 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
428 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
429 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
430 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
431 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
433 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
434 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
435 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
436 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
437 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
443 1, 1, 2, 3, 4, 1, 1, 5, 4, 1,
444 4, 4, 6, 1, 1, 6, 6, 6, 6, 6,
445 6, 6, 6, 6, 6, 6, 6, 6, 3, 6,
451 0, 0, 34, 36, 38, 40, 160, 161, 157, 161,
452 161, 0, 161, 161, 34, 161, 145, 149, 38, 161,
453 161, 125, 132, 128, 136, 161, 149, 161, 161, 0,
454 148, 161, 47, 0, 148, 0, 136, 41, 40, 161,
455 42, 55, 67, 114, 128, 122, 123, 141, 161, 161,
456 140, 161, 161, 161, 161, 161, 51, 129, 128, 109,
457 109, 110, 117, 109, 57, 110, 116, 98, 102, 102,
458 0, 90, 77, 81, 79, 0, 54, 57, 64, 67,
459 54, 59, 0, 0, 30, 0, 0, 161, 87, 93,
460 96, 102, 108, 114, 120, 126, 50
466 88, 1, 89, 89, 90, 90, 88, 88, 88, 88,
467 88, 91, 88, 88, 91, 88, 91, 91, 91, 88,
468 88, 91, 91, 91, 91, 88, 92, 88, 88, 93,
469 94, 88, 95, 96, 88, 91, 91, 91, 91, 88,
470 91, 91, 91, 91, 91, 91, 91, 92, 88, 88,
471 94, 88, 88, 88, 88, 88, 91, 91, 91, 91,
472 91, 91, 91, 91, 91, 91, 91, 91, 91, 91,
473 91, 91, 91, 91, 91, 91, 91, 91, 91, 91,
474 91, 91, 97, 91, 91, 97, 91, 0, 88, 88,
475 88, 88, 88, 88, 88, 88, 88
481 8, 9, 10, 11, 12, 13, 14, 8, 15, 16,
482 17, 18, 19, 20, 21, 12, 12, 12, 22, 23,
483 24, 12, 12, 25, 12, 12, 12, 12, 8, 12,
484 12, 12, 12, 12, 12, 26, 28, 29, 28, 29,
485 32, 26, 32, 26, 37, 33, 38, 33, 41, 54,
486 42, 41, 39, 42, 57, 86, 87, 43, 55, 43,
487 43, 43, 30, 57, 30, 41, 34, 42, 34, 43,
488 43, 43, 43, 43, 43, 58, 85, 69, 84, 59,
489 70, 83, 43, 82, 81, 80, 43, 27, 27, 27,
490 27, 27, 27, 31, 31, 31, 31, 31, 31, 36,
492 79, 36, 48, 48, 78, 48, 48, 48, 50, 77,
493 50, 50, 50, 50, 51, 51, 76, 51, 75, 51,
494 53, 53, 53, 53, 53, 53, 56, 74, 56, 56,
495 56, 56, 73, 72, 71, 68, 67, 66, 65, 64,
496 59, 59, 52, 49, 63, 62, 61, 60, 39, 35,
497 52, 49, 47, 46, 45, 44, 40, 39, 35, 88,
498 7, 88, 88, 88, 88, 88, 88, 88, 88, 88,
499 88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
500 88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
501 88, 88, 88, 88, 88, 88, 88
507 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
508 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
509 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
510 1, 1, 1, 1, 1, 1, 3, 3, 4, 4,
511 5, 5, 6, 6, 15, 5, 15, 6, 19, 33,
512 19, 38, 39, 38, 41, 97, 85, 19, 33, 39,
513 38, 41, 3, 57, 4, 42, 5, 42, 6, 19,
514 57, 39, 38, 41, 42, 43, 82, 65, 81, 43,
515 65, 80, 57, 79, 78, 77, 42, 89, 89, 89,
516 89, 89, 89, 90, 90, 90, 90, 90, 90, 91,
518 75, 91, 92, 92, 74, 92, 92, 92, 93, 73,
519 93, 93, 93, 93, 94, 94, 72, 94, 70, 94,
520 95, 95, 95, 95, 95, 95, 96, 69, 96, 96,
521 96, 96, 68, 67, 66, 64, 63, 62, 61, 60,
522 59, 58, 51, 48, 47, 46, 45, 44, 37, 35,
523 31, 27, 25, 24, 23, 22, 18, 17, 9, 7,
524 88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
525 88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
526 88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
527 88, 88, 88, 88, 88, 88, 88
531 static yy_state_type yy_last_accepting_state;
532 static char *yy_last_accepting_cpos;
535 int he5das_flex_debug = 0;
540 #define REJECT reject_used_but_not_detected
541 static int yy_more_flag = 0;
542 static int yy_more_len = 0;
543 #define yymore() ((yy_more_flag) = 1)
544 #define YY_MORE_ADJ (yy_more_len)
545 #define YY_RESTORE_YY_MORE_OFFSET
595 #line 51 "he5das.lex"
597 #define YY_PROTO(proto) proto
599 #define YYSTYPE char *
600 #define YY_DECL int he5daslex YY_PROTO(( void ))
601 #define YY_READ_BUF_SIZE 16384
602 #define ECHO if (fwrite( he5dastext, he5dasleng, 1, he5dasout )) {}
612 #include "he5das.tab.hh"
618 static int start_line;
622 #line 623 "lex.he5das.cc"
628 #ifndef YY_NO_UNISTD_H
636 #ifndef YY_EXTRA_TYPE
637 #define YY_EXTRA_TYPE void *
640 static int yy_init_globals (
void );
675 #ifndef YY_SKIP_YYWRAP
683 static void yyunput (
int c,
char *buf_ptr );
686 static void yy_flex_strncpy (
char *,
yyconst char *,
int );
689 #ifdef YY_NEED_STRLEN
690 static int yy_flex_strlen (
yyconst char * );
696 static int yyinput (
void );
698 static int input (
void );
704 #ifndef YY_READ_BUF_SIZE
705 #define YY_READ_BUF_SIZE 8192
713 #define ECHO fwrite( he5dastext, he5dasleng, 1, he5dasout )
720 #define YY_INPUT(buf,result,max_size) \
721 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
725 for ( n = 0; n < max_size && \
726 (c = getc( he5dasin )) != EOF && c != '\n'; ++n ) \
729 buf[n++] = (char) c; \
730 if ( c == EOF && ferror( he5dasin ) ) \
731 YY_FATAL_ERROR( "input in flex scanner failed" ); \
737 while ( (result = fread(buf, 1, max_size, he5dasin))==0 && ferror(he5dasin)) \
739 if( errno != EINTR) \
741 YY_FATAL_ERROR( "input in flex scanner failed" ); \
745 clearerr(he5dasin); \
757 #define yyterminate() return YY_NULL
761 #ifndef YY_START_STACK_INCR
762 #define YY_START_STACK_INCR 25
766 #ifndef YY_FATAL_ERROR
767 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
776 #define YY_DECL_IS_OURS 1
780 #define YY_DECL int he5daslex (void)
786 #ifndef YY_USER_ACTION
787 #define YY_USER_ACTION
792 #define YY_BREAK break;
795 #define YY_RULE_SETUP \
806 #line 103 "he5das.lex"
809 #line 810 "lex.he5das.cc"
829 he5dasensure_buffer_stack ();
834 he5das_load_buffer_state( );
840 if ( (yy_more_flag) )
845 yy_cp = (yy_c_buf_p);
848 *yy_cp = (yy_hold_char);
855 yy_current_state = (yy_start);
860 if ( yy_accept[yy_current_state] )
862 (yy_last_accepting_state) = yy_current_state;
863 (yy_last_accepting_cpos) = yy_cp;
865 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
867 yy_current_state = (int) yy_def[yy_current_state];
868 if ( yy_current_state >= 89 )
869 yy_c = yy_meta[(
unsigned int) yy_c];
874 while ( yy_base[yy_current_state] != 161 );
880 yy_cp = (yy_last_accepting_cpos);
881 yy_current_state = (yy_last_accepting_state);
893 *yy_cp = (yy_hold_char);
894 yy_cp = (yy_last_accepting_cpos);
895 yy_current_state = (yy_last_accepting_state);
900 #line 105 "he5das.lex"
905 #line 106 "he5das.lex"
910 #line 107 "he5das.lex"
915 #line 108 "he5das.lex"
920 #line 109 "he5das.lex"
925 #line 110 "he5das.lex"
930 #line 111 "he5das.lex"
935 #line 112 "he5das.lex"
940 #line 113 "he5das.lex"
945 #line 115 "he5das.lex"
950 #line 116 "he5das.lex"
955 #line 117 "he5das.lex"
960 #line 118 "he5das.lex"
965 #line 119 "he5das.lex"
970 #line 121 "he5das.lex"
976 #line 122 "he5das.lex"
980 #line 123 "he5das.lex"
985 #line 125 "he5das.lex"
990 #line 126 "he5das.lex"
1001 #line 133 "he5das.lex"
1007 #line 134 "he5das.lex"
1012 #line 135 "he5das.lex"
1018 #line 136 "he5das.lex"
1023 #line 137 "he5das.lex"
1027 #line 138 "he5das.lex"
1030 msg <<
"Unterminated comment (starts on line "
1031 << start_line <<
")";
1037 #line 145 "he5das.lex"
1042 #line 146 "he5das.lex"
1048 #line 147 "he5das.lex"
1053 #line 148 "he5das.lex"
1058 #line 149 "he5das.lex"
1068 #line 156 "he5das.lex"
1071 msg <<
"Unterminated quote (starts on line "
1072 << start_line <<
")";
1079 #line 163 "he5das.lex"
1082 fprintf(stderr,
"Character '%c' (%d) is not", *he5dastext, *he5dastext);
1083 fprintf(stderr,
" allowed (except within");
1084 fprintf(stderr,
" quotes) and has been ignored\n");
1090 #line 170 "he5das.lex"
1093 #line 1094 "lex.he5das.cc"
1098 int yy_amount_of_matched_text = (int) (yy_cp - (
yytext_ptr)) - 1;
1101 *yy_cp = (yy_hold_char);
1129 yy_state_type yy_next_state;
1131 (yy_c_buf_p) = (
yytext_ptr) + yy_amount_of_matched_text;
1133 yy_current_state = yy_get_previous_state( );
1144 yy_next_state = yy_try_NUL_trans( yy_current_state );
1148 if ( yy_next_state )
1151 yy_cp = ++(yy_c_buf_p);
1152 yy_current_state = yy_next_state;
1158 yy_cp = (yy_c_buf_p);
1159 goto yy_find_action;
1163 else switch ( yy_get_next_buffer( ) )
1167 (yy_did_buffer_switch_on_eof) = 0;
1188 if ( ! (yy_did_buffer_switch_on_eof) )
1198 yy_current_state = yy_get_previous_state( );
1200 yy_cp = (yy_c_buf_p);
1208 yy_current_state = yy_get_previous_state( );
1210 yy_cp = (yy_c_buf_p);
1212 goto yy_find_action;
1219 "fatal flex scanner internal error--no action found" );
1231 static int yy_get_next_buffer (
void)
1235 register int number_to_move, i;
1240 "fatal flex scanner internal error--end of buffer missed" );
1264 number_to_move = (int) ((yy_c_buf_p) - (
yytext_ptr)) - 1;
1266 for ( i = 0; i < number_to_move; ++i )
1267 *(dest++) = *(source++);
1280 while ( num_to_read <= 0 )
1286 int yy_c_buf_p_offset =
1287 (int) ((yy_c_buf_p) - b->yy_ch_buf);
1289 if ( b->yy_is_our_buffer )
1291 yy_size_t new_size = b->yy_buf_size * 2;
1293 if ( new_size <= 0 )
1294 b->yy_buf_size += b->yy_buf_size / 8;
1296 b->yy_buf_size *= 2;
1298 b->yy_ch_buf = (
char *)
1306 if ( ! b->yy_ch_buf )
1308 "fatal error - scanner input buffer overflow" );
1310 (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
1322 (yy_n_chars), num_to_read );
1327 if ( (yy_n_chars) == 0 )
1348 yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
1351 YY_FATAL_ERROR(
"out of dynamic memory in yy_get_next_buffer()" );
1354 (yy_n_chars) += number_to_move;
1365 static yy_state_type yy_get_previous_state (
void)
1368 register char *
yy_cp;
1370 yy_current_state = (yy_start);
1375 if ( yy_accept[yy_current_state] )
1377 (yy_last_accepting_state) = yy_current_state;
1378 (yy_last_accepting_cpos) = yy_cp;
1380 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1382 yy_current_state = (int) yy_def[yy_current_state];
1383 if ( yy_current_state >= 89 )
1384 yy_c = yy_meta[(
unsigned int) yy_c];
1386 yy_current_state = yy_nxt[yy_base[
yy_current_state] + (
unsigned int) yy_c];
1397 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
1399 register int yy_is_jam;
1400 register char *yy_cp = (yy_c_buf_p);
1403 if ( yy_accept[yy_current_state] )
1405 (yy_last_accepting_state) = yy_current_state;
1406 (yy_last_accepting_cpos) = yy_cp;
1408 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1410 yy_current_state = (int) yy_def[yy_current_state];
1411 if ( yy_current_state >= 89 )
1412 yy_c = yy_meta[(
unsigned int) yy_c];
1414 yy_current_state = yy_nxt[yy_base[
yy_current_state] + (
unsigned int) yy_c];
1415 yy_is_jam = (yy_current_state == 88);
1420 static void yyunput (
int c,
register char * yy_bp )
1422 register char *
yy_cp;
1424 yy_cp = (yy_c_buf_p);
1427 *yy_cp = (yy_hold_char);
1429 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
1432 register yy_size_t number_to_move = (yy_n_chars) + 2;
1435 register char *source =
1439 *--dest = *--source;
1441 yy_cp += (int) (dest - source);
1442 yy_bp += (int) (dest - source);
1446 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
1450 *--yy_cp = (char) c;
1453 (yy_hold_char) = *yy_cp;
1454 (yy_c_buf_p) = yy_cp;
1459 static int yyinput (
void)
1461 static int input (
void)
1467 *(yy_c_buf_p) = (yy_hold_char);
1477 *(yy_c_buf_p) =
'\0';
1484 switch ( yy_get_next_buffer( ) )
1507 if ( ! (yy_did_buffer_switch_on_eof) )
1523 c = *(
unsigned char *) (yy_c_buf_p);
1524 *(yy_c_buf_p) =
'\0';
1525 (yy_hold_char) = *++(yy_c_buf_p);
1540 he5dasensure_buffer_stack ();
1546 he5das_load_buffer_state( );
1561 he5dasensure_buffer_stack ();
1568 *(yy_c_buf_p) = (yy_hold_char);
1574 he5das_load_buffer_state( );
1581 (yy_did_buffer_switch_on_eof) = 1;
1584 static void he5das_load_buffer_state (
void)
1589 (yy_hold_char) = *(yy_c_buf_p);
1604 YY_FATAL_ERROR(
"out of dynamic memory in he5das_create_buffer()" );
1606 b->yy_buf_size = size;
1611 b->yy_ch_buf = (
char *)
he5dasalloc(b->yy_buf_size + 2 );
1612 if ( ! b->yy_ch_buf )
1613 YY_FATAL_ERROR(
"out of dynamic memory in he5das_create_buffer()" );
1615 b->yy_is_our_buffer = 1;
1617 he5das_init_buffer(b,file );
1635 if ( b->yy_is_our_buffer )
1642 extern int isatty (
int );
1656 b->yy_input_file = file;
1657 b->yy_fill_buffer = 1;
1664 b->yy_bs_lineno = 1;
1665 b->yy_bs_column = 0;
1668 b->yy_is_interactive = file ? (
isatty( fileno(file) ) > 0) : 0;
1691 b->yy_buf_pos = &b->yy_ch_buf[0];
1697 he5das_load_buffer_state( );
1708 if (new_buffer ==
NULL)
1711 he5dasensure_buffer_stack();
1717 *(yy_c_buf_p) = (yy_hold_char);
1724 (yy_buffer_stack_top)++;
1728 he5das_load_buffer_state( );
1729 (yy_did_buffer_switch_on_eof) = 1;
1743 if ((yy_buffer_stack_top) > 0)
1744 --(yy_buffer_stack_top);
1747 he5das_load_buffer_state( );
1748 (yy_did_buffer_switch_on_eof) = 1;
1755 static void he5dasensure_buffer_stack (
void)
1759 if (!(yy_buffer_stack)) {
1766 (yy_buffer_stack) = (
struct yy_buffer_state**)
he5dasalloc
1767 (num_to_alloc *
sizeof(
struct yy_buffer_state*)
1769 if ( ! (yy_buffer_stack) )
1770 YY_FATAL_ERROR(
"out of dynamic memory in he5dasensure_buffer_stack()" );
1772 memset((yy_buffer_stack), 0, num_to_alloc *
sizeof(
struct yy_buffer_state*));
1774 (yy_buffer_stack_max) = num_to_alloc;
1775 (yy_buffer_stack_top) = 0;
1779 if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
1784 num_to_alloc = (yy_buffer_stack_max) + grow_size;
1787 num_to_alloc *
sizeof(
struct yy_buffer_state*)
1789 if ( ! (yy_buffer_stack) )
1790 YY_FATAL_ERROR(
"out of dynamic memory in he5dasensure_buffer_stack()" );
1793 memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size *
sizeof(
struct yy_buffer_state*));
1794 (yy_buffer_stack_max) = num_to_alloc;
1816 YY_FATAL_ERROR(
"out of dynamic memory in he5das_scan_buffer()" );
1818 b->yy_buf_size = size - 2;
1819 b->yy_buf_pos = b->yy_ch_buf = base;
1820 b->yy_is_our_buffer = 0;
1821 b->yy_input_file = 0;
1822 b->yy_n_chars = b->yy_buf_size;
1823 b->yy_is_interactive = 0;
1825 b->yy_fill_buffer = 0;
1861 n = _yybytes_len + 2;
1864 YY_FATAL_ERROR(
"out of dynamic memory in he5das_scan_bytes()" );
1866 for ( i = 0; i < _yybytes_len; ++i )
1867 buf[i] = yybytes[i];
1878 b->yy_is_our_buffer = 1;
1883 #ifndef YY_EXIT_FAILURE
1884 #define YY_EXIT_FAILURE 2
1887 static void yy_fatal_error (
yyconst char* msg )
1889 (void) fprintf( stderr,
"%s\n", msg );
1900 int yyless_macro_arg = (n); \
1901 YY_LESS_LINENO(yyless_macro_arg);\
1902 he5dastext[he5dasleng] = (yy_hold_char); \
1903 (yy_c_buf_p) = he5dastext + yyless_macro_arg; \
1904 (yy_hold_char) = *(yy_c_buf_p); \
1905 *(yy_c_buf_p) = '\0'; \
1906 he5dasleng = yyless_macro_arg; \
1961 he5daslineno = line_number;
1987 he5das_flex_debug = bdebug ;
1990 static int yy_init_globals (
void)
1996 (yy_buffer_stack) = 0;
1997 (yy_buffer_stack_top) = 0;
1998 (yy_buffer_stack_max) = 0;
1999 (yy_c_buf_p) = (
char *) 0;
2031 (yy_buffer_stack) =
NULL;
2045 static void yy_flex_strncpy (
char* s1,
yyconst char * s2,
int n )
2048 for ( i = 0; i < n; ++i )
2053 #ifdef YY_NEED_STRLEN
2054 static int yy_flex_strlen (
yyconst char * s )
2057 for ( n = 0; s[n]; ++n )
2066 return (
void *)
malloc( size );
2078 return (
void *) realloc( (
char *) ptr, size );
2083 free( (
char *) ptr );
2086 #define YYTABLES_NAME "yytables"
2088 #line 170 "he5das.lex"
YY_BUFFER_STATE he5das_create_buffer(FILE *file, int size)
Allocate and initialize an input buffer state.
void he5dasset_debug(int debug_flag)
FILE * he5dasget_in(void)
Get the input stream.
FILE * he5dasget_out(void)
Get the output stream.
#define EOB_ACT_LAST_MATCH
#define YY_FATAL_ERROR(msg)
void he5das_flush_buffer(YY_BUFFER_STATE b)
Discard all buffered characters.
void he5dasset_extra(YY_EXTRA_TYPE user_defined)
YY_EXTRA_TYPE he5dasget_extra(void)
YY_BUFFER_STATE he5das_scan_bytes(yyconst char *bytes, yy_size_t len)
Setup the input buffer state to scan the given bytes.
YY_BUFFER_STATE he5das_scan_buffer(char *base, yy_size_t size)
Setup the input buffer state to scan directly from a user-specified character buffer.
#define YY_BUFFER_EOF_PENDING
#define EOB_ACT_END_OF_FILE
unsigned int flex_uint32_t
void he5das_delete_buffer(YY_BUFFER_STATE b)
Destroy the buffer.
#define YY_END_OF_BUFFER_CHAR
int he5dasget_lineno(void)
Get the current line number.
static class NCMLUtil overview
#define YY_DO_BEFORE_ACTION
#define YY_INPUT(buf, result, max_size)
void he5das_switch_to_buffer(YY_BUFFER_STATE new_buffer)
Switch to a different input buffer.
YY_DECL register yy_state_type yy_current_state
The main scanner function which does all the work.
void he5dasset_out(FILE *out_str)
void he5dasset_lineno(int line_number)
Set the current line number.
void he5daspop_buffer_state(void)
Removes and deletes the top of the stack, if present.
struct yy_buffer_state * YY_BUFFER_STATE
#define YY_RESTORE_YY_MORE_OFFSET
YY_BUFFER_STATE he5das_scan_string(yyconst char *yy_str)
Setup the input buffer state to scan a string.
void * he5dasrealloc(void *, yy_size_t)
#define EOB_ACT_CONTINUE_SCAN
void he5dasset_in(FILE *in_str)
Set the input stream.
unsigned short int flex_uint16_t
void he5dasrestart(FILE *input_file)
Immediately switch to a different input stream.
#define YY_CURRENT_BUFFER_LVALUE
void * he5dasalloc(yy_size_t)
int he5daslex_destroy(void)
void he5daspush_buffer_state(YY_BUFFER_STATE new_buffer)
Pushes the new state onto the stack.
yy_size_t he5dasget_leng(void)
Get the length of the current token.
#define YY_CURRENT_BUFFER
struct yy_buffer_state * YY_BUFFER_STATE
char * he5dasget_text(void)
Get the current token.
#define YY_STATE_EOF(state)
unsigned char flex_uint8_t
int he5dasget_debug(void)