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 )
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, 25, 23, 25, 25, 25, 25, 19, 25, 25,
630 25, 19, 24, 0, 0, 0, 1, 0, 0, 0,
631 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
632 19, 0, 0, 0, 0, 0, 0, 0, 0, 0,
633 0, 0, 0, 16, 0, 0, 0, 0, 0, 0,
634 0, 0, 0, 0, 0, 0, 0, 0, 0, 18,
635 0, 0, 0, 17, 0, 0, 0, 0, 0, 0,
636 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
637 2, 0, 0, 0, 0, 0, 0, 0, 0, 0,
639 0, 10, 0, 0, 0, 0, 0, 0, 0, 0,
640 0, 0, 0, 0, 0, 15, 0, 0, 0, 0,
641 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
642 0, 13, 6, 0, 8, 0, 0, 0, 0, 0,
643 0, 0, 0, 0, 0, 0, 0, 0, 9, 0,
644 0, 5, 4, 0, 0, 11, 0, 0, 0, 12,
645 0, 0, 0, 0, 7, 0, 0, 0, 0, 14,
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, 202, 384, 51, 53, 384, 384, 384, 48,
694 190, 57, 384, 41, 41, 52, 49, 42, 48, 48,
695 56, 53, 75, 186, 0, 96, 384, 106, 109, 54,
696 62, 61, 80, 86, 91, 97, 100, 102, 100, 104,
697 384, 179, 126, 112, 102, 105, 109, 117, 129, 120,
698 126, 119, 136, 384, 139, 124, 130, 140, 127, 144,
699 134, 142, 135, 148, 85, 141, 154, 148, 154, 384,
700 157, 160, 195, 384, 166, 175, 184, 175, 185, 178,
701 179, 178, 180, 178, 192, 190, 186, 194, 204, 76,
702 69, 204, 202, 215, 210, 202, 218, 215, 220, 226,
704 218, 384, 223, 236, 227, 241, 225, 243, 236, 230,
705 246, 242, 237, 253, 258, 384, 245, 249, 263, 259,
706 266, 270, 260, 261, 274, 281, 274, 270, 271, 275,
707 279, 384, 384, 274, 384, 281, 294, 283, 291, 283,
708 295, 300, 297, 301, 310, 298, 306, 316, 384, 318,
709 315, 384, 384, 310, 319, 384, 325, 317, 325, 384,
710 317, 330, 337, 331, 384, 339, 334, 345, 340, 384,
716 172, 1, 172, 172, 172, 172, 172, 172, 172, 172,
717 172, 172, 172, 172, 172, 172, 172, 172, 172, 172,
718 172, 172, 172, 172, 12, 172, 172, 172, 172, 172,
719 172, 172, 172, 172, 172, 172, 172, 172, 172, 172,
720 172, 172, 172, 172, 172, 172, 172, 172, 172, 172,
721 172, 172, 172, 172, 172, 172, 172, 172, 172, 172,
722 172, 172, 172, 172, 172, 172, 172, 172, 172, 172,
723 172, 172, 172, 172, 172, 172, 172, 172, 172, 172,
724 172, 172, 172, 172, 172, 172, 172, 172, 172, 172,
725 172, 172, 172, 172, 172, 172, 172, 172, 172, 172,
727 172, 172, 172, 172, 172, 172, 172, 172, 172, 172,
728 172, 172, 172, 172, 172, 172, 172, 172, 172, 172,
729 172, 172, 172, 172, 172, 172, 172, 172, 172, 172,
730 172, 172, 172, 172, 172, 172, 172, 172, 172, 172,
731 172, 172, 172, 172, 172, 172, 172, 172, 172, 172,
732 172, 172, 172, 172, 172, 172, 172, 172, 172, 172,
733 172, 172, 172, 172, 172, 172, 172, 172, 172, 172,
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, 27,
745 30, 27, 33, 27, 31, 28, 25, 34, 35, 32,
746 36, 37, 29, 38, 41, 39, 23, 23, 91, 44,
747 30, 40, 33, 45, 31, 91, 46, 34, 35, 32,
748 36, 37, 29, 38, 41, 39, 77, 27, 27, 44,
750 27, 40, 27, 45, 47, 26, 46, 27, 27, 48,
751 27, 29, 27, 49, 42, 26, 42, 50, 43, 51,
752 52, 53, 54, 55, 47, 56, 57, 27, 27, 48,
753 27, 29, 27, 49, 58, 43, 59, 50, 60, 51,
754 52, 53, 54, 55, 61, 56, 57, 62, 63, 64,
755 65, 66, 67, 68, 58, 69, 59, 70, 60, 71,
756 72, 73, 74, 78, 61, 75, 76, 62, 63, 64,
757 65, 66, 67, 68, 79, 69, 80, 70, 81, 71,
758 72, 73, 74, 78, 82, 75, 76, 83, 43, 88,
759 89, 90, 92, 91, 79, 26, 80, 93, 81, 26,
761 94, 172, 95, 96, 82, 97, 98, 83, 84, 88,
762 89, 99, 92, 100, 101, 85, 102, 93, 103, 86,
763 94, 87, 95, 96, 104, 97, 98, 105, 84, 106,
764 107, 99, 108, 100, 101, 85, 102, 109, 103, 86,
765 110, 87, 111, 114, 104, 112, 113, 105, 115, 106,
766 107, 116, 108, 117, 118, 119, 120, 109, 121, 122,
767 110, 123, 111, 114, 124, 112, 113, 125, 115, 126,
768 127, 116, 128, 117, 118, 119, 120, 129, 121, 122,
769 130, 123, 131, 132, 124, 133, 134, 125, 135, 126,
770 127, 136, 128, 137, 138, 139, 140, 129, 141, 142,
772 130, 143, 131, 132, 144, 133, 134, 145, 135, 146,
773 147, 136, 148, 137, 138, 139, 140, 149, 141, 142,
774 150, 143, 151, 152, 144, 153, 154, 145, 155, 146,
775 147, 156, 148, 157, 158, 159, 160, 149, 161, 162,
776 150, 163, 151, 152, 164, 153, 154, 165, 155, 166,
777 167, 156, 168, 157, 158, 159, 160, 169, 161, 162,
778 170, 163, 171, 172, 164, 172, 172, 165, 172, 166,
779 167, 172, 168, 172, 172, 172, 172, 169, 172, 172,
780 170, 172, 171, 3, 172, 172, 172, 172, 172, 172,
781 172, 172, 172, 172, 172, 172, 172, 172, 172, 172,
783 172, 172, 172, 172, 172, 172, 172, 172, 172, 172,
784 172, 172, 172, 172, 172, 172, 172, 172, 172, 172,
785 172, 172, 172, 172, 172, 172, 172, 172, 172, 172,
786 172, 172, 172, 172, 172, 172
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, 1, 1, 1, 1, 1, 1, 1, 1,
795 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
796 1, 1, 5, 5, 6, 6, 10, 10, 12, 12,
797 14, 12, 15, 12, 14, 12, 12, 16, 17, 14,
798 18, 19, 12, 20, 22, 21, 23, 23, 91, 30,
799 14, 21, 15, 31, 14, 90, 32, 16, 17, 14,
800 18, 19, 12, 20, 22, 21, 65, 26, 26, 30,
802 26, 21, 26, 31, 33, 26, 32, 28, 28, 34,
803 28, 26, 28, 35, 29, 28, 29, 36, 29, 37,
804 37, 38, 39, 40, 33, 44, 45, 43, 43, 34,
805 43, 26, 43, 35, 46, 43, 47, 36, 48, 37,
806 37, 38, 39, 40, 49, 44, 45, 50, 51, 52,
807 53, 55, 56, 57, 46, 58, 47, 59, 48, 60,
808 61, 62, 63, 66, 49, 64, 64, 50, 51, 52,
809 53, 55, 56, 57, 67, 58, 68, 59, 69, 60,
810 61, 62, 63, 66, 71, 64, 64, 72, 42, 75,
811 76, 77, 78, 77, 67, 24, 68, 79, 69, 11,
813 80, 3, 81, 82, 71, 83, 84, 72, 73, 75,
814 76, 85, 78, 86, 87, 73, 88, 79, 89, 73,
815 80, 73, 81, 82, 92, 83, 84, 93, 73, 94,
816 95, 85, 96, 86, 87, 73, 88, 97, 89, 73,
817 98, 73, 99, 101, 92, 100, 100, 93, 103, 94,
818 95, 104, 96, 105, 106, 107, 108, 97, 109, 110,
819 98, 111, 99, 101, 112, 100, 100, 113, 103, 114,
820 115, 104, 117, 105, 106, 107, 108, 118, 109, 110,
821 119, 111, 120, 121, 112, 122, 123, 113, 124, 114,
822 115, 125, 117, 126, 127, 128, 129, 118, 130, 131,
824 119, 134, 120, 121, 136, 122, 123, 137, 124, 138,
825 139, 125, 140, 126, 127, 128, 129, 141, 130, 131,
826 142, 134, 143, 144, 136, 145, 146, 137, 147, 138,
827 139, 148, 140, 150, 151, 154, 155, 141, 157, 158,
828 142, 159, 143, 144, 161, 145, 146, 162, 147, 163,
829 164, 148, 166, 150, 151, 154, 155, 167, 157, 158,
830 168, 159, 169, 0, 161, 0, 0, 162, 0, 163,
831 164, 0, 166, 0, 0, 0, 0, 167, 0, 0,
832 168, 0, 169, 172, 172, 172, 172, 172, 172, 172,
833 172, 172, 172, 172, 172, 172, 172, 172, 172, 172,
835 172, 172, 172, 172, 172, 172, 172, 172, 172, 172,
836 172, 172, 172, 172, 172, 172, 172, 172, 172, 172,
837 172, 172, 172, 172, 172, 172, 172, 172, 172, 172,
838 172, 172, 172, 172, 172, 172
850 #define REJECT reject_used_but_not_detected
851 #define yymore() yymore_used_but_not_detected
852 #define YY_MORE_ADJ 0
853 #define YY_RESTORE_YY_MORE_OFFSET
855 #line 1 "lwin_wkt_lex.l"
856 #line 2 "lwin_wkt_lex.l"
885 #define YY_USER_ACTION do { \
886 wkt_yylloc.first_line = wkt_yylloc.last_line = yylineno; \
887 wkt_yylloc.first_column = wkt_yylloc.last_column; \
888 wkt_yylloc.last_column += yyleng; \
889 LWDEBUGF(5,"lex: %s", wkt_yytext); \
893 #line 893 "lwin_wkt_lex.c"
894 #define YY_NO_INPUT 1
896 #line 896 "lwin_wkt_lex.c"
900 #ifndef YY_NO_UNISTD_H
908 #ifndef YY_EXTRA_TYPE
909 #define YY_EXTRA_TYPE void *
947 #ifndef YY_SKIP_YYWRAP
949 extern "C" int yywrap (
void );
951 extern int yywrap (
void );
960 static void yy_flex_strncpy (
char *,
const char *,
int );
963 #ifdef YY_NEED_STRLEN
964 static int yy_flex_strlen (
const char * );
969 static int yyinput (
void );
971 static int input (
void );
977 #ifndef YY_READ_BUF_SIZE
980 #define YY_READ_BUF_SIZE 16384
982 #define YY_READ_BUF_SIZE 8192
991 #define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
998 #define YY_INPUT(buf,result,max_size) \
999 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
1003 for ( n = 0; n < max_size && \
1004 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
1005 buf[n] = (char) c; \
1007 buf[n++] = (char) c; \
1008 if ( c == EOF && ferror( yyin ) ) \
1009 YY_FATAL_ERROR( "input in flex scanner failed" ); \
1015 while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
1017 if( errno != EINTR) \
1019 YY_FATAL_ERROR( "input in flex scanner failed" ); \
1035 #define yyterminate() return YY_NULL
1039 #ifndef YY_START_STACK_INCR
1040 #define YY_START_STACK_INCR 25
1044 #ifndef YY_FATAL_ERROR
1045 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
1054 #define YY_DECL_IS_OURS 1
1056 extern int yylex (
void);
1058 #define YY_DECL int yylex (void)
1064 #ifndef YY_USER_ACTION
1065 #define YY_USER_ACTION
1070 #define YY_BREAK break;
1073 #define YY_RULE_SETUP \
1111 #line 49 "lwin_wkt_lex.l"
1114 #line 1114 "lwin_wkt_lex.c"
1138 while (
yy_chk[
yy_base[yy_current_state] + yy_c] != yy_current_state )
1140 yy_current_state = (int)
yy_def[yy_current_state];
1141 if ( yy_current_state >= 173 )
1144 yy_current_state =
yy_nxt[
yy_base[yy_current_state] + yy_c];
1147 while ( yy_current_state != 172 );
1165 goto yy_find_action;
1170 #line 51 "lwin_wkt_lex.l"
1180 #line 58 "lwin_wkt_lex.l"
1189 #line 64 "lwin_wkt_lex.l"
1194 #line 65 "lwin_wkt_lex.l"
1199 #line 66 "lwin_wkt_lex.l"
1204 #line 67 "lwin_wkt_lex.l"
1209 #line 68 "lwin_wkt_lex.l"
1214 #line 69 "lwin_wkt_lex.l"
1219 #line 70 "lwin_wkt_lex.l"
1224 #line 71 "lwin_wkt_lex.l"
1229 #line 72 "lwin_wkt_lex.l"
1234 #line 73 "lwin_wkt_lex.l"
1239 #line 74 "lwin_wkt_lex.l"
1244 #line 75 "lwin_wkt_lex.l"
1249 #line 76 "lwin_wkt_lex.l"
1254 #line 77 "lwin_wkt_lex.l"
1259 #line 78 "lwin_wkt_lex.l"
1264 #line 79 "lwin_wkt_lex.l"
1269 #line 81 "lwin_wkt_lex.l"
1278 #line 87 "lwin_wkt_lex.l"
1283 #line 88 "lwin_wkt_lex.l"
1288 #line 89 "lwin_wkt_lex.l"
1293 #line 90 "lwin_wkt_lex.l"
1299 #line 92 "lwin_wkt_lex.l"
1304 #line 94 "lwin_wkt_lex.l"
1313 #line 100 "lwin_wkt_lex.l"
1316 #line 1316 "lwin_wkt_lex.c"
1373 if ( yy_next_state )
1377 yy_current_state = yy_next_state;
1385 goto yy_find_action;
1438 goto yy_find_action;
1445 "fatal flex scanner internal error--no action found" );
1462 int number_to_move, i;
1467 "fatal flex scanner internal error--end of buffer missed" );
1493 for ( i = 0; i < number_to_move; ++i )
1494 *(
dest++) = *(source++);
1507 while ( num_to_read <= 0 )
1513 int yy_c_buf_p_offset =
1520 if ( new_size <= 0 )
1536 "fatal error - scanner input buffer overflow" );
1580 YY_FATAL_ERROR(
"out of dynamic memory in yy_get_next_buffer()" );
1611 while (
yy_chk[
yy_base[yy_current_state] + yy_c] != yy_current_state )
1613 yy_current_state = (int)
yy_def[yy_current_state];
1614 if ( yy_current_state >= 173 )
1617 yy_current_state =
yy_nxt[
yy_base[yy_current_state] + yy_c];
1620 return yy_current_state;
1639 while (
yy_chk[
yy_base[yy_current_state] + yy_c] != yy_current_state )
1641 yy_current_state = (int)
yy_def[yy_current_state];
1642 if ( yy_current_state >= 173 )
1645 yy_current_state =
yy_nxt[
yy_base[yy_current_state] + yy_c];
1646 yy_is_jam = (yy_current_state == 172);
1648 return yy_is_jam ? 0 : yy_current_state;
1657 static int yyinput (
void)
1659 static int input (
void)
1902 if (new_buffer == NULL)
1964 YY_FATAL_ERROR(
"out of dynamic memory in yyensure_buffer_stack()" );
1984 YY_FATAL_ERROR(
"out of dynamic memory in yyensure_buffer_stack()" );
2061 for ( i = 0; i < _yybytes_len; ++i )
2062 buf[i] = yybytes[i];
2078 #ifndef YY_EXIT_FAILURE
2079 #define YY_EXIT_FAILURE 2
2084 fprintf( stderr,
"%s\n", msg );
2095 int yyless_macro_arg = (n); \
2096 YY_LESS_LINENO(yyless_macro_arg);\
2097 yytext[yyleng] = (yy_hold_char); \
2098 (yy_c_buf_p) = yytext + yyless_macro_arg; \
2099 (yy_hold_char) = *(yy_c_buf_p); \
2100 *(yy_c_buf_p) = '\0'; \
2101 yyleng = yyless_macro_arg; \
2240 static void yy_flex_strncpy (
char* s1,
const char * s2,
int n )
2244 for ( i = 0; i < n; ++i )
2249 #ifdef YY_NEED_STRLEN
2250 static int yy_flex_strlen (
const char *
s )
2253 for ( n = 0;
s[n]; ++n )
2260 #define YYTABLES_NAME "yytables"
2262 #line 100 "lwin_wkt_lex.l"
2267 return (
void *)
lwalloc( size );
2270 void *wkt_yyrealloc (
void * ptr,
yy_size_t size )
2272 return (
void *)
lwrealloc( (
char *) ptr, size );
2275 void wkt_yyfree (
void * ptr )
#define PARSER_ERROR_OTHER
void * lwrealloc(void *mem, size_t size)
void * lwalloc(size_t size)
#define LWDEBUG(level, msg)
const char * parser_error_messages[]
int wkt_lexer_read_srid(char *str)
Read the SRID number from an SRID=<> string.
void wkt_lexer_close(void)
void wkt_lexer_init(char *str)
LWGEOM_PARSER_RESULT global_parser_result
unsigned char flex_uint8_t
static yy_state_type yy_last_accepting_state
static void yynoreturn yy_fatal_error(const char *msg)
static YY_BUFFER_STATE * yy_buffer_stack
Stack as an array.
unsigned int flex_uint32_t
static int yy_get_next_buffer(void)
static size_t yy_buffer_stack_max
capacity of stack.
static yy_state_type yy_try_NUL_trans(yy_state_type current_state)
#define yypush_buffer_state
struct yy_buffer_state * YY_BUFFER_STATE
#define YY_RESTORE_YY_MORE_OFFSET
static int yy_did_buffer_switch_on_eof
static int yy_init_globals(void)
static const flex_int16_t yy_accept[173]
static const flex_int16_t yy_chk[437]
static void wkt_lexer_unknown()
#define EOB_ACT_END_OF_FILE
#define YY_CURRENT_BUFFER_LVALUE
#define yyensure_buffer_stack
#define yy_switch_to_buffer
#define YY_CURRENT_BUFFER
#define yypop_buffer_state
#define YY_INPUT(buf, result, max_size)
#define YY_STATE_EOF(state)
#define YY_END_OF_BUFFER_CHAR
static const flex_int16_t yy_base[173]
static const flex_int16_t yy_nxt[437]
#define YY_FATAL_ERROR(msg)
unsigned short int flex_uint16_t
static YY_BUFFER_STATE wkt_yy_buf_state
#define YY_DO_BEFORE_ACTION
#define EOB_ACT_LAST_MATCH
#define YY_BUFFER_EOF_PENDING
static yy_state_type yy_get_previous_state(void)
static const YY_CHAR yy_ec[256]
#define EOB_ACT_CONTINUE_SCAN
static size_t yy_buffer_stack_top
index of top of stack.
static const flex_int16_t yy_def[173]
static const YY_CHAR yy_meta[53]
#define yy_load_buffer_state
static char * yy_last_accepting_cpos
int yy_bs_column
The column count.
int yy_bs_lineno
The line count.