1 #line 1 "lwin_wkt_lex.c" 3 #line 3 "lwin_wkt_lex.c" 5 #define YY_INT_ALIGNED short int 9 #define yy_create_buffer wkt_yy_create_buffer 10 #define yy_delete_buffer wkt_yy_delete_buffer 11 #define yy_scan_buffer wkt_yy_scan_buffer 12 #define yy_scan_string wkt_yy_scan_string 13 #define yy_scan_bytes wkt_yy_scan_bytes 14 #define yy_init_buffer wkt_yy_init_buffer 15 #define yy_flush_buffer wkt_yy_flush_buffer 16 #define yy_load_buffer_state wkt_yy_load_buffer_state 17 #define yy_switch_to_buffer wkt_yy_switch_to_buffer 18 #define yypush_buffer_state wkt_yypush_buffer_state 19 #define yypop_buffer_state wkt_yypop_buffer_state 20 #define yyensure_buffer_stack wkt_yyensure_buffer_stack 21 #define yy_flex_debug wkt_yy_flex_debug 23 #define yyleng wkt_yyleng 24 #define yylex wkt_yylex 25 #define yylineno wkt_yylineno 26 #define yyout wkt_yyout 27 #define yyrestart wkt_yyrestart 28 #define yytext wkt_yytext 29 #define yywrap wkt_yywrap 30 #define yyalloc wkt_yyalloc 31 #define yyrealloc wkt_yyrealloc 32 #define yyfree wkt_yyfree 35 #define YY_FLEX_MAJOR_VERSION 2 36 #define YY_FLEX_MINOR_VERSION 6 37 #define YY_FLEX_SUBMINOR_VERSION 4 38 #if YY_FLEX_SUBMINOR_VERSION > 0 42 #ifdef yy_create_buffer 43 #define wkt_yy_create_buffer_ALREADY_DEFINED 45 #define yy_create_buffer wkt_yy_create_buffer 48 #ifdef yy_delete_buffer 49 #define wkt_yy_delete_buffer_ALREADY_DEFINED 51 #define yy_delete_buffer wkt_yy_delete_buffer 55 #define wkt_yy_scan_buffer_ALREADY_DEFINED 57 #define yy_scan_buffer wkt_yy_scan_buffer 61 #define wkt_yy_scan_string_ALREADY_DEFINED 63 #define yy_scan_string wkt_yy_scan_string 67 #define wkt_yy_scan_bytes_ALREADY_DEFINED 69 #define yy_scan_bytes wkt_yy_scan_bytes 73 #define wkt_yy_init_buffer_ALREADY_DEFINED 75 #define yy_init_buffer wkt_yy_init_buffer 78 #ifdef yy_flush_buffer 79 #define wkt_yy_flush_buffer_ALREADY_DEFINED 81 #define yy_flush_buffer wkt_yy_flush_buffer 84 #ifdef yy_load_buffer_state 85 #define wkt_yy_load_buffer_state_ALREADY_DEFINED 87 #define yy_load_buffer_state wkt_yy_load_buffer_state 90 #ifdef yy_switch_to_buffer 91 #define wkt_yy_switch_to_buffer_ALREADY_DEFINED 93 #define yy_switch_to_buffer wkt_yy_switch_to_buffer 96 #ifdef yypush_buffer_state 97 #define wkt_yypush_buffer_state_ALREADY_DEFINED 99 #define yypush_buffer_state wkt_yypush_buffer_state 102 #ifdef yypop_buffer_state 103 #define wkt_yypop_buffer_state_ALREADY_DEFINED 105 #define yypop_buffer_state wkt_yypop_buffer_state 108 #ifdef yyensure_buffer_stack 109 #define wkt_yyensure_buffer_stack_ALREADY_DEFINED 111 #define yyensure_buffer_stack wkt_yyensure_buffer_stack 115 #define wkt_yylex_ALREADY_DEFINED 117 #define yylex wkt_yylex 121 #define wkt_yyrestart_ALREADY_DEFINED 123 #define yyrestart wkt_yyrestart 127 #define wkt_yylex_init_ALREADY_DEFINED 129 #define yylex_init wkt_yylex_init 132 #ifdef yylex_init_extra 133 #define wkt_yylex_init_extra_ALREADY_DEFINED 135 #define yylex_init_extra wkt_yylex_init_extra 139 #define wkt_yylex_destroy_ALREADY_DEFINED 141 #define yylex_destroy wkt_yylex_destroy 145 #define wkt_yyget_debug_ALREADY_DEFINED 147 #define yyget_debug wkt_yyget_debug 151 #define wkt_yyset_debug_ALREADY_DEFINED 153 #define yyset_debug wkt_yyset_debug 157 #define wkt_yyget_extra_ALREADY_DEFINED 159 #define yyget_extra wkt_yyget_extra 163 #define wkt_yyset_extra_ALREADY_DEFINED 165 #define yyset_extra wkt_yyset_extra 169 #define wkt_yyget_in_ALREADY_DEFINED 171 #define yyget_in wkt_yyget_in 175 #define wkt_yyset_in_ALREADY_DEFINED 177 #define yyset_in wkt_yyset_in 181 #define wkt_yyget_out_ALREADY_DEFINED 183 #define yyget_out wkt_yyget_out 187 #define wkt_yyset_out_ALREADY_DEFINED 189 #define yyset_out wkt_yyset_out 193 #define wkt_yyget_leng_ALREADY_DEFINED 195 #define yyget_leng wkt_yyget_leng 199 #define wkt_yyget_text_ALREADY_DEFINED 201 #define yyget_text wkt_yyget_text 205 #define wkt_yyget_lineno_ALREADY_DEFINED 207 #define yyget_lineno wkt_yyget_lineno 211 #define wkt_yyset_lineno_ALREADY_DEFINED 213 #define yyset_lineno wkt_yyset_lineno 217 #define wkt_yywrap_ALREADY_DEFINED 219 #define yywrap wkt_yywrap 223 #define wkt_yyalloc_ALREADY_DEFINED 225 #define yyalloc wkt_yyalloc 229 #define wkt_yyrealloc_ALREADY_DEFINED 231 #define yyrealloc wkt_yyrealloc 235 #define wkt_yyfree_ALREADY_DEFINED 237 #define yyfree wkt_yyfree 241 #define wkt_yytext_ALREADY_DEFINED 243 #define yytext wkt_yytext 247 #define wkt_yyleng_ALREADY_DEFINED 249 #define yyleng wkt_yyleng 253 #define wkt_yyin_ALREADY_DEFINED 255 #define yyin wkt_yyin 259 #define wkt_yyout_ALREADY_DEFINED 261 #define yyout wkt_yyout 265 #define wkt_yy_flex_debug_ALREADY_DEFINED 267 #define yy_flex_debug wkt_yy_flex_debug 271 #define wkt_yylineno_ALREADY_DEFINED 273 #define yylineno wkt_yylineno 293 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L 298 #ifndef __STDC_LIMIT_MACROS 299 #define __STDC_LIMIT_MACROS 1 302 #include <inttypes.h> 319 #define INT8_MIN (-128) 322 #define INT16_MIN (-32767-1) 325 #define INT32_MIN (-2147483647-1) 328 #define INT8_MAX (127) 331 #define INT16_MAX (32767) 334 #define INT32_MAX (2147483647) 337 #define UINT8_MAX (255U) 340 #define UINT16_MAX (65535U) 343 #define UINT32_MAX (4294967295U) 347 #define SIZE_MAX (~(size_t)0) 357 #define yyconst const 359 #if defined(__GNUC__) && __GNUC__ >= 3 360 #define yynoreturn __attribute__((__noreturn__)) 371 #define YY_SC_TO_UI(c) ((YY_CHAR) (c)) 377 #define BEGIN (yy_start) = 1 + 2 * 382 #define YY_START (((yy_start) - 1) / 2) 383 #define YYSTATE YY_START 385 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) 387 #define YY_NEW_FILE yyrestart( yyin ) 388 #define YY_END_OF_BUFFER_CHAR 0 397 #define YY_BUF_SIZE 32768 399 #define YY_BUF_SIZE 16384 405 #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) 407 #ifndef YY_TYPEDEF_YY_BUFFER_STATE 408 #define YY_TYPEDEF_YY_BUFFER_STATE 412 #ifndef YY_TYPEDEF_YY_SIZE_T 413 #define YY_TYPEDEF_YY_SIZE_T 421 #define EOB_ACT_CONTINUE_SCAN 0 422 #define EOB_ACT_END_OF_FILE 1 423 #define EOB_ACT_LAST_MATCH 2 425 #define YY_LESS_LINENO(n) 426 #define YY_LINENO_REWIND_TO(ptr) 433 int yyless_macro_arg = (n); \ 434 YY_LESS_LINENO(yyless_macro_arg);\ 435 *yy_cp = (yy_hold_char); \ 436 YY_RESTORE_YY_MORE_OFFSET \ 437 (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ 438 YY_DO_BEFORE_ACTION; \ 441 #define unput(c) yyunput( c, (yytext_ptr) ) 443 #ifndef YY_STRUCT_YY_BUFFER_STATE 444 #define YY_STRUCT_YY_BUFFER_STATE 491 #define YY_BUFFER_NEW 0 492 #define YY_BUFFER_NORMAL 1 503 #define YY_BUFFER_EOF_PENDING 2 519 #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \ 520 ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ 525 #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] 553 #define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER ) 557 YY_BUFFER_STATE
yy_scan_bytes (
const char *bytes,
int len );
563 #define yy_new_buffer yy_create_buffer 564 #define yy_set_interactive(is_interactive) \ 566 if ( ! YY_CURRENT_BUFFER ){ \ 567 yyensure_buffer_stack (); \ 568 YY_CURRENT_BUFFER_LVALUE = \ 569 yy_create_buffer( yyin, YY_BUF_SIZE ); \ 571 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ 573 #define yy_set_bol(at_bol) \ 575 if ( ! YY_CURRENT_BUFFER ){\ 576 yyensure_buffer_stack (); \ 577 YY_CURRENT_BUFFER_LVALUE = \ 578 yy_create_buffer( yyin, YY_BUF_SIZE ); \ 580 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ 582 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) 586 #define wkt_yywrap() (1) 587 #define YY_SKIP_YYWRAP 601 #define yytext_ptr yytext 611 #define YY_DO_BEFORE_ACTION \ 612 (yytext_ptr) = yy_bp; \ 613 yyleng = (int) (yy_cp - yy_bp); \ 614 (yy_hold_char) = *yy_cp; \ 616 (yy_c_buf_p) = yy_cp; 617 #define YY_NUM_RULES 26 618 #define YY_END_OF_BUFFER 27 628 0, 0, 27, 25, 24, 24, 20, 21, 22, 25,
629 25, 1, 23, 25, 25, 25, 25, 19, 25, 25,
630 25, 19, 24, 0, 1, 1, 1, 0, 0, 0,
631 0, 0, 0, 0, 0, 0, 0, 0, 0, 19,
632 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,
633 0, 0, 16, 0, 0, 0, 0, 0, 0, 0,
634 0, 0, 0, 0, 0, 0, 0, 0, 18, 0,
635 0, 0, 17, 0, 0, 0, 0, 0, 0, 0,
636 0, 0, 0, 0, 0, 0, 0, 0, 0, 2,
637 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
639 10, 0, 0, 0, 0, 0, 0, 0, 0, 0,
640 0, 0, 0, 0, 15, 0, 0, 0, 0, 0,
641 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
642 13, 6, 0, 8, 0, 0, 0, 0, 0, 0,
643 0, 0, 0, 0, 0, 0, 0, 9, 0, 0,
644 5, 4, 0, 0, 11, 0, 0, 0, 12, 0,
645 0, 0, 0, 7, 0, 0, 0, 0, 14, 3,
651 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
652 1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
653 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
654 1, 2, 1, 1, 1, 1, 1, 1, 1, 4,
655 5, 1, 6, 7, 8, 9, 1, 10, 10, 10,
656 10, 10, 10, 10, 10, 10, 10, 1, 11, 1,
657 12, 1, 1, 1, 13, 1, 14, 15, 16, 17,
658 18, 19, 20, 1, 1, 21, 22, 23, 24, 25,
659 1, 26, 27, 28, 29, 30, 1, 1, 31, 32,
660 1, 1, 1, 1, 1, 1, 33, 1, 34, 35,
662 36, 37, 38, 39, 40, 1, 1, 41, 42, 43,
663 44, 45, 1, 46, 47, 48, 49, 50, 1, 1,
664 51, 52, 1, 1, 1, 1, 1, 1, 1, 1,
665 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
666 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
667 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
668 1, 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, 1, 1,
673 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
674 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
675 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
676 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
677 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
683 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
684 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
685 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
686 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
687 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
693 0, 0, 353, 366, 51, 53, 366, 366, 366, 48,
694 342, 50, 366, 41, 40, 47, 44, 38, 44, 43,
695 51, 50, 71, 341, 84, 85, 340, 70, 53, 74,
696 72, 77, 79, 81, 84, 86, 88, 86, 90, 366,
697 339, 338, 97, 87, 83, 86, 93, 101, 91, 113,
698 107, 125, 366, 128, 113, 119, 128, 114, 130, 120,
699 128, 121, 132, 335, 129, 132, 125, 130, 366, 129,
700 131, 166, 366, 152, 162, 173, 164, 171, 162, 162,
701 162, 163, 161, 172, 170, 166, 174, 184, 336, 65,
702 180, 177, 201, 197, 189, 202, 198, 202, 206, 202,
704 366, 203, 214, 204, 218, 202, 220, 212, 207, 223,
705 218, 212, 239, 245, 366, 232, 233, 246, 241, 248,
706 251, 241, 241, 252, 258, 251, 247, 248, 251, 256,
707 366, 366, 251, 366, 257, 269, 269, 278, 270, 279,
708 283, 279, 283, 291, 279, 286, 294, 366, 295, 292,
709 366, 366, 287, 296, 366, 301, 294, 302, 366, 293,
710 305, 323, 318, 366, 326, 318, 328, 322, 366, 366,
716 171, 1, 171, 171, 171, 171, 171, 171, 171, 171,
717 171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
718 171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
719 171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
720 171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
721 171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
722 171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
723 171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
724 171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
725 171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
727 171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
728 171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
729 171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
730 171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
731 171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
732 171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
733 171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
739 4, 5, 6, 7, 8, 4, 9, 10, 11, 12,
740 13, 4, 4, 14, 4, 15, 4, 16, 4, 4,
741 17, 18, 4, 4, 19, 4, 20, 21, 4, 4,
742 4, 22, 4, 14, 4, 15, 4, 16, 4, 4,
743 17, 18, 4, 4, 19, 4, 20, 21, 4, 4,
744 4, 22, 23, 23, 23, 23, 24, 25, 27, 25,
745 29, 32, 33, 34, 30, 28, 35, 36, 37, 31,
746 38, 40, 23, 23, 90, 41, 39, 41, 43, 42,
747 29, 32, 33, 34, 30, 28, 35, 36, 37, 31,
748 38, 40, 27, 25, 26, 44, 39, 45, 43, 28,
750 28, 46, 47, 48, 49, 50, 51, 52, 53, 54,
751 55, 56, 57, 58, 59, 44, 60, 45, 61, 28,
752 28, 46, 47, 48, 49, 50, 51, 52, 53, 54,
753 55, 56, 57, 58, 59, 62, 60, 63, 61, 64,
754 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
755 75, 77, 78, 79, 80, 62, 81, 63, 82, 64,
756 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
757 75, 77, 78, 79, 80, 87, 81, 88, 82, 83,
758 89, 91, 90, 92, 93, 94, 84, 95, 96, 97,
759 85, 98, 86, 99, 100, 87, 101, 88, 102, 83,
761 103, 91, 104, 92, 93, 94, 84, 95, 96, 97,
762 85, 98, 86, 99, 100, 105, 101, 106, 102, 107,
763 103, 108, 104, 109, 110, 111, 112, 113, 114, 115,
764 116, 117, 118, 119, 120, 105, 121, 106, 122, 107,
765 123, 108, 124, 109, 110, 111, 112, 113, 114, 115,
766 116, 117, 118, 119, 120, 125, 121, 126, 122, 127,
767 123, 128, 124, 129, 130, 131, 132, 133, 134, 135,
768 136, 137, 138, 139, 140, 125, 141, 126, 142, 127,
769 143, 128, 144, 129, 130, 131, 132, 133, 134, 135,
770 136, 137, 138, 139, 140, 145, 141, 146, 142, 147,
772 143, 148, 144, 149, 150, 151, 152, 153, 154, 155,
773 156, 157, 158, 159, 160, 145, 161, 146, 162, 147,
774 163, 148, 164, 149, 150, 151, 152, 153, 154, 155,
775 156, 157, 158, 159, 160, 165, 161, 166, 162, 167,
776 163, 168, 164, 169, 170, 90, 76, 42, 42, 26,
777 26, 26, 171, 171, 171, 165, 171, 166, 171, 167,
778 171, 168, 171, 169, 170, 3, 171, 171, 171, 171,
779 171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
780 171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
781 171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
783 171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
784 171, 171, 171, 171, 171, 171, 171, 171
789 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
790 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
791 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
792 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
793 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
794 1, 1, 5, 5, 6, 6, 10, 10, 12, 12,
795 14, 15, 16, 17, 14, 12, 18, 19, 20, 14,
796 21, 22, 23, 23, 90, 28, 21, 28, 29, 28,
797 14, 15, 16, 17, 14, 12, 18, 19, 20, 14,
798 21, 22, 25, 25, 26, 30, 21, 31, 29, 25,
800 26, 32, 33, 34, 35, 36, 36, 37, 38, 39,
801 43, 44, 45, 46, 47, 30, 48, 31, 49, 25,
802 26, 32, 33, 34, 35, 36, 36, 37, 38, 39,
803 43, 44, 45, 46, 47, 50, 48, 51, 49, 52,
804 54, 55, 56, 57, 58, 59, 60, 61, 62, 63,
805 63, 65, 66, 67, 68, 50, 70, 51, 71, 52,
806 54, 55, 56, 57, 58, 59, 60, 61, 62, 63,
807 63, 65, 66, 67, 68, 74, 70, 75, 71, 72,
808 76, 77, 76, 78, 79, 80, 72, 81, 82, 83,
809 72, 84, 72, 85, 86, 74, 87, 75, 88, 72,
811 91, 77, 92, 78, 79, 80, 72, 81, 82, 83,
812 72, 84, 72, 85, 86, 93, 87, 94, 88, 95,
813 91, 96, 92, 97, 98, 99, 99, 100, 102, 103,
814 104, 105, 106, 107, 108, 93, 109, 94, 110, 95,
815 111, 96, 112, 97, 98, 99, 99, 100, 102, 103,
816 104, 105, 106, 107, 108, 113, 109, 114, 110, 116,
817 111, 117, 112, 118, 119, 120, 121, 122, 123, 124,
818 125, 126, 127, 128, 129, 113, 130, 114, 133, 116,
819 135, 117, 136, 118, 119, 120, 121, 122, 123, 124,
820 125, 126, 127, 128, 129, 137, 130, 138, 133, 139,
822 135, 140, 136, 141, 142, 143, 144, 145, 146, 147,
823 149, 150, 153, 154, 156, 137, 157, 138, 158, 139,
824 160, 140, 161, 141, 142, 143, 144, 145, 146, 147,
825 149, 150, 153, 154, 156, 162, 157, 163, 158, 165,
826 160, 166, 161, 167, 168, 89, 64, 42, 41, 27,
827 24, 11, 3, 0, 0, 162, 0, 163, 0, 165,
828 0, 166, 0, 167, 168, 171, 171, 171, 171, 171,
829 171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
830 171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
831 171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
833 171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
834 171, 171, 171, 171, 171, 171, 171, 171
846 #define REJECT reject_used_but_not_detected 847 #define yymore() yymore_used_but_not_detected 848 #define YY_MORE_ADJ 0 849 #define YY_RESTORE_YY_MORE_OFFSET 851 #line 1 "lwin_wkt_lex.l" 852 #line 2 "lwin_wkt_lex.l" 881 #define YY_USER_ACTION do { \ 882 wkt_yylloc.first_line = wkt_yylloc.last_line = yylineno; \ 883 wkt_yylloc.first_column = wkt_yylloc.last_column; \ 884 wkt_yylloc.last_column += yyleng; \ 885 LWDEBUGF(5,"lex: %s", wkt_yytext); \ 889 #line 889 "lwin_wkt_lex.c" 890 #define YY_NO_INPUT 1 892 #line 892 "lwin_wkt_lex.c" 896 #ifndef YY_NO_UNISTD_H 904 #ifndef YY_EXTRA_TYPE 905 #define YY_EXTRA_TYPE void * 943 #ifndef YY_SKIP_YYWRAP 945 extern "C" int yywrap (
void );
947 extern int yywrap (
void );
956 static void yy_flex_strncpy (
char *,
const char *,
int );
959 #ifdef YY_NEED_STRLEN 960 static int yy_flex_strlen (
const char * );
965 static int yyinput (
void );
967 static int input (
void );
973 #ifndef YY_READ_BUF_SIZE 976 #define YY_READ_BUF_SIZE 16384 978 #define YY_READ_BUF_SIZE 8192 987 #define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0) 994 #define YY_INPUT(buf,result,max_size) \ 995 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ 999 for ( n = 0; n < max_size && \ 1000 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ 1001 buf[n] = (char) c; \ 1003 buf[n++] = (char) c; \ 1004 if ( c == EOF && ferror( yyin ) ) \ 1005 YY_FATAL_ERROR( "input in flex scanner failed" ); \ 1011 while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \ 1013 if( errno != EINTR) \ 1015 YY_FATAL_ERROR( "input in flex scanner failed" ); \ 1031 #define yyterminate() return YY_NULL 1035 #ifndef YY_START_STACK_INCR 1036 #define YY_START_STACK_INCR 25 1040 #ifndef YY_FATAL_ERROR 1041 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) 1050 #define YY_DECL_IS_OURS 1 1052 extern int yylex (
void);
1054 #define YY_DECL int yylex (void) 1060 #ifndef YY_USER_ACTION 1061 #define YY_USER_ACTION 1066 #define YY_BREAK break; 1069 #define YY_RULE_SETUP \ 1107 #line 49 "lwin_wkt_lex.l" 1110 #line 1110 "lwin_wkt_lex.c" 1134 while (
yy_chk[
yy_base[yy_current_state] + yy_c] != yy_current_state )
1136 yy_current_state = (int)
yy_def[yy_current_state];
1137 if ( yy_current_state >= 172 )
1140 yy_current_state =
yy_nxt[
yy_base[yy_current_state] + yy_c];
1143 while ( yy_current_state != 171 );
1161 goto yy_find_action;
1165 #line 51 "lwin_wkt_lex.l" 1174 #line 57 "lwin_wkt_lex.l" 1183 #line 63 "lwin_wkt_lex.l" 1188 #line 64 "lwin_wkt_lex.l" 1193 #line 65 "lwin_wkt_lex.l" 1198 #line 66 "lwin_wkt_lex.l" 1203 #line 67 "lwin_wkt_lex.l" 1208 #line 68 "lwin_wkt_lex.l" 1213 #line 69 "lwin_wkt_lex.l" 1218 #line 70 "lwin_wkt_lex.l" 1223 #line 71 "lwin_wkt_lex.l" 1228 #line 72 "lwin_wkt_lex.l" 1233 #line 73 "lwin_wkt_lex.l" 1238 #line 74 "lwin_wkt_lex.l" 1243 #line 75 "lwin_wkt_lex.l" 1248 #line 76 "lwin_wkt_lex.l" 1253 #line 77 "lwin_wkt_lex.l" 1258 #line 78 "lwin_wkt_lex.l" 1263 #line 80 "lwin_wkt_lex.l" 1272 #line 86 "lwin_wkt_lex.l" 1277 #line 87 "lwin_wkt_lex.l" 1282 #line 88 "lwin_wkt_lex.l" 1287 #line 89 "lwin_wkt_lex.l" 1293 #line 91 "lwin_wkt_lex.l" 1298 #line 93 "lwin_wkt_lex.l" 1307 #line 99 "lwin_wkt_lex.l" 1310 #line 1310 "lwin_wkt_lex.c" 1317 int yy_amount_of_matched_text = (int) (yy_cp - (
yytext_ptr)) - 1;
1367 if ( yy_next_state )
1371 yy_current_state = yy_next_state;
1379 goto yy_find_action;
1432 goto yy_find_action;
1439 "fatal flex scanner internal error--no action found" );
1456 int number_to_move, i;
1461 "fatal flex scanner internal error--end of buffer missed" );
1487 for ( i = 0; i < number_to_move; ++i )
1488 *(dest++) = *(source++);
1501 while ( num_to_read <= 0 )
1507 int yy_c_buf_p_offset =
1514 if ( new_size <= 0 )
1530 "fatal error - scanner input buffer overflow" );
1574 YY_FATAL_ERROR(
"out of dynamic memory in yy_get_next_buffer()" );
1605 while (
yy_chk[
yy_base[yy_current_state] + yy_c] != yy_current_state )
1607 yy_current_state = (int)
yy_def[yy_current_state];
1608 if ( yy_current_state >= 172 )
1611 yy_current_state =
yy_nxt[
yy_base[yy_current_state] + yy_c];
1614 return yy_current_state;
1633 while (
yy_chk[
yy_base[yy_current_state] + yy_c] != yy_current_state )
1635 yy_current_state = (int)
yy_def[yy_current_state];
1636 if ( yy_current_state >= 172 )
1639 yy_current_state =
yy_nxt[
yy_base[yy_current_state] + yy_c];
1640 yy_is_jam = (yy_current_state == 171);
1642 return yy_is_jam ? 0 : yy_current_state;
1651 static int yyinput (
void)
1653 static int input (
void)
1896 if (new_buffer == NULL)
1947 if (!(yy_buffer_stack)) {
1957 if ( ! (yy_buffer_stack) )
1958 YY_FATAL_ERROR(
"out of dynamic memory in yyensure_buffer_stack()" );
1960 memset((yy_buffer_stack), 0, num_to_alloc *
sizeof(
struct yy_buffer_state*));
1977 if ( ! (yy_buffer_stack) )
1978 YY_FATAL_ERROR(
"out of dynamic memory in yyensure_buffer_stack()" );
2042 YY_BUFFER_STATE
yy_scan_bytes (
const char * yybytes,
int _yybytes_len )
2055 for ( i = 0; i < _yybytes_len; ++i )
2056 buf[i] = yybytes[i];
2072 #ifndef YY_EXIT_FAILURE 2073 #define YY_EXIT_FAILURE 2 2078 fprintf( stderr,
"%s\n", msg );
2089 int yyless_macro_arg = (n); \ 2090 YY_LESS_LINENO(yyless_macro_arg);\ 2091 yytext[yyleng] = (yy_hold_char); \ 2092 (yy_c_buf_p) = yytext + yyless_macro_arg; \ 2093 (yy_hold_char) = *(yy_c_buf_p); \ 2094 *(yy_c_buf_p) = '\0'; \ 2095 yyleng = yyless_macro_arg; \ 2219 yyfree((yy_buffer_stack) );
2234 static void yy_flex_strncpy (
char* s1,
const char * s2,
int n )
2238 for ( i = 0; i < n; ++i )
2243 #ifdef YY_NEED_STRLEN 2244 static int yy_flex_strlen (
const char *
s )
2247 for ( n = 0; s[n]; ++n )
2254 #define YYTABLES_NAME "yytables" 2256 #line 99 "lwin_wkt_lex.l" 2261 return (
void *)
lwalloc( size );
2264 void *wkt_yyrealloc (
void * ptr,
yy_size_t size )
2266 return (
void *)
lwrealloc( (
char *) ptr, size );
2269 void wkt_yyfree (
void * ptr )
2280 wkt_yy_buf_state = wkt_yy_scan_string(src);
2288 wkt_yy_delete_buffer(wkt_yy_buf_state);
static yy_state_type yy_get_previous_state(void)
int yy_bs_column
The column count.
static int yy_did_buffer_switch_on_eof
#define EOB_ACT_LAST_MATCH
struct yy_buffer_state * YY_BUFFER_STATE
unsigned short int flex_uint16_t
#define yy_load_buffer_state
static void yynoreturn yy_fatal_error(const char *msg)
#define YY_INPUT(buf, result, max_size)
static const flex_int16_t yy_nxt[419]
int wkt_lexer_read_srid(char *str)
Read the SRID number from an SRID=<> string.
#define yyensure_buffer_stack
#define YY_STATE_EOF(state)
static int yy_get_next_buffer(void)
#define LWDEBUG(level, msg)
#define YY_CURRENT_BUFFER
LWGEOM_PARSER_RESULT global_parser_result
static yy_state_type yy_try_NUL_trans(yy_state_type current_state)
#define EOB_ACT_END_OF_FILE
static const flex_int16_t yy_base[172]
void wkt_lexer_init(char *str)
#define YY_END_OF_BUFFER_CHAR
#define yypush_buffer_state
#define YY_FATAL_ERROR(msg)
static YY_BUFFER_STATE wkt_yy_buf_state
#define YY_CURRENT_BUFFER_LVALUE
static void wkt_lexer_unknown()
static const YY_CHAR yy_meta[53]
#define yypop_buffer_state
void wkt_lexer_close(void)
int yy_bs_lineno
The line count.
static const flex_int16_t yy_def[172]
unsigned char flex_uint8_t
static const flex_int16_t yy_chk[419]
#define YY_RESTORE_YY_MORE_OFFSET
const char * parser_error_messages[]
#define YY_BUFFER_EOF_PENDING
static yy_state_type yy_last_accepting_state
static size_t yy_buffer_stack_top
index of top of stack.
#define EOB_ACT_CONTINUE_SCAN
void * lwrealloc(void *mem, size_t size)
static const flex_int16_t yy_accept[172]
#define YY_DO_BEFORE_ACTION
static size_t yy_buffer_stack_max
capacity of stack.
static int yy_init_globals(void)
#define yy_switch_to_buffer
static char * yy_last_accepting_cpos
static YY_BUFFER_STATE * yy_buffer_stack
Stack as an array.
void * lwalloc(size_t size)
unsigned int flex_uint32_t
static const YY_CHAR yy_ec[256]
#define PARSER_ERROR_OTHER