1 #line 2 "holidayscannerplan.cpp"
3 #line 4 "holidayscannerplan.cpp"
5 #define YY_INT_ALIGNED short int
18 #define YY_FLEX_MAJOR_VERSION 2
19 #define YY_FLEX_MINOR_VERSION 5
20 #define YY_FLEX_SUBMINOR_VERSION 35
21 #if YY_FLEX_SUBMINOR_VERSION > 0
32 #define yyFlexLexer HolidayScannerFlexLexer
59 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
64 #ifndef __STDC_LIMIT_MACROS
65 #define __STDC_LIMIT_MACROS 1
69 typedef int8_t flex_int8_t;
70 typedef uint8_t flex_uint8_t;
71 typedef int16_t flex_int16_t;
72 typedef uint16_t flex_uint16_t;
73 typedef int32_t flex_int32_t;
74 typedef uint32_t flex_uint32_t;
76 typedef signed char flex_int8_t;
77 typedef short int flex_int16_t;
78 typedef int flex_int32_t;
79 typedef unsigned char flex_uint8_t;
80 typedef unsigned short int flex_uint16_t;
81 typedef unsigned int flex_uint32_t;
86 #define INT8_MIN (-128)
89 #define INT16_MIN (-32767-1)
92 #define INT32_MIN (-2147483647-1)
95 #define INT8_MAX (127)
98 #define INT16_MAX (32767)
101 #define INT32_MAX (2147483647)
104 #define UINT8_MAX (255U)
107 #define UINT16_MAX (65535U)
110 #define UINT32_MAX (4294967295U)
135 #if defined (__STDC__)
143 #define yyconst const
161 #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
175 #define BEGIN (yy_start) = 1 + 2 *
181 #define YY_START (((yy_start) - 1) / 2)
182 #define YYSTATE YY_START
185 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
188 #define YY_NEW_FILE yyrestart( yyin )
190 #define YY_END_OF_BUFFER_CHAR 0
194 #define YY_BUF_SIZE 16384
199 #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
201 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
202 #define YY_TYPEDEF_YY_BUFFER_STATE
203 typedef struct yy_buffer_state *YY_BUFFER_STATE;
215 #define EOB_ACT_CONTINUE_SCAN 0
216 #define EOB_ACT_END_OF_FILE 1
217 #define EOB_ACT_LAST_MATCH 2
219 #define YY_LESS_LINENO(n)
226 int yyless_macro_arg = (n); \
227 YY_LESS_LINENO(yyless_macro_arg);\
228 *yy_cp = (yy_hold_char); \
229 YY_RESTORE_YY_MORE_OFFSET \
230 (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
231 YY_DO_BEFORE_ACTION; \
235 #define unput(c) yyunput( c, (yytext_ptr) )
237 #ifndef YY_TYPEDEF_YY_SIZE_T
238 #define YY_TYPEDEF_YY_SIZE_T
239 typedef size_t yy_size_t;
242 #ifndef YY_STRUCT_YY_BUFFER_STATE
243 #define YY_STRUCT_YY_BUFFER_STATE
244 struct yy_buffer_state
250 std::istream* yy_input_file;
259 yy_size_t yy_buf_size;
270 int yy_is_our_buffer;
277 int yy_is_interactive;
293 int yy_buffer_status;
295 #define YY_BUFFER_NEW 0
296 #define YY_BUFFER_NORMAL 1
307 #define YY_BUFFER_EOF_PENDING 2
327 #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
328 ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
334 #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
345 void *HolidayScanneralloc (yy_size_t );
346 void *HolidayScannerrealloc (
void *,yy_size_t );
347 void HolidayScannerfree (
void * );
349 #define yy_new_buffer yy_create_buffer
351 #define yy_set_interactive(is_interactive) \
353 if ( ! YY_CURRENT_BUFFER ){ \
354 yyensure_buffer_stack (); \
355 YY_CURRENT_BUFFER_LVALUE = \
356 yy_create_buffer( yyin, YY_BUF_SIZE ); \
358 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
361 #define yy_set_bol(at_bol) \
363 if ( ! YY_CURRENT_BUFFER ){\
364 yyensure_buffer_stack (); \
365 YY_CURRENT_BUFFER_LVALUE = \
366 yy_create_buffer( yyin, YY_BUF_SIZE ); \
368 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
371 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
378 typedef unsigned char YY_CHAR;
380 #define yytext_ptr yytext
382 #include <FlexLexer.h>
390 #define YY_DO_BEFORE_ACTION \
391 (yytext_ptr) = yy_bp; \
393 yyleng = (size_t) (yy_cp - yy_bp); \
394 (yy_hold_char) = *yy_cp; \
397 (yy_c_buf_p) = yy_cp;
400 #define YY_NUM_RULES 201
401 #define YY_END_OF_BUFFER 202
406 flex_int32_t yy_verify;
409 static yyconst flex_int16_t yy_accept[943] =
411 0, 0, 202, 200, 3, 4, 5, 200, 200, 5,
412 200, 10, 10, 10, 10, 10, 10, 41, 200, 42,
413 200, 200, 200, 200, 200, 200, 200, 200, 200, 200,
414 200, 200, 200, 200, 200, 200, 200, 200, 200, 200,
415 200, 200, 200, 200, 5, 3, 4, 38, 0, 11,
416 0, 1, 43, 10, 0, 0, 0, 0, 0, 39,
417 37, 40, 0, 0, 0, 0, 0, 0, 0, 0,
418 0, 129, 0, 0, 0, 0, 0, 0, 0, 0,
419 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
420 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
422 0, 0, 18, 17, 0, 0, 0, 0, 0, 0,
423 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
424 0, 0, 0, 0, 15, 0, 0, 0, 0, 0,
425 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
426 0, 0, 0, 0, 0, 0, 0, 0, 16, 0,
427 0, 0, 0, 0, 0, 0, 44, 0, 2, 45,
428 46, 47, 48, 49, 0, 0, 0, 0, 51, 0,
429 115, 0, 0, 0, 0, 0, 0, 0, 0, 0,
430 0, 0, 0, 0, 13, 0, 190, 0, 0, 0,
431 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
433 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
434 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
435 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
436 0, 0, 61, 0, 0, 0, 0, 0, 0, 0,
437 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
438 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
439 0, 0, 0, 0, 0, 0, 29, 113, 0, 0,
440 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
441 0, 0, 0, 0, 0, 0, 0, 0, 102, 0,
442 0, 0, 0, 184, 0, 0, 0, 0, 0, 0,
444 0, 0, 0, 0, 0, 0, 0, 0, 188, 124,
445 0, 0, 0, 0, 0, 0, 189, 0, 0, 0,
446 0, 32, 0, 0, 0, 0, 0, 34, 14, 0,
447 0, 0, 0, 117, 130, 87, 0, 0, 0, 0,
448 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
449 0, 0, 0, 0, 0, 0, 0, 126, 0, 0,
450 0, 63, 0, 0, 62, 0, 0, 0, 0, 0,
451 0, 0, 50, 0, 0, 0, 0, 171, 0, 0,
452 0, 187, 0, 0, 0, 0, 0, 0, 0, 0,
453 8, 0, 0, 52, 0, 0, 0, 0, 0, 0,
455 0, 0, 0, 0, 0, 0, 0, 0, 0, 19,
456 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
457 0, 0, 0, 0, 107, 0, 0, 0, 0, 0,
458 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
459 0, 0, 0, 0, 0, 0, 0, 0, 0, 81,
460 0, 0, 0, 0, 0, 0, 0, 0, 22, 0,
461 0, 0, 0, 0, 131, 54, 0, 60, 0, 0,
462 0, 0, 0, 0, 28, 0, 0, 0, 0, 0,
463 0, 0, 0, 0, 0, 0, 12, 0, 0, 49,
464 45, 0, 0, 0, 30, 0, 0, 108, 114, 0,
466 0, 100, 0, 140, 0, 0, 0, 0, 0, 197,
467 0, 0, 0, 80, 0, 0, 0, 0, 0, 0,
468 0, 0, 0, 59, 0, 0, 0, 20, 0, 0,
469 0, 0, 0, 125, 0, 0, 0, 0, 0, 86,
470 78, 0, 0, 0, 0, 170, 0, 0, 0, 0,
471 0, 94, 93, 0, 0, 147, 0, 0, 142, 0,
472 0, 0, 111, 0, 0, 0, 0, 0, 0, 0,
473 27, 0, 123, 127, 21, 0, 0, 0, 0, 128,
474 0, 122, 47, 0, 0, 0, 0, 0, 0, 0,
475 0, 0, 35, 0, 0, 0, 0, 0, 0, 0,
477 0, 0, 132, 0, 0, 167, 64, 191, 53, 0,
478 0, 0, 0, 76, 0, 0, 0, 0, 24, 192,
479 0, 0, 0, 48, 73, 106, 0, 0, 79, 118,
480 0, 0, 180, 0, 56, 0, 0, 168, 0, 121,
481 0, 0, 0, 26, 0, 0, 0, 0, 82, 0,
482 88, 0, 69, 185, 0, 109, 0, 0, 0, 0,
483 0, 0, 0, 25, 0, 0, 90, 0, 0, 0,
484 116, 0, 0, 0, 0, 0, 46, 0, 0, 148,
485 0, 0, 198, 0, 0, 0, 0, 75, 101, 0,
486 77, 0, 0, 0, 0, 0, 0, 0, 0, 0,
488 0, 0, 0, 0, 31, 0, 0, 0, 0, 0,
489 0, 0, 164, 0, 0, 0, 161, 6, 0, 0,
490 0, 0, 0, 0, 0, 0, 120, 0, 57, 0,
491 0, 183, 0, 0, 0, 104, 33, 0, 0, 0,
492 105, 0, 0, 66, 0, 110, 0, 0, 0, 85,
493 92, 172, 0, 0, 0, 0, 149, 179, 0, 0,
494 0, 0, 138, 0, 150, 0, 0, 0, 99, 0,
495 0, 0, 119, 0, 70, 0, 0, 36, 103, 0,
496 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
497 0, 0, 0, 0, 0, 0, 68, 0, 193, 0,
499 0, 58, 0, 176, 0, 0, 0, 0, 7, 23,
500 112, 174, 98, 141, 67, 0, 0, 0, 84, 0,
501 91, 0, 0, 178, 74, 0, 194, 0, 165, 173,
502 0, 0, 0, 72, 96, 162, 0, 0, 0, 0,
503 0, 0, 0, 0, 0, 0, 135, 0, 133, 0,
504 0, 0, 166, 175, 0, 0, 97, 181, 55, 0,
505 0, 163, 0, 0, 0, 0, 95, 0, 0, 65,
506 186, 177, 0, 0, 71, 0, 0, 0, 0, 0,
507 0, 0, 199, 0, 139, 137, 0, 169, 0, 0,
508 0, 0, 0, 89, 0, 196, 83, 143, 0, 0,
510 151, 0, 159, 0, 0, 0, 0, 158, 0, 134,
511 0, 9, 0, 0, 0, 182, 0, 152, 0, 155,
512 0, 157, 0, 136, 195, 0, 0, 0, 144, 0,
513 0, 0, 0, 145, 0, 154, 153, 156, 160, 0,
517 static yyconst flex_int32_t yy_ec[256] =
519 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
520 1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
521 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
522 1, 2, 4, 5, 6, 1, 7, 8, 1, 7,
523 7, 7, 7, 1, 7, 7, 7, 9, 10, 11,
524 12, 13, 14, 9, 9, 9, 9, 15, 1, 16,
525 17, 18, 7, 1, 19, 20, 21, 22, 23, 24,
526 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
527 35, 36, 37, 38, 39, 40, 41, 1, 42, 43,
528 7, 1, 7, 1, 1, 1, 44, 45, 46, 47,
530 48, 49, 50, 51, 52, 53, 54, 55, 56, 57,
531 58, 59, 60, 61, 62, 63, 64, 65, 66, 1,
532 67, 68, 1, 69, 1, 1, 1, 1, 1, 1,
533 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
534 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
535 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
536 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
537 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
538 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
539 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
541 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
542 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
543 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
544 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
545 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
549 static yyconst flex_int32_t yy_meta[70] =
551 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
552 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
553 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
554 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
555 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
556 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
557 1, 1, 1, 1, 1, 1, 1, 1, 1
560 static yyconst flex_int16_t yy_base[946] =
562 0, 298, 287, 1944, 281, 277, 261, 259, 241, 1944,
563 226, 61, 67, 73, 79, 85, 97, 215, 210, 168,
564 141, 94, 86, 99, 191, 197, 128, 160, 169, 155,
565 233, 102, 224, 242, 95, 282, 78, 248, 327, 373,
566 95, 247, 270, 103, 166, 166, 159, 1944, 150, 1944,
567 151, 1944, 1944, 329, 96, 148, 149, 156, 187, 1944,
568 1944, 1944, 195, 196, 185, 201, 232, 243, 277, 276,
569 282, 1944, 290, 284, 287, 304, 312, 302, 328, 318,
570 336, 317, 367, 324, 325, 325, 326, 345, 346, 347,
571 374, 365, 383, 384, 366, 380, 377, 387, 375, 385,
573 418, 386, 1944, 396, 423, 414, 419, 428, 416, 420,
574 442, 417, 425, 441, 459, 457, 457, 460, 442, 459,
575 471, 463, 470, 464, 1944, 483, 511, 505, 487, 468,
576 519, 485, 511, 531, 517, 520, 517, 557, 566, 516,
577 560, 552, 563, 574, 586, 596, 575, 546, 570, 576,
578 582, 610, 601, 610, 626, 607, 1944, 133, 1944, 1944,
579 1944, 1944, 1944, 1944, 608, 605, 619, 624, 1944, 617,
580 1944, 631, 613, 623, 630, 629, 649, 652, 653, 652,
581 656, 641, 653, 656, 652, 667, 1944, 670, 666, 655,
582 672, 665, 665, 681, 675, 669, 666, 673, 673, 675,
584 685, 700, 703, 703, 690, 702, 707, 699, 719, 713,
585 704, 715, 707, 725, 706, 729, 736, 726, 723, 714,
586 725, 736, 742, 745, 751, 740, 745, 757, 766, 746,
587 763, 769, 1944, 755, 773, 754, 775, 773, 778, 786,
588 786, 792, 793, 787, 799, 790, 799, 789, 801, 801,
589 809, 817, 802, 803, 810, 814, 808, 829, 817, 819,
590 822, 837, 832, 842, 843, 844, 1944, 1944, 853, 846,
591 837, 845, 847, 859, 845, 859, 868, 865, 871, 872,
592 873, 863, 876, 863, 880, 868, 867, 872, 1944, 889,
593 885, 889, 904, 1944, 900, 892, 906, 895, 896, 903,
595 909, 901, 922, 924, 906, 907, 915, 935, 1944, 922,
596 914, 926, 929, 939, 935, 936, 1944, 957, 942, 943,
597 953, 1944, 964, 966, 950, 962, 952, 1944, 1944, 960,
598 956, 974, 971, 1944, 1944, 1944, 963, 966, 958, 983,
599 966, 980, 971, 973, 993, 988, 990, 990, 986, 1005,
600 992, 999, 1010, 999, 998, 1012, 1021, 1944, 1011, 1023,
601 1024, 1944, 1025, 1022, 1944, 1012, 1023, 1030, 1026, 1033,
602 1032, 1022, 1944, 1020, 1033, 1052, 1041, 1944, 1053, 1059,
603 1053, 1944, 1055, 1060, 1049, 1051, 1046, 1071, 1072, 1056,
604 1944, 1056, 1062, 1944, 1064, 1079, 1080, 1071, 1068, 1083,
606 1086, 1080, 1079, 1095, 1089, 1097, 1093, 1109, 1104, 1944,
607 1112, 1102, 1096, 1099, 1108, 1121, 1121, 1120, 1124, 1108,
608 1105, 1113, 1118, 1119, 1944, 1132, 1137, 1142, 1123, 1151,
609 1131, 1135, 1136, 1140, 1147, 1152, 1143, 1166, 1169, 1170,
610 1147, 1168, 1154, 1171, 1155, 1165, 1162, 1164, 1175, 1944,
611 1183, 1180, 1186, 1188, 1189, 1183, 1192, 1204, 1944, 1200,
612 1195, 1203, 1212, 1206, 1206, 1944, 1219, 1944, 1214, 1209,
613 1204, 1211, 1221, 1226, 1944, 1209, 1214, 1216, 1234, 1220,
614 1239, 1234, 1230, 1235, 1250, 1239, 1944, 1240, 1259, 1944,
615 1944, 1253, 1240, 1245, 1944, 1249, 1269, 1944, 1944, 1253,
617 1249, 1944, 1272, 1944, 1260, 1266, 1258, 1263, 1277, 1944,
618 1274, 1273, 1286, 1944, 1266, 1277, 1292, 1289, 1295, 1295,
619 1285, 1301, 1298, 1944, 1293, 1296, 1310, 1944, 1293, 1296,
620 1317, 1304, 1318, 1944, 1322, 1320, 1321, 1322, 1323, 1944,
621 1944, 1324, 1313, 1336, 1324, 1944, 1326, 1322, 1323, 1352,
622 1349, 1944, 1944, 1350, 1346, 1944, 1359, 1343, 1944, 1363,
623 1361, 1363, 1944, 1357, 1357, 1358, 1372, 1365, 1370, 1375,
624 1944, 1376, 1944, 1944, 1944, 1380, 1360, 1360, 1368, 1944,
625 1375, 1944, 1944, 1371, 1386, 1389, 1399, 1404, 1407, 1409,
626 1392, 1400, 1944, 1406, 1397, 1408, 1420, 1399, 1422, 1402,
628 1406, 1422, 1944, 1402, 1431, 1944, 1944, 1944, 1944, 1421,
629 1437, 1422, 1442, 1944, 1420, 1448, 1438, 1453, 1944, 1944,
630 1449, 1456, 1443, 1944, 1944, 1944, 1455, 1447, 1944, 1944,
631 1453, 1456, 1944, 1447, 1944, 1471, 1453, 1944, 1470, 1944,
632 1474, 1469, 1476, 1944, 1461, 1481, 1470, 1465, 1944, 1483,
633 1944, 1490, 1944, 1944, 1492, 1944, 1489, 1485, 1496, 1491,
634 1507, 1495, 1491, 1944, 1495, 1494, 1944, 1503, 1500, 1507,
635 1944, 1521, 1509, 1523, 1507, 1525, 1944, 1525, 1529, 1944,
636 1512, 1512, 1944, 1525, 1524, 1525, 1543, 1944, 1944, 1533,
637 1944, 1545, 1546, 1557, 1536, 1550, 1540, 1554, 1563, 1566,
639 1551, 1564, 1590, 1559, 1944, 1564, 1572, 1574, 1573, 1569,
640 1584, 1593, 1944, 1602, 1586, 1597, 1944, 1944, 1590, 1590,
641 1606, 1613, 1606, 1593, 1619, 1620, 1944, 1621, 1944, 1622,
642 1619, 1944, 1629, 1627, 1619, 1944, 1944, 1623, 1640, 1630,
643 1944, 1631, 1631, 1944, 1645, 1944, 1637, 1633, 1649, 1944,
644 1944, 1944, 1640, 1638, 1636, 1652, 1944, 1944, 1660, 1640,
645 1660, 1662, 1944, 1669, 1944, 1670, 1671, 1655, 1944, 1667,
646 1677, 1658, 1944, 1682, 1944, 1680, 1690, 1944, 1944, 1672,
647 1686, 1679, 1679, 1693, 1702, 1703, 1699, 1700, 1695, 1702,
648 1706, 1696, 1703, 1716, 1720, 1721, 1944, 1714, 1944, 1713,
650 1717, 1944, 1718, 1944, 1717, 1726, 1740, 1728, 1944, 1944,
651 1944, 1944, 1944, 1944, 1944, 1725, 1747, 1745, 1944, 1737,
652 1944, 1752, 1753, 1944, 1944, 1737, 1944, 1740, 1944, 1944,
653 1758, 1750, 1760, 1944, 1944, 1944, 1740, 1753, 1766, 1768,
654 1763, 1759, 1772, 1775, 1776, 1763, 1944, 1773, 1944, 1779,
655 1783, 1792, 1944, 1944, 1780, 1784, 1944, 1944, 1944, 1791,
656 1800, 1944, 1783, 1796, 1800, 1792, 1944, 1797, 1809, 1944,
657 1944, 1944, 1810, 1806, 1944, 1814, 1813, 1812, 1808, 1810,
658 1814, 1811, 1944, 1824, 1944, 1944, 1828, 1944, 1836, 1827,
659 1828, 1821, 1841, 1944, 1830, 1944, 1944, 1944, 1837, 1845,
661 1944, 1834, 1944, 1854, 1857, 1858, 1855, 1944, 1852, 1944,
662 1859, 1944, 1851, 1866, 1869, 1944, 1862, 1944, 1864, 1944,
663 1864, 1944, 1872, 1944, 1944, 1880, 1870, 1886, 1944, 1887,
664 1877, 1874, 1882, 1944, 1885, 1944, 1944, 1944, 1944, 1891,
665 1944, 1944, 102, 101, 99
668 static yyconst flex_int16_t yy_def[946] =
670 942, 1, 942, 942, 942, 942, 942, 943, 944, 942,
671 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
672 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
673 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
674 942, 942, 942, 942, 945, 942, 942, 942, 943, 942,
675 944, 942, 942, 942, 942, 942, 942, 942, 942, 942,
676 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
677 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
678 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
679 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
681 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
682 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
683 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
684 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
685 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
686 942, 942, 942, 942, 942, 942, 942, 945, 942, 942,
687 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
688 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
689 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
690 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
692 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
693 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
694 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
695 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
696 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
697 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
698 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
699 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
700 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
701 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
703 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
704 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
705 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
706 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
707 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
708 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
709 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
710 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
711 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
712 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
714 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
715 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
716 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
717 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
718 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
719 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
720 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
721 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
722 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
723 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
725 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
726 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
727 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
728 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
729 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
730 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
731 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
732 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
733 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
734 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
736 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
737 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
738 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
739 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
740 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
741 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
742 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
743 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
744 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
745 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
747 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
748 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
749 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
750 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
751 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
752 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
753 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
754 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
755 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
756 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
758 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
759 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
760 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
761 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
762 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
763 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
764 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
765 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
766 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
767 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
769 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
770 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
771 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
772 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
773 942, 0, 942, 942, 942
776 static yyconst flex_int16_t yy_nxt[2014] =
778 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
779 14, 15, 16, 17, 10, 18, 19, 20, 21, 22,
780 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
781 33, 34, 35, 36, 37, 38, 39, 40, 4, 41,
782 42, 43, 4, 21, 22, 23, 24, 25, 26, 27,
783 28, 29, 30, 31, 32, 33, 34, 35, 36, 37,
784 38, 39, 40, 4, 41, 42, 43, 4, 44, 54,
785 54, 54, 54, 54, 54, 54, 54, 54, 54, 54,
786 54, 54, 54, 54, 54, 54, 54, 54, 54, 54,
787 54, 54, 54, 54, 54, 54, 54, 54, 54, 158,
789 133, 51, 49, 55, 56, 54, 54, 54, 54, 54,
790 54, 79, 74, 151, 57, 124, 75, 82, 80, 76,
791 113, 83, 58, 77, 114, 133, 125, 81, 55, 56,
792 126, 84, 78, 160, 59, 159, 79, 74, 151, 57,
793 124, 75, 82, 80, 76, 113, 83, 58, 77, 114,
794 97, 125, 81, 52, 50, 126, 84, 78, 160, 59,
795 63, 47, 64, 98, 65, 66, 99, 46, 159, 161,
796 162, 157, 67, 106, 68, 97, 69, 70, 100, 71,
797 72, 163, 101, 73, 62, 63, 102, 64, 98, 65,
798 66, 99, 103, 107, 161, 162, 108, 67, 106, 68,
800 104, 69, 70, 100, 71, 72, 163, 101, 73, 85,
801 105, 102, 164, 165, 166, 92, 86, 103, 107, 93,
802 87, 108, 167, 94, 88, 104, 61, 89, 90, 95,
803 91, 60, 96, 53, 85, 105, 168, 164, 165, 166,
804 92, 86, 115, 52, 93, 87, 116, 167, 94, 88,
805 117, 109, 89, 90, 95, 91, 118, 96, 110, 111,
806 120, 168, 119, 50, 121, 112, 134, 115, 122, 152,
807 135, 116, 153, 169, 123, 117, 109, 48, 170, 47,
808 136, 118, 46, 110, 111, 120, 942, 119, 154, 121,
809 112, 134, 155, 122, 152, 135, 171, 153, 169, 123,
811 127, 172, 156, 170, 128, 136, 173, 129, 174, 175,
812 176, 130, 45, 154, 942, 942, 942, 155, 131, 132,
813 942, 171, 177, 180, 942, 127, 172, 156, 942, 128,
814 178, 173, 129, 174, 175, 176, 130, 54, 54, 54,
815 54, 54, 54, 131, 132, 137, 181, 177, 180, 138,
816 179, 182, 139, 140, 184, 178, 183, 141, 185, 142,
817 189, 190, 942, 191, 192, 143, 942, 193, 942, 194,
818 137, 181, 195, 942, 138, 179, 182, 139, 140, 184,
819 942, 183, 141, 185, 142, 189, 190, 186, 191, 192,
820 143, 144, 193, 187, 194, 145, 196, 195, 146, 147,
822 197, 148, 198, 188, 201, 149, 202, 199, 203, 204,
823 205, 150, 186, 211, 942, 206, 144, 212, 187, 200,
824 145, 196, 207, 146, 147, 197, 148, 198, 188, 201,
825 149, 202, 199, 203, 204, 205, 150, 208, 211, 209,
826 206, 213, 212, 214, 200, 215, 219, 207, 216, 217,
827 218, 220, 221, 942, 210, 224, 225, 942, 942, 227,
828 222, 226, 208, 942, 209, 942, 213, 240, 214, 942,
829 215, 219, 228, 216, 217, 218, 220, 221, 223, 210,
830 224, 225, 234, 229, 227, 222, 226, 230, 236, 241,
831 231, 238, 240, 235, 232, 239, 242, 228, 237, 243,
833 233, 246, 244, 223, 247, 256, 257, 234, 229, 245,
834 942, 261, 230, 236, 241, 231, 238, 942, 235, 232,
835 239, 242, 942, 237, 243, 233, 246, 244, 254, 247,
836 256, 257, 262, 942, 245, 248, 261, 258, 267, 268,
837 269, 255, 249, 250, 259, 942, 251, 252, 270, 253,
838 263, 260, 942, 254, 271, 281, 942, 262, 264, 942,
839 248, 265, 258, 267, 268, 269, 255, 249, 250, 259,
840 266, 251, 252, 270, 253, 263, 260, 272, 282, 271,
841 281, 273, 283, 264, 277, 942, 265, 296, 274, 297,
842 275, 284, 278, 276, 285, 266, 942, 942, 298, 286,
844 942, 279, 272, 282, 287, 280, 273, 283, 299, 277,
845 294, 295, 296, 274, 297, 275, 284, 278, 276, 285,
846 288, 289, 291, 298, 286, 290, 279, 302, 292, 287,
847 280, 300, 301, 299, 293, 294, 295, 308, 303, 309,
848 310, 311, 312, 313, 305, 288, 289, 291, 304, 314,
849 290, 316, 302, 292, 306, 307, 300, 301, 317, 293,
850 318, 319, 308, 303, 309, 310, 311, 312, 313, 305,
851 320, 315, 321, 304, 314, 322, 316, 323, 326, 306,
852 307, 324, 325, 317, 327, 318, 319, 328, 329, 330,
853 331, 332, 333, 334, 335, 320, 315, 321, 336, 337,
855 322, 338, 323, 326, 339, 340, 324, 325, 341, 327,
856 342, 343, 328, 329, 330, 331, 332, 333, 334, 335,
857 344, 345, 346, 336, 337, 347, 338, 348, 349, 339,
858 340, 350, 352, 341, 353, 342, 343, 354, 355, 356,
859 351, 357, 358, 359, 360, 344, 345, 346, 365, 366,
860 347, 367, 348, 349, 363, 361, 350, 352, 364, 353,
861 368, 369, 354, 355, 356, 351, 357, 358, 359, 360,
862 362, 370, 371, 365, 366, 372, 367, 373, 374, 363,
863 361, 375, 379, 364, 376, 368, 369, 380, 377, 381,
864 382, 378, 386, 387, 388, 362, 370, 371, 383, 389,
866 372, 384, 373, 374, 390, 385, 375, 379, 391, 376,
867 392, 393, 380, 377, 381, 382, 378, 386, 387, 388,
868 394, 395, 396, 383, 389, 397, 384, 398, 399, 390,
869 385, 402, 400, 391, 401, 392, 393, 404, 406, 403,
870 407, 408, 405, 409, 410, 394, 395, 396, 411, 412,
871 397, 413, 398, 399, 414, 415, 402, 400, 416, 401,
872 417, 418, 404, 406, 403, 407, 408, 405, 409, 410,
873 419, 420, 421, 411, 412, 422, 413, 423, 424, 414,
874 415, 425, 426, 416, 427, 417, 418, 428, 432, 433,
875 434, 435, 436, 429, 437, 419, 420, 421, 438, 430,
877 422, 439, 423, 424, 440, 441, 425, 426, 431, 427,
878 442, 443, 428, 432, 433, 434, 435, 436, 429, 437,
879 444, 445, 446, 438, 430, 448, 439, 449, 450, 440,
880 441, 451, 452, 431, 453, 442, 443, 454, 455, 447,
881 456, 459, 457, 460, 461, 444, 445, 446, 465, 466,
882 448, 467, 449, 450, 458, 462, 451, 452, 468, 453,
883 469, 470, 454, 455, 447, 456, 459, 457, 460, 461,
884 463, 464, 471, 465, 466, 472, 467, 473, 474, 458,
885 462, 475, 476, 468, 477, 469, 470, 478, 479, 480,
886 481, 482, 483, 484, 485, 463, 464, 471, 486, 487,
888 472, 488, 473, 474, 489, 490, 475, 476, 491, 477,
889 492, 493, 478, 479, 480, 481, 482, 483, 484, 485,
890 494, 495, 496, 486, 487, 497, 488, 498, 499, 489,
891 490, 500, 501, 491, 502, 492, 493, 503, 504, 505,
892 506, 507, 508, 509, 510, 494, 495, 496, 511, 512,
893 497, 513, 498, 499, 514, 515, 500, 501, 516, 502,
894 517, 518, 503, 504, 505, 506, 507, 508, 509, 510,
895 519, 520, 521, 511, 512, 522, 513, 523, 524, 514,
896 515, 525, 526, 516, 527, 517, 518, 528, 529, 530,
897 531, 532, 533, 534, 535, 519, 520, 521, 536, 537,
899 522, 538, 523, 524, 539, 540, 525, 526, 541, 527,
900 542, 543, 528, 529, 530, 531, 532, 533, 534, 535,
901 544, 545, 546, 536, 537, 547, 538, 548, 549, 539,
902 540, 550, 551, 541, 552, 542, 543, 553, 554, 555,
903 556, 557, 558, 559, 560, 544, 545, 546, 561, 562,
904 547, 563, 548, 549, 564, 565, 550, 551, 568, 552,
905 566, 567, 553, 554, 555, 556, 557, 558, 559, 560,
906 569, 570, 571, 561, 562, 572, 563, 573, 574, 564,
907 565, 575, 576, 568, 577, 566, 567, 578, 579, 580,
908 581, 582, 583, 584, 585, 569, 570, 571, 586, 587,
910 572, 588, 573, 574, 589, 590, 575, 576, 591, 577,
911 592, 593, 578, 579, 580, 581, 582, 583, 584, 585,
912 594, 595, 596, 586, 587, 597, 588, 598, 599, 589,
913 590, 602, 603, 591, 600, 592, 593, 604, 601, 605,
914 606, 607, 608, 609, 610, 594, 595, 596, 611, 612,
915 597, 613, 598, 599, 614, 615, 602, 603, 616, 600,
916 617, 618, 604, 601, 605, 606, 607, 608, 609, 610,
917 619, 620, 621, 611, 612, 622, 613, 623, 624, 614,
918 615, 625, 626, 616, 627, 617, 618, 628, 629, 630,
919 631, 632, 633, 634, 635, 619, 620, 621, 636, 637,
921 622, 638, 623, 624, 639, 640, 625, 626, 641, 627,
922 642, 643, 628, 629, 630, 631, 632, 633, 634, 635,
923 644, 645, 646, 636, 637, 647, 638, 648, 649, 639,
924 640, 650, 651, 641, 652, 642, 643, 653, 654, 655,
925 656, 657, 658, 659, 660, 644, 645, 646, 661, 662,
926 647, 663, 648, 649, 664, 665, 650, 651, 666, 652,
927 667, 668, 653, 654, 655, 656, 657, 658, 659, 660,
928 669, 670, 671, 661, 662, 672, 663, 673, 674, 664,
929 665, 675, 676, 666, 677, 667, 668, 678, 679, 680,
930 681, 682, 683, 684, 685, 669, 670, 671, 686, 687,
932 672, 688, 673, 674, 689, 690, 675, 676, 691, 677,
933 694, 692, 678, 679, 680, 681, 682, 683, 684, 685,
934 693, 695, 696, 686, 687, 697, 688, 698, 699, 689,
935 690, 700, 701, 691, 702, 694, 692, 703, 704, 705,
936 706, 707, 708, 712, 709, 693, 695, 696, 710, 713,
937 697, 711, 698, 699, 714, 715, 700, 701, 716, 702,
938 717, 718, 703, 704, 705, 706, 707, 708, 712, 709,
939 719, 720, 721, 710, 713, 722, 711, 723, 724, 714,
940 715, 725, 726, 716, 727, 717, 718, 728, 729, 730,
941 731, 732, 733, 734, 735, 719, 720, 721, 736, 737,
943 722, 738, 723, 724, 739, 740, 725, 726, 741, 727,
944 742, 743, 728, 729, 730, 731, 732, 733, 734, 735,
945 744, 745, 746, 736, 737, 747, 738, 748, 749, 739,
946 740, 750, 751, 741, 752, 742, 743, 753, 754, 755,
947 757, 758, 759, 760, 761, 744, 745, 746, 762, 763,
948 747, 764, 748, 749, 765, 766, 750, 751, 756, 752,
949 767, 768, 753, 754, 755, 757, 758, 759, 760, 761,
950 769, 770, 771, 762, 763, 772, 764, 773, 774, 765,
951 766, 775, 776, 756, 777, 767, 768, 778, 779, 780,
952 786, 942, 942, 942, 787, 769, 770, 771, 788, 789,
954 772, 942, 773, 774, 790, 791, 775, 776, 781, 777,
955 792, 793, 778, 779, 780, 786, 782, 783, 784, 787,
956 794, 795, 796, 788, 789, 797, 785, 798, 799, 790,
957 791, 800, 801, 781, 802, 792, 793, 803, 804, 805,
958 806, 782, 783, 784, 807, 794, 795, 796, 808, 809,
959 797, 785, 798, 799, 810, 811, 800, 801, 812, 802,
960 813, 814, 803, 804, 805, 806, 815, 816, 817, 807,
961 818, 819, 820, 808, 809, 821, 822, 823, 824, 810,
962 811, 825, 826, 812, 827, 813, 814, 828, 829, 830,
963 831, 815, 816, 817, 832, 818, 819, 820, 833, 834,
965 821, 822, 823, 824, 835, 836, 825, 826, 837, 827,
966 838, 839, 828, 829, 830, 831, 841, 842, 843, 832,
967 844, 840, 845, 833, 834, 846, 847, 848, 849, 835,
968 836, 850, 851, 837, 852, 838, 839, 853, 854, 855,
969 856, 841, 842, 843, 857, 844, 840, 845, 858, 859,
970 846, 847, 848, 849, 860, 861, 850, 851, 862, 852,
971 863, 864, 853, 854, 855, 856, 865, 866, 867, 857,
972 868, 869, 870, 858, 859, 871, 872, 873, 874, 860,
973 861, 875, 876, 862, 877, 863, 864, 878, 879, 880,
974 881, 865, 866, 867, 882, 868, 869, 870, 883, 884,
976 871, 872, 873, 874, 885, 886, 875, 876, 887, 877,
977 888, 889, 878, 879, 880, 881, 890, 891, 892, 882,
978 894, 895, 896, 883, 884, 897, 898, 899, 900, 885,
979 886, 901, 902, 887, 903, 888, 889, 893, 904, 905,
980 906, 890, 891, 892, 907, 894, 895, 896, 908, 909,
981 897, 898, 899, 900, 910, 911, 901, 902, 912, 903,
982 913, 914, 893, 904, 905, 906, 915, 916, 917, 907,
983 918, 919, 920, 908, 909, 921, 922, 923, 924, 910,
984 911, 925, 926, 912, 927, 913, 914, 928, 929, 930,
985 931, 915, 916, 917, 932, 918, 919, 920, 933, 934,
987 921, 922, 923, 924, 935, 936, 925, 926, 937, 927,
988 938, 939, 928, 929, 930, 931, 940, 941, 942, 932,
989 942, 942, 942, 933, 934, 942, 942, 942, 942, 935,
990 936, 942, 942, 937, 942, 938, 939, 942, 942, 942,
991 942, 940, 941, 3, 942, 942, 942, 942, 942, 942,
992 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
993 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
994 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
995 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
996 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
998 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
1002 static yyconst flex_int16_t yy_chk[2014] =
1004 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1005 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1006 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1007 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1008 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1009 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1010 1, 1, 1, 1, 1, 1, 1, 1, 1, 12,
1011 12, 12, 12, 12, 12, 13, 13, 13, 13, 13,
1012 13, 14, 14, 14, 14, 14, 14, 15, 15, 15,
1013 15, 15, 15, 16, 16, 16, 16, 16, 16, 945,
1015 37, 944, 943, 13, 14, 17, 17, 17, 17, 17,
1016 17, 23, 22, 41, 15, 35, 22, 24, 23, 22,
1017 32, 24, 16, 22, 32, 37, 35, 23, 13, 14,
1018 35, 24, 22, 55, 17, 158, 23, 22, 41, 15,
1019 35, 22, 24, 23, 22, 32, 24, 16, 22, 32,
1020 27, 35, 23, 51, 49, 35, 24, 22, 55, 17,
1021 21, 47, 21, 27, 21, 21, 27, 46, 45, 56,
1022 57, 44, 21, 30, 21, 27, 21, 21, 28, 21,
1023 21, 58, 28, 21, 20, 21, 28, 21, 27, 21,
1024 21, 27, 29, 30, 56, 57, 30, 21, 30, 21,
1026 29, 21, 21, 28, 21, 21, 58, 28, 21, 25,
1027 29, 28, 59, 63, 64, 26, 25, 29, 30, 26,
1028 25, 30, 65, 26, 25, 29, 19, 25, 25, 26,
1029 25, 18, 26, 11, 25, 29, 66, 59, 63, 64,
1030 26, 25, 33, 9, 26, 25, 33, 65, 26, 25,
1031 33, 31, 25, 25, 26, 25, 33, 26, 31, 31,
1032 34, 66, 33, 8, 34, 31, 38, 33, 34, 42,
1033 38, 33, 42, 67, 34, 33, 31, 7, 68, 6,
1034 38, 33, 5, 31, 31, 34, 3, 33, 43, 34,
1035 31, 38, 43, 34, 42, 38, 69, 42, 67, 34,
1037 36, 70, 43, 68, 36, 38, 71, 36, 73, 74,
1038 75, 36, 2, 43, 0, 0, 0, 43, 36, 36,
1039 0, 69, 76, 78, 0, 36, 70, 43, 0, 36,
1040 77, 71, 36, 73, 74, 75, 36, 54, 54, 54,
1041 54, 54, 54, 36, 36, 39, 79, 76, 78, 39,
1042 77, 80, 39, 39, 81, 77, 80, 39, 82, 39,
1043 84, 85, 0, 86, 87, 39, 0, 88, 0, 89,
1044 39, 79, 90, 0, 39, 77, 80, 39, 39, 81,
1045 0, 80, 39, 82, 39, 84, 85, 83, 86, 87,
1046 39, 40, 88, 83, 89, 40, 91, 90, 40, 40,
1048 92, 40, 93, 83, 95, 40, 96, 94, 97, 98,
1049 99, 40, 83, 102, 0, 100, 40, 104, 83, 94,
1050 40, 91, 100, 40, 40, 92, 40, 93, 83, 95,
1051 40, 96, 94, 97, 98, 99, 40, 101, 102, 101,
1052 100, 105, 104, 106, 94, 106, 108, 100, 107, 107,
1053 107, 109, 110, 0, 101, 112, 113, 0, 0, 114,
1054 111, 113, 101, 0, 101, 0, 105, 119, 106, 0,
1055 106, 108, 114, 107, 107, 107, 109, 110, 111, 101,
1056 112, 113, 116, 115, 114, 111, 113, 115, 117, 120,
1057 115, 118, 119, 116, 115, 118, 121, 114, 117, 122,
1059 115, 124, 123, 111, 126, 129, 130, 116, 115, 123,
1060 0, 132, 115, 117, 120, 115, 118, 0, 116, 115,
1061 118, 121, 0, 117, 122, 115, 124, 123, 128, 126,
1062 129, 130, 133, 0, 123, 127, 132, 131, 135, 136,
1063 137, 128, 127, 127, 131, 0, 127, 127, 137, 127,
1064 134, 131, 0, 128, 137, 140, 0, 133, 134, 0,
1065 127, 134, 131, 135, 136, 137, 128, 127, 127, 131,
1066 134, 127, 127, 137, 127, 134, 131, 138, 141, 137,
1067 140, 138, 142, 134, 139, 0, 134, 148, 138, 149,
1068 138, 143, 139, 138, 143, 134, 0, 0, 150, 144,
1070 0, 139, 138, 141, 144, 139, 138, 142, 151, 139,
1071 147, 147, 148, 138, 149, 138, 143, 139, 138, 143,
1072 145, 145, 146, 150, 144, 145, 139, 153, 146, 144,
1073 139, 152, 152, 151, 146, 147, 147, 156, 154, 165,
1074 166, 167, 168, 170, 155, 145, 145, 146, 154, 172,
1075 145, 173, 153, 146, 155, 155, 152, 152, 174, 146,
1076 175, 176, 156, 154, 165, 166, 167, 168, 170, 155,
1077 177, 172, 178, 154, 172, 179, 173, 180, 182, 155,
1078 155, 181, 181, 174, 183, 175, 176, 184, 185, 186,
1079 188, 189, 190, 191, 192, 177, 172, 178, 193, 194,
1081 179, 195, 180, 182, 196, 197, 181, 181, 198, 183,
1082 199, 200, 184, 185, 186, 188, 189, 190, 191, 192,
1083 201, 202, 203, 193, 194, 204, 195, 204, 205, 196,
1084 197, 206, 207, 198, 208, 199, 200, 209, 210, 211,
1085 206, 212, 213, 214, 215, 201, 202, 203, 218, 219,
1086 204, 220, 204, 205, 217, 216, 206, 207, 217, 208,
1087 221, 222, 209, 210, 211, 206, 212, 213, 214, 215,
1088 216, 223, 224, 218, 219, 225, 220, 226, 227, 217,
1089 216, 228, 230, 217, 229, 221, 222, 231, 229, 232,
1090 234, 229, 236, 237, 238, 216, 223, 224, 235, 239,
1092 225, 235, 226, 227, 240, 235, 228, 230, 241, 229,
1093 242, 243, 231, 229, 232, 234, 229, 236, 237, 238,
1094 244, 245, 246, 235, 239, 247, 235, 248, 249, 240,
1095 235, 251, 250, 241, 250, 242, 243, 252, 253, 251,
1096 254, 255, 252, 256, 257, 244, 245, 246, 258, 259,
1097 247, 260, 248, 249, 261, 262, 251, 250, 263, 250,
1098 264, 265, 252, 253, 251, 254, 255, 252, 256, 257,
1099 266, 269, 270, 258, 259, 271, 260, 272, 273, 261,
1100 262, 274, 275, 263, 276, 264, 265, 277, 278, 279,
1101 280, 281, 282, 277, 283, 266, 269, 270, 284, 277,
1103 271, 285, 272, 273, 286, 287, 274, 275, 277, 276,
1104 288, 290, 277, 278, 279, 280, 281, 282, 277, 283,
1105 291, 292, 293, 284, 277, 295, 285, 296, 297, 286,
1106 287, 298, 299, 277, 300, 288, 290, 301, 302, 293,
1107 303, 305, 304, 306, 307, 291, 292, 293, 310, 311,
1108 295, 312, 296, 297, 304, 308, 298, 299, 313, 300,
1109 314, 315, 301, 302, 293, 303, 305, 304, 306, 307,
1110 308, 308, 316, 310, 311, 318, 312, 319, 320, 304,
1111 308, 321, 323, 313, 324, 314, 315, 325, 326, 327,
1112 330, 331, 332, 333, 337, 308, 308, 316, 338, 339,
1114 318, 340, 319, 320, 341, 342, 321, 323, 343, 324,
1115 344, 345, 325, 326, 327, 330, 331, 332, 333, 337,
1116 346, 347, 348, 338, 339, 349, 340, 350, 351, 341,
1117 342, 352, 353, 343, 354, 344, 345, 355, 356, 357,
1118 359, 360, 361, 363, 364, 346, 347, 348, 366, 367,
1119 349, 368, 350, 351, 369, 370, 352, 353, 371, 354,
1120 372, 374, 355, 356, 357, 359, 360, 361, 363, 364,
1121 375, 376, 377, 366, 367, 379, 368, 380, 381, 369,
1122 370, 383, 384, 371, 385, 372, 374, 386, 387, 388,
1123 389, 390, 392, 393, 395, 375, 376, 377, 396, 397,
1125 379, 398, 380, 381, 399, 400, 383, 384, 401, 385,
1126 402, 403, 386, 387, 388, 389, 390, 392, 393, 395,
1127 404, 405, 406, 396, 397, 407, 398, 408, 409, 399,
1128 400, 411, 412, 401, 413, 402, 403, 414, 415, 416,
1129 417, 418, 419, 420, 421, 404, 405, 406, 422, 423,
1130 407, 424, 408, 409, 426, 427, 411, 412, 429, 413,
1131 428, 428, 414, 415, 416, 417, 418, 419, 420, 421,
1132 430, 431, 432, 422, 423, 433, 424, 434, 435, 426,
1133 427, 436, 437, 429, 438, 428, 428, 439, 440, 441,
1134 442, 443, 444, 445, 446, 430, 431, 432, 447, 448,
1136 433, 449, 434, 435, 451, 452, 436, 437, 453, 438,
1137 454, 455, 439, 440, 441, 442, 443, 444, 445, 446,
1138 456, 457, 458, 447, 448, 460, 449, 461, 462, 451,
1139 452, 464, 465, 453, 463, 454, 455, 467, 463, 469,
1140 470, 471, 472, 473, 474, 456, 457, 458, 476, 477,
1141 460, 478, 461, 462, 479, 480, 464, 465, 481, 463,
1142 482, 483, 467, 463, 469, 470, 471, 472, 473, 474,
1143 484, 485, 486, 476, 477, 488, 478, 489, 492, 479,
1144 480, 493, 494, 481, 496, 482, 483, 497, 500, 501,
1145 503, 505, 506, 507, 508, 484, 485, 486, 509, 511,
1147 488, 512, 489, 492, 513, 515, 493, 494, 516, 496,
1148 517, 518, 497, 500, 501, 503, 505, 506, 507, 508,
1149 519, 520, 521, 509, 511, 522, 512, 523, 525, 513,
1150 515, 526, 527, 516, 529, 517, 518, 530, 531, 532,
1151 533, 535, 536, 537, 538, 519, 520, 521, 539, 542,
1152 522, 543, 523, 525, 544, 545, 526, 527, 547, 529,
1153 548, 549, 530, 531, 532, 533, 535, 536, 537, 538,
1154 550, 551, 554, 539, 542, 555, 543, 557, 558, 544,
1155 545, 560, 561, 547, 562, 548, 549, 564, 565, 566,
1156 567, 568, 569, 570, 572, 550, 551, 554, 576, 577,
1158 555, 578, 557, 558, 579, 581, 560, 561, 584, 562,
1159 586, 585, 564, 565, 566, 567, 568, 569, 570, 572,
1160 585, 587, 588, 576, 577, 589, 578, 590, 591, 579,
1161 581, 592, 594, 584, 595, 586, 585, 596, 597, 598,
1162 599, 600, 601, 604, 602, 585, 587, 588, 602, 605,
1163 589, 602, 590, 591, 610, 611, 592, 594, 612, 595,
1164 613, 615, 596, 597, 598, 599, 600, 601, 604, 602,
1165 616, 617, 618, 602, 605, 621, 602, 622, 623, 610,
1166 611, 627, 628, 612, 631, 613, 615, 632, 634, 636,
1167 637, 639, 641, 642, 643, 616, 617, 618, 645, 646,
1169 621, 647, 622, 623, 648, 650, 627, 628, 652, 631,
1170 655, 657, 632, 634, 636, 637, 639, 641, 642, 643,
1171 658, 659, 660, 645, 646, 661, 647, 662, 663, 648,
1172 650, 665, 666, 652, 668, 655, 657, 669, 670, 672,
1173 673, 674, 675, 676, 678, 658, 659, 660, 679, 681,
1174 661, 682, 662, 663, 684, 685, 665, 666, 672, 668,
1175 686, 687, 669, 670, 672, 673, 674, 675, 676, 678,
1176 690, 692, 693, 679, 681, 694, 682, 695, 696, 684,
1177 685, 697, 698, 672, 699, 686, 687, 700, 701, 702,
1178 704, 0, 0, 0, 706, 690, 692, 693, 707, 708,
1180 694, 0, 695, 696, 709, 710, 697, 698, 703, 699,
1181 711, 712, 700, 701, 702, 704, 703, 703, 703, 706,
1182 714, 715, 716, 707, 708, 719, 703, 720, 721, 709,
1183 710, 722, 723, 703, 724, 711, 712, 725, 726, 728,
1184 730, 703, 703, 703, 731, 714, 715, 716, 733, 734,
1185 719, 703, 720, 721, 735, 738, 722, 723, 739, 724,
1186 740, 742, 725, 726, 728, 730, 743, 745, 747, 731,
1187 748, 749, 753, 733, 734, 754, 755, 756, 759, 735,
1188 738, 760, 761, 739, 762, 740, 742, 764, 766, 767,
1189 768, 743, 745, 747, 770, 748, 749, 753, 771, 772,
1191 754, 755, 756, 759, 774, 776, 760, 761, 777, 762,
1192 780, 781, 764, 766, 767, 768, 782, 783, 784, 770,
1193 785, 781, 786, 771, 772, 787, 788, 789, 790, 774,
1194 776, 791, 792, 777, 793, 780, 781, 794, 795, 796,
1195 798, 782, 783, 784, 800, 785, 781, 786, 801, 803,
1196 787, 788, 789, 790, 805, 806, 791, 792, 807, 793,
1197 808, 816, 794, 795, 796, 798, 817, 818, 820, 800,
1198 822, 823, 826, 801, 803, 828, 831, 832, 833, 805,
1199 806, 837, 838, 807, 839, 808, 816, 840, 841, 842,
1200 843, 817, 818, 820, 844, 822, 823, 826, 845, 846,
1202 828, 831, 832, 833, 848, 850, 837, 838, 851, 839,
1203 852, 855, 840, 841, 842, 843, 856, 860, 861, 844,
1204 863, 864, 865, 845, 846, 866, 868, 869, 873, 848,
1205 850, 874, 876, 851, 877, 852, 855, 861, 878, 879,
1206 880, 856, 860, 861, 881, 863, 864, 865, 882, 884,
1207 866, 868, 869, 873, 887, 889, 874, 876, 890, 877,
1208 891, 892, 861, 878, 879, 880, 893, 895, 899, 881,
1209 900, 902, 904, 882, 884, 905, 906, 907, 909, 887,
1210 889, 911, 913, 890, 914, 891, 892, 915, 917, 919,
1211 921, 893, 895, 899, 923, 900, 902, 904, 926, 927,
1213 905, 906, 907, 909, 928, 930, 911, 913, 931, 914,
1214 932, 933, 915, 917, 919, 921, 935, 940, 0, 923,
1215 0, 0, 0, 926, 927, 0, 0, 0, 0, 928,
1216 930, 0, 0, 931, 0, 932, 933, 0, 0, 0,
1217 0, 935, 940, 942, 942, 942, 942, 942, 942, 942,
1218 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
1219 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
1220 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
1221 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
1222 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
1224 942, 942, 942, 942, 942, 942, 942, 942, 942, 942,
1228 static yyconst flex_int16_t yy_rule_linenum[201] =
1230 89, 90, 91, 92, 93, 95, 96, 97, 98, 100,
1231 102, 106, 107, 108, 109, 110, 111, 112, 113, 114,
1232 115, 116, 117, 118, 119, 120, 121, 123, 124, 125,
1233 126, 127, 128, 129, 130, 131, 133, 134, 135, 136,
1234 137, 138, 139, 140, 142, 143, 144, 145, 146, 147,
1235 148, 149, 151, 152, 154, 155, 157, 158, 159, 160,
1236 161, 162, 163, 164, 165, 166, 167, 168, 170, 171,
1237 172, 173, 174, 175, 176, 178, 180, 181, 182, 183,
1238 184, 185, 186, 187, 188, 189, 190, 191, 192, 194,
1239 195, 196, 197, 198, 199, 200, 202, 204, 205, 206,
1241 207, 208, 209, 210, 211, 212, 213, 214, 215, 216,
1242 218, 219, 220, 221, 222, 223, 224, 226, 228, 229,
1243 230, 231, 232, 233, 234, 235, 236, 237, 238, 239,
1244 240, 241, 243, 244, 245, 246, 247, 248, 249, 251,
1245 253, 254, 255, 256, 257, 258, 259, 260, 261, 262,
1246 263, 264, 266, 267, 268, 269, 270, 271, 272, 274,
1247 276, 277, 278, 279, 280, 281, 282, 283, 284, 285,
1248 286, 287, 289, 290, 291, 292, 293, 294, 295, 297,
1249 299, 300, 301, 302, 303, 304, 305, 306, 307, 308,
1250 309, 310, 312, 313, 314, 315, 316, 317, 318, 320
1257 #define REJECT reject_used_but_not_detected
1258 #define yymore() yymore_used_but_not_detected
1259 #define YY_MORE_ADJ 0
1260 #define YY_RESTORE_YY_MORE_OFFSET
1261 #line 1 "holidayscannerplan.lpp"
1287 #line 28 "holidayscannerplan.lpp"
1290 # include <limits.h>
1293 # include <kdebug.h>
1295 # include "holidayscannerplan_p.h"
1296 # include "holidayparserdriverplan_p.h"
1297 # include "holidayparserplan.hpp"
1301 typedef KHolidays::HolidayParserPlan::token_type token_type;
1305 # define yyterminate() return token::END
1309 # define YY_NO_UNISTD_H
1320 #line 78 "holidayscannerplan.lpp"
1321 # define YY_USER_ACTION yylloc->columns( yyleng );
1322 #line 1323 "holidayscannerplan.cpp"
1326 #ifndef YY_NO_UNISTD_H
1338 #ifndef YY_EXTRA_TYPE
1339 #define YY_EXTRA_TYPE void *
1358 static void yy_flex_strncpy (
char *,yyconst
char *,
int );
1361 #ifdef YY_NEED_STRLEN
1362 static int yy_flex_strlen (yyconst
char * );
1378 #ifndef YY_READ_BUF_SIZE
1379 #define YY_READ_BUF_SIZE 8192
1387 #define ECHO LexerOutput( yytext, yyleng )
1395 #define YY_INPUT(buf,result,max_size) \
1399 if ( (result = LexerInput( (char *) buf, max_size )) < 0 ) \
1400 YY_FATAL_ERROR( "input in flex scanner failed" );
1410 #define yyterminate() return YY_NULL
1414 #ifndef YY_START_STACK_INCR
1415 #define YY_START_STACK_INCR 25
1419 #ifndef YY_FATAL_ERROR
1423 #define YY_FATAL_ERROR(msg) LexerError( msg )
1444 #define YY_DECL_IS_OURS 1
1448 #define YY_DECL int yyFlexLexer::yylex()
1455 #ifndef YY_USER_ACTION
1456 #define YY_USER_ACTION
1461 #define YY_BREAK break;
1465 #define YY_RULE_SETUP \
1467 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \
1468 (yytext[yyleng - 1] == '\n'); \
1477 register yy_state_type yy_current_state;
1478 register char *yy_cp, *yy_bp;
1479 register int yy_act;
1482 #line 81 "holidayscannerplan.lpp"
1491 #line 1492 "holidayscannerplan.cpp"
1515 yyout = & std::cout;
1518 if ( ! YY_CURRENT_BUFFER ) {
1519 yyensure_buffer_stack ();
1520 YY_CURRENT_BUFFER_LVALUE =
1521 yy_create_buffer( yyin, YY_BUF_SIZE );
1524 yy_load_buffer_state( );
1530 yy_cp = (yy_c_buf_p);
1533 *yy_cp = (yy_hold_char);
1541 yy_current_state = (yy_start);
1542 yy_current_state += YY_AT_BOL();
1546 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
1547 if ( yy_accept[yy_current_state] )
1549 (yy_last_accepting_state) = yy_current_state;
1550 (yy_last_accepting_cpos) = yy_cp;
1552 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1554 yy_current_state = (int) yy_def[yy_current_state];
1555 if ( yy_current_state >= 943 )
1556 yy_c = yy_meta[(
unsigned int) yy_c];
1558 yy_current_state = yy_nxt[yy_base[yy_current_state] + (
unsigned int) yy_c];
1561 while ( yy_current_state != 942 );
1562 yy_cp = (yy_last_accepting_cpos);
1563 yy_current_state = (yy_last_accepting_state);
1567 yy_act = yy_accept[yy_current_state];
1569 YY_DO_BEFORE_ACTION;
1576 if ( yy_flex_debug )
1579 std::cerr <<
"--scanner backing up\n";
1580 else if ( yy_act < 201 )
1581 std::cerr <<
"--accepting rule at line " << yy_rule_linenum[yy_act] <<
1582 "(\"" << yytext <<
"\")\n";
1583 else if ( yy_act == 201 )
1584 std::cerr <<
"--accepting default rule (\"" << yytext <<
"\")\n";
1585 else if ( yy_act == 202 )
1586 std::cerr <<
"--(end of buffer or a NUL)\n";
1588 std::cerr <<
"--EOF (start condition " << YY_START <<
")\n";
1596 *yy_cp = (yy_hold_char);
1597 yy_cp = (yy_last_accepting_cpos);
1598 yy_current_state = (yy_last_accepting_state);
1599 goto yy_find_action;
1604 #line 89 "holidayscannerplan.lpp"
1605 { yylloc->lines( yyleng ); yylloc->step(); }
1610 #line 90 "holidayscannerplan.lpp"
1611 { yylloc->lines( yyleng ); yylloc->step(); }
1615 #line 91 "holidayscannerplan.lpp"
1621 #line 92 "holidayscannerplan.lpp"
1622 { yylloc->lines( yyleng ); yylloc->step(); }
1626 #line 93 "holidayscannerplan.lpp"
1631 #line 95 "holidayscannerplan.lpp"
1632 {
return token::COUNTRY; }
1636 #line 96 "holidayscannerplan.lpp"
1637 {
return token::LANGUAGE; }
1641 #line 97 "holidayscannerplan.lpp"
1642 {
return token::NAME; }
1646 #line 98 "holidayscannerplan.lpp"
1647 {
return token::DESCRIPTION; }
1651 #line 100 "holidayscannerplan.lpp"
1652 { yylval->ival = atoi( yytext );
return token::NUMBER; }
1657 #line 102 "holidayscannerplan.lpp"
1658 { yylval->sval = strdup( yytext + 1 );
1659 yylval->sval[ strlen( yylval->sval ) - 1 ] = 0;
1660 return token::STRING; }
1664 #line 106 "holidayscannerplan.lpp"
1669 #line 107 "holidayscannerplan.lpp"
1674 #line 108 "holidayscannerplan.lpp"
1679 #line 109 "holidayscannerplan.lpp"
1684 #line 110 "holidayscannerplan.lpp"
1689 #line 111 "holidayscannerplan.lpp"
1690 {
return token::INOP; }
1694 #line 112 "holidayscannerplan.lpp"
1695 {
return token::IF; }
1699 #line 113 "holidayscannerplan.lpp"
1700 {
return token::PLUS; }
1704 #line 114 "holidayscannerplan.lpp"
1705 {
return token::MINUS; }
1709 #line 115 "holidayscannerplan.lpp"
1710 {
return token::SMALL; }
1714 #line 116 "holidayscannerplan.lpp"
1715 {
return token::YEAR; }
1719 #line 117 "holidayscannerplan.lpp"
1720 {
return token::LEAPYEAR; }
1724 #line 118 "holidayscannerplan.lpp"
1725 {
return token::EASTER; }
1729 #line 119 "holidayscannerplan.lpp"
1730 {
return token::PASCHA; }
1734 #line 120 "holidayscannerplan.lpp"
1735 {
return token::LENGTH; }
1739 #line 121 "holidayscannerplan.lpp"
1740 {
return token::SHIFT; }
1744 #line 123 "holidayscannerplan.lpp"
1745 { yylval->ival = 1;
return token::COLOR; }
1749 #line 124 "holidayscannerplan.lpp"
1750 { yylval->ival = 2;
return token::COLOR; }
1754 #line 125 "holidayscannerplan.lpp"
1755 { yylval->ival = 3;
return token::COLOR; }
1759 #line 126 "holidayscannerplan.lpp"
1760 { yylval->ival = 4;
return token::COLOR; }
1764 #line 127 "holidayscannerplan.lpp"
1765 { yylval->ival = 5;
return token::COLOR; }
1769 #line 128 "holidayscannerplan.lpp"
1770 { yylval->ival = 6;
return token::COLOR; }
1774 #line 129 "holidayscannerplan.lpp"
1775 { yylval->ival = 7;
return token::COLOR; }
1779 #line 130 "holidayscannerplan.lpp"
1780 { yylval->ival = 8;
return token::COLOR; }
1784 #line 131 "holidayscannerplan.lpp"
1785 { yylval->ival = 9;
return token::COLOR; }
1789 #line 133 "holidayscannerplan.lpp"
1790 {
return token::EQ; }
1794 #line 134 "holidayscannerplan.lpp"
1795 {
return token::NE; }
1799 #line 135 "holidayscannerplan.lpp"
1800 {
return token::LE; }
1804 #line 136 "holidayscannerplan.lpp"
1805 {
return token::GE; }
1809 #line 137 "holidayscannerplan.lpp"
1810 {
return token::LT; }
1814 #line 138 "holidayscannerplan.lpp"
1815 {
return token::GT; }
1819 #line 139 "holidayscannerplan.lpp"
1820 {
return token::AND;}
1824 #line 140 "holidayscannerplan.lpp"
1825 {
return token::OR; }
1829 #line 142 "holidayscannerplan.lpp"
1830 { yylval->ival = 1;
return token::NUMBER; }
1834 #line 143 "holidayscannerplan.lpp"
1835 { yylval->ival = 2;
return token::NUMBER; }
1839 #line 144 "holidayscannerplan.lpp"
1840 { yylval->ival = 3;
return token::NUMBER; }
1844 #line 145 "holidayscannerplan.lpp"
1845 { yylval->ival = 4;
return token::NUMBER; }
1849 #line 146 "holidayscannerplan.lpp"
1850 { yylval->ival = 5;
return token::NUMBER; }
1854 #line 147 "holidayscannerplan.lpp"
1855 { yylval->ival = 99999;
return token::NUMBER; }
1859 #line 148 "holidayscannerplan.lpp"
1860 { yylval->ival = -99999;
return token::NUMBER; }
1864 #line 149 "holidayscannerplan.lpp"
1865 { yylval->ival = 0;
return token::NUMBER; }
1869 #line 151 "holidayscannerplan.lpp"
1870 { yylval->ival = -1;
return token::NUMBER; }
1874 #line 152 "holidayscannerplan.lpp"
1875 { yylval->ival = 1;
return token::NUMBER; }
1879 #line 154 "holidayscannerplan.lpp"
1880 { yylval->sval =
"gregorian";
return token::CALENDAR; }
1884 #line 155 "holidayscannerplan.lpp"
1885 { yylval->sval =
"julian";
return token::CALENDAR; }
1889 #line 157 "holidayscannerplan.lpp"
1890 { yylval->ival = 1;
return token::MONTH; }
1894 #line 158 "holidayscannerplan.lpp"
1895 { yylval->ival = 2;
return token::MONTH; }
1899 #line 159 "holidayscannerplan.lpp"
1900 { yylval->ival = 3;
return token::MONTH; }
1904 #line 160 "holidayscannerplan.lpp"
1905 { yylval->ival = 4;
return token::MONTH; }
1909 #line 161 "holidayscannerplan.lpp"
1910 { yylval->ival = 5;
return token::MONTH; }
1914 #line 162 "holidayscannerplan.lpp"
1915 { yylval->ival = 6;
return token::MONTH; }
1919 #line 163 "holidayscannerplan.lpp"
1920 { yylval->ival = 7;
return token::MONTH; }
1924 #line 164 "holidayscannerplan.lpp"
1925 { yylval->ival = 8;
return token::MONTH; }
1929 #line 165 "holidayscannerplan.lpp"
1930 { yylval->ival = 9;
return token::MONTH; }
1934 #line 166 "holidayscannerplan.lpp"
1935 { yylval->ival = 10;
return token::MONTH; }
1939 #line 167 "holidayscannerplan.lpp"
1940 { yylval->ival = 11;
return token::MONTH; }
1944 #line 168 "holidayscannerplan.lpp"
1945 { yylval->ival = 12;
return token::MONTH; }
1949 #line 170 "holidayscannerplan.lpp"
1950 { yylval->ival = 1;
return token::WDAY; }
1954 #line 171 "holidayscannerplan.lpp"
1955 { yylval->ival = 2;
return token::WDAY; }
1959 #line 172 "holidayscannerplan.lpp"
1960 { yylval->ival = 3;
return token::WDAY; }
1964 #line 173 "holidayscannerplan.lpp"
1965 { yylval->ival = 4;
return token::WDAY; }
1969 #line 174 "holidayscannerplan.lpp"
1970 { yylval->ival = 5;
return token::WDAY; }
1974 #line 175 "holidayscannerplan.lpp"
1975 { yylval->ival = 6;
return token::WDAY; }
1979 #line 176 "holidayscannerplan.lpp"
1980 { yylval->ival = 7;
return token::WDAY; }
1984 #line 178 "holidayscannerplan.lpp"
1985 { yylval->sval =
"coptic";
return token::CALENDAR; }
1989 #line 180 "holidayscannerplan.lpp"
1990 { yylval->ival = 1;
return token::MONTH; }
1994 #line 181 "holidayscannerplan.lpp"
1995 { yylval->ival = 2;
return token::MONTH; }
1999 #line 182 "holidayscannerplan.lpp"
2000 { yylval->ival = 3;
return token::MONTH; }
2004 #line 183 "holidayscannerplan.lpp"
2005 { yylval->ival = 4;
return token::MONTH; }
2009 #line 184 "holidayscannerplan.lpp"
2010 { yylval->ival = 5;
return token::MONTH; }
2014 #line 185 "holidayscannerplan.lpp"
2015 { yylval->ival = 6;
return token::MONTH; }
2019 #line 186 "holidayscannerplan.lpp"
2020 { yylval->ival = 7;
return token::MONTH; }
2024 #line 187 "holidayscannerplan.lpp"
2025 { yylval->ival = 8;
return token::MONTH; }
2029 #line 188 "holidayscannerplan.lpp"
2030 { yylval->ival = 9;
return token::MONTH; }
2034 #line 189 "holidayscannerplan.lpp"
2035 { yylval->ival = 10;
return token::MONTH; }
2039 #line 190 "holidayscannerplan.lpp"
2040 { yylval->ival = 11;
return token::MONTH; }
2044 #line 191 "holidayscannerplan.lpp"
2045 { yylval->ival = 12;
return token::MONTH; }
2049 #line 192 "holidayscannerplan.lpp"
2050 { yylval->ival = 13;
return token::MONTH; }
2054 #line 194 "holidayscannerplan.lpp"
2055 { yylval->ival = 1;
return token::WDAY; }
2059 #line 195 "holidayscannerplan.lpp"
2060 { yylval->ival = 2;
return token::WDAY; }
2064 #line 196 "holidayscannerplan.lpp"
2065 { yylval->ival = 3;
return token::WDAY; }
2069 #line 197 "holidayscannerplan.lpp"
2070 { yylval->ival = 4;
return token::WDAY; }
2074 #line 198 "holidayscannerplan.lpp"
2075 { yylval->ival = 5;
return token::WDAY; }
2079 #line 199 "holidayscannerplan.lpp"
2080 { yylval->ival = 6;
return token::WDAY; }
2084 #line 200 "holidayscannerplan.lpp"
2085 { yylval->ival = 7;
return token::WDAY; }
2089 #line 202 "holidayscannerplan.lpp"
2090 { yylval->sval =
"ethiopian";
return token::CALENDAR; }
2094 #line 204 "holidayscannerplan.lpp"
2095 { yylval->ival = 1;
return token::MONTH; }
2099 #line 205 "holidayscannerplan.lpp"
2100 { yylval->ival = 2;
return token::MONTH; }
2104 #line 206 "holidayscannerplan.lpp"
2105 { yylval->ival = 3;
return token::MONTH; }
2109 #line 207 "holidayscannerplan.lpp"
2110 { yylval->ival = 4;
return token::MONTH; }
2114 #line 208 "holidayscannerplan.lpp"
2115 { yylval->ival = 5;
return token::MONTH; }
2119 #line 209 "holidayscannerplan.lpp"
2120 { yylval->ival = 6;
return token::MONTH; }
2124 #line 210 "holidayscannerplan.lpp"
2125 { yylval->ival = 7;
return token::MONTH; }
2129 #line 211 "holidayscannerplan.lpp"
2130 { yylval->ival = 8;
return token::MONTH; }
2134 #line 212 "holidayscannerplan.lpp"
2135 { yylval->ival = 9;
return token::MONTH; }
2139 #line 213 "holidayscannerplan.lpp"
2140 { yylval->ival = 10;
return token::MONTH; }
2144 #line 214 "holidayscannerplan.lpp"
2145 { yylval->ival = 11;
return token::MONTH; }
2149 #line 215 "holidayscannerplan.lpp"
2150 { yylval->ival = 12;
return token::MONTH; }
2154 #line 216 "holidayscannerplan.lpp"
2155 { yylval->ival = 13;
return token::MONTH; }
2159 #line 218 "holidayscannerplan.lpp"
2160 { yylval->ival = 1;
return token::WDAY; }
2164 #line 219 "holidayscannerplan.lpp"
2165 { yylval->ival = 2;
return token::WDAY; }
2169 #line 220 "holidayscannerplan.lpp"
2170 { yylval->ival = 3;
return token::WDAY; }
2174 #line 221 "holidayscannerplan.lpp"
2175 { yylval->ival = 4;
return token::WDAY; }
2179 #line 222 "holidayscannerplan.lpp"
2180 { yylval->ival = 5;
return token::WDAY; }
2184 #line 223 "holidayscannerplan.lpp"
2185 { yylval->ival = 6;
return token::WDAY; }
2189 #line 224 "holidayscannerplan.lpp"
2190 { yylval->ival = 7;
return token::WDAY; }
2194 #line 226 "holidayscannerplan.lpp"
2195 { yylval->sval =
"hebrew";
return token::CALENDAR; }
2199 #line 228 "holidayscannerplan.lpp"
2200 { yylval->ival = 1;
return token::MONTH; }
2204 #line 229 "holidayscannerplan.lpp"
2205 { yylval->ival = 2;
return token::MONTH; }
2209 #line 230 "holidayscannerplan.lpp"
2210 { yylval->ival = 3;
return token::MONTH; }
2214 #line 231 "holidayscannerplan.lpp"
2215 { yylval->ival = 4;
return token::MONTH; }
2219 #line 232 "holidayscannerplan.lpp"
2220 { yylval->ival = 5;
return token::MONTH; }
2224 #line 233 "holidayscannerplan.lpp"
2225 { yylval->ival = 6;
return token::MONTH; }
2229 #line 234 "holidayscannerplan.lpp"
2230 { yylval->ival = 7;
return token::MONTH; }
2234 #line 235 "holidayscannerplan.lpp"
2235 { yylval->ival = 8;
return token::MONTH; }
2239 #line 236 "holidayscannerplan.lpp"
2240 { yylval->ival = 9;
return token::MONTH; }
2244 #line 237 "holidayscannerplan.lpp"
2245 { yylval->ival = 10;
return token::MONTH; }
2249 #line 238 "holidayscannerplan.lpp"
2250 { yylval->ival = 11;
return token::MONTH; }
2254 #line 239 "holidayscannerplan.lpp"
2255 { yylval->ival = 12;
return token::MONTH; }
2259 #line 240 "holidayscannerplan.lpp"
2260 { yylval->ival = 13;
return token::MONTH; }
2264 #line 241 "holidayscannerplan.lpp"
2265 { yylval->ival = 14;
return token::MONTH; }
2269 #line 243 "holidayscannerplan.lpp"
2270 { yylval->ival = 1;
return token::WDAY; }
2274 #line 244 "holidayscannerplan.lpp"
2275 { yylval->ival = 2;
return token::WDAY; }
2279 #line 245 "holidayscannerplan.lpp"
2280 { yylval->ival = 3;
return token::WDAY; }
2284 #line 246 "holidayscannerplan.lpp"
2285 { yylval->ival = 4;
return token::WDAY; }
2289 #line 247 "holidayscannerplan.lpp"
2290 { yylval->ival = 5;
return token::WDAY; }
2294 #line 248 "holidayscannerplan.lpp"
2295 { yylval->ival = 6;
return token::WDAY; }
2299 #line 249 "holidayscannerplan.lpp"
2300 { yylval->ival = 7;
return token::WDAY; }
2304 #line 251 "holidayscannerplan.lpp"
2305 { yylval->sval =
"hijri";
return token::CALENDAR; }
2309 #line 253 "holidayscannerplan.lpp"
2310 { yylval->ival = 1;
return token::MONTH; }
2314 #line 254 "holidayscannerplan.lpp"
2315 { yylval->ival = 2;
return token::MONTH; }
2319 #line 255 "holidayscannerplan.lpp"
2320 { yylval->ival = 3;
return token::MONTH; }
2324 #line 256 "holidayscannerplan.lpp"
2325 { yylval->ival = 4;
return token::MONTH; }
2329 #line 257 "holidayscannerplan.lpp"
2330 { yylval->ival = 5;
return token::MONTH; }
2334 #line 258 "holidayscannerplan.lpp"
2335 { yylval->ival = 6;
return token::MONTH; }
2339 #line 259 "holidayscannerplan.lpp"
2340 { yylval->ival = 7;
return token::MONTH; }
2344 #line 260 "holidayscannerplan.lpp"
2345 { yylval->ival = 8;
return token::MONTH; }
2349 #line 261 "holidayscannerplan.lpp"
2350 { yylval->ival = 9;
return token::MONTH; }
2354 #line 262 "holidayscannerplan.lpp"
2355 { yylval->ival = 10;
return token::MONTH; }
2359 #line 263 "holidayscannerplan.lpp"
2360 { yylval->ival = 11;
return token::MONTH; }
2364 #line 264 "holidayscannerplan.lpp"
2365 { yylval->ival = 12;
return token::MONTH; }
2369 #line 266 "holidayscannerplan.lpp"
2370 { yylval->ival = 1;
return token::WDAY; }
2374 #line 267 "holidayscannerplan.lpp"
2375 { yylval->ival = 2;
return token::WDAY; }
2379 #line 268 "holidayscannerplan.lpp"
2380 { yylval->ival = 3;
return token::WDAY; }
2384 #line 269 "holidayscannerplan.lpp"
2385 { yylval->ival = 4;
return token::WDAY; }
2389 #line 270 "holidayscannerplan.lpp"
2390 { yylval->ival = 5;
return token::WDAY; }
2394 #line 271 "holidayscannerplan.lpp"
2395 { yylval->ival = 6;
return token::WDAY; }
2399 #line 272 "holidayscannerplan.lpp"
2400 { yylval->ival = 7;
return token::WDAY; }
2404 #line 274 "holidayscannerplan.lpp"
2405 { yylval->sval =
"indian-national";
return token::CALENDAR; }
2409 #line 276 "holidayscannerplan.lpp"
2410 { yylval->ival = 1;
return token::MONTH; }
2414 #line 277 "holidayscannerplan.lpp"
2415 { yylval->ival = 2;
return token::MONTH; }
2419 #line 278 "holidayscannerplan.lpp"
2420 { yylval->ival = 3;
return token::MONTH; }
2424 #line 279 "holidayscannerplan.lpp"
2425 { yylval->ival = 4;
return token::MONTH; }
2429 #line 280 "holidayscannerplan.lpp"
2430 { yylval->ival = 5;
return token::MONTH; }
2434 #line 281 "holidayscannerplan.lpp"
2435 { yylval->ival = 6;
return token::MONTH; }
2439 #line 282 "holidayscannerplan.lpp"
2440 { yylval->ival = 7;
return token::MONTH; }
2444 #line 283 "holidayscannerplan.lpp"
2445 { yylval->ival = 8;
return token::MONTH; }
2449 #line 284 "holidayscannerplan.lpp"
2450 { yylval->ival = 9;
return token::MONTH; }
2454 #line 285 "holidayscannerplan.lpp"
2455 { yylval->ival = 10;
return token::MONTH; }
2459 #line 286 "holidayscannerplan.lpp"
2460 { yylval->ival = 11;
return token::MONTH; }
2464 #line 287 "holidayscannerplan.lpp"
2465 { yylval->ival = 12;
return token::MONTH; }
2469 #line 289 "holidayscannerplan.lpp"
2470 { yylval->ival = 1;
return token::WDAY; }
2474 #line 290 "holidayscannerplan.lpp"
2475 { yylval->ival = 2;
return token::WDAY; }
2479 #line 291 "holidayscannerplan.lpp"
2480 { yylval->ival = 3;
return token::WDAY; }
2484 #line 292 "holidayscannerplan.lpp"
2485 { yylval->ival = 4;
return token::WDAY; }
2489 #line 293 "holidayscannerplan.lpp"
2490 { yylval->ival = 5;
return token::WDAY; }
2494 #line 294 "holidayscannerplan.lpp"
2495 { yylval->ival = 6;
return token::WDAY; }
2499 #line 295 "holidayscannerplan.lpp"
2500 { yylval->ival = 7;
return token::WDAY; }
2504 #line 297 "holidayscannerplan.lpp"
2505 { yylval->sval =
"jalali";
return token::CALENDAR; }
2509 #line 299 "holidayscannerplan.lpp"
2510 { yylval->ival = 1;
return token::MONTH; }
2514 #line 300 "holidayscannerplan.lpp"
2515 { yylval->ival = 2;
return token::MONTH; }
2519 #line 301 "holidayscannerplan.lpp"
2520 { yylval->ival = 3;
return token::MONTH; }
2524 #line 302 "holidayscannerplan.lpp"
2525 { yylval->ival = 4;
return token::MONTH; }
2529 #line 303 "holidayscannerplan.lpp"
2530 { yylval->ival = 5;
return token::MONTH; }
2534 #line 304 "holidayscannerplan.lpp"
2535 { yylval->ival = 6;
return token::MONTH; }
2539 #line 305 "holidayscannerplan.lpp"
2540 { yylval->ival = 7;
return token::MONTH; }
2544 #line 306 "holidayscannerplan.lpp"
2545 { yylval->ival = 8;
return token::MONTH; }
2549 #line 307 "holidayscannerplan.lpp"
2550 { yylval->ival = 9;
return token::MONTH; }
2554 #line 308 "holidayscannerplan.lpp"
2555 { yylval->ival = 10;
return token::MONTH; }
2559 #line 309 "holidayscannerplan.lpp"
2560 { yylval->ival = 11;
return token::MONTH; }
2564 #line 310 "holidayscannerplan.lpp"
2565 { yylval->ival = 12;
return token::MONTH; }
2569 #line 312 "holidayscannerplan.lpp"
2570 { yylval->ival = 1;
return token::WDAY; }
2574 #line 313 "holidayscannerplan.lpp"
2575 { yylval->ival = 2;
return token::WDAY; }
2579 #line 314 "holidayscannerplan.lpp"
2580 { yylval->ival = 3;
return token::WDAY; }
2584 #line 315 "holidayscannerplan.lpp"
2585 { yylval->ival = 4;
return token::WDAY; }
2589 #line 316 "holidayscannerplan.lpp"
2590 { yylval->ival = 5;
return token::WDAY; }
2594 #line 317 "holidayscannerplan.lpp"
2595 { yylval->ival = 6;
return token::WDAY; }
2599 #line 318 "holidayscannerplan.lpp"
2600 { yylval->ival = 7;
return token::WDAY; }
2604 #line 320 "holidayscannerplan.lpp"
2605 { LexerError( yytext ); }
2609 #line 322 "holidayscannerplan.lpp"
2612 #line 2613 "holidayscannerplan.cpp"
2613 case YY_STATE_EOF(INITIAL):
2616 case YY_END_OF_BUFFER:
2619 int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
2622 *yy_cp = (yy_hold_char);
2623 YY_RESTORE_YY_MORE_OFFSET
2625 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
2636 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
2637 YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
2638 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
2648 if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
2650 yy_state_type yy_next_state;
2652 (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
2654 yy_current_state = yy_get_previous_state( );
2665 yy_next_state = yy_try_NUL_trans( yy_current_state );
2667 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
2669 if ( yy_next_state )
2672 yy_cp = ++(yy_c_buf_p);
2673 yy_current_state = yy_next_state;
2680 yy_cp = (yy_last_accepting_cpos);
2681 yy_current_state = (yy_last_accepting_state);
2682 goto yy_find_action;
2686 else switch ( yy_get_next_buffer( ) )
2688 case EOB_ACT_END_OF_FILE:
2690 (yy_did_buffer_switch_on_eof) = 0;
2703 (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
2705 yy_act = YY_STATE_EOF(YY_START);
2711 if ( ! (yy_did_buffer_switch_on_eof) )
2717 case EOB_ACT_CONTINUE_SCAN:
2719 (yytext_ptr) + yy_amount_of_matched_text;
2721 yy_current_state = yy_get_previous_state( );
2723 yy_cp = (yy_c_buf_p);
2724 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
2727 case EOB_ACT_LAST_MATCH:
2729 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
2731 yy_current_state = yy_get_previous_state( );
2733 yy_cp = (yy_c_buf_p);
2734 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
2735 goto yy_find_action;
2742 "fatal flex scanner internal error--no action found" );
2753 yyFlexLexer::yyFlexLexer( std::istream* arg_yyin, std::ostream* arg_yyout )
2763 yy_did_buffer_switch_on_eof = 0;
2765 yy_looking_for_trail_begin = 0;
2768 yy_more_offset = yy_prev_more_offset = 0;
2770 yy_start_stack_ptr = yy_start_stack_depth = 0;
2771 yy_start_stack = NULL;
2773 yy_buffer_stack = 0;
2774 yy_buffer_stack_top = 0;
2775 yy_buffer_stack_max = 0;
2783 yyFlexLexer::~yyFlexLexer()
2785 delete [] yy_state_buf;
2786 HolidayScannerfree(yy_start_stack );
2787 yy_delete_buffer( YY_CURRENT_BUFFER );
2788 HolidayScannerfree(yy_buffer_stack );
2793 void yyFlexLexer::switch_streams( std::istream* new_in, std::ostream* new_out )
2797 yy_delete_buffer( YY_CURRENT_BUFFER );
2798 yy_switch_to_buffer( yy_create_buffer( new_in, YY_BUF_SIZE ) );
2805 #ifdef YY_INTERACTIVE
2806 int yyFlexLexer::LexerInput(
char* buf,
int )
2808 int yyFlexLexer::LexerInput(
char* buf,
int max_size )
2811 if ( yyin->eof() || yyin->fail() )
2814 #ifdef YY_INTERACTIVE
2815 yyin->get( buf[0] );
2826 (void) yyin->read( buf, max_size );
2831 return yyin->gcount();
2835 void yyFlexLexer::LexerOutput(
const char* buf,
int size )
2837 (void) yyout->write( buf, size );
2853 int yyFlexLexer::yy_get_next_buffer()
2856 register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
2857 register char *source = (yytext_ptr);
2858 register int number_to_move, i;
2861 if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
2863 "fatal flex scanner internal error--end of buffer missed" );
2865 if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
2867 if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
2872 return EOB_ACT_END_OF_FILE;
2880 return EOB_ACT_LAST_MATCH;
2887 number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1;
2889 for ( i = 0; i < number_to_move; ++i )
2890 *(dest++) = *(source++);
2892 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
2896 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
2901 YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
2903 while ( num_to_read <= 0 )
2907 YY_BUFFER_STATE b = YY_CURRENT_BUFFER;
2909 int yy_c_buf_p_offset =
2910 (int) ((yy_c_buf_p) - b->yy_ch_buf);
2912 if ( b->yy_is_our_buffer )
2914 int new_size = b->yy_buf_size * 2;
2916 if ( new_size <= 0 )
2917 b->yy_buf_size += b->yy_buf_size / 8;
2919 b->yy_buf_size *= 2;
2921 b->yy_ch_buf = (
char *)
2923 HolidayScannerrealloc((
void *) b->yy_ch_buf,b->yy_buf_size + 2 );
2929 if ( ! b->yy_ch_buf )
2931 "fatal error - scanner input buffer overflow" );
2933 (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
2935 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
2940 if ( num_to_read > YY_READ_BUF_SIZE )
2941 num_to_read = YY_READ_BUF_SIZE;
2944 YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
2945 (yy_n_chars), (
size_t) num_to_read );
2947 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
2950 if ( (yy_n_chars) == 0 )
2952 if ( number_to_move == YY_MORE_ADJ )
2954 ret_val = EOB_ACT_END_OF_FILE;
2960 ret_val = EOB_ACT_LAST_MATCH;
2961 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
2962 YY_BUFFER_EOF_PENDING;
2967 ret_val = EOB_ACT_CONTINUE_SCAN;
2969 if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
2971 yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
2972 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (
char *) HolidayScannerrealloc((
void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size );
2973 if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
2974 YY_FATAL_ERROR(
"out of dynamic memory in yy_get_next_buffer()" );
2977 (yy_n_chars) += number_to_move;
2978 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
2979 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
2981 (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
2993 yy_state_type yyFlexLexer::yy_get_previous_state()
2996 register yy_state_type yy_current_state;
2997 register char *yy_cp;
3000 yy_current_state = (yy_start);
3001 yy_current_state += YY_AT_BOL();
3003 for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
3006 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
3007 if ( yy_accept[yy_current_state] )
3009 (yy_last_accepting_state) = yy_current_state;
3010 (yy_last_accepting_cpos) = yy_cp;
3012 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
3014 yy_current_state = (int) yy_def[yy_current_state];
3015 if ( yy_current_state >= 943 )
3016 yy_c = yy_meta[(
unsigned int) yy_c];
3018 yy_current_state = yy_nxt[yy_base[yy_current_state] + (
unsigned int) yy_c];
3021 return yy_current_state;
3032 yy_state_type yyFlexLexer::yy_try_NUL_trans( yy_state_type yy_current_state )
3035 register int yy_is_jam;
3037 register char *yy_cp = (yy_c_buf_p);
3039 register YY_CHAR yy_c = 1;
3040 if ( yy_accept[yy_current_state] )
3042 (yy_last_accepting_state) = yy_current_state;
3043 (yy_last_accepting_cpos) = yy_cp;
3045 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
3047 yy_current_state = (int) yy_def[yy_current_state];
3048 if ( yy_current_state >= 943 )
3049 yy_c = yy_meta[(
unsigned int) yy_c];
3051 yy_current_state = yy_nxt[yy_base[yy_current_state] + (
unsigned int) yy_c];
3052 yy_is_jam = (yy_current_state == 942);
3054 return yy_is_jam ? 0 : yy_current_state;
3060 void yyFlexLexer::yyunput(
int c,
register char* yy_bp)
3063 register char *yy_cp;
3065 yy_cp = (yy_c_buf_p);
3068 *yy_cp = (yy_hold_char);
3070 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
3073 register int number_to_move = (yy_n_chars) + 2;
3074 register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
3075 YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
3076 register char *source =
3077 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
3079 while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
3080 *--dest = *--source;
3082 yy_cp += (int) (dest - source);
3083 yy_bp += (int) (dest - source);
3084 YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
3085 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
3087 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
3088 YY_FATAL_ERROR(
"flex scanner push-back overflow" );
3091 *--yy_cp = (char) c;
3095 (yytext_ptr) = yy_bp;
3096 (yy_hold_char) = *yy_cp;
3097 (yy_c_buf_p) = yy_cp;
3105 int yyFlexLexer::yyinput()
3110 *(yy_c_buf_p) = (yy_hold_char);
3112 if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
3118 if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
3120 *(yy_c_buf_p) =
'\0';
3124 int offset = (yy_c_buf_p) - (yytext_ptr);
3127 switch ( yy_get_next_buffer( ) )
3129 case EOB_ACT_LAST_MATCH:
3145 case EOB_ACT_END_OF_FILE:
3150 if ( ! (yy_did_buffer_switch_on_eof) )
3159 case EOB_ACT_CONTINUE_SCAN:
3160 (yy_c_buf_p) = (yytext_ptr) + offset;
3166 c = *(
unsigned char *) (yy_c_buf_p);
3167 *(yy_c_buf_p) =
'\0';
3168 (yy_hold_char) = *++(yy_c_buf_p);
3171 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c ==
'\n');
3186 void yyFlexLexer::yyrestart( std::istream* input_file )
3190 if ( ! YY_CURRENT_BUFFER ){
3191 yyensure_buffer_stack ();
3192 YY_CURRENT_BUFFER_LVALUE =
3193 yy_create_buffer( yyin, YY_BUF_SIZE );
3196 yy_init_buffer( YY_CURRENT_BUFFER, input_file );
3197 yy_load_buffer_state( );
3207 void yyFlexLexer::yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
3216 yyensure_buffer_stack ();
3217 if ( YY_CURRENT_BUFFER == new_buffer )
3220 if ( YY_CURRENT_BUFFER )
3223 *(yy_c_buf_p) = (yy_hold_char);
3224 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
3225 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
3228 YY_CURRENT_BUFFER_LVALUE = new_buffer;
3229 yy_load_buffer_state( );
3236 (yy_did_buffer_switch_on_eof) = 1;
3242 void yyFlexLexer::yy_load_buffer_state()
3245 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
3246 (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
3247 yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
3248 (yy_hold_char) = *(yy_c_buf_p);
3260 YY_BUFFER_STATE yyFlexLexer::yy_create_buffer( std::istream* file,
int size )
3265 b = (YY_BUFFER_STATE) HolidayScanneralloc(
sizeof(
struct yy_buffer_state ) );
3267 YY_FATAL_ERROR(
"out of dynamic memory in yy_create_buffer()" );
3269 b->yy_buf_size = size;
3274 b->yy_ch_buf = (
char *) HolidayScanneralloc(b->yy_buf_size + 2 );
3275 if ( ! b->yy_ch_buf )
3276 YY_FATAL_ERROR(
"out of dynamic memory in yy_create_buffer()" );
3278 b->yy_is_our_buffer = 1;
3280 yy_init_buffer( b, file );
3292 void yyFlexLexer::yy_delete_buffer( YY_BUFFER_STATE b )
3299 if ( b == YY_CURRENT_BUFFER )
3300 YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
3302 if ( b->yy_is_our_buffer )
3303 HolidayScannerfree((
void *) b->yy_ch_buf );
3305 HolidayScannerfree((
void *) b );
3313 extern "C" int isatty (
int );
3324 void yyFlexLexer::yy_init_buffer( YY_BUFFER_STATE b, std::istream* file )
3330 yy_flush_buffer( b );
3332 b->yy_input_file = file;
3333 b->yy_fill_buffer = 1;
3339 if (b != YY_CURRENT_BUFFER){
3340 b->yy_bs_lineno = 1;
3341 b->yy_bs_column = 0;
3347 b->yy_is_interactive = 0;
3359 void yyFlexLexer::yy_flush_buffer( YY_BUFFER_STATE b )
3371 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
3372 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
3374 b->yy_buf_pos = &b->yy_ch_buf[0];
3377 b->yy_buffer_status = YY_BUFFER_NEW;
3379 if ( b == YY_CURRENT_BUFFER )
3380 yy_load_buffer_state( );
3393 void yyFlexLexer::yypush_buffer_state (YY_BUFFER_STATE new_buffer)
3396 if (new_buffer == NULL)
3399 yyensure_buffer_stack();
3402 if ( YY_CURRENT_BUFFER )
3405 *(yy_c_buf_p) = (yy_hold_char);
3406 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
3407 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
3411 if (YY_CURRENT_BUFFER)
3412 (yy_buffer_stack_top)++;
3413 YY_CURRENT_BUFFER_LVALUE = new_buffer;
3416 yy_load_buffer_state( );
3417 (yy_did_buffer_switch_on_eof) = 1;
3429 void yyFlexLexer::yypop_buffer_state (
void)
3432 if (!YY_CURRENT_BUFFER)
3435 yy_delete_buffer(YY_CURRENT_BUFFER );
3436 YY_CURRENT_BUFFER_LVALUE = NULL;
3437 if ((yy_buffer_stack_top) > 0)
3438 --(yy_buffer_stack_top);
3440 if (YY_CURRENT_BUFFER) {
3441 yy_load_buffer_state( );
3442 (yy_did_buffer_switch_on_eof) = 1;
3454 void yyFlexLexer::yyensure_buffer_stack(
void)
3459 if (!(yy_buffer_stack)) {
3466 (yy_buffer_stack) = (
struct yy_buffer_state**)HolidayScanneralloc
3467 (num_to_alloc *
sizeof(
struct yy_buffer_state*)
3469 if ( ! (yy_buffer_stack) )
3470 YY_FATAL_ERROR(
"out of dynamic memory in yyensure_buffer_stack()" );
3472 memset((yy_buffer_stack), 0, num_to_alloc *
sizeof(
struct yy_buffer_state*));
3474 (yy_buffer_stack_max) = num_to_alloc;
3475 (yy_buffer_stack_top) = 0;
3479 if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
3484 num_to_alloc = (yy_buffer_stack_max) + grow_size;
3485 (yy_buffer_stack) = (
struct yy_buffer_state**)HolidayScannerrealloc
3487 num_to_alloc *
sizeof(
struct yy_buffer_state*)
3489 if ( ! (yy_buffer_stack) )
3490 YY_FATAL_ERROR(
"out of dynamic memory in yyensure_buffer_stack()" );
3493 memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size *
sizeof(
struct yy_buffer_state*));
3494 (yy_buffer_stack_max) = num_to_alloc;
3511 void yyFlexLexer::yy_push_state(
int new_state )
3514 if ( (yy_start_stack_ptr) >= (yy_start_stack_depth) )
3518 (yy_start_stack_depth) += YY_START_STACK_INCR;
3519 new_size = (yy_start_stack_depth) *
sizeof(
int );
3521 if ( ! (yy_start_stack) )
3522 (yy_start_stack) = (
int *) HolidayScanneralloc(new_size );
3525 (yy_start_stack) = (
int *) HolidayScannerrealloc((
void *) (yy_start_stack),new_size );
3527 if ( ! (yy_start_stack) )
3528 YY_FATAL_ERROR(
"out of memory expanding start-condition stack" );
3531 (yy_start_stack)[(yy_start_stack_ptr)++] = YY_START;
3539 void yyFlexLexer::yy_pop_state()
3542 if ( --(yy_start_stack_ptr) < 0 )
3543 YY_FATAL_ERROR(
"start-condition stack underflow" );
3545 BEGIN((yy_start_stack)[(yy_start_stack_ptr)]);
3551 int yyFlexLexer::yy_top_state()
3554 return (yy_start_stack)[(yy_start_stack_ptr) - 1];
3557 #ifndef YY_EXIT_FAILURE
3558 #define YY_EXIT_FAILURE 2
3564 void yyFlexLexer::LexerError( yyconst
char msg[] )
3566 std::cerr << msg << std::endl;
3567 exit( YY_EXIT_FAILURE );
3578 int yyless_macro_arg = (n); \
3579 YY_LESS_LINENO(yyless_macro_arg);\
3580 yytext[yyleng] = (yy_hold_char); \
3581 (yy_c_buf_p) = yytext + yyless_macro_arg; \
3582 (yy_hold_char) = *(yy_c_buf_p); \
3583 *(yy_c_buf_p) = '\0'; \
3584 yyleng = yyless_macro_arg; \
3615 static void yy_flex_strncpy (
char* s1, yyconst
char * s2,
int n )
3618 for ( i = 0; i < n; ++i )
3623 #ifdef YY_NEED_STRLEN
3624 static int yy_flex_strlen (yyconst
char * s )
3627 for ( n = 0; s[n]; ++n )
3634 void *HolidayScanneralloc (yy_size_t size )
3636 return (
void *) malloc( size );
3639 void *HolidayScannerrealloc (
void * ptr, yy_size_t size )
3648 return (
void *) realloc( (
char *) ptr, size );
3651 void HolidayScannerfree (
void * ptr )
3653 free( (
char *) ptr );
3658 #define YYTABLES_NAME "yytables"
3663 #line 322 "holidayscannerplan.lpp"
3667 namespace KHolidays {
3669 HolidayScannerPlan::HolidayScannerPlan(std::istream* in, std::ostream* out)
3670 : HolidayScannerFlexLexer(in, out)
3674 HolidayScannerPlan::~HolidayScannerPlan()
3678 void HolidayScannerPlan::set_debug(
bool b)
3693 int HolidayScannerFlexLexer::yylex()
3695 kDebug() <<
"in HolidayScannerFlexLexer::yylex() !";
3705 int HolidayScannerFlexLexer::yywrap()
token::yytokentype token_type
Token type.