4#define YY_INT_ALIGNED short int
9#define YY_FLEX_MAJOR_VERSION 2
10#define YY_FLEX_MINOR_VERSION 6
11#define YY_FLEX_SUBMINOR_VERSION 4
12#if YY_FLEX_SUBMINOR_VERSION > 0
33#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
38#ifndef __STDC_LIMIT_MACROS
39#define __STDC_LIMIT_MACROS 1
43typedef int8_t flex_int8_t;
44typedef uint8_t flex_uint8_t;
45typedef int16_t flex_int16_t;
46typedef uint16_t flex_uint16_t;
47typedef int32_t flex_int32_t;
48typedef uint32_t flex_uint32_t;
49typedef uint64_t flex_uint64_t;
51typedef signed char flex_int8_t;
52typedef short int flex_int16_t;
53typedef int flex_int32_t;
54typedef unsigned char flex_uint8_t;
55typedef unsigned short int flex_uint16_t;
56typedef unsigned int flex_uint32_t;
60#define INT8_MIN (-128)
63#define INT16_MIN (-32767-1)
66#define INT32_MIN (-2147483647-1)
72#define INT16_MAX (32767)
75#define INT32_MAX (2147483647)
78#define UINT8_MAX (255U)
81#define UINT16_MAX (65535U)
84#define UINT32_MAX (4294967295U)
88#define SIZE_MAX (~(size_t)0)
100#if defined(__GNUC__) && __GNUC__ >= 3
101#define yynoreturn __attribute__((__noreturn__))
112#define YY_SC_TO_UI(c) ((YY_CHAR) (c))
118#define BEGIN (yy_start) = 1 + 2 *
123#define YY_START (((yy_start) - 1) / 2)
124#define YYSTATE YY_START
126#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
128#define YY_NEW_FILE yyrestart( yyin )
129#define YY_END_OF_BUFFER_CHAR 0
138#define YY_BUF_SIZE 32768
140#define YY_BUF_SIZE 16384
146#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
148#ifndef YY_TYPEDEF_YY_BUFFER_STATE
149#define YY_TYPEDEF_YY_BUFFER_STATE
153#ifndef YY_TYPEDEF_YY_SIZE_T
154#define YY_TYPEDEF_YY_SIZE_T
155typedef size_t yy_size_t;
158extern yy_size_t yyleng;
160extern FILE *yyin, *yyout;
162#define EOB_ACT_CONTINUE_SCAN 0
163#define EOB_ACT_END_OF_FILE 1
164#define EOB_ACT_LAST_MATCH 2
166 #define YY_LESS_LINENO(n)
167 #define YY_LINENO_REWIND_TO(ptr)
174 int yyless_macro_arg = (n); \
175 YY_LESS_LINENO(yyless_macro_arg);\
176 *yy_cp = (yy_hold_char); \
177 YY_RESTORE_YY_MORE_OFFSET \
178 (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
179 YY_DO_BEFORE_ACTION; \
182#define unput(c) yyunput( c, (yytext_ptr) )
184#ifndef YY_STRUCT_YY_BUFFER_STATE
185#define YY_STRUCT_YY_BUFFER_STATE
201 yy_size_t yy_n_chars;
207 int yy_is_our_buffer;
214 int yy_is_interactive;
230 int yy_buffer_status;
232#define YY_BUFFER_NEW 0
233#define YY_BUFFER_NORMAL 1
244#define YY_BUFFER_EOF_PENDING 2
250static size_t yy_buffer_stack_top = 0;
251static size_t yy_buffer_stack_max = 0;
260#define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
261 ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
266#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
269static char yy_hold_char;
270static yy_size_t yy_n_chars;
274static char *yy_c_buf_p = NULL;
275static int yy_init = 0;
276static int yy_start = 0;
281static int yy_did_buffer_switch_on_eof;
283void yyrestart ( FILE *input_file );
289void yypop_buffer_state (
void );
291static void yyensure_buffer_stack (
void );
292static void yy_load_buffer_state (
void );
294#define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER )
300void *yyalloc ( yy_size_t );
301void *yyrealloc (
void *, yy_size_t );
302void yyfree (
void * );
304#define yy_new_buffer yy_create_buffer
305#define yy_set_interactive(is_interactive) \
307 if ( ! YY_CURRENT_BUFFER ){ \
308 yyensure_buffer_stack (); \
309 YY_CURRENT_BUFFER_LVALUE = \
310 yy_create_buffer( yyin, YY_BUF_SIZE ); \
312 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
314#define yy_set_bol(at_bol) \
316 if ( ! YY_CURRENT_BUFFER ){\
317 yyensure_buffer_stack (); \
318 YY_CURRENT_BUFFER_LVALUE = \
319 yy_create_buffer( yyin, YY_BUF_SIZE ); \
321 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
323#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
328#define YY_SKIP_YYWRAP
329typedef flex_uint8_t YY_CHAR;
331FILE *yyin = NULL, *yyout = NULL;
333typedef int yy_state_type;
342#define yytext_ptr yytext
344static yy_state_type yy_get_previous_state (
void );
345static yy_state_type yy_try_NUL_trans ( yy_state_type current_state );
346static int yy_get_next_buffer (
void );
347static void yynoreturn yy_fatal_error (
const char* msg );
352#define YY_DO_BEFORE_ACTION \
353 (yytext_ptr) = yy_bp; \
354 yyleng = (yy_size_t) (yy_cp - yy_bp); \
355 (yy_hold_char) = *yy_cp; \
357 (yy_c_buf_p) = yy_cp;
358#define YY_NUM_RULES 425
359#define YY_END_OF_BUFFER 426
364 flex_int32_t yy_verify;
367static const flex_int16_t yy_accept[475] =
369 0, 0, 426, 425, 2, 425, 3, 425, 425, 4,
370 425, 425, 425, 425, 5, 425, 86, 425, 6, 7,
371 425, 425, 173, 425, 174, 425, 425, 175, 425, 425,
372 425, 425, 176, 425, 218, 425, 177, 178, 425, 425,
373 425, 425, 425, 97, 101, 105, 0, 109, 111, 113,
374 98, 102, 106, 0, 110, 112, 114, 8, 12, 14,
375 16, 18, 20, 9, 13, 15, 17, 19, 21, 22,
376 24, 26, 0, 28, 30, 32, 23, 25, 27, 0,
377 29, 31, 33, 10, 11, 34, 36, 38, 40, 42,
378 44, 35, 37, 39, 41, 43, 45, 46, 48, 50,
380 52, 54, 165, 47, 49, 51, 53, 55, 166, 56,
381 62, 64, 66, 68, 70, 57, 63, 65, 67, 69,
382 71, 0, 0, 84, 87, 89, 91, 93, 95, 85,
383 88, 90, 92, 94, 96, 99, 103, 107, 0, 0,
384 100, 104, 108, 0, 0, 141, 143, 145, 147, 149,
385 151, 142, 144, 146, 148, 150, 152, 153, 155, 157,
386 159, 161, 163, 154, 156, 158, 160, 162, 164, 224,
387 226, 228, 0, 230, 231, 232, 179, 181, 182, 183,
388 184, 185, 186, 187, 188, 0, 189, 190, 191, 180,
389 192, 193, 194, 195, 196, 197, 198, 199, 200, 201,
391 202, 172, 203, 206, 207, 208, 209, 210, 0, 217,
392 219, 220, 221, 222, 223, 225, 227, 229, 0, 0,
393 246, 247, 248, 249, 250, 251, 252, 167, 168, 169,
394 170, 171, 0, 1, 0, 0, 0, 0, 115, 116,
395 58, 59, 60, 61, 72, 74, 76, 78, 80, 82,
396 73, 75, 77, 79, 81, 83, 117, 119, 121, 123,
397 125, 127, 129, 131, 133, 135, 137, 139, 118, 120,
398 122, 124, 126, 128, 130, 132, 134, 136, 138, 140,
399 233, 204, 205, 211, 212, 213, 214, 215, 216, 234,
400 235, 236, 237, 238, 239, 240, 241, 242, 243, 244,
402 245, 253, 254, 255, 256, 257, 258, 259, 260, 261,
403 262, 263, 264, 265, 266, 267, 268, 269, 270, 271,
404 272, 273, 274, 275, 276, 277, 278, 279, 280, 281,
405 282, 283, 284, 285, 286, 287, 288, 289, 290, 291,
406 292, 293, 294, 295, 296, 297, 298, 299, 300, 301,
407 302, 303, 304, 305, 306, 307, 308, 309, 310, 311,
408 312, 313, 314, 315, 316, 317, 318, 319, 320, 321,
409 322, 323, 324, 325, 326, 327, 328, 329, 330, 331,
410 332, 333, 334, 335, 336, 337, 338, 339, 340, 341,
411 342, 343, 344, 345, 346, 347, 348, 349, 350, 351,
413 352, 353, 354, 355, 356, 357, 358, 359, 360, 361,
414 362, 363, 364, 365, 366, 367, 368, 369, 370, 371,
415 372, 373, 374, 375, 376, 377, 378, 379, 380, 381,
416 382, 383, 384, 385, 386, 387, 388, 389, 390, 391,
417 392, 393, 394, 395, 396, 397, 398, 399, 400, 401,
418 402, 403, 404, 405, 406, 407, 408, 409, 410, 411,
419 412, 413, 414, 415, 416, 417, 418, 419, 420, 421,
423static const YY_CHAR yy_ec[256] =
425 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
426 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
427 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
428 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
429 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
430 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
431 1, 1, 1, 1, 2, 1, 1, 3, 4, 1,
432 5, 6, 7, 1, 8, 9, 10, 11, 12, 1,
433 13, 1, 14, 15, 16, 17, 18, 1, 19, 1,
434 1, 1, 1, 1, 1, 1, 20, 1, 1, 21,
436 22, 1, 23, 24, 25, 1, 26, 27, 28, 29,
437 30, 1, 31, 1, 32, 33, 34, 35, 36, 1,
438 37, 1, 38, 1, 39, 1, 1, 40, 41, 42,
439 43, 44, 45, 46, 47, 48, 49, 50, 51, 52,
440 53, 54, 55, 56, 57, 58, 59, 60, 61, 62,
441 63, 64, 65, 66, 67, 68, 69, 70, 71, 72,
442 73, 74, 75, 76, 77, 78, 79, 80, 81, 82,
443 83, 84, 85, 86, 87, 88, 89, 90, 91, 92,
444 93, 94, 95, 96, 97, 98, 99, 100, 101, 102,
445 103, 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, 104, 1, 1, 1, 1, 1,
450 1, 1, 1, 105, 1, 1, 1, 1, 1, 1,
451 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
455static const YY_CHAR yy_meta[106] =
457 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
458 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
459 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
460 1, 1, 1, 1, 1, 1, 1, 2, 1, 1,
461 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
462 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
463 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
464 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
465 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
466 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
471static const flex_int16_t yy_base[477] =
473 0, 104, 85, 609, 609, 37, 609, 61, 141, 609,
474 38, 152, 176, 200, 609, 26, 211, 235, 609, 609,
475 236, 261, 609, 67, 609, 254, 272, 609, 64, 278,
476 289, 295, 609, 48, 306, 23, 609, 609, 312, 323,
477 41, 15, 13, 609, 609, 609, 77, 609, 609, 609,
478 609, 609, 609, 56, 609, 609, 609, 609, 609, 609,
479 609, 609, 609, 609, 609, 609, 609, 609, 609, 609,
480 609, 609, 73, 609, 609, 609, 609, 609, 609, 54,
481 609, 609, 609, 609, 609, 609, 609, 609, 609, 609,
482 609, 609, 609, 609, 609, 609, 609, 609, 609, 609,
484 609, 609, 609, 609, 609, 609, 609, 609, 609, 60,
485 609, 609, 609, 609, 609, 37, 609, 609, 609, 609,
486 609, 347, 340, 609, 609, 609, 609, 609, 609, 609,
487 609, 609, 609, 609, 609, 609, 609, 609, 364, 375,
488 609, 609, 609, 363, 374, 609, 609, 609, 609, 609,
489 609, 609, 609, 609, 609, 609, 609, 609, 609, 609,
490 609, 609, 609, 609, 609, 609, 609, 609, 609, 609,
491 609, 609, 36, 609, 609, 609, 609, 609, 609, 609,
492 609, 609, 609, 609, 609, 32, 609, 609, 609, 609,
493 609, 609, 609, 609, 609, 609, 609, 609, 609, 609,
495 609, 609, 27, 609, 609, 609, 609, 609, 380, 609,
496 609, 609, 609, 609, 609, 609, 609, 609, 391, 397,
497 609, 609, 609, 609, 609, 609, 609, 609, 609, 609,
498 609, 609, 8, 609, 361, 425, 439, 503, 609, 609,
499 609, 609, 609, 609, 609, 609, 609, 609, 609, 609,
500 609, 609, 609, 609, 609, 609, 609, 609, 609, 609,
501 609, 609, 609, 609, 609, 609, 609, 609, 609, 609,
502 609, 609, 609, 609, 609, 609, 609, 609, 609, 609,
503 609, 609, 609, 609, 609, 609, 609, 609, 609, 609,
504 609, 609, 609, 609, 609, 609, 609, 609, 609, 609,
506 609, 609, 609, 609, 609, 609, 609, 609, 609, 609,
507 609, 609, 609, 609, 609, 609, 609, 609, 609, 609,
508 609, 609, 609, 609, 609, 609, 609, 609, 609, 609,
509 609, 609, 609, 609, 609, 609, 609, 609, 609, 609,
510 609, 609, 609, 609, 609, 609, 609, 609, 609, 609,
511 609, 609, 609, 609, 609, 609, 609, 609, 609, 609,
512 609, 609, 609, 609, 609, 609, 609, 609, 609, 609,
513 609, 609, 609, 609, 609, 609, 609, 609, 609, 609,
514 609, 609, 609, 609, 609, 609, 609, 609, 609, 609,
515 609, 609, 609, 609, 609, 609, 609, 609, 609, 609,
517 609, 609, 609, 609, 609, 609, 609, 609, 609, 609,
518 609, 609, 609, 609, 609, 609, 609, 609, 609, 609,
519 609, 609, 609, 609, 609, 609, 609, 609, 609, 609,
520 609, 609, 609, 609, 609, 609, 609, 609, 609, 609,
521 609, 609, 609, 609, 609, 609, 609, 609, 609, 609,
522 609, 609, 609, 609, 609, 609, 609, 609, 609, 609,
523 609, 609, 609, 609, 609, 609, 609, 609, 609, 609,
524 609, 609, 609, 609, 606, 0
527static const flex_int16_t yy_def[477] =
529 475, 475, 474, 474, 474, 474, 474, 474, 474, 474,
530 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
531 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
532 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
533 476, 474, 474, 474, 474, 474, 474, 474, 474, 474,
534 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
535 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
536 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
537 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
538 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
540 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
541 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
542 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
543 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
544 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
545 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
546 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
547 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
548 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
549 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
551 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
552 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
553 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
554 474, 474, 476, 474, 474, 474, 474, 474, 474, 474,
555 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
556 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
557 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
558 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
559 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
560 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
562 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
563 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
564 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
565 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
566 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
567 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
568 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
569 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
570 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
571 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
573 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
574 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
575 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
576 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
577 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
578 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
579 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
580 474, 474, 474, 0, 474, 474
583static const flex_int16_t yy_nxt[715] =
585 233, 5, 6, 7, 8, 9, 10, 11, 12, 13,
586 14, 15, 16, 17, 18, 19, 20, 21, 22, 23,
587 24, 25, 26, 27, 28, 29, 30, 31, 32, 33,
588 34, 35, 36, 37, 38, 39, 40, 41, 44, 84,
589 45, 122, 216, 46, 217, 47, 234, 218, 48, 219,
590 283, 282, 49, 50, 220, 281, 51, 85, 52, 123,
591 244, 53, 58, 54, 59, 243, 55, 60, 235, 236,
592 56, 57, 61, 242, 241, 240, 62, 63, 239, 234,
593 64, 209, 65, 190, 474, 66, 170, 474, 171, 474,
594 67, 172, 474, 173, 68, 69, 174, 237, 238, 474,
596 175, 176, 474, 42, 43, 5, 6, 7, 8, 9,
597 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
598 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
599 30, 31, 32, 33, 34, 35, 36, 37, 38, 39,
600 40, 41, 70, 474, 71, 474, 474, 72, 474, 474,
601 474, 73, 74, 86, 474, 87, 75, 76, 88, 474,
602 77, 474, 78, 89, 474, 79, 474, 90, 91, 80,
603 81, 92, 474, 93, 82, 83, 94, 98, 474, 99,
604 474, 95, 100, 474, 474, 96, 97, 101, 474, 474,
605 474, 102, 103, 474, 474, 104, 474, 105, 474, 474,
607 106, 110, 474, 111, 474, 107, 112, 42, 43, 108,
608 109, 113, 124, 474, 125, 114, 115, 126, 474, 116,
609 474, 117, 127, 474, 118, 474, 128, 129, 474, 119,
610 130, 474, 131, 120, 121, 132, 136, 146, 137, 147,
611 133, 138, 148, 139, 134, 135, 474, 149, 140, 474,
612 474, 150, 151, 474, 141, 152, 142, 153, 474, 143,
613 154, 144, 158, 474, 159, 155, 145, 160, 474, 156,
614 157, 474, 161, 177, 474, 178, 162, 163, 179, 474,
615 164, 474, 165, 180, 474, 166, 474, 181, 182, 474,
616 167, 183, 474, 184, 168, 169, 185, 191, 474, 192,
618 186, 187, 193, 474, 474, 188, 189, 194, 197, 474,
619 198, 195, 196, 199, 203, 474, 204, 474, 200, 205,
620 474, 474, 201, 202, 206, 210, 474, 211, 207, 208,
621 212, 221, 474, 222, 474, 213, 223, 474, 474, 214,
622 215, 224, 227, 474, 228, 225, 226, 229, 245, 474,
623 246, 474, 230, 247, 474, 474, 231, 232, 248, 251,
624 474, 252, 249, 250, 253, 257, 474, 258, 474, 254,
625 259, 474, 474, 255, 256, 260, 263, 474, 264, 261,
626 262, 265, 269, 474, 270, 474, 266, 271, 474, 474,
627 267, 268, 272, 275, 474, 276, 273, 274, 277, 284,
629 474, 285, 474, 278, 286, 474, 474, 279, 280, 287,
630 290, 474, 291, 288, 289, 292, 296, 474, 297, 474,
631 293, 298, 474, 474, 294, 295, 299, 474, 474, 474,
632 300, 301, 302, 303, 304, 305, 306, 307, 308, 309,
633 310, 311, 312, 313, 314, 315, 316, 317, 318, 319,
634 320, 321, 322, 323, 324, 325, 326, 327, 328, 329,
635 330, 331, 332, 333, 334, 335, 336, 337, 338, 339,
636 340, 341, 342, 343, 344, 345, 346, 347, 348, 349,
637 350, 351, 352, 353, 354, 355, 356, 357, 358, 359,
638 360, 361, 362, 363, 364, 365, 366, 367, 368, 369,
640 370, 371, 372, 373, 374, 375, 376, 377, 378, 379,
641 380, 381, 382, 383, 384, 385, 386, 387, 474, 474,
642 388, 389, 390, 391, 392, 393, 394, 395, 396, 397,
643 398, 399, 400, 401, 402, 403, 404, 405, 406, 407,
644 408, 409, 410, 411, 412, 413, 414, 415, 416, 417,
645 418, 419, 420, 421, 422, 423, 424, 425, 426, 427,
646 428, 429, 430, 431, 432, 433, 434, 435, 436, 437,
647 438, 439, 440, 441, 442, 443, 444, 445, 446, 447,
648 448, 449, 450, 451, 452, 453, 454, 455, 456, 457,
649 458, 459, 460, 461, 462, 463, 464, 465, 466, 467,
651 468, 469, 470, 471, 472, 473, 4, 4, 3, 474,
652 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
653 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
654 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
655 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
656 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
657 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
658 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
659 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
660 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
662 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
666static const flex_int16_t yy_chk[715] =
668 476, 1, 1, 1, 1, 1, 1, 1, 1, 1,
669 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
670 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
671 1, 1, 1, 1, 1, 1, 1, 1, 6, 11,
672 6, 16, 36, 6, 36, 6, 233, 36, 6, 36,
673 203, 186, 6, 6, 36, 173, 6, 11, 6, 16,
674 116, 6, 8, 6, 8, 110, 6, 8, 42, 42,
675 6, 6, 8, 80, 73, 54, 8, 8, 47, 41,
676 8, 34, 8, 29, 3, 8, 24, 0, 24, 0,
677 8, 24, 0, 24, 8, 8, 24, 43, 43, 0,
679 24, 24, 0, 1, 1, 2, 2, 2, 2, 2,
680 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
681 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
682 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
683 2, 2, 9, 0, 9, 0, 0, 9, 0, 0,
684 0, 9, 9, 12, 0, 12, 9, 9, 12, 0,
685 9, 0, 9, 12, 0, 9, 0, 12, 12, 9,
686 9, 12, 0, 12, 9, 9, 12, 13, 0, 13,
687 0, 12, 13, 0, 0, 12, 12, 13, 0, 0,
688 0, 13, 13, 0, 0, 13, 0, 13, 0, 0,
690 13, 14, 0, 14, 0, 13, 14, 2, 2, 13,
691 13, 14, 17, 0, 17, 14, 14, 17, 0, 14,
692 0, 14, 17, 0, 14, 0, 17, 17, 0, 14,
693 17, 0, 17, 14, 14, 17, 18, 21, 18, 21,
694 17, 18, 21, 18, 17, 17, 0, 21, 18, 0,
695 0, 21, 21, 0, 18, 21, 18, 21, 0, 18,
696 21, 18, 22, 0, 22, 21, 18, 22, 0, 21,
697 21, 0, 22, 26, 0, 26, 22, 22, 26, 0,
698 22, 0, 22, 26, 0, 22, 0, 26, 26, 0,
699 22, 27, 0, 27, 22, 22, 27, 30, 0, 30,
701 27, 27, 30, 0, 0, 27, 27, 30, 31, 0,
702 31, 30, 30, 31, 32, 0, 32, 0, 31, 32,
703 0, 0, 31, 31, 32, 35, 0, 35, 32, 32,
704 35, 39, 0, 39, 0, 35, 39, 0, 0, 35,
705 35, 39, 40, 0, 40, 39, 39, 40, 122, 0,
706 122, 0, 40, 122, 0, 0, 40, 40, 122, 123,
707 0, 123, 122, 122, 123, 139, 0, 139, 0, 123,
708 139, 0, 0, 123, 123, 139, 140, 0, 140, 139,
709 139, 140, 144, 0, 144, 0, 140, 144, 0, 0,
710 140, 140, 144, 145, 0, 145, 144, 144, 145, 209,
712 0, 209, 0, 145, 209, 0, 0, 145, 145, 209,
713 219, 0, 219, 209, 209, 219, 220, 0, 220, 0,
714 219, 220, 0, 0, 219, 219, 220, 0, 0, 0,
715 220, 220, 235, 235, 235, 235, 235, 235, 235, 235,
716 235, 235, 235, 235, 235, 235, 235, 235, 235, 235,
717 235, 235, 235, 235, 235, 235, 235, 235, 235, 235,
718 235, 235, 235, 235, 236, 236, 236, 236, 236, 236,
719 236, 236, 236, 236, 236, 236, 236, 236, 236, 236,
720 236, 236, 236, 236, 236, 236, 236, 236, 236, 236,
721 236, 236, 236, 236, 236, 236, 236, 236, 236, 236,
723 236, 236, 236, 236, 236, 236, 236, 236, 236, 236,
724 236, 236, 236, 236, 236, 236, 236, 236, 0, 0,
725 236, 236, 236, 236, 236, 236, 237, 237, 237, 237,
726 237, 237, 237, 237, 237, 237, 237, 237, 237, 237,
727 237, 237, 238, 238, 238, 238, 238, 238, 238, 238,
728 238, 238, 238, 238, 238, 238, 238, 238, 238, 238,
729 238, 238, 238, 238, 238, 238, 238, 238, 238, 238,
730 238, 238, 238, 238, 238, 238, 238, 238, 238, 238,
731 238, 238, 238, 238, 238, 238, 238, 238, 238, 238,
732 238, 238, 238, 238, 238, 238, 238, 238, 238, 238,
734 238, 238, 238, 238, 238, 238, 475, 475, 474, 474,
735 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
736 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
737 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
738 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
739 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
740 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
741 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
742 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
743 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
745 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
749static yy_state_type yy_last_accepting_state;
750static char *yy_last_accepting_cpos;
752extern int yy_flex_debug;
753int yy_flex_debug = 0;
758#define REJECT reject_used_but_not_detected
759#define yymore() yymore_used_but_not_detected
761#define YY_RESTORE_YY_MORE_OFFSET
816#define LANG_GREEK 0x0000
817#define LANG_LATIN 0x1000
818#define LANG_COPTIC 0x2000
819#define LANG_ARABIC 0x4000
820#define LANG_HEBREW 0x8000
822#define LANG_CHEROKEE 0x10000
836int quote_state[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
839int quote_open[10] = {
858int quote_close[10] = {
877void print_ascii (
char *);
878void print_unicode (
char *);
879void print_quote (
char *);
880void print_utf8 (uint32_t);
881void print_capital (
char *);
882void print_small (
char *);
883void print_pattern (
char *, uint32_t);
892void print_letter (uint32_t, uint32_t, uint32_t, uint32_t);
895uint32_t ascii2greek_capital[128]={128*0};
896uint32_t ascii2greek_small[128]={128*0};
897uint32_t ascii2coptic[128]={128*0};
898uint32_t ascii2hebrew[128]={128*0};
905#ifndef YY_NO_UNISTD_H
914#define YY_EXTRA_TYPE void *
917static int yy_init_globals (
void );
922int yylex_destroy (
void );
924int yyget_debug (
void );
926void yyset_debug (
int debug_flag );
928YY_EXTRA_TYPE yyget_extra (
void );
930void yyset_extra ( YY_EXTRA_TYPE user_defined );
932FILE *yyget_in (
void );
934void yyset_in ( FILE * _in_str );
936FILE *yyget_out (
void );
938void yyset_out ( FILE * _out_str );
940 yy_size_t yyget_leng (
void );
942char *yyget_text (
void );
944int yyget_lineno (
void );
946void yyset_lineno (
int _line_number );
952#ifndef YY_SKIP_YYWRAP
954extern "C" int yywrap (
void );
956extern int yywrap (
void );
962 static void yyunput (
int c,
char *buf_ptr );
967static void yy_flex_strncpy (
char *,
const char *,
int );
971static int yy_flex_strlen (
const char * );
976static int yyinput (
void );
978static int input (
void );
984#ifndef YY_READ_BUF_SIZE
987#define YY_READ_BUF_SIZE 16384
989#define YY_READ_BUF_SIZE 8192
998#define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
1005#define YY_INPUT(buf,result,max_size) \
1006 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
1010 for ( n = 0; n < max_size && \
1011 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
1012 buf[n] = (char) c; \
1014 buf[n++] = (char) c; \
1015 if ( c == EOF && ferror( yyin ) ) \
1016 YY_FATAL_ERROR( "input in flex scanner failed" ); \
1022 while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
1024 if( errno != EINTR) \
1026 YY_FATAL_ERROR( "input in flex scanner failed" ); \
1042#define yyterminate() return YY_NULL
1046#ifndef YY_START_STACK_INCR
1047#define YY_START_STACK_INCR 25
1051#ifndef YY_FATAL_ERROR
1052#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
1061#define YY_DECL_IS_OURS 1
1063extern int yylex (
void);
1065#define YY_DECL int yylex (void)
1071#ifndef YY_USER_ACTION
1072#define YY_USER_ACTION
1077#define YY_BREAK break;
1080#define YY_RULE_SETUP \
1087 yy_state_type yy_current_state;
1088 char *yy_cp, *yy_bp;
1108 if ( ! YY_CURRENT_BUFFER ) {
1109 yyensure_buffer_stack ();
1110 YY_CURRENT_BUFFER_LVALUE =
1111 yy_create_buffer( yyin, YY_BUF_SIZE );
1114 yy_load_buffer_state( );
1118#line 146 "sequoyah.l"
1120#line 1120 "<stdout>"
1124 yy_cp = (yy_c_buf_p);
1127 *yy_cp = (yy_hold_char);
1134 yy_current_state = (yy_start);
1138 YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ;
1139 if ( yy_accept[yy_current_state] )
1141 (yy_last_accepting_state) = yy_current_state;
1142 (yy_last_accepting_cpos) = yy_cp;
1144 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1146 yy_current_state = (int) yy_def[yy_current_state];
1147 if ( yy_current_state >= 475 )
1148 yy_c = yy_meta[yy_c];
1150 yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
1153 while ( yy_base[yy_current_state] != 609 );
1156 yy_act = yy_accept[yy_current_state];
1159 yy_cp = (yy_last_accepting_cpos);
1160 yy_current_state = (yy_last_accepting_state);
1161 yy_act = yy_accept[yy_current_state];
1164 YY_DO_BEFORE_ACTION;
1172 *yy_cp = (yy_hold_char);
1173 yy_cp = (yy_last_accepting_cpos);
1174 yy_current_state = (yy_last_accepting_state);
1175 goto yy_find_action;
1180#line 147 "sequoyah.l"
1185 yytext [strlen (yytext) - 1] =
'\0';
1187 print_ascii (&yytext[1]);
1193#line 157 "sequoyah.l"
1198#line 158 "sequoyah.l"
1203#line 159 "sequoyah.l"
1208#line 160 "sequoyah.l"
1213#line 161 "sequoyah.l"
1218#line 162 "sequoyah.l"
1223#line 163 "sequoyah.l"
1228#line 164 "sequoyah.l"
1233#line 165 "sequoyah.l"
1238#line 166 "sequoyah.l"
1243#line 167 "sequoyah.l"
1248#line 168 "sequoyah.l"
1253#line 169 "sequoyah.l"
1258#line 170 "sequoyah.l"
1263#line 171 "sequoyah.l"
1268#line 172 "sequoyah.l"
1273#line 173 "sequoyah.l"
1278#line 174 "sequoyah.l"
1283#line 175 "sequoyah.l"
1288#line 176 "sequoyah.l"
1293#line 177 "sequoyah.l"
1298#line 178 "sequoyah.l"
1303#line 179 "sequoyah.l"
1308#line 180 "sequoyah.l"
1313#line 181 "sequoyah.l"
1318#line 182 "sequoyah.l"
1323#line 183 "sequoyah.l"
1328#line 184 "sequoyah.l"
1333#line 185 "sequoyah.l"
1338#line 186 "sequoyah.l"
1343#line 187 "sequoyah.l"
1348#line 188 "sequoyah.l"
1353#line 189 "sequoyah.l"
1358#line 190 "sequoyah.l"
1363#line 191 "sequoyah.l"
1368#line 192 "sequoyah.l"
1373#line 193 "sequoyah.l"
1378#line 194 "sequoyah.l"
1383#line 195 "sequoyah.l"
1388#line 196 "sequoyah.l"
1393#line 197 "sequoyah.l"
1398#line 198 "sequoyah.l"
1403#line 199 "sequoyah.l"
1408#line 200 "sequoyah.l"
1413#line 201 "sequoyah.l"
1418#line 202 "sequoyah.l"
1423#line 203 "sequoyah.l"
1428#line 204 "sequoyah.l"
1433#line 205 "sequoyah.l"
1438#line 206 "sequoyah.l"
1443#line 207 "sequoyah.l"
1448#line 208 "sequoyah.l"
1453#line 209 "sequoyah.l"
1458#line 210 "sequoyah.l"
1463#line 211 "sequoyah.l"
1468#line 212 "sequoyah.l"
1473#line 213 "sequoyah.l"
1478#line 214 "sequoyah.l"
1483#line 215 "sequoyah.l"
1488#line 216 "sequoyah.l"
1493#line 217 "sequoyah.l"
1498#line 218 "sequoyah.l"
1503#line 219 "sequoyah.l"
1508#line 220 "sequoyah.l"
1513#line 221 "sequoyah.l"
1518#line 222 "sequoyah.l"
1523#line 223 "sequoyah.l"
1528#line 224 "sequoyah.l"
1533#line 225 "sequoyah.l"
1538#line 226 "sequoyah.l"
1543#line 227 "sequoyah.l"
1548#line 228 "sequoyah.l"
1553#line 229 "sequoyah.l"
1558#line 230 "sequoyah.l"
1563#line 231 "sequoyah.l"
1568#line 232 "sequoyah.l"
1573#line 233 "sequoyah.l"
1578#line 234 "sequoyah.l"
1583#line 235 "sequoyah.l"
1588#line 236 "sequoyah.l"
1593#line 237 "sequoyah.l"
1598#line 238 "sequoyah.l"
1603#line 239 "sequoyah.l"
1608#line 240 "sequoyah.l"
1613#line 241 "sequoyah.l"
1618#line 242 "sequoyah.l"
1623#line 243 "sequoyah.l"
1628#line 244 "sequoyah.l"
1633#line 245 "sequoyah.l"
1638#line 246 "sequoyah.l"
1643#line 247 "sequoyah.l"
1648#line 248 "sequoyah.l"
1653#line 249 "sequoyah.l"
1658#line 250 "sequoyah.l"
1663#line 251 "sequoyah.l"
1668#line 252 "sequoyah.l"
1673#line 253 "sequoyah.l"
1678#line 254 "sequoyah.l"
1683#line 255 "sequoyah.l"
1688#line 256 "sequoyah.l"
1693#line 257 "sequoyah.l"
1698#line 258 "sequoyah.l"
1703#line 259 "sequoyah.l"
1708#line 260 "sequoyah.l"
1713#line 261 "sequoyah.l"
1718#line 262 "sequoyah.l"
1723#line 263 "sequoyah.l"
1728#line 264 "sequoyah.l"
1733#line 265 "sequoyah.l"
1738#line 266 "sequoyah.l"
1743#line 267 "sequoyah.l"
1748#line 268 "sequoyah.l"
1753#line 269 "sequoyah.l"
1758#line 270 "sequoyah.l"
1763#line 271 "sequoyah.l"
1768#line 272 "sequoyah.l"
1773#line 273 "sequoyah.l"
1778#line 274 "sequoyah.l"
1783#line 275 "sequoyah.l"
1788#line 276 "sequoyah.l"
1793#line 277 "sequoyah.l"
1798#line 278 "sequoyah.l"
1803#line 279 "sequoyah.l"
1808#line 280 "sequoyah.l"
1813#line 281 "sequoyah.l"
1818#line 282 "sequoyah.l"
1823#line 283 "sequoyah.l"
1828#line 284 "sequoyah.l"
1833#line 285 "sequoyah.l"
1838#line 286 "sequoyah.l"
1843#line 287 "sequoyah.l"
1848#line 288 "sequoyah.l"
1853#line 289 "sequoyah.l"
1858#line 290 "sequoyah.l"
1863#line 291 "sequoyah.l"
1868#line 292 "sequoyah.l"
1873#line 293 "sequoyah.l"
1878#line 294 "sequoyah.l"
1883#line 295 "sequoyah.l"
1888#line 296 "sequoyah.l"
1893#line 297 "sequoyah.l"
1898#line 298 "sequoyah.l"
1903#line 299 "sequoyah.l"
1908#line 300 "sequoyah.l"
1913#line 301 "sequoyah.l"
1918#line 302 "sequoyah.l"
1923#line 303 "sequoyah.l"
1928#line 304 "sequoyah.l"
1933#line 305 "sequoyah.l"
1938#line 306 "sequoyah.l"
1943#line 307 "sequoyah.l"
1948#line 308 "sequoyah.l"
1953#line 309 "sequoyah.l"
1958#line 310 "sequoyah.l"
1963#line 311 "sequoyah.l"
1968#line 312 "sequoyah.l"
1973#line 313 "sequoyah.l"
1978#line 314 "sequoyah.l"
1983#line 315 "sequoyah.l"
1988#line 316 "sequoyah.l"
1993#line 317 "sequoyah.l"
1998#line 318 "sequoyah.l"
2003#line 319 "sequoyah.l"
2008#line 320 "sequoyah.l"
2013#line 321 "sequoyah.l"
2018#line 322 "sequoyah.l"
2023#line 323 "sequoyah.l"
2028#line 324 "sequoyah.l"
2033#line 325 "sequoyah.l"
2038#line 326 "sequoyah.l"
2043#line 327 "sequoyah.l"
2048#line 328 "sequoyah.l"
2053#line 329 "sequoyah.l"
2058#line 330 "sequoyah.l"
2063#line 331 "sequoyah.l"
2068#line 332 "sequoyah.l"
2073#line 333 "sequoyah.l"
2078#line 334 "sequoyah.l"
2083#line 335 "sequoyah.l"
2088#line 336 "sequoyah.l"
2093#line 337 "sequoyah.l"
2098#line 338 "sequoyah.l"
2103#line 339 "sequoyah.l"
2108#line 340 "sequoyah.l"
2113#line 341 "sequoyah.l"
2118#line 342 "sequoyah.l"
2123#line 343 "sequoyah.l"
2128#line 344 "sequoyah.l"
2133#line 345 "sequoyah.l"
2138#line 346 "sequoyah.l"
2143#line 347 "sequoyah.l"
2148#line 348 "sequoyah.l"
2153#line 349 "sequoyah.l"
2158#line 350 "sequoyah.l"
2163#line 351 "sequoyah.l"
2168#line 352 "sequoyah.l"
2173#line 353 "sequoyah.l"
2178#line 354 "sequoyah.l"
2183#line 355 "sequoyah.l"
2188#line 356 "sequoyah.l"
2193#line 357 "sequoyah.l"
2198#line 358 "sequoyah.l"
2203#line 359 "sequoyah.l"
2208#line 360 "sequoyah.l"
2213#line 361 "sequoyah.l"
2218#line 362 "sequoyah.l"
2223#line 363 "sequoyah.l"
2228#line 364 "sequoyah.l"
2233#line 365 "sequoyah.l"
2238#line 366 "sequoyah.l"
2243#line 367 "sequoyah.l"
2248#line 368 "sequoyah.l"
2253#line 369 "sequoyah.l"
2258#line 370 "sequoyah.l"
2263#line 371 "sequoyah.l"
2268#line 372 "sequoyah.l"
2273#line 373 "sequoyah.l"
2278#line 374 "sequoyah.l"
2283#line 375 "sequoyah.l"
2288#line 376 "sequoyah.l"
2293#line 377 "sequoyah.l"
2298#line 378 "sequoyah.l"
2303#line 379 "sequoyah.l"
2308#line 380 "sequoyah.l"
2313#line 381 "sequoyah.l"
2318#line 382 "sequoyah.l"
2323#line 383 "sequoyah.l"
2328#line 384 "sequoyah.l"
2333#line 385 "sequoyah.l"
2338#line 386 "sequoyah.l"
2343#line 387 "sequoyah.l"
2348#line 388 "sequoyah.l"
2353#line 389 "sequoyah.l"
2358#line 390 "sequoyah.l"
2363#line 391 "sequoyah.l"
2368#line 392 "sequoyah.l"
2373#line 393 "sequoyah.l"
2378#line 394 "sequoyah.l"
2383#line 395 "sequoyah.l"
2388#line 396 "sequoyah.l"
2393#line 397 "sequoyah.l"
2398#line 398 "sequoyah.l"
2403#line 399 "sequoyah.l"
2408#line 400 "sequoyah.l"
2413#line 401 "sequoyah.l"
2418#line 402 "sequoyah.l"
2423#line 403 "sequoyah.l"
2428#line 404 "sequoyah.l"
2433#line 405 "sequoyah.l"
2438#line 406 "sequoyah.l"
2443#line 407 "sequoyah.l"
2449#line 410 "sequoyah.l"
2450fprintf (yyout,
"A");
2454#line 411 "sequoyah.l"
2455fprintf (yyout,
"E");
2459#line 412 "sequoyah.l"
2460fprintf (yyout,
"I");
2464#line 413 "sequoyah.l"
2465fprintf (yyout,
"O");
2469#line 414 "sequoyah.l"
2470fprintf (yyout,
"U");
2474#line 415 "sequoyah.l"
2475fprintf (yyout,
"V");
2479#line 416 "sequoyah.l"
2480fprintf (yyout,
"GA");
2484#line 417 "sequoyah.l"
2485fprintf (yyout,
"KA");
2489#line 418 "sequoyah.l"
2490fprintf (yyout,
"GE");
2494#line 419 "sequoyah.l"
2495fprintf (yyout,
"GI");
2499#line 420 "sequoyah.l"
2500fprintf (yyout,
"GO");
2504#line 421 "sequoyah.l"
2505fprintf (yyout,
"GU");
2509#line 422 "sequoyah.l"
2510fprintf (yyout,
"GV");
2514#line 423 "sequoyah.l"
2515fprintf (yyout,
"HA");
2519#line 424 "sequoyah.l"
2520fprintf (yyout,
"HE");
2524#line 425 "sequoyah.l"
2525fprintf (yyout,
"HI");
2529#line 426 "sequoyah.l"
2530fprintf (yyout,
"HO");
2534#line 427 "sequoyah.l"
2535fprintf (yyout,
"HU");
2539#line 428 "sequoyah.l"
2540fprintf (yyout,
"HV");
2544#line 429 "sequoyah.l"
2545fprintf (yyout,
"LA");
2549#line 430 "sequoyah.l"
2550fprintf (yyout,
"LE");
2554#line 431 "sequoyah.l"
2555fprintf (yyout,
"LI");
2559#line 432 "sequoyah.l"
2560fprintf (yyout,
"LO");
2564#line 433 "sequoyah.l"
2565fprintf (yyout,
"LU");
2569#line 434 "sequoyah.l"
2570fprintf (yyout,
"LV");
2574#line 435 "sequoyah.l"
2575fprintf (yyout,
"MA");
2579#line 436 "sequoyah.l"
2580fprintf (yyout,
"ME");
2584#line 437 "sequoyah.l"
2585fprintf (yyout,
"MI");
2589#line 438 "sequoyah.l"
2590fprintf (yyout,
"MO");
2594#line 439 "sequoyah.l"
2595fprintf (yyout,
"MU");
2599#line 440 "sequoyah.l"
2600fprintf (yyout,
"NA");
2604#line 441 "sequoyah.l"
2605fprintf (yyout,
"HNA");
2609#line 442 "sequoyah.l"
2610fprintf (yyout,
"NAH");
2614#line 443 "sequoyah.l"
2615fprintf (yyout,
"NE");
2619#line 444 "sequoyah.l"
2620fprintf (yyout,
"NI");
2624#line 445 "sequoyah.l"
2625fprintf (yyout,
"NO");
2629#line 446 "sequoyah.l"
2630fprintf (yyout,
"NU");
2634#line 447 "sequoyah.l"
2635fprintf (yyout,
"NV");
2639#line 448 "sequoyah.l"
2640fprintf (yyout,
"QUA");
2644#line 449 "sequoyah.l"
2645fprintf (yyout,
"QUE");
2649#line 450 "sequoyah.l"
2650fprintf (yyout,
"QUI");
2654#line 451 "sequoyah.l"
2655fprintf (yyout,
"QUO");
2659#line 452 "sequoyah.l"
2660fprintf (yyout,
"QUU");
2664#line 453 "sequoyah.l"
2665fprintf (yyout,
"QUV");
2669#line 454 "sequoyah.l"
2670fprintf (yyout,
"SA");
2674#line 455 "sequoyah.l"
2675fprintf (yyout,
"S");
2679#line 456 "sequoyah.l"
2680fprintf (yyout,
"SE");
2684#line 457 "sequoyah.l"
2685fprintf (yyout,
"SI");
2689#line 458 "sequoyah.l"
2690fprintf (yyout,
"SO");
2694#line 459 "sequoyah.l"
2695fprintf (yyout,
"SU");
2699#line 460 "sequoyah.l"
2700fprintf (yyout,
"SV");
2704#line 461 "sequoyah.l"
2705fprintf (yyout,
"DA");
2709#line 462 "sequoyah.l"
2710fprintf (yyout,
"TA");
2714#line 463 "sequoyah.l"
2715fprintf (yyout,
"DE");
2719#line 464 "sequoyah.l"
2720fprintf (yyout,
"TE");
2724#line 465 "sequoyah.l"
2725fprintf (yyout,
"DI");
2729#line 466 "sequoyah.l"
2730fprintf (yyout,
"TI");
2734#line 467 "sequoyah.l"
2735fprintf (yyout,
"DO");
2739#line 468 "sequoyah.l"
2740fprintf (yyout,
"DU");
2744#line 469 "sequoyah.l"
2745fprintf (yyout,
"DV");
2749#line 470 "sequoyah.l"
2750fprintf (yyout,
"DLA");
2754#line 471 "sequoyah.l"
2755fprintf (yyout,
"TLA");
2759#line 472 "sequoyah.l"
2760fprintf (yyout,
"TLE");
2764#line 473 "sequoyah.l"
2765fprintf (yyout,
"TLI");
2769#line 474 "sequoyah.l"
2770fprintf (yyout,
"TLO");
2774#line 475 "sequoyah.l"
2775fprintf (yyout,
"TLU");
2779#line 476 "sequoyah.l"
2780fprintf (yyout,
"TLV");
2784#line 477 "sequoyah.l"
2785fprintf (yyout,
"TSA");
2789#line 478 "sequoyah.l"
2790fprintf (yyout,
"TSE");
2794#line 479 "sequoyah.l"
2795fprintf (yyout,
"TSI");
2799#line 480 "sequoyah.l"
2800fprintf (yyout,
"TSO");
2804#line 481 "sequoyah.l"
2805fprintf (yyout,
"TSU");
2809#line 482 "sequoyah.l"
2810fprintf (yyout,
"TSV");
2814#line 483 "sequoyah.l"
2815fprintf (yyout,
"WA");
2819#line 484 "sequoyah.l"
2820fprintf (yyout,
"WE");
2824#line 485 "sequoyah.l"
2825fprintf (yyout,
"WI");
2829#line 486 "sequoyah.l"
2830fprintf (yyout,
"WO");
2834#line 487 "sequoyah.l"
2835fprintf (yyout,
"WU");
2839#line 488 "sequoyah.l"
2840fprintf (yyout,
"WV");
2844#line 489 "sequoyah.l"
2845fprintf (yyout,
"YA");
2849#line 490 "sequoyah.l"
2850fprintf (yyout,
"YE");
2854#line 491 "sequoyah.l"
2855fprintf (yyout,
"YI");
2859#line 492 "sequoyah.l"
2860fprintf (yyout,
"YO");
2864#line 493 "sequoyah.l"
2865fprintf (yyout,
"YU");
2869#line 494 "sequoyah.l"
2870fprintf (yyout,
"YV");
2874#line 495 "sequoyah.l"
2875fprintf (yyout,
"MV");
2879#line 496 "sequoyah.l"
2880fprintf (yyout,
"ye");
2884#line 497 "sequoyah.l"
2885fprintf (yyout,
"yi");
2889#line 498 "sequoyah.l"
2890fprintf (yyout,
"yo");
2894#line 499 "sequoyah.l"
2895fprintf (yyout,
"yu");
2899#line 500 "sequoyah.l"
2900fprintf (yyout,
"yv");
2904#line 501 "sequoyah.l"
2905fprintf (yyout,
"mv");
2909#line 502 "sequoyah.l"
2910fprintf (yyout,
"a");
2914#line 503 "sequoyah.l"
2915fprintf (yyout,
"e");
2919#line 504 "sequoyah.l"
2920fprintf (yyout,
"i");
2924#line 505 "sequoyah.l"
2925fprintf (yyout,
"o");
2929#line 506 "sequoyah.l"
2930fprintf (yyout,
"u");
2934#line 507 "sequoyah.l"
2935fprintf (yyout,
"v");
2939#line 508 "sequoyah.l"
2940fprintf (yyout,
"ga");
2944#line 509 "sequoyah.l"
2945fprintf (yyout,
"ka");
2949#line 510 "sequoyah.l"
2950fprintf (yyout,
"ge");
2954#line 511 "sequoyah.l"
2955fprintf (yyout,
"gi");
2959#line 512 "sequoyah.l"
2960fprintf (yyout,
"go");
2964#line 513 "sequoyah.l"
2965fprintf (yyout,
"gu");
2969#line 514 "sequoyah.l"
2970fprintf (yyout,
"gv");
2974#line 515 "sequoyah.l"
2975fprintf (yyout,
"ha");
2979#line 516 "sequoyah.l"
2980fprintf (yyout,
"he");
2984#line 517 "sequoyah.l"
2985fprintf (yyout,
"hi");
2989#line 518 "sequoyah.l"
2990fprintf (yyout,
"ho");
2994#line 519 "sequoyah.l"
2995fprintf (yyout,
"hu");
2999#line 520 "sequoyah.l"
3000fprintf (yyout,
"hv");
3004#line 521 "sequoyah.l"
3005fprintf (yyout,
"la");
3009#line 522 "sequoyah.l"
3010fprintf (yyout,
"le");
3014#line 523 "sequoyah.l"
3015fprintf (yyout,
"li");
3019#line 524 "sequoyah.l"
3020fprintf (yyout,
"lo");
3024#line 525 "sequoyah.l"
3025fprintf (yyout,
"lu");
3029#line 526 "sequoyah.l"
3030fprintf (yyout,
"lv");
3034#line 527 "sequoyah.l"
3035fprintf (yyout,
"ma");
3039#line 528 "sequoyah.l"
3040fprintf (yyout,
"me");
3044#line 529 "sequoyah.l"
3045fprintf (yyout,
"mi");
3049#line 530 "sequoyah.l"
3050fprintf (yyout,
"mo");
3054#line 531 "sequoyah.l"
3055fprintf (yyout,
"mu");
3059#line 532 "sequoyah.l"
3060fprintf (yyout,
"na");
3064#line 533 "sequoyah.l"
3065fprintf (yyout,
"hna");
3069#line 534 "sequoyah.l"
3070fprintf (yyout,
"nah");
3074#line 535 "sequoyah.l"
3075fprintf (yyout,
"ne");
3079#line 536 "sequoyah.l"
3080fprintf (yyout,
"ni");
3084#line 537 "sequoyah.l"
3085fprintf (yyout,
"no");
3089#line 538 "sequoyah.l"
3090fprintf (yyout,
"nu");
3094#line 539 "sequoyah.l"
3095fprintf (yyout,
"nv");
3099#line 540 "sequoyah.l"
3100fprintf (yyout,
"qua");
3104#line 541 "sequoyah.l"
3105fprintf (yyout,
"que");
3109#line 542 "sequoyah.l"
3110fprintf (yyout,
"qui");
3114#line 543 "sequoyah.l"
3115fprintf (yyout,
"quo");
3119#line 544 "sequoyah.l"
3120fprintf (yyout,
"quu");
3124#line 545 "sequoyah.l"
3125fprintf (yyout,
"quv");
3129#line 546 "sequoyah.l"
3130fprintf (yyout,
"sa");
3134#line 547 "sequoyah.l"
3135fprintf (yyout,
"s");
3139#line 548 "sequoyah.l"
3140fprintf (yyout,
"se");
3144#line 549 "sequoyah.l"
3145fprintf (yyout,
"si");
3149#line 550 "sequoyah.l"
3150fprintf (yyout,
"so");
3154#line 551 "sequoyah.l"
3155fprintf (yyout,
"su");
3159#line 552 "sequoyah.l"
3160fprintf (yyout,
"sv");
3164#line 553 "sequoyah.l"
3165fprintf (yyout,
"da");
3169#line 554 "sequoyah.l"
3170fprintf (yyout,
"ta");
3174#line 555 "sequoyah.l"
3175fprintf (yyout,
"de");
3179#line 556 "sequoyah.l"
3180fprintf (yyout,
"te");
3184#line 557 "sequoyah.l"
3185fprintf (yyout,
"di");
3189#line 558 "sequoyah.l"
3190fprintf (yyout,
"ti");
3194#line 559 "sequoyah.l"
3195fprintf (yyout,
"do");
3199#line 560 "sequoyah.l"
3200fprintf (yyout,
"du");
3204#line 561 "sequoyah.l"
3205fprintf (yyout,
"dv");
3209#line 562 "sequoyah.l"
3210fprintf (yyout,
"dla");
3214#line 563 "sequoyah.l"
3215fprintf (yyout,
"tla");
3219#line 564 "sequoyah.l"
3220fprintf (yyout,
"tle");
3224#line 565 "sequoyah.l"
3225fprintf (yyout,
"tli");
3229#line 566 "sequoyah.l"
3230fprintf (yyout,
"tlo");
3234#line 567 "sequoyah.l"
3235fprintf (yyout,
"tlu");
3239#line 568 "sequoyah.l"
3240fprintf (yyout,
"tlv");
3244#line 569 "sequoyah.l"
3245fprintf (yyout,
"tsa");
3249#line 570 "sequoyah.l"
3250fprintf (yyout,
"tse");
3254#line 571 "sequoyah.l"
3255fprintf (yyout,
"tsi");
3259#line 572 "sequoyah.l"
3260fprintf (yyout,
"tso");
3264#line 573 "sequoyah.l"
3265fprintf (yyout,
"tsu");
3269#line 574 "sequoyah.l"
3270fprintf (yyout,
"tsv");
3274#line 575 "sequoyah.l"
3275fprintf (yyout,
"wa");
3279#line 576 "sequoyah.l"
3280fprintf (yyout,
"we");
3284#line 577 "sequoyah.l"
3285fprintf (yyout,
"wi");
3289#line 578 "sequoyah.l"
3290fprintf (yyout,
"wo");
3294#line 579 "sequoyah.l"
3295fprintf (yyout,
"wu");
3299#line 580 "sequoyah.l"
3300fprintf (yyout,
"wv");
3304#line 581 "sequoyah.l"
3305fprintf (yyout,
"ya");
3309#line 582 "sequoyah.l"
3312#line 3312 "<stdout>"
3313case YY_STATE_EOF(INITIAL):
3316 case YY_END_OF_BUFFER:
3319 int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
3322 *yy_cp = (yy_hold_char);
3323 YY_RESTORE_YY_MORE_OFFSET
3325 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
3336 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
3337 YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
3338 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
3348 if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
3350 yy_state_type yy_next_state;
3352 (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
3354 yy_current_state = yy_get_previous_state( );
3365 yy_next_state = yy_try_NUL_trans( yy_current_state );
3367 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
3369 if ( yy_next_state )
3372 yy_cp = ++(yy_c_buf_p);
3373 yy_current_state = yy_next_state;
3379 yy_cp = (yy_c_buf_p);
3380 goto yy_find_action;
3384 else switch ( yy_get_next_buffer( ) )
3386 case EOB_ACT_END_OF_FILE:
3388 (yy_did_buffer_switch_on_eof) = 0;
3401 (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
3403 yy_act = YY_STATE_EOF(YY_START);
3409 if ( ! (yy_did_buffer_switch_on_eof) )
3415 case EOB_ACT_CONTINUE_SCAN:
3417 (yytext_ptr) + yy_amount_of_matched_text;
3419 yy_current_state = yy_get_previous_state( );
3421 yy_cp = (yy_c_buf_p);
3422 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
3425 case EOB_ACT_LAST_MATCH:
3427 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
3429 yy_current_state = yy_get_previous_state( );
3431 yy_cp = (yy_c_buf_p);
3432 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
3433 goto yy_find_action;
3440 "fatal flex scanner internal error--no action found" );
3453static int yy_get_next_buffer (
void)
3455 char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
3456 char *source = (yytext_ptr);
3457 int number_to_move, i;
3460 if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
3462 "fatal flex scanner internal error--end of buffer missed" );
3464 if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
3466 if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
3471 return EOB_ACT_END_OF_FILE;
3479 return EOB_ACT_LAST_MATCH;
3486 number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr) - 1);
3488 for ( i = 0; i < number_to_move; ++i )
3489 *(dest++) = *(source++);
3491 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
3495 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
3499 yy_size_t num_to_read =
3500 YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
3502 while ( num_to_read <= 0 )
3508 int yy_c_buf_p_offset =
3509 (int) ((yy_c_buf_p) - b->yy_ch_buf);
3511 if ( b->yy_is_our_buffer )
3513 yy_size_t new_size = b->yy_buf_size * 2;
3515 if ( new_size <= 0 )
3516 b->yy_buf_size += b->yy_buf_size / 8;
3518 b->yy_buf_size *= 2;
3520 b->yy_ch_buf = (
char *)
3522 yyrealloc( (
void *) b->yy_ch_buf,
3523 (yy_size_t) (b->yy_buf_size + 2) );
3527 b->yy_ch_buf = NULL;
3529 if ( ! b->yy_ch_buf )
3531 "fatal error - scanner input buffer overflow" );
3533 (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
3535 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
3540 if ( num_to_read > YY_READ_BUF_SIZE )
3541 num_to_read = YY_READ_BUF_SIZE;
3544 YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
3545 (yy_n_chars), num_to_read );
3547 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
3550 if ( (yy_n_chars) == 0 )
3552 if ( number_to_move == YY_MORE_ADJ )
3554 ret_val = EOB_ACT_END_OF_FILE;
3560 ret_val = EOB_ACT_LAST_MATCH;
3561 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
3562 YY_BUFFER_EOF_PENDING;
3567 ret_val = EOB_ACT_CONTINUE_SCAN;
3569 if (((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
3571 yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
3572 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (
char *) yyrealloc(
3573 (
void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size );
3574 if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
3575 YY_FATAL_ERROR(
"out of dynamic memory in yy_get_next_buffer()" );
3577 YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
3580 (yy_n_chars) += number_to_move;
3581 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
3582 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
3584 (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
3591 static yy_state_type yy_get_previous_state (
void)
3593 yy_state_type yy_current_state;
3596 yy_current_state = (yy_start);
3598 for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
3600 YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
3601 if ( yy_accept[yy_current_state] )
3603 (yy_last_accepting_state) = yy_current_state;
3604 (yy_last_accepting_cpos) = yy_cp;
3606 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
3608 yy_current_state = (int) yy_def[yy_current_state];
3609 if ( yy_current_state >= 475 )
3610 yy_c = yy_meta[yy_c];
3612 yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
3615 return yy_current_state;
3623 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
3626 char *yy_cp = (yy_c_buf_p);
3629 if ( yy_accept[yy_current_state] )
3631 (yy_last_accepting_state) = yy_current_state;
3632 (yy_last_accepting_cpos) = yy_cp;
3634 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
3636 yy_current_state = (int) yy_def[yy_current_state];
3637 if ( yy_current_state >= 475 )
3638 yy_c = yy_meta[yy_c];
3640 yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
3641 yy_is_jam = (yy_current_state == 474);
3643 return yy_is_jam ? 0 : yy_current_state;
3648 static void yyunput (
int c,
char * yy_bp )
3652 yy_cp = (yy_c_buf_p);
3655 *yy_cp = (yy_hold_char);
3657 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
3660 yy_size_t number_to_move = (yy_n_chars) + 2;
3661 char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
3662 YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
3664 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
3666 while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
3667 *--dest = *--source;
3669 yy_cp += (int) (dest - source);
3670 yy_bp += (int) (dest - source);
3671 YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
3672 (yy_n_chars) = (
int) YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
3674 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
3675 YY_FATAL_ERROR(
"flex scanner push-back overflow" );
3678 *--yy_cp = (char) c;
3680 (yytext_ptr) = yy_bp;
3681 (yy_hold_char) = *yy_cp;
3682 (yy_c_buf_p) = yy_cp;
3689 static int yyinput (
void)
3691 static int input (
void)
3697 *(yy_c_buf_p) = (yy_hold_char);
3699 if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
3705 if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
3707 *(yy_c_buf_p) =
'\0';
3711 yy_size_t offset = (yy_c_buf_p) - (yytext_ptr);
3714 switch ( yy_get_next_buffer( ) )
3716 case EOB_ACT_LAST_MATCH:
3732 case EOB_ACT_END_OF_FILE:
3737 if ( ! (yy_did_buffer_switch_on_eof) )
3746 case EOB_ACT_CONTINUE_SCAN:
3747 (yy_c_buf_p) = (yytext_ptr) + offset;
3753 c = *(
unsigned char *) (yy_c_buf_p);
3754 *(yy_c_buf_p) =
'\0';
3755 (yy_hold_char) = *++(yy_c_buf_p);
3766 void yyrestart (FILE * input_file )
3769 if ( ! YY_CURRENT_BUFFER ){
3770 yyensure_buffer_stack ();
3771 YY_CURRENT_BUFFER_LVALUE =
3772 yy_create_buffer( yyin, YY_BUF_SIZE );
3775 yy_init_buffer( YY_CURRENT_BUFFER, input_file );
3776 yy_load_buffer_state( );
3791 yyensure_buffer_stack ();
3792 if ( YY_CURRENT_BUFFER == new_buffer )
3795 if ( YY_CURRENT_BUFFER )
3798 *(yy_c_buf_p) = (yy_hold_char);
3799 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
3800 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
3803 YY_CURRENT_BUFFER_LVALUE = new_buffer;
3804 yy_load_buffer_state( );
3811 (yy_did_buffer_switch_on_eof) = 1;
3814static void yy_load_buffer_state (
void)
3816 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
3817 (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
3818 yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
3819 (yy_hold_char) = *(yy_c_buf_p);
3834 YY_FATAL_ERROR(
"out of dynamic memory in yy_create_buffer()" );
3836 b->yy_buf_size = size;
3841 b->yy_ch_buf = (
char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) );
3842 if ( ! b->yy_ch_buf )
3843 YY_FATAL_ERROR(
"out of dynamic memory in yy_create_buffer()" );
3845 b->yy_is_our_buffer = 1;
3847 yy_init_buffer( b, file );
3862 if ( b == YY_CURRENT_BUFFER )
3865 if ( b->yy_is_our_buffer )
3866 yyfree( (
void *) b->yy_ch_buf );
3868 yyfree( (
void *) b );
3880 yy_flush_buffer( b );
3882 b->yy_input_file = file;
3883 b->yy_fill_buffer = 1;
3889 if (b != YY_CURRENT_BUFFER){
3894 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
3914 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
3915 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
3917 b->yy_buf_pos = &b->yy_ch_buf[0];
3920 b->yy_buffer_status = YY_BUFFER_NEW;
3922 if ( b == YY_CURRENT_BUFFER )
3923 yy_load_buffer_state( );
3934 if (new_buffer == NULL)
3937 yyensure_buffer_stack();
3940 if ( YY_CURRENT_BUFFER )
3943 *(yy_c_buf_p) = (yy_hold_char);
3944 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
3945 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
3949 if (YY_CURRENT_BUFFER)
3950 (yy_buffer_stack_top)++;
3951 YY_CURRENT_BUFFER_LVALUE = new_buffer;
3954 yy_load_buffer_state( );
3955 (yy_did_buffer_switch_on_eof) = 1;
3962void yypop_buffer_state (
void)
3964 if (!YY_CURRENT_BUFFER)
3967 yy_delete_buffer(YY_CURRENT_BUFFER );
3968 YY_CURRENT_BUFFER_LVALUE = NULL;
3969 if ((yy_buffer_stack_top) > 0)
3970 --(yy_buffer_stack_top);
3972 if (YY_CURRENT_BUFFER) {
3973 yy_load_buffer_state( );
3974 (yy_did_buffer_switch_on_eof) = 1;
3981static void yyensure_buffer_stack (
void)
3983 yy_size_t num_to_alloc;
3985 if (!(yy_buffer_stack)) {
3995 if ( ! (yy_buffer_stack) )
3996 YY_FATAL_ERROR(
"out of dynamic memory in yyensure_buffer_stack()" );
3998 memset((yy_buffer_stack), 0, num_to_alloc *
sizeof(
struct yy_buffer_state*));
4000 (yy_buffer_stack_max) = num_to_alloc;
4001 (yy_buffer_stack_top) = 0;
4005 if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
4008 yy_size_t grow_size = 8 ;
4010 num_to_alloc = (yy_buffer_stack_max) + grow_size;
4015 if ( ! (yy_buffer_stack) )
4016 YY_FATAL_ERROR(
"out of dynamic memory in yyensure_buffer_stack()" );
4019 memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size *
sizeof(
struct yy_buffer_state*));
4020 (yy_buffer_stack_max) = num_to_alloc;
4035 base[size-2] != YY_END_OF_BUFFER_CHAR ||
4036 base[size-1] != YY_END_OF_BUFFER_CHAR )
4042 YY_FATAL_ERROR(
"out of dynamic memory in yy_scan_buffer()" );
4044 b->yy_buf_size = (int) (size - 2);
4045 b->yy_buf_pos = b->yy_ch_buf = base;
4046 b->yy_is_our_buffer = 0;
4047 b->yy_input_file = NULL;
4048 b->yy_n_chars = b->yy_buf_size;
4049 b->yy_is_interactive = 0;
4051 b->yy_fill_buffer = 0;
4052 b->yy_buffer_status = YY_BUFFER_NEW;
4054 yy_switch_to_buffer( b );
4070 return yy_scan_bytes( yystr, (
int) strlen(yystr) );
4080YY_BUFFER_STATE yy_scan_bytes (
const char * yybytes, yy_size_t _yybytes_len )
4088 n = (yy_size_t) (_yybytes_len + 2);
4089 buf = (
char *) yyalloc( n );
4091 YY_FATAL_ERROR(
"out of dynamic memory in yy_scan_bytes()" );
4093 for ( i = 0; i < _yybytes_len; ++i )
4094 buf[i] = yybytes[i];
4096 buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
4098 b = yy_scan_buffer( buf, n );
4100 YY_FATAL_ERROR(
"bad buffer in yy_scan_bytes()" );
4105 b->yy_is_our_buffer = 1;
4110#ifndef YY_EXIT_FAILURE
4111#define YY_EXIT_FAILURE 2
4114static void yynoreturn yy_fatal_error (
const char* msg )
4116 fprintf( stderr,
"%s\n", msg );
4117 exit( YY_EXIT_FAILURE );
4127 yy_size_t yyless_macro_arg = (n); \
4128 YY_LESS_LINENO(yyless_macro_arg);\
4129 yytext[yyleng] = (yy_hold_char); \
4130 (yy_c_buf_p) = yytext + yyless_macro_arg; \
4131 (yy_hold_char) = *(yy_c_buf_p); \
4132 *(yy_c_buf_p) = '\0'; \
4133 yyleng = yyless_macro_arg; \
4142int yyget_lineno (
void)
4151FILE *yyget_in (
void)
4159FILE *yyget_out (
void)
4167yy_size_t yyget_leng (
void)
4176char *yyget_text (
void)
4185void yyset_lineno (
int _line_number )
4188 yylineno = _line_number;
4197void yyset_in (FILE * _in_str )
4202void yyset_out (FILE * _out_str )
4207int yyget_debug (
void)
4209 return yy_flex_debug;
4212void yyset_debug (
int _bdebug )
4214 yy_flex_debug = _bdebug ;
4217static int yy_init_globals (
void)
4223 (yy_buffer_stack) = NULL;
4224 (yy_buffer_stack_top) = 0;
4225 (yy_buffer_stack_max) = 0;
4226 (yy_c_buf_p) = NULL;
4246int yylex_destroy (
void)
4250 while(YY_CURRENT_BUFFER){
4251 yy_delete_buffer( YY_CURRENT_BUFFER );
4252 YY_CURRENT_BUFFER_LVALUE = NULL;
4253 yypop_buffer_state();
4257 yyfree((yy_buffer_stack) );
4258 (yy_buffer_stack) = NULL;
4272static void yy_flex_strncpy (
char* s1,
const char * s2,
int n )
4276 for ( i = 0; i < n; ++i )
4281#ifdef YY_NEED_STRLEN
4282static int yy_flex_strlen (
const char * s )
4285 for ( n = 0; s[n]; ++n )
4292void *yyalloc (yy_size_t size )
4294 return malloc(size);
4297void *yyrealloc (
void * ptr, yy_size_t size )
4307 return realloc(ptr, size);
4310void yyfree (
void * ptr )
4312 free( (
char *) ptr );
4315#define YYTABLES_NAME "yytables"
4317#line 582 "sequoyah.l"
4321main (
int argc,
char *argv[])
4326 void print_help (
char *);
4328 exit_status = EXIT_SUCCESS;
4332 for (i = 1; i < argc; i++) {
4337 if (argv[i][0] ==
'-') {
4338 switch (argv[i][1]) {
4340 case '-':
if (strncmp (argv[i],
"--version", 9) == 0) {
4341 printf (
"sequoyah Version %s\n", VERSION);
4342 exit (EXIT_SUCCESS);
4345 case 'b': bom_out = 1;
4351 case 'i': yyin = fopen (argv[++i],
"r");
4357 case 'o': yyout = fopen (argv[++i],
"w");
4360 case 'v': printf (
"sequoyah Version %s\n", VERSION);
4361 exit (EXIT_SUCCESS);
4363 default: print_help (argv[0]);
4364 exit_status = EXIT_FAILURE;
4369 print_help (argv[0]);
4370 exit_status = EXIT_FAILURE;
4374 if (exit_status == EXIT_SUCCESS) {
4376 print_utf8 (0xFFFE);
4391print_help (
char * progname)
4394 fprintf (stderr,
"\nUnknown command line parameter.\n\n");
4395 fprintf (stderr,
"Syntax: %s [-b] [-i input_file] [-o output_file]\n\n",
4397 fprintf (stderr,
" -b: begin output with UTF-8 Byte Order Mark\n\n");
4398 fprintf (stderr,
" -i: specify input file name\n\n");
4399 fprintf (stderr,
" -o: specify output file name\n\n");
4410print_pattern (
char *intext, uint32_t codept)
4413 void print_ascii (
char *);
4414 void print_utf8 (uint32_t);
4417 print_ascii (intext);
4419 print_utf8 (codept);
4429print_ascii (
char *intext)
4432 char unicode_string[7];
4434 for (i = 0; intext[i] !=
'\0'; i++) {
4443 intext[j] !=
'\0' && intext[j] !=
'\\';
4446 if (intext [j] ==
'\0') {
4447 fprintf (yyout,
"%s", &intext [i]);
4453 else if (intext [j+1] ==
'u') {
4456 fprintf (yyout,
"%s", &intext[i]);
4458 unicode_string [0] =
'\0';
4464 (isdigit (intext [i]) ||
4465 (intext [i] >=
'A' && intext [i] <=
'F') ||
4466 (intext [i] >=
'a' && intext [i] <=
'f'));
4469 unicode_string [k] = intext[i];
4470 unicode_string [k + 1] =
'\0';
4473 print_unicode (unicode_string);
4483 fprintf (yyout,
"%s\\", &intext [i]);
4498print_unicode (
char *intext)
4501 uint32_t this_digit;
4504 void print_utf8 (uint32_t);
4507 for (i = 0; intext[i] !=
'\0'; i++) {
4509 this_digit = intext[i];
4510 if (this_digit >=
'a')
4511 this_digit = this_digit -
'a' + 10;
4512 else if (this_digit >=
'A')
4513 this_digit = this_digit -
'A' + 10;
4517 codept |= this_digit;
4520 print_utf8 (codept);
4533print_quote (
char *intext)
4536 void print_utf8 (uint32_t);
4539 if (intext[0] ==
'"') {
4540 if (quote_state[doubleq_style] == 0) {
4541 print_utf8 (quote_open[doubleq_style]);
4542 quote_state[doubleq_style] = 1;
4545 print_utf8 (quote_close[doubleq_style]);
4546 quote_state[doubleq_style] = 0;
4550 if (intext[0] ==
'`') {
4551 if (singleq_style == 0)
4552 print_utf8 (0x02BB);
4553 else if (singleq_style == 4)
4554 print_utf8 (0x201A);
4556 print_utf8 (0x02BB);
4559 if (singleq_style == 0)
4560 print_utf8 (0x02BC);
4561 else if (singleq_style == 4)
4562 print_utf8 (0x2018);
4564 print_utf8 (0x02BC);
4579print_capital (
char *intext)
4583 test_char = intext[1] & 0x7F;
4585 switch (lang_type) {
4588 if (intext[2] ==
'\\') {
4589 test_char = tolower (test_char);
4590 switch (test_char) {
4592 print_utf8 (0x1FBA);
4595 print_utf8 (0x1FC8);
4598 print_utf8 (0x1FCA);
4601 print_utf8 (0x1FDA);
4604 print_utf8 (0x1FEA);
4607 print_utf8 (0x1FF8);
4610 print_utf8 (0x1FFA);
4613 fprintf (yyout,
"%s", intext);
4622 print_utf8 (ascii2greek_capital[test_char]);
4626 print_utf8 (ascii2coptic[test_char]);
4628 if (intext[2] ==
'\\')
4629 print_utf8 (0x0300);
4634 fprintf (yyout,
"%s", intext);
4648print_small (
char *intext)
4653 test_char = intext[0] & 0x7F;
4655 switch (lang_type) {
4658 if (intext[1] ==
'\\') {
4659 test_char = tolower (test_char);
4660 switch (test_char) {
4662 print_utf8 (0x1F70);
4665 print_utf8 (0x1F72);
4668 print_utf8 (0x1F74);
4671 print_utf8 (0x1F76);
4674 print_utf8 (0x1F78);
4677 print_utf8 (0x1F7A);
4680 print_utf8 (0x1F7C);
4683 fprintf (yyout,
"%s", intext);
4688 print_utf8 (ascii2greek_small[test_char]);
4697 print_utf8 (ascii2coptic[test_char] + 1);
4698 if (intext[1] ==
'\\')
4699 print_utf8 (0x0300);
4702 test_char = intext[0];
4708 if (test_char ==
'k' || test_char ==
'm' || test_char ==
'n' ||
4709 test_char ==
'p' || test_char ==
'T') {
4710 letter_form = yytext[1];
4711 if (letter_form ==
'2') {
4712 switch (test_char) {
4729 fprintf (yyout,
"%s", intext);
4738 switch (test_char) {
4755 fprintf (yyout,
"%s", intext);
4761 print_utf8 (ascii2hebrew[test_char]);
4765 fprintf (yyout,
"%s", intext);
4780print_letter (uint32_t latin, uint32_t greek,
4781 uint32_t coptic, uint32_t hebrew)
4784 switch (lang_type) {
4792 print_utf8 (coptic);
4795 print_utf8 (hebrew);
4810print_utf8 (uint32_t codept)
4817 int bin_digits (uint32_t);
4824 if (codept <= 0x10FFFF) {
4825 bin_length = bin_digits (codept);
4826 if (bin_length < 8) {
4828 utf8_bytes [0] = codept;
4830 else if (bin_length < 12) {
4832 utf8_bytes [0] = 0xC0 | ((codept >> 6) & 0x1F);
4833 utf8_bytes [1] = 0x80 | ( codept & 0x3F);
4835 else if (bin_length < 17) {
4837 utf8_bytes [0] = 0xE0 | ((codept >> 12) & 0x0F);
4838 utf8_bytes [1] = 0x80 | ((codept >> 6) & 0x3F);
4839 utf8_bytes [2] = 0x80 | ( codept & 0x3F);
4841 else if (bin_length < 22) {
4843 utf8_bytes [0] = 0xF0 | ((codept >> 18) & 0x07);
4844 utf8_bytes [1] = 0x80 | ((codept >> 12) & 0x3F);
4845 utf8_bytes [2] = 0x80 | ((codept >> 6) & 0x3F);
4846 utf8_bytes [3] = 0x80 | ( codept & 0x3F);
4850 "Internal error forming UTF-8 in print_utf8() for U+%04X\n",
4854 for (i = 0; i < byte_length; i++) fputc (utf8_bytes [i], yyout);
4858 "print_utf8() called with illegal Unicode code point U+%06X\n",
4870bin_digits (uint32_t itest)
4877 while ( (i != 0) && ((itest & i) == 0) ) {
Header information for the sequoyah program.
#define LANG_HEBREW
Define for Hebrew output (unused).
#define LANG_CHEROKEE
Define for Cherokee output (default).
#define LANG_GREEK
Define for Greek output (unused).
#define LANG_LATIN
Define for Latin output (unused).
#define LANG_COPTIC
Define for Coptic output (unused).