1 #line 2 "lex.he5dds.cc"
3 #line 4 "lex.he5dds.cc"
5 #define YY_INT_ALIGNED short int
9 #define yy_create_buffer he5dds_create_buffer
10 #define yy_delete_buffer he5dds_delete_buffer
11 #define yy_flex_debug he5dds_flex_debug
12 #define yy_init_buffer he5dds_init_buffer
13 #define yy_flush_buffer he5dds_flush_buffer
14 #define yy_load_buffer_state he5dds_load_buffer_state
15 #define yy_switch_to_buffer he5dds_switch_to_buffer
17 #define yyleng he5ddsleng
18 #define yylex he5ddslex
19 #define yylineno he5ddslineno
20 #define yyout he5ddsout
21 #define yyrestart he5ddsrestart
22 #define yytext he5ddstext
23 #define yywrap he5ddswrap
24 #define yyalloc he5ddsalloc
25 #define yyrealloc he5ddsrealloc
26 #define yyfree he5ddsfree
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 he5ddsrestart(he5ddsin )
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 he5ddsensure_buffer_stack (
void );
316 static void he5dds_load_buffer_state (
void );
319 #define YY_FLUSH_BUFFER he5dds_flush_buffer(YY_CURRENT_BUFFER )
329 #define yy_new_buffer he5dds_create_buffer
331 #define yy_set_interactive(is_interactive) \
333 if ( ! YY_CURRENT_BUFFER ){ \
334 he5ddsensure_buffer_stack (); \
335 YY_CURRENT_BUFFER_LVALUE = \
336 he5dds_create_buffer(he5ddsin,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 he5ddsensure_buffer_stack (); \
345 YY_CURRENT_BUFFER_LVALUE = \
346 he5dds_create_buffer(he5ddsin,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 he5ddswrap(n) 1
356 #define YY_SKIP_YYWRAP
366 int he5ddslineno = 1;
369 #define yytext_ptr he5ddstext
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 he5ddsleng = (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 45
388 #define YY_END_OF_BUFFER 46
398 0, 0, 40, 40, 35, 35, 46, 44, 33, 34,
399 26, 31, 26, 28, 29, 26, 30, 26, 6, 32,
400 27, 26, 26, 26, 26, 26, 26, 26, 26, 26,
401 26, 26, 26, 45, 40, 41, 43, 45, 35, 36,
402 45, 45, 33, 26, 26, 26, 6, 7, 7, 6,
403 26, 26, 26, 26, 26, 26, 26, 26, 26, 26,
404 26, 26, 26, 26, 26, 26, 26, 26, 26, 40,
405 41, 42, 35, 36, 37, 38, 39, 7, 26, 7,
406 26, 26, 26, 26, 5, 26, 26, 26, 26, 26,
407 26, 26, 26, 26, 26, 26, 26, 26, 26, 26,
409 26, 26, 26, 26, 26, 26, 26, 26, 26, 26,
410 26, 20, 26, 26, 26, 26, 26, 26, 26, 26,
411 26, 26, 26, 26, 26, 1, 26, 26, 26, 26,
412 26, 26, 26, 26, 26, 12, 13, 26, 26, 26,
413 26, 26, 26, 26, 26, 26, 26, 26, 26, 26,
414 3, 26, 26, 26, 26, 19, 26, 16, 26, 26,
415 22, 26, 26, 26, 26, 26, 26, 26, 26, 26,
416 26, 26, 26, 26, 26, 26, 26, 26, 26, 17,
417 26, 26, 26, 26, 26, 26, 26, 26, 9, 26,
418 2, 26, 26, 26, 26, 26, 26, 18, 26, 26,
420 26, 9, 26, 4, 26, 26, 26, 26, 8, 26,
421 26, 26, 26, 26, 11, 26, 26, 26, 26, 26,
422 26, 25, 26, 26, 26, 26, 24, 21, 26, 26,
423 26, 26, 26, 26, 26, 23, 15, 26, 26, 26,
424 26, 26, 26, 10, 26, 14, 0
429 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
430 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
431 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
432 1, 4, 1, 5, 1, 1, 6, 1, 1, 7,
433 8, 9, 10, 11, 10, 12, 13, 14, 14, 14,
434 14, 14, 14, 14, 14, 14, 14, 6, 15, 1,
435 16, 1, 1, 1, 17, 18, 19, 20, 21, 22,
436 23, 24, 24, 25, 24, 26, 27, 28, 29, 30,
437 24, 31, 32, 33, 34, 24, 24, 35, 36, 37,
438 1, 38, 1, 1, 39, 1, 40, 6, 41, 42,
440 43, 44, 45, 46, 47, 48, 6, 49, 50, 51,
441 52, 53, 6, 54, 55, 56, 6, 6, 57, 58,
442 59, 60, 61, 1, 61, 1, 1, 1, 1, 1,
443 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
444 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
445 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
446 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
447 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
448 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
449 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
451 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
452 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
453 1, 1, 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,
461 1, 2, 3, 2, 4, 2, 1, 1, 5, 2,
462 1, 2, 6, 7, 1, 1, 7, 7, 7, 7,
463 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
464 7, 7, 7, 7, 7, 7, 7, 4, 7, 2,
465 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
466 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
472 0, 0, 59, 60, 63, 64, 502, 561, 72, 561,
473 73, 561, 498, 561, 561, 68, 561, 69, 79, 561,
474 561, 76, 83, 77, 82, 85, 88, 84, 86, 87,
475 90, 92, 94, 561, 496, 561, 561, 0, 495, 561,
476 493, 0, 105, 112, 493, 97, 106, 127, 130, 133,
477 148, 113, 117, 101, 115, 122, 124, 119, 144, 150,
478 153, 154, 157, 158, 159, 162, 164, 166, 165, 491,
479 561, 561, 490, 561, 561, 561, 561, 167, 170, 172,
480 173, 175, 177, 178, 180, 188, 181, 183, 185, 187,
481 192, 193, 194, 195, 196, 198, 199, 200, 203, 204,
483 212, 214, 218, 221, 222, 225, 227, 228, 234, 229,
484 230, 489, 231, 240, 244, 252, 241, 245, 257, 256,
485 260, 261, 262, 264, 263, 488, 265, 269, 268, 273,
486 272, 282, 274, 278, 284, 561, 561, 277, 283, 285,
487 287, 288, 290, 295, 294, 296, 291, 297, 298, 305,
488 487, 300, 299, 309, 310, 486, 312, 482, 322, 323,
489 480, 324, 325, 327, 326, 329, 330, 332, 333, 334,
490 335, 342, 337, 331, 348, 349, 352, 355, 359, 479,
491 354, 356, 358, 360, 361, 363, 368, 367, 0, 378,
492 478, 377, 381, 386, 387, 389, 388, 471, 392, 390,
494 391, 0, 394, 470, 395, 397, 396, 401, 462, 406,
495 405, 409, 412, 407, 561, 413, 414, 416, 415, 422,
496 423, 458, 424, 427, 425, 426, 453, 452, 428, 430,
497 431, 434, 433, 438, 444, 451, 561, 440, 445, 446,
498 449, 454, 450, 561, 459, 561, 561, 505, 512, 518,
499 525, 532, 539, 546, 553, 88
504 247, 1, 248, 248, 249, 249, 247, 247, 247, 247,
505 250, 247, 250, 247, 247, 250, 247, 250, 250, 247,
506 247, 250, 250, 250, 250, 250, 250, 250, 250, 250,
507 250, 250, 250, 247, 251, 247, 247, 252, 253, 247,
508 254, 255, 247, 250, 250, 250, 250, 250, 250, 250,
509 250, 250, 250, 250, 250, 250, 250, 250, 250, 250,
510 250, 250, 250, 250, 250, 250, 250, 250, 250, 251,
511 247, 247, 253, 247, 247, 247, 247, 250, 250, 250,
512 250, 250, 250, 250, 250, 250, 250, 250, 250, 250,
513 250, 250, 250, 250, 250, 250, 250, 250, 250, 250,
515 250, 250, 250, 250, 250, 250, 250, 250, 250, 250,
516 250, 250, 250, 250, 250, 250, 250, 250, 250, 250,
517 250, 250, 250, 250, 250, 250, 250, 250, 250, 250,
518 250, 250, 250, 250, 250, 247, 247, 250, 250, 250,
519 250, 250, 250, 250, 250, 250, 250, 250, 250, 250,
520 250, 250, 250, 250, 250, 250, 250, 250, 250, 250,
521 250, 250, 250, 250, 250, 250, 250, 250, 250, 250,
522 250, 250, 250, 250, 250, 250, 250, 250, 250, 250,
523 250, 250, 250, 250, 250, 250, 250, 250, 256, 250,
524 250, 250, 250, 250, 250, 250, 250, 250, 250, 250,
526 250, 256, 250, 250, 250, 250, 250, 250, 250, 250,
527 250, 250, 250, 250, 247, 250, 250, 250, 250, 250,
528 250, 250, 250, 250, 250, 250, 250, 250, 250, 250,
529 250, 250, 250, 250, 250, 250, 247, 250, 250, 250,
530 250, 250, 250, 247, 250, 247, 0, 247, 247, 247,
531 247, 247, 247, 247, 247, 247
536 8, 9, 10, 11, 12, 13, 14, 15, 8, 16,
537 17, 18, 13, 19, 20, 21, 13, 13, 22, 23,
538 24, 13, 25, 13, 13, 26, 13, 13, 27, 28,
539 13, 29, 13, 30, 31, 32, 33, 8, 13, 13,
540 13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
541 13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
542 34, 36, 36, 37, 37, 40, 40, 34, 34, 247,
543 247, 41, 41, 43, 43, 43, 44, 247, 247, 46,
544 247, 47, 48, 247, 247, 247, 247, 247, 247, 247,
545 49, 247, 50, 247, 202, 247, 38, 38, 247, 51,
547 42, 42, 247, 53, 56, 61, 43, 247, 43, 67,
548 48, 68, 57, 43, 247, 44, 247, 49, 247, 50,
549 247, 51, 54, 247, 58, 247, 51, 52, 247, 55,
550 62, 247, 64, 69, 247, 59, 60, 63, 82, 66,
551 48, 85, 65, 78, 49, 247, 50, 51, 51, 247,
552 51, 247, 86, 51, 247, 247, 83, 79, 247, 247,
553 247, 80, 81, 247, 84, 247, 247, 247, 247, 51,
554 87, 247, 51, 247, 247, 51, 247, 90, 247, 247,
555 78, 247, 247, 80, 247, 80, 247, 51, 247, 247,
556 88, 100, 98, 247, 247, 247, 247, 247, 94, 247,
558 247, 247, 106, 102, 247, 247, 89, 109, 92, 51,
559 96, 91, 97, 247, 95, 247, 101, 93, 104, 247,
560 103, 105, 247, 247, 107, 99, 247, 108, 247, 247,
561 247, 247, 247, 120, 110, 247, 112, 119, 114, 117,
562 111, 247, 247, 124, 121, 247, 247, 115, 116, 125,
563 113, 126, 131, 247, 128, 129, 118, 247, 247, 136,
564 122, 247, 247, 247, 247, 247, 247, 137, 123, 247,
565 247, 127, 133, 247, 247, 247, 134, 132, 247, 247,
566 146, 130, 140, 247, 247, 247, 247, 139, 247, 247,
567 138, 247, 247, 135, 145, 247, 247, 247, 247, 247,
569 247, 247, 141, 150, 151, 154, 247, 147, 148, 155,
570 247, 247, 152, 247, 153, 143, 144, 158, 142, 156,
571 164, 149, 163, 247, 247, 247, 247, 247, 247, 159,
572 247, 247, 247, 247, 247, 247, 247, 157, 247, 165,
573 160, 162, 169, 247, 167, 161, 166, 178, 171, 247,
574 247, 168, 172, 247, 170, 247, 247, 247, 177, 247,
575 247, 247, 247, 189, 247, 175, 173, 179, 247, 247,
576 174, 180, 188, 192, 181, 176, 182, 183, 247, 247,
577 184, 191, 247, 187, 185, 186, 193, 247, 247, 247,
578 247, 247, 247, 247, 201, 247, 247, 247, 247, 190,
580 194, 195, 247, 198, 196, 203, 247, 247, 247, 204,
581 247, 197, 215, 247, 247, 247, 247, 247, 199, 200,
582 205, 210, 216, 247, 247, 247, 247, 247, 247, 247,
583 212, 247, 247, 213, 247, 247, 206, 219, 209, 247,
584 211, 247, 207, 208, 214, 247, 247, 247, 237, 222,
585 247, 247, 247, 247, 247, 247, 217, 218, 220, 247,
586 247, 221, 225, 247, 227, 228, 230, 224, 223, 244,
587 239, 247, 247, 226, 246, 231, 236, 229, 232, 247,
588 247, 247, 233, 247, 238, 234, 235, 247, 247, 247,
589 247, 240, 74, 71, 247, 76, 242, 74, 71, 247,
591 241, 247, 243, 247, 245, 35, 35, 35, 35, 35,
592 35, 35, 39, 39, 39, 39, 39, 39, 39, 45,
593 247, 247, 247, 45, 45, 70, 70, 70, 247, 70,
594 70, 70, 72, 72, 247, 72, 72, 72, 72, 73,
595 73, 73, 247, 247, 73, 73, 75, 75, 75, 75,
596 75, 247, 75, 77, 77, 247, 77, 77, 77, 77,
597 7, 247, 247, 247, 247, 247, 247, 247, 247, 247,
598 247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
599 247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
600 247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
602 247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
603 247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
609 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
610 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
611 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
612 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
613 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
614 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
615 1, 3, 4, 3, 4, 5, 6, 5, 6, 16,
616 18, 5, 6, 9, 11, 9, 11, 22, 24, 16,
617 19, 16, 18, 25, 23, 28, 26, 29, 30, 27,
618 19, 31, 19, 32, 256, 33, 3, 4, 46, 19,
620 5, 6, 54, 23, 24, 27, 43, 47, 43, 31,
621 46, 32, 25, 44, 52, 44, 55, 47, 53, 47,
622 58, 19, 23, 56, 25, 57, 47, 22, 48, 23,
623 28, 49, 29, 33, 50, 25, 26, 28, 53, 30,
624 48, 56, 29, 49, 50, 59, 50, 48, 47, 51,
625 49, 60, 57, 50, 61, 62, 54, 51, 63, 64,
626 65, 51, 52, 66, 55, 67, 69, 68, 78, 48,
627 58, 79, 49, 80, 81, 50, 82, 61, 83, 84,
628 78, 85, 87, 79, 88, 80, 89, 78, 90, 86,
629 59, 82, 69, 91, 92, 93, 94, 95, 65, 96,
631 97, 98, 87, 84, 99, 100, 60, 90, 63, 78,
632 67, 62, 68, 101, 66, 102, 83, 64, 85, 103,
633 84, 86, 104, 105, 88, 81, 106, 89, 107, 108,
634 110, 111, 113, 101, 91, 109, 93, 100, 95, 98,
635 92, 114, 117, 104, 101, 115, 118, 96, 97, 104,
636 94, 105, 109, 116, 107, 107, 99, 120, 119, 115,
637 102, 121, 122, 123, 125, 124, 127, 116, 103, 129,
638 128, 106, 111, 131, 130, 133, 113, 110, 138, 134,
639 125, 108, 119, 132, 139, 135, 140, 118, 141, 142,
640 117, 143, 147, 114, 124, 145, 144, 146, 148, 149,
642 153, 152, 120, 130, 131, 134, 150, 127, 128, 135,
643 154, 155, 132, 157, 133, 122, 123, 140, 121, 138,
644 146, 129, 145, 159, 160, 162, 163, 165, 164, 141,
645 166, 167, 174, 168, 169, 170, 171, 139, 173, 147,
646 142, 144, 152, 172, 149, 143, 148, 164, 154, 175,
647 176, 150, 155, 177, 153, 181, 178, 182, 163, 183,
648 179, 184, 185, 175, 186, 160, 157, 165, 188, 187,
649 159, 166, 174, 178, 167, 162, 168, 169, 192, 190,
650 170, 177, 193, 173, 171, 172, 179, 194, 195, 197,
651 196, 200, 201, 199, 188, 203, 205, 207, 206, 176,
653 181, 182, 208, 185, 183, 190, 211, 210, 214, 192,
654 212, 184, 206, 213, 216, 217, 219, 218, 186, 187,
655 193, 199, 207, 220, 221, 223, 225, 226, 224, 229,
656 201, 230, 231, 203, 233, 232, 194, 211, 197, 234,
657 200, 238, 195, 196, 205, 235, 239, 240, 233, 214,
658 241, 243, 236, 228, 227, 242, 208, 210, 212, 222,
659 245, 213, 218, 209, 220, 221, 224, 217, 216, 242,
660 235, 204, 198, 219, 245, 225, 232, 223, 226, 191,
661 180, 161, 229, 158, 234, 230, 231, 156, 151, 126,
662 112, 238, 73, 70, 45, 41, 240, 39, 35, 13,
664 239, 7, 241, 0, 243, 248, 248, 248, 248, 248,
665 248, 248, 249, 249, 249, 249, 249, 249, 249, 250,
666 0, 0, 0, 250, 250, 251, 251, 251, 0, 251,
667 251, 251, 252, 252, 0, 252, 252, 252, 252, 253,
668 253, 253, 0, 0, 253, 253, 254, 254, 254, 254,
669 254, 0, 254, 255, 255, 0, 255, 255, 255, 255,
670 247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
671 247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
672 247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
673 247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
675 247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
676 247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
680 static yy_state_type yy_last_accepting_state;
681 static char *yy_last_accepting_cpos;
684 int he5dds_flex_debug = 0;
689 #define REJECT reject_used_but_not_detected
690 static int yy_more_flag = 0;
691 static int yy_more_len = 0;
692 #define yymore() ((yy_more_flag) = 1)
693 #define YY_MORE_ADJ (yy_more_len)
694 #define YY_RESTORE_YY_MORE_OFFSET
702 #define YY_PROTO(proto) proto
706 #define YYSTYPE char *
707 #define YY_DECL int he5ddslex YY_PROTO(( void ))
708 #define YY_READ_BUF_SIZE 16384
709 #define ECHO if (fwrite( he5ddstext, he5ddsleng, 1, he5ddsout )) {}
711 #include "he5dds.tab.hh"
714 static int start_line;
718 #line 719 "lex.he5dds.cc"
724 #ifndef YY_NO_UNISTD_H
732 #ifndef YY_EXTRA_TYPE
733 #define YY_EXTRA_TYPE void *
736 static int yy_init_globals (
void );
771 #ifndef YY_SKIP_YYWRAP
779 static void yyunput (
int c,
char *buf_ptr );
782 static void yy_flex_strncpy (
char *,
yyconst char *,
int );
785 #ifdef YY_NEED_STRLEN
786 static int yy_flex_strlen (
yyconst char * );
792 static int yyinput (
void );
794 static int input (
void );
800 #ifndef YY_READ_BUF_SIZE
801 #define YY_READ_BUF_SIZE 8192
809 #define ECHO fwrite( he5ddstext, he5ddsleng, 1, he5ddsout )
816 #define YY_INPUT(buf,result,max_size) \
817 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
821 for ( n = 0; n < max_size && \
822 (c = getc( he5ddsin )) != EOF && c != '\n'; ++n ) \
825 buf[n++] = (char) c; \
826 if ( c == EOF && ferror( he5ddsin ) ) \
827 YY_FATAL_ERROR( "input in flex scanner failed" ); \
833 while ( (result = fread(buf, 1, max_size, he5ddsin))==0 && ferror(he5ddsin)) \
835 if( errno != EINTR) \
837 YY_FATAL_ERROR( "input in flex scanner failed" ); \
841 clearerr(he5ddsin); \
853 #define yyterminate() return YY_NULL
857 #ifndef YY_START_STACK_INCR
858 #define YY_START_STACK_INCR 25
862 #ifndef YY_FATAL_ERROR
863 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
872 #define YY_DECL_IS_OURS 1
876 #define YY_DECL int he5ddslex (void)
882 #ifndef YY_USER_ACTION
883 #define YY_USER_ACTION
888 #define YY_BREAK break;
891 #define YY_RULE_SETUP \
902 #line 59 "he5dds.lex"
905 #line 906 "lex.he5dds.cc"
925 he5ddsensure_buffer_stack ();
930 he5dds_load_buffer_state( );
936 if ( (yy_more_flag) )
941 yy_cp = (yy_c_buf_p);
944 *yy_cp = (yy_hold_char);
951 yy_current_state = (yy_start);
956 if ( yy_accept[yy_current_state] )
958 (yy_last_accepting_state) = yy_current_state;
959 (yy_last_accepting_cpos) = yy_cp;
961 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
963 yy_current_state = (int) yy_def[yy_current_state];
964 if ( yy_current_state >= 248 )
965 yy_c = yy_meta[(
unsigned int) yy_c];
970 while ( yy_base[yy_current_state] != 561 );
976 yy_cp = (yy_last_accepting_cpos);
977 yy_current_state = (yy_last_accepting_state);
989 *yy_cp = (yy_hold_char);
990 yy_cp = (yy_last_accepting_cpos);
991 yy_current_state = (yy_last_accepting_state);
996 #line 61 "he5dds.lex"
1001 #line 62 "he5dds.lex"
1006 #line 63 "he5dds.lex"
1011 #line 64 "he5dds.lex"
1016 #line 65 "he5dds.lex"
1021 #line 66 "he5dds.lex"
1026 #line 67 "he5dds.lex"
1031 #line 68 "he5dds.lex"
1036 #line 69 "he5dds.lex"
1041 #line 70 "he5dds.lex"
1046 #line 71 "he5dds.lex"
1051 #line 72 "he5dds.lex"
1056 #line 73 "he5dds.lex"
1061 #line 74 "he5dds.lex"
1066 #line 75 "he5dds.lex"
1071 #line 76 "he5dds.lex"
1076 #line 79 "he5dds.lex"
1081 #line 80 "he5dds.lex"
1086 #line 81 "he5dds.lex"
1091 #line 82 "he5dds.lex"
1096 #line 83 "he5dds.lex"
1101 #line 84 "he5dds.lex"
1106 #line 85 "he5dds.lex"
1111 #line 86 "he5dds.lex"
1116 #line 87 "he5dds.lex"
1121 #line 88 "he5dds.lex"
1126 #line 89 "he5dds.lex"
1131 #line 90 "he5dds.lex"
1136 #line 91 "he5dds.lex"
1141 #line 92 "he5dds.lex"
1146 #line 93 "he5dds.lex"
1151 #line 94 "he5dds.lex"
1156 #line 96 "he5dds.lex"
1162 #line 97 "he5dds.lex"
1166 #line 98 "he5dds.lex"
1171 #line 99 "he5dds.lex"
1177 #line 100 "he5dds.lex"
1182 #line 101 "he5dds.lex"
1188 #line 102 "he5dds.lex"
1193 #line 103 "he5dds.lex"
1197 #line 104 "he5dds.lex"
1201 "Unterminated comment (starts on line %d)\n",
1208 #line 111 "he5dds.lex"
1214 #line 112 "he5dds.lex"
1219 #line 113 "he5dds.lex"
1224 #line 114 "he5dds.lex"
1234 #line 121 "he5dds.lex"
1238 "Unterminated quote (starts on line %d)\n",
1246 #line 129 "he5dds.lex"
1249 fprintf(stderr,
"Character '%c' (%d) is not",
1250 *he5ddstext, *he5ddstext);
1251 fprintf(stderr,
" allowed (except within");
1252 fprintf(stderr,
" quotes) and has been ignored\n");
1258 #line 137 "he5dds.lex"
1261 #line 1262 "lex.he5dds.cc"
1266 int yy_amount_of_matched_text = (int) (yy_cp - (
yytext_ptr)) - 1;
1269 *yy_cp = (yy_hold_char);
1297 yy_state_type yy_next_state;
1299 (yy_c_buf_p) = (
yytext_ptr) + yy_amount_of_matched_text;
1301 yy_current_state = yy_get_previous_state( );
1312 yy_next_state = yy_try_NUL_trans( yy_current_state );
1316 if ( yy_next_state )
1319 yy_cp = ++(yy_c_buf_p);
1320 yy_current_state = yy_next_state;
1326 yy_cp = (yy_c_buf_p);
1327 goto yy_find_action;
1331 else switch ( yy_get_next_buffer( ) )
1335 (yy_did_buffer_switch_on_eof) = 0;
1356 if ( ! (yy_did_buffer_switch_on_eof) )
1366 yy_current_state = yy_get_previous_state( );
1368 yy_cp = (yy_c_buf_p);
1376 yy_current_state = yy_get_previous_state( );
1378 yy_cp = (yy_c_buf_p);
1380 goto yy_find_action;
1387 "fatal flex scanner internal error--no action found" );
1399 static int yy_get_next_buffer (
void)
1403 register int number_to_move, i;
1408 "fatal flex scanner internal error--end of buffer missed" );
1432 number_to_move = (int) ((yy_c_buf_p) - (
yytext_ptr)) - 1;
1434 for ( i = 0; i < number_to_move; ++i )
1435 *(dest++) = *(source++);
1448 while ( num_to_read <= 0 )
1454 int yy_c_buf_p_offset =
1455 (int) ((yy_c_buf_p) - b->yy_ch_buf);
1457 if ( b->yy_is_our_buffer )
1459 yy_size_t new_size = b->yy_buf_size * 2;
1461 if ( new_size <= 0 )
1462 b->yy_buf_size += b->yy_buf_size / 8;
1464 b->yy_buf_size *= 2;
1466 b->yy_ch_buf = (
char *)
1474 if ( ! b->yy_ch_buf )
1476 "fatal error - scanner input buffer overflow" );
1478 (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
1490 (yy_n_chars), num_to_read );
1495 if ( (yy_n_chars) == 0 )
1516 yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
1519 YY_FATAL_ERROR(
"out of dynamic memory in yy_get_next_buffer()" );
1522 (yy_n_chars) += number_to_move;
1533 static yy_state_type yy_get_previous_state (
void)
1536 register char *
yy_cp;
1538 yy_current_state = (yy_start);
1543 if ( yy_accept[yy_current_state] )
1545 (yy_last_accepting_state) = yy_current_state;
1546 (yy_last_accepting_cpos) = yy_cp;
1548 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1550 yy_current_state = (int) yy_def[yy_current_state];
1551 if ( yy_current_state >= 248 )
1552 yy_c = yy_meta[(
unsigned int) yy_c];
1554 yy_current_state = yy_nxt[yy_base[
yy_current_state] + (
unsigned int) yy_c];
1565 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
1567 register int yy_is_jam;
1568 register char *yy_cp = (yy_c_buf_p);
1571 if ( yy_accept[yy_current_state] )
1573 (yy_last_accepting_state) = yy_current_state;
1574 (yy_last_accepting_cpos) = yy_cp;
1576 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1578 yy_current_state = (int) yy_def[yy_current_state];
1579 if ( yy_current_state >= 248 )
1580 yy_c = yy_meta[(
unsigned int) yy_c];
1582 yy_current_state = yy_nxt[yy_base[
yy_current_state] + (
unsigned int) yy_c];
1583 yy_is_jam = (yy_current_state == 247);
1588 static void yyunput (
int c,
register char * yy_bp )
1590 register char *
yy_cp;
1592 yy_cp = (yy_c_buf_p);
1595 *yy_cp = (yy_hold_char);
1597 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
1600 register yy_size_t number_to_move = (yy_n_chars) + 2;
1603 register char *source =
1607 *--dest = *--source;
1609 yy_cp += (int) (dest - source);
1610 yy_bp += (int) (dest - source);
1614 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
1618 *--yy_cp = (char) c;
1621 (yy_hold_char) = *yy_cp;
1622 (yy_c_buf_p) = yy_cp;
1627 static int yyinput (
void)
1629 static int input (
void)
1635 *(yy_c_buf_p) = (yy_hold_char);
1645 *(yy_c_buf_p) =
'\0';
1652 switch ( yy_get_next_buffer( ) )
1675 if ( ! (yy_did_buffer_switch_on_eof) )
1691 c = *(
unsigned char *) (yy_c_buf_p);
1692 *(yy_c_buf_p) =
'\0';
1693 (yy_hold_char) = *++(yy_c_buf_p);
1708 he5ddsensure_buffer_stack ();
1714 he5dds_load_buffer_state( );
1729 he5ddsensure_buffer_stack ();
1736 *(yy_c_buf_p) = (yy_hold_char);
1742 he5dds_load_buffer_state( );
1749 (yy_did_buffer_switch_on_eof) = 1;
1752 static void he5dds_load_buffer_state (
void)
1757 (yy_hold_char) = *(yy_c_buf_p);
1772 YY_FATAL_ERROR(
"out of dynamic memory in he5dds_create_buffer()" );
1774 b->yy_buf_size = size;
1779 b->yy_ch_buf = (
char *)
he5ddsalloc(b->yy_buf_size + 2 );
1780 if ( ! b->yy_ch_buf )
1781 YY_FATAL_ERROR(
"out of dynamic memory in he5dds_create_buffer()" );
1783 b->yy_is_our_buffer = 1;
1785 he5dds_init_buffer(b,file );
1803 if ( b->yy_is_our_buffer )
1810 extern int isatty (
int );
1824 b->yy_input_file = file;
1825 b->yy_fill_buffer = 1;
1832 b->yy_bs_lineno = 1;
1833 b->yy_bs_column = 0;
1836 b->yy_is_interactive = file ? (
isatty( fileno(file) ) > 0) : 0;
1859 b->yy_buf_pos = &b->yy_ch_buf[0];
1865 he5dds_load_buffer_state( );
1876 if (new_buffer ==
NULL)
1879 he5ddsensure_buffer_stack();
1885 *(yy_c_buf_p) = (yy_hold_char);
1892 (yy_buffer_stack_top)++;
1896 he5dds_load_buffer_state( );
1897 (yy_did_buffer_switch_on_eof) = 1;
1911 if ((yy_buffer_stack_top) > 0)
1912 --(yy_buffer_stack_top);
1915 he5dds_load_buffer_state( );
1916 (yy_did_buffer_switch_on_eof) = 1;
1923 static void he5ddsensure_buffer_stack (
void)
1927 if (!(yy_buffer_stack)) {
1934 (yy_buffer_stack) = (
struct yy_buffer_state**)
he5ddsalloc
1935 (num_to_alloc *
sizeof(
struct yy_buffer_state*)
1937 if ( ! (yy_buffer_stack) )
1938 YY_FATAL_ERROR(
"out of dynamic memory in he5ddsensure_buffer_stack()" );
1940 memset((yy_buffer_stack), 0, num_to_alloc *
sizeof(
struct yy_buffer_state*));
1942 (yy_buffer_stack_max) = num_to_alloc;
1943 (yy_buffer_stack_top) = 0;
1947 if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
1952 num_to_alloc = (yy_buffer_stack_max) + grow_size;
1955 num_to_alloc *
sizeof(
struct yy_buffer_state*)
1957 if ( ! (yy_buffer_stack) )
1958 YY_FATAL_ERROR(
"out of dynamic memory in he5ddsensure_buffer_stack()" );
1961 memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size *
sizeof(
struct yy_buffer_state*));
1962 (yy_buffer_stack_max) = num_to_alloc;
1984 YY_FATAL_ERROR(
"out of dynamic memory in he5dds_scan_buffer()" );
1986 b->yy_buf_size = size - 2;
1987 b->yy_buf_pos = b->yy_ch_buf = base;
1988 b->yy_is_our_buffer = 0;
1989 b->yy_input_file = 0;
1990 b->yy_n_chars = b->yy_buf_size;
1991 b->yy_is_interactive = 0;
1993 b->yy_fill_buffer = 0;
2029 n = _yybytes_len + 2;
2032 YY_FATAL_ERROR(
"out of dynamic memory in he5dds_scan_bytes()" );
2034 for ( i = 0; i < _yybytes_len; ++i )
2035 buf[i] = yybytes[i];
2046 b->yy_is_our_buffer = 1;
2051 #ifndef YY_EXIT_FAILURE
2052 #define YY_EXIT_FAILURE 2
2055 static void yy_fatal_error (
yyconst char* msg )
2057 (void) fprintf( stderr,
"%s\n", msg );
2068 int yyless_macro_arg = (n); \
2069 YY_LESS_LINENO(yyless_macro_arg);\
2070 he5ddstext[he5ddsleng] = (yy_hold_char); \
2071 (yy_c_buf_p) = he5ddstext + yyless_macro_arg; \
2072 (yy_hold_char) = *(yy_c_buf_p); \
2073 *(yy_c_buf_p) = '\0'; \
2074 he5ddsleng = yyless_macro_arg; \
2129 he5ddslineno = line_number;
2155 he5dds_flex_debug = bdebug ;
2158 static int yy_init_globals (
void)
2164 (yy_buffer_stack) = 0;
2165 (yy_buffer_stack_top) = 0;
2166 (yy_buffer_stack_max) = 0;
2167 (yy_c_buf_p) = (
char *) 0;
2199 (yy_buffer_stack) =
NULL;
2213 static void yy_flex_strncpy (
char* s1,
yyconst char * s2,
int n )
2216 for ( i = 0; i < n; ++i )
2221 #ifdef YY_NEED_STRLEN
2222 static int yy_flex_strlen (
yyconst char * s )
2225 for ( n = 0; s[n]; ++n )
2234 return (
void *)
malloc( size );
2246 return (
void *) realloc( (
char *) ptr, size );
2251 free( (
char *) ptr );
2254 #define YYTABLES_NAME "yytables"
2256 #line 137 "he5dds.lex"
#define YY_STATE_EOF(state)
FILE * he5ddsget_out(void)
Get the output stream.
void he5ddsset_lineno(int line_number)
Set the current line number.
void he5ddsset_in(FILE *in_str)
Set the input stream.
#define YY_FATAL_ERROR(msg)
void * he5ddsalloc(yy_size_t)
int he5ddsget_lineno(void)
Get the current line number.
#define YY_BUFFER_EOF_PENDING
void he5dds_switch_to_buffer(YY_BUFFER_STATE new_buffer)
Switch to a different input buffer.
#define EOB_ACT_LAST_MATCH
#define EOB_ACT_END_OF_FILE
YY_BUFFER_STATE he5dds_scan_bytes(yyconst char *bytes, yy_size_t len)
Setup the input buffer state to scan the given bytes.
int he5ddsget_debug(void)
int he5ddslex_destroy(void)
void he5ddsset_debug(int debug_flag)
void he5ddspop_buffer_state(void)
Removes and deletes the top of the stack, if present.
#define YY_INPUT(buf, result, max_size)
unsigned int flex_uint32_t
YY_BUFFER_STATE he5dds_create_buffer(FILE *file, int size)
Allocate and initialize an input buffer state.
FILE * he5ddsget_in(void)
Get the input stream.
YY_DECL register yy_state_type yy_current_state
The main scanner function which does all the work.
#define YY_END_OF_BUFFER_CHAR
#define YY_DO_BEFORE_ACTION
void * he5ddsrealloc(void *, yy_size_t)
#define YY_RESTORE_YY_MORE_OFFSET
struct yy_buffer_state * YY_BUFFER_STATE
char * he5ddsget_text(void)
Get the current token.
void he5ddsset_out(FILE *out_str)
void he5ddspush_buffer_state(YY_BUFFER_STATE new_buffer)
Pushes the new state onto the stack.
#define EOB_ACT_CONTINUE_SCAN
void he5ddsset_extra(YY_EXTRA_TYPE user_defined)
YY_EXTRA_TYPE he5ddsget_extra(void)
YY_BUFFER_STATE he5dds_scan_string(yyconst char *yy_str)
Setup the input buffer state to scan a string.
unsigned short int flex_uint16_t
#define YY_CURRENT_BUFFER_LVALUE
YY_BUFFER_STATE he5dds_scan_buffer(char *base, yy_size_t size)
Setup the input buffer state to scan directly from a user-specified character buffer.
void he5ddsrestart(FILE *input_file)
Immediately switch to a different input stream.
unsigned char flex_uint8_t
struct yy_buffer_state * YY_BUFFER_STATE
#define YY_CURRENT_BUFFER
void he5dds_delete_buffer(YY_BUFFER_STATE b)
Destroy the buffer.
yy_size_t he5ddsget_leng(void)
Get the length of the current token.
void he5dds_flush_buffer(YY_BUFFER_STATE b)
Discard all buffered characters.