Debian Codegraph @

tools/kate_lexer.c

raw
1 #line 2 "kate_lexer.c"
2
3 #line 4 "kate_lexer.c"
4
5 #define YY_INT_ALIGNED short int
6
7 /* A lexical scanner generated by flex */
8
9 #define yy_create_buffer katedesc__create_buffer
10 #define yy_delete_buffer katedesc__delete_buffer
11 #define yy_scan_buffer katedesc__scan_buffer
12 #define yy_scan_string katedesc__scan_string
13 #define yy_scan_bytes katedesc__scan_bytes
14 #define yy_init_buffer katedesc__init_buffer
15 #define yy_flush_buffer katedesc__flush_buffer
16 #define yy_load_buffer_state katedesc__load_buffer_state
17 #define yy_switch_to_buffer katedesc__switch_to_buffer
18 #define yypush_buffer_state katedesc_push_buffer_state
19 #define yypop_buffer_state katedesc_pop_buffer_state
20 #define yyensure_buffer_stack katedesc_ensure_buffer_stack
21 #define yy_flex_debug katedesc__flex_debug
22 #define yyin katedesc_in
23 #define yyleng katedesc_leng
24 #define yylex katedesc_lex
25 #define yylineno katedesc_lineno
26 #define yyout katedesc_out
27 #define yyrestart katedesc_restart
28 #define yytext katedesc_text
29 #define yywrap katedesc_wrap
30 #define yyalloc katedesc_alloc
31 #define yyrealloc katedesc_realloc
32 #define yyfree katedesc_free
33
34 #define FLEX_SCANNER
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
39 #define FLEX_BETA
40 #endif
41
42 #ifdef yy_create_buffer
43 #define katedesc__create_buffer_ALREADY_DEFINED
44 #else
45 #define yy_create_buffer katedesc__create_buffer
46 #endif
47
48 #ifdef yy_delete_buffer
49 #define katedesc__delete_buffer_ALREADY_DEFINED
50 #else
51 #define yy_delete_buffer katedesc__delete_buffer
52 #endif
53
54 #ifdef yy_scan_buffer
55 #define katedesc__scan_buffer_ALREADY_DEFINED
56 #else
57 #define yy_scan_buffer katedesc__scan_buffer
58 #endif
59
60 #ifdef yy_scan_string
61 #define katedesc__scan_string_ALREADY_DEFINED
62 #else
63 #define yy_scan_string katedesc__scan_string
64 #endif
65
66 #ifdef yy_scan_bytes
67 #define katedesc__scan_bytes_ALREADY_DEFINED
68 #else
69 #define yy_scan_bytes katedesc__scan_bytes
70 #endif
71
72 #ifdef yy_init_buffer
73 #define katedesc__init_buffer_ALREADY_DEFINED
74 #else
75 #define yy_init_buffer katedesc__init_buffer
76 #endif
77
78 #ifdef yy_flush_buffer
79 #define katedesc__flush_buffer_ALREADY_DEFINED
80 #else
81 #define yy_flush_buffer katedesc__flush_buffer
82 #endif
83
84 #ifdef yy_load_buffer_state
85 #define katedesc__load_buffer_state_ALREADY_DEFINED
86 #else
87 #define yy_load_buffer_state katedesc__load_buffer_state
88 #endif
89
90 #ifdef yy_switch_to_buffer
91 #define katedesc__switch_to_buffer_ALREADY_DEFINED
92 #else
93 #define yy_switch_to_buffer katedesc__switch_to_buffer
94 #endif
95
96 #ifdef yypush_buffer_state
97 #define katedesc_push_buffer_state_ALREADY_DEFINED
98 #else
99 #define yypush_buffer_state katedesc_push_buffer_state
100 #endif
101
102 #ifdef yypop_buffer_state
103 #define katedesc_pop_buffer_state_ALREADY_DEFINED
104 #else
105 #define yypop_buffer_state katedesc_pop_buffer_state
106 #endif
107
108 #ifdef yyensure_buffer_stack
109 #define katedesc_ensure_buffer_stack_ALREADY_DEFINED
110 #else
111 #define yyensure_buffer_stack katedesc_ensure_buffer_stack
112 #endif
113
114 #ifdef yylex
115 #define katedesc_lex_ALREADY_DEFINED
116 #else
117 #define yylex katedesc_lex
118 #endif
119
120 #ifdef yyrestart
121 #define katedesc_restart_ALREADY_DEFINED
122 #else
123 #define yyrestart katedesc_restart
124 #endif
125
126 #ifdef yylex_init
127 #define katedesc_lex_init_ALREADY_DEFINED
128 #else
129 #define yylex_init katedesc_lex_init
130 #endif
131
132 #ifdef yylex_init_extra
133 #define katedesc_lex_init_extra_ALREADY_DEFINED
134 #else
135 #define yylex_init_extra katedesc_lex_init_extra
136 #endif
137
138 #ifdef yylex_destroy
139 #define katedesc_lex_destroy_ALREADY_DEFINED
140 #else
141 #define yylex_destroy katedesc_lex_destroy
142 #endif
143
144 #ifdef yyget_debug
145 #define katedesc_get_debug_ALREADY_DEFINED
146 #else
147 #define yyget_debug katedesc_get_debug
148 #endif
149
150 #ifdef yyset_debug
151 #define katedesc_set_debug_ALREADY_DEFINED
152 #else
153 #define yyset_debug katedesc_set_debug
154 #endif
155
156 #ifdef yyget_extra
157 #define katedesc_get_extra_ALREADY_DEFINED
158 #else
159 #define yyget_extra katedesc_get_extra
160 #endif
161
162 #ifdef yyset_extra
163 #define katedesc_set_extra_ALREADY_DEFINED
164 #else
165 #define yyset_extra katedesc_set_extra
166 #endif
167
168 #ifdef yyget_in
169 #define katedesc_get_in_ALREADY_DEFINED
170 #else
171 #define yyget_in katedesc_get_in
172 #endif
173
174 #ifdef yyset_in
175 #define katedesc_set_in_ALREADY_DEFINED
176 #else
177 #define yyset_in katedesc_set_in
178 #endif
179
180 #ifdef yyget_out
181 #define katedesc_get_out_ALREADY_DEFINED
182 #else
183 #define yyget_out katedesc_get_out
184 #endif
185
186 #ifdef yyset_out
187 #define katedesc_set_out_ALREADY_DEFINED
188 #else
189 #define yyset_out katedesc_set_out
190 #endif
191
192 #ifdef yyget_leng
193 #define katedesc_get_leng_ALREADY_DEFINED
194 #else
195 #define yyget_leng katedesc_get_leng
196 #endif
197
198 #ifdef yyget_text
199 #define katedesc_get_text_ALREADY_DEFINED
200 #else
201 #define yyget_text katedesc_get_text
202 #endif
203
204 #ifdef yyget_lineno
205 #define katedesc_get_lineno_ALREADY_DEFINED
206 #else
207 #define yyget_lineno katedesc_get_lineno
208 #endif
209
210 #ifdef yyset_lineno
211 #define katedesc_set_lineno_ALREADY_DEFINED
212 #else
213 #define yyset_lineno katedesc_set_lineno
214 #endif
215
216 #ifdef yywrap
217 #define katedesc_wrap_ALREADY_DEFINED
218 #else
219 #define yywrap katedesc_wrap
220 #endif
221
222 #ifdef yyalloc
223 #define katedesc_alloc_ALREADY_DEFINED
224 #else
225 #define yyalloc katedesc_alloc
226 #endif
227
228 #ifdef yyrealloc
229 #define katedesc_realloc_ALREADY_DEFINED
230 #else
231 #define yyrealloc katedesc_realloc
232 #endif
233
234 #ifdef yyfree
235 #define katedesc_free_ALREADY_DEFINED
236 #else
237 #define yyfree katedesc_free
238 #endif
239
240 #ifdef yytext
241 #define katedesc_text_ALREADY_DEFINED
242 #else
243 #define yytext katedesc_text
244 #endif
245
246 #ifdef yyleng
247 #define katedesc_leng_ALREADY_DEFINED
248 #else
249 #define yyleng katedesc_leng
250 #endif
251
252 #ifdef yyin
253 #define katedesc_in_ALREADY_DEFINED
254 #else
255 #define yyin katedesc_in
256 #endif
257
258 #ifdef yyout
259 #define katedesc_out_ALREADY_DEFINED
260 #else
261 #define yyout katedesc_out
262 #endif
263
264 #ifdef yy_flex_debug
265 #define katedesc__flex_debug_ALREADY_DEFINED
266 #else
267 #define yy_flex_debug katedesc__flex_debug
268 #endif
269
270 #ifdef yylineno
271 #define katedesc_lineno_ALREADY_DEFINED
272 #else
273 #define yylineno katedesc_lineno
274 #endif
275
276 /* First, we deal with platform-specific or compiler-specific issues. */
277
278 /* begin standard C headers. */
279 #include <stdio.h>
280 #include <string.h>
281 #include <errno.h>
282 #include <stdlib.h>
283
284 /* end standard C headers. */
285
286 /* flex integer type definitions */
287
288 #ifndef FLEXINT_H
289 #define FLEXINT_H
290
291 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
292
293 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
294
295 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
296 * if you want the limit (max/min) macros for int types.
297 */
298 #ifndef __STDC_LIMIT_MACROS
299 #define __STDC_LIMIT_MACROS 1
300 #endif
301
302 #include <inttypes.h>
303 typedef int8_t flex_int8_t;
304 typedef uint8_t flex_uint8_t;
305 typedef int16_t flex_int16_t;
306 typedef uint16_t flex_uint16_t;
307 typedef int32_t flex_int32_t;
308 typedef uint32_t flex_uint32_t;
309 #else
310 typedef signed char flex_int8_t;
311 typedef short int flex_int16_t;
312 typedef int flex_int32_t;
313 typedef unsigned char flex_uint8_t;
314 typedef unsigned short int flex_uint16_t;
315 typedef unsigned int flex_uint32_t;
316
317 /* Limits of integral types. */
318 #ifndef INT8_MIN
319 #define INT8_MIN (-128)
320 #endif
321 #ifndef INT16_MIN
322 #define INT16_MIN (-32767-1)
323 #endif
324 #ifndef INT32_MIN
325 #define INT32_MIN (-2147483647-1)
326 #endif
327 #ifndef INT8_MAX
328 #define INT8_MAX (127)
329 #endif
330 #ifndef INT16_MAX
331 #define INT16_MAX (32767)
332 #endif
333 #ifndef INT32_MAX
334 #define INT32_MAX (2147483647)
335 #endif
336 #ifndef UINT8_MAX
337 #define UINT8_MAX (255U)
338 #endif
339 #ifndef UINT16_MAX
340 #define UINT16_MAX (65535U)
341 #endif
342 #ifndef UINT32_MAX
343 #define UINT32_MAX (4294967295U)
344 #endif
345
346 #ifndef SIZE_MAX
347 #define SIZE_MAX (~(size_t)0)
348 #endif
349
350 #endif /* ! C99 */
351
352 #endif /* ! FLEXINT_H */
353
354 /* begin standard C++ headers. */
355
356 /* TODO: this is always defined, so inline it */
357 #define yyconst const
358
359 #if defined(__GNUC__) && __GNUC__ >= 3
360 #define yynoreturn __attribute__((__noreturn__))
361 #else
362 #define yynoreturn
363 #endif
364
365 /* Returned upon end-of-file. */
366 #define YY_NULL 0
367
368 /* Promotes a possibly negative, possibly signed char to an
369 * integer in range [0..255] for use as an array index.
370 */
371 #define YY_SC_TO_UI(c) ((YY_CHAR) (c))
372
373 /* Enter a start condition. This macro really ought to take a parameter,
374 * but we do it the disgusting crufty way forced on us by the ()-less
375 * definition of BEGIN.
376 */
377 #define BEGIN (yy_start) = 1 + 2 *
378 /* Translate the current start state into a value that can be later handed
379 * to BEGIN to return to the state. The YYSTATE alias is for lex
380 * compatibility.
381 */
382 #define YY_START (((yy_start) - 1) / 2)
383 #define YYSTATE YY_START
384 /* Action number for EOF rule of a given start state. */
385 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
386 /* Special action meaning "start processing a new file". */
387 #define YY_NEW_FILE yyrestart( yyin )
388 #define YY_END_OF_BUFFER_CHAR 0
389
390 /* Size of default input buffer. */
391 #ifndef YY_BUF_SIZE
392 #ifdef __ia64__
393 /* On IA-64, the buffer size is 16k, not 8k.
394 * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
395 * Ditto for the __ia64__ case accordingly.
396 */
397 #define YY_BUF_SIZE 32768
398 #else
399 #define YY_BUF_SIZE 16384
400 #endif /* __ia64__ */
401 #endif
402
403 /* The state buf must be large enough to hold one state per character in the main buffer.
404 */
405 #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
406
407 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
408 #define YY_TYPEDEF_YY_BUFFER_STATE
409 typedef struct yy_buffer_state *YY_BUFFER_STATE;
410 #endif
411
412 #ifndef YY_TYPEDEF_YY_SIZE_T
413 #define YY_TYPEDEF_YY_SIZE_T
414 typedef size_t yy_size_t;
415 #endif
416
417 extern int yyleng;
418
419 extern FILE *yyin, *yyout;
420
421 #define EOB_ACT_CONTINUE_SCAN 0
422 #define EOB_ACT_END_OF_FILE 1
423 #define EOB_ACT_LAST_MATCH 2
424
425 #define YY_LESS_LINENO(n)
426 #define YY_LINENO_REWIND_TO(ptr)
427
428 /* Return all but the first "n" matched characters back to the input stream. */
429 #define yyless(n) \
430 do \
431 { \
432 /* Undo effects of setting up yytext. */ \
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; /* set up yytext again */ \
439 } \
440 while ( 0 )
441 #define unput(c) yyunput( c, (yytext_ptr) )
442
443 #ifndef YY_STRUCT_YY_BUFFER_STATE
444 #define YY_STRUCT_YY_BUFFER_STATE
445 struct yy_buffer_state
446 {
447 FILE *yy_input_file;
448
449 char *yy_ch_buf; /* input buffer */
450 char *yy_buf_pos; /* current position in input buffer */
451
452 /* Size of input buffer in bytes, not including room for EOB
453 * characters.
454 */
455 int yy_buf_size;
456
457 /* Number of characters read into yy_ch_buf, not including EOB
458 * characters.
459 */
460 int yy_n_chars;
461
462 /* Whether we "own" the buffer - i.e., we know we created it,
463 * and can realloc() it to grow it, and should free() it to
464 * delete it.
465 */
466 int yy_is_our_buffer;
467
468 /* Whether this is an "interactive" input source; if so, and
469 * if we're using stdio for input, then we want to use getc()
470 * instead of fread(), to make sure we stop fetching input after
471 * each newline.
472 */
473 int yy_is_interactive;
474
475 /* Whether we're considered to be at the beginning of a line.
476 * If so, '^' rules will be active on the next match, otherwise
477 * not.
478 */
479 int yy_at_bol;
480
481 int yy_bs_lineno; /**< The line count. */
482 int yy_bs_column; /**< The column count. */
483
484 /* Whether to try to fill the input buffer when we reach the
485 * end of it.
486 */
487 int yy_fill_buffer;
488
489 int yy_buffer_status;
490
491 #define YY_BUFFER_NEW 0
492 #define YY_BUFFER_NORMAL 1
493 /* When an EOF's been seen but there's still some text to process
494 * then we mark the buffer as YY_EOF_PENDING, to indicate that we
495 * shouldn't try reading from the input source any more. We might
496 * still have a bunch of tokens to match, though, because of
497 * possible backing-up.
498 *
499 * When we actually see the EOF, we change the status to "new"
500 * (via yyrestart()), so that the user can continue scanning by
501 * just pointing yyin at a new input file.
502 */
503 #define YY_BUFFER_EOF_PENDING 2
504
505 };
506 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
507
508 /* Stack of input buffers. */
509 static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
510 static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
511 static YY_BUFFER_STATE * yy_buffer_stack = NULL; /**< Stack as an array. */
512
513 /* We provide macros for accessing buffer states in case in the
514 * future we want to put the buffer states in a more general
515 * "scanner state".
516 *
517 * Returns the top of the stack, or NULL.
518 */
519 #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
520 ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
521 : NULL)
522 /* Same as previous macro, but useful when we know that the buffer stack is not
523 * NULL or when we need an lvalue. For internal use only.
524 */
525 #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
526
527 /* yy_hold_char holds the character lost when yytext is formed. */
528 static char yy_hold_char;
529 static int yy_n_chars; /* number of characters read into yy_ch_buf */
530 int yyleng;
531
532 /* Points to current character in buffer. */
533 static char *yy_c_buf_p = NULL;
534 static int yy_init = 0; /* whether we need to initialize */
535 static int yy_start = 0; /* start state number */
536
537 /* Flag which is used to allow yywrap()'s to do buffer switches
538 * instead of setting up a fresh yyin. A bit of a hack ...
539 */
540 static int yy_did_buffer_switch_on_eof;
541
542 void yyrestart ( FILE *input_file );
543 void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer );
544 YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size );
545 void yy_delete_buffer ( YY_BUFFER_STATE b );
546 void yy_flush_buffer ( YY_BUFFER_STATE b );
547 void yypush_buffer_state ( YY_BUFFER_STATE new_buffer );
548 void yypop_buffer_state ( void );
549
550 static void yyensure_buffer_stack ( void );
551 static void yy_load_buffer_state ( void );
552 static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file );
553 #define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER )
554
555 YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size );
556 YY_BUFFER_STATE yy_scan_string ( const char *yy_str );
557 YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len );
558
559 void *yyalloc ( yy_size_t );
560 void *yyrealloc ( void *, yy_size_t );
561 void yyfree ( void * );
562
563 #define yy_new_buffer yy_create_buffer
564 #define yy_set_interactive(is_interactive) \
565 { \
566 if ( ! YY_CURRENT_BUFFER ){ \
567 yyensure_buffer_stack (); \
568 YY_CURRENT_BUFFER_LVALUE = \
569 yy_create_buffer( yyin, YY_BUF_SIZE ); \
570 } \
571 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
572 }
573 #define yy_set_bol(at_bol) \
574 { \
575 if ( ! YY_CURRENT_BUFFER ){\
576 yyensure_buffer_stack (); \
577 YY_CURRENT_BUFFER_LVALUE = \
578 yy_create_buffer( yyin, YY_BUF_SIZE ); \
579 } \
580 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
581 }
582 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
583
584 /* Begin user sect3 */
585 typedef flex_uint8_t YY_CHAR;
586
587 FILE *yyin = NULL, *yyout = NULL;
588
589 typedef int yy_state_type;
590
591 extern int yylineno;
592 int yylineno = 1;
593
594 extern char *yytext;
595 #ifdef yytext_ptr
596 #undef yytext_ptr
597 #endif
598 #define yytext_ptr yytext
599
600 static yy_state_type yy_get_previous_state ( void );
601 static yy_state_type yy_try_NUL_trans ( yy_state_type current_state );
602 static int yy_get_next_buffer ( void );
603 static void yynoreturn yy_fatal_error ( const char* msg );
604
605 /* Done after the current pattern has been matched and before the
606 * corresponding action - sets up yytext.
607 */
608 #define YY_DO_BEFORE_ACTION \
609 (yytext_ptr) = yy_bp; \
610 (yytext_ptr) -= (yy_more_len); \
611 yyleng = (int) (yy_cp - (yytext_ptr)); \
612 (yy_hold_char) = *yy_cp; \
613 *yy_cp = '\0'; \
614 (yy_c_buf_p) = yy_cp;
615 #define YY_NUM_RULES 145
616 #define YY_END_OF_BUFFER 146
617 /* This struct is not used in this scanner,
618 but its presence is necessary. */
619 struct yy_trans_info
620 {
621 flex_int32_t yy_verify;
622 flex_int32_t yy_nxt;
623 };
624 static const flex_int16_t yy_accept[693] =
625 { 0,
626 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
627 146, 3, 3, 16, 3, 3, 3, 3, 3, 3,
628 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
629 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
630 3, 3, 3, 3, 3, 3, 3, 3, 3, 144,
631 15, 16, 144, 144, 144, 144, 144, 144, 144, 137,
632 137, 144, 144, 144, 144, 144, 144, 144, 144, 144,
633 144, 144, 144, 144, 144, 144, 144, 144, 144, 144,
634 144, 144, 144, 5, 7, 5, 145, 145, 9, 10,
635 12, 13, 145, 15, 0, 136, 0, 14, 0, 18,
636
637 0, 137, 137, 0, 139, 139, 141, 0, 141, 0,
638 0, 0, 46, 61, 0, 29, 0, 0, 0, 0,
639 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
640 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
641 0, 86, 134, 0, 0, 0, 0, 0, 0, 0,
642 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
643 0, 0, 0, 0, 0, 0, 0, 60, 0, 0,
644 0, 0, 0, 0, 0, 0, 0, 0, 64, 0,
645 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
646 0, 0, 1, 4, 5, 6, 0, 8, 9, 10,
647
648 12, 11, 0, 18, 51, 0, 0, 0, 0, 141,
649 138, 0, 0, 0, 0, 0, 0, 0, 0, 0,
650 0, 0, 0, 0, 0, 0, 0, 0, 0, 48,
651 0, 0, 0, 0, 62, 0, 0, 0, 0, 0,
652 0, 0, 0, 0, 0, 0, 0, 0, 0, 116,
653 0, 0, 0, 0, 0, 116, 0, 0, 0, 0,
654 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
655 105, 0, 0, 108, 117, 0, 0, 0, 0, 117,
656 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
657 0, 0, 98, 0, 0, 0, 0, 0, 0, 0,
658
659 0, 0, 0, 0, 0, 2, 0, 140, 0, 141,
660 0, 0, 0, 0, 87, 0, 0, 0, 0, 0,
661 107, 79, 0, 0, 0, 0, 0, 19, 0, 83,
662 0, 45, 0, 0, 0, 75, 0, 63, 0, 0,
663 0, 0, 0, 0, 0, 0, 0, 0, 0, 17,
664 0, 0, 78, 97, 0, 0, 0, 0, 0, 0,
665 0, 115, 0, 0, 0, 55, 0, 0, 69, 0,
666 0, 0, 0, 0, 0, 0, 0, 93, 0, 0,
667 0, 0, 0, 0, 0, 0, 33, 0, 0, 0,
668 0, 0, 0, 27, 49, 0, 0, 81, 0, 0,
669
670 0, 0, 0, 41, 0, 114, 113, 0, 0, 0,
671 0, 0, 0, 0, 0, 0, 0, 30, 0, 26,
672 0, 0, 0, 0, 20, 0, 77, 54, 132, 0,
673 0, 0, 0, 38, 0, 0, 0, 0, 0, 0,
674 0, 0, 0, 111, 0, 65, 0, 0, 0, 0,
675 0, 67, 0, 0, 0, 135, 0, 0, 121, 80,
676 0, 0, 76, 0, 99, 0, 0, 0, 0, 94,
677 0, 0, 47, 0, 0, 24, 0, 0, 0, 0,
678 0, 0, 0, 0, 0, 0, 0, 95, 0, 0,
679 0, 0, 73, 100, 0, 110, 0, 0, 74, 0,
680
681 0, 23, 0, 0, 0, 0, 34, 0, 96, 0,
682 40, 0, 0, 0, 0, 0, 0, 126, 0, 0,
683 101, 31, 109, 0, 52, 112, 0, 0, 0, 120,
684 0, 37, 0, 0, 25, 0, 0, 0, 0, 0,
685 0, 82, 44, 125, 90, 0, 0, 0, 0, 0,
686 0, 35, 0, 0, 0, 0, 142, 0, 0, 0,
687 129, 0, 0, 22, 36, 0, 0, 0, 92, 39,
688 0, 0, 88, 106, 116, 0, 0, 116, 53, 102,
689 0, 72, 123, 0, 133, 0, 117, 0, 117, 0,
690 70, 0, 0, 119, 118, 0, 119, 118, 0, 43,
691
692 42, 0, 84, 0, 0, 0, 0, 85, 0, 0,
693 50, 57, 0, 58, 21, 0, 0, 0, 91, 32,
694 0, 0, 0, 0, 66, 0, 104, 143, 59, 0,
695 0, 0, 0, 0, 0, 0, 0, 0, 68, 56,
696 0, 89, 28, 0, 0, 0, 103, 0, 124, 122,
697 0, 0, 0, 127, 0, 0, 0, 0, 128, 0,
698 0, 0, 0, 0, 116, 117, 0, 71, 0, 0,
699 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
700 0, 0, 0, 0, 130, 0, 0, 0, 0, 0,
701 131, 0
702
703 } ;
704
705 static const YY_CHAR yy_ec[256] =
706 { 0,
707 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
708 1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
709 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
710 1, 2, 1, 5, 6, 7, 1, 1, 1, 1,
711 1, 8, 9, 1, 10, 11, 12, 13, 14, 15,
712 14, 14, 14, 14, 14, 14, 14, 1, 1, 1,
713 1, 16, 1, 1, 17, 18, 19, 20, 21, 22,
714 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
715 33, 34, 35, 36, 37, 38, 39, 40, 41, 42,
716 1, 43, 1, 1, 44, 1, 45, 46, 47, 48,
717
718 49, 50, 51, 52, 53, 54, 55, 56, 57, 58,
719 59, 60, 33, 61, 62, 63, 64, 65, 66, 67,
720 68, 69, 1, 1, 1, 1, 1, 1, 1, 1,
721 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
722 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
723 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
724 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
725 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
726 1, 1, 1, 1, 1, 1, 70, 1, 1, 1,
727 71, 1, 1, 1, 1, 1, 1, 1, 1, 1,
728
729 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
730 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
731 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
732 1, 1, 1, 1, 1, 1, 1, 1, 72, 1,
733 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
734 1, 1, 1, 73, 74
735 } ;
736
737 static const YY_CHAR yy_meta[75] =
738 { 0,
739 1, 1, 2, 1, 1, 1, 1, 3, 1, 1,
740 1, 1, 4, 4, 4, 1, 5, 5, 5, 5,
741 5, 5, 6, 6, 6, 6, 6, 6, 6, 6,
742 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
743 6, 6, 7, 6, 5, 5, 5, 5, 5, 5,
744 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
745 6, 6, 6, 6, 6, 6, 6, 6, 6, 1,
746 1, 1, 1, 1
747 } ;
748
749 static const flex_int16_t yy_base[707] =
750 { 0,
751 0, 0, 74, 0, 146, 148, 156, 230, 150, 152,
752 668, 1807, 665, 1807, 1807, 632, 302, 0, 162, 168,
753 171, 620, 239, 176, 152, 336, 230, 234, 226, 301,
754 229, 382, 307, 137, 175, 369, 409, 163, 174, 452,
755 400, 435, 343, 278, 497, 447, 529, 514, 479, 1807,
756 545, 1807, 529, 558, 0, 189, 196, 199, 209, 514,
757 362, 282, 0, 448, 549, 500, 492, 363, 0, 501,
758 212, 206, 594, 595, 238, 259, 0, 635, 610, 602,
759 377, 0, 611, 0, 1807, 0, 262, 1807, 530, 0,
760 0, 1807, 500, 497, 485, 1807, 486, 1807, 686, 0,
761
762 315, 676, 579, 441, 681, 664, 696, 452, 705, 714,
763 0, 286, 1807, 295, 223, 1807, 236, 439, 309, 526,
764 319, 718, 246, 358, 332, 392, 386, 413, 421, 428,
765 458, 707, 722, 468, 429, 424, 475, 495, 520, 505,
766 532, 1807, 519, 551, 552, 555, 561, 714, 579, 591,
767 693, 563, 723, 630, 694, 724, 721, 730, 741, 725,
768 721, 739, 738, 743, 743, 759, 759, 1807, 770, 768,
769 779, 776, 773, 769, 786, 789, 771, 780, 780, 795,
770 796, 797, 795, 794, 807, 798, 799, 808, 823, 811,
771 831, 379, 1807, 1807, 0, 1807, 270, 1807, 446, 0,
772
773 0, 1807, 864, 0, 1807, 0, 855, 441, 668, 860,
774 0, 829, 833, 837, 834, 846, 853, 859, 854, 872,
775 863, 875, 866, 869, 862, 903, 881, 865, 888, 872,
776 878, 896, 887, 896, 1807, 889, 906, 907, 910, 916,
777 912, 920, 922, 922, 927, 930, 924, 901, 932, 360,
778 931, 921, 922, 934, 943, 344, 928, 934, 950, 957,
779 948, 954, 962, 969, 957, 972, 971, 962, 981, 977,
780 1807, 969, 978, 1807, 338, 984, 987, 984, 986, 334,
781 980, 995, 991, 985, 999, 988, 996, 1000, 1005, 319,
782 993, 1021, 1807, 312, 1023, 1012, 1022, 1014, 1021, 1018,
783
784 1027, 1023, 1022, 1040, 1030, 1807, 1078, 0, 1050, 1053,
785 1044, 1053, 1057, 1065, 1807, 1053, 1061, 1070, 1066, 1057,
786 1807, 1807, 1069, 1080, 1084, 1070, 1078, 1807, 1090, 1807,
787 1075, 1807, 1077, 1082, 1082, 1807, 1098, 1807, 1096, 1085,
788 1108, 1099, 1108, 1103, 1099, 1118, 1110, 1121, 1125, 1807,
789 1116, 1116, 1807, 302, 1137, 1127, 1121, 1127, 1136, 1138,
790 1144, 1807, 1139, 1143, 1138, 1807, 1151, 1139, 1807, 1152,
791 1155, 1146, 1157, 1151, 1152, 1154, 1173, 1807, 1165, 1162,
792 1163, 1173, 1181, 1177, 1173, 1182, 1807, 1192, 1180, 1187,
793 1191, 1198, 1193, 1807, 1202, 1195, 1194, 1807, 1207, 1196,
794
795 1197, 1212, 1223, 1807, 1218, 1807, 1807, 1258, 1224, 1223,
796 1227, 1230, 1234, 1234, 1231, 1236, 1240, 1239, 1252, 1807,
797 1255, 1264, 1251, 1264, 1807, 1264, 1807, 1807, 1807, 1269,
798 1268, 1278, 1266, 1807, 1269, 1273, 1282, 1296, 1294, 319,
799 1301, 1284, 1287, 1807, 1287, 1807, 1294, 1300, 1298, 1301,
800 1303, 1807, 1305, 1301, 1302, 1807, 1309, 1321, 1310, 1321,
801 1324, 318, 1807, 1321, 287, 1317, 1334, 1326, 1324, 1807,
802 1345, 1347, 1336, 1354, 1353, 1807, 310, 297, 1358, 1342,
803 1345, 1348, 1354, 1355, 1367, 1370, 1362, 1807, 1406, 1385,
804 1376, 252, 1807, 1807, 1388, 1807, 1361, 1382, 1807, 1377,
805
806 1379, 1807, 1386, 1398, 1413, 1410, 1807, 1399, 1807, 1406,
807 1807, 1424, 1408, 1403, 1427, 1423, 1416, 1807, 1430, 1426,
808 1426, 1807, 1807, 1420, 1807, 1807, 1441, 1429, 1438, 1807,
809 1432, 1807, 1436, 1450, 1807, 1436, 1461, 1463, 1451, 1457,
810 233, 1807, 1807, 1807, 1807, 1450, 1457, 1452, 1455, 1466,
811 1472, 1807, 1469, 1466, 1484, 1481, 1518, 1476, 1478, 1498,
812 1807, 1478, 218, 1807, 1807, 1489, 1491, 1495, 1807, 1807,
813 1492, 1496, 1807, 1807, 1807, 1520, 204, 1807, 1807, 1807,
814 1507, 1807, 1527, 1528, 1807, 1520, 1807, 1522, 1807, 1522,
815 1807, 1535, 1521, 1807, 1807, 1537, 1807, 1807, 1529, 1807,
816
817 1807, 1532, 1807, 1576, 1537, 1541, 1537, 1807, 1542, 1547,
818 1807, 1807, 1562, 1807, 1807, 1551, 1556, 1569, 1807, 1807,
819 175, 1561, 1569, 1581, 1807, 1588, 1807, 215, 1807, 1590,
820 1593, 1582, 1597, 1587, 1591, 1583, 1598, 1599, 1807, 1807,
821 1599, 1807, 1807, 1605, 1603, 1605, 1807, 1612, 1807, 1807,
822 1615, 1619, 1627, 1807, 1623, 1625, 1628, 1631, 1807, 1617,
823 1618, 1621, 172, 1618, 1807, 1807, 1639, 1807, 1637, 1626,
824 1637, 1646, 161, 1653, 1654, 1637, 1641, 1644, 1656, 1661,
825 1670, 1671, 1653, 154, 1807, 1666, 1665, 1667, 1671, 1680,
826 1807, 1807, 1732, 1739, 1746, 1753, 1760, 1763, 1769, 1776,
827
828 1780, 1786, 1789, 1795, 1799, 1801
829 } ;
830
831 static const flex_int16_t yy_def[707] =
832 { 0,
833 692, 1, 692, 3, 693, 693, 694, 694, 695, 695,
834 692, 692, 692, 692, 692, 696, 697, 698, 692, 692,
835 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
836 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
837 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
838 692, 692, 696, 697, 698, 692, 692, 692, 692, 692,
839 692, 692, 26, 692, 692, 692, 692, 692, 32, 692,
840 692, 692, 692, 692, 692, 692, 40, 692, 692, 692,
841 692, 45, 692, 699, 692, 699, 700, 692, 692, 701,
842 702, 692, 692, 692, 696, 692, 697, 692, 54, 703,
843
844 692, 692, 692, 692, 692, 692, 692, 704, 692, 692,
845 705, 692, 692, 692, 692, 692, 692, 692, 692, 692,
846 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
847 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
848 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
849 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
850 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
851 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
852 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
853 692, 692, 692, 692, 699, 692, 700, 692, 692, 701,
854
855 702, 692, 54, 703, 692, 706, 692, 704, 692, 692,
856 705, 692, 692, 692, 692, 692, 692, 692, 692, 692,
857 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
858 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
859 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
860 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
861 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
862 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
863 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
864 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
865
866 692, 692, 692, 692, 692, 692, 54, 706, 692, 692,
867 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
868 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
869 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
870 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
871 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
872 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
873 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
874 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
875 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
876
877 692, 692, 692, 692, 692, 692, 692, 54, 692, 692,
878 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
879 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
880 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
881 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
882 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
883 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
884 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
885 692, 692, 692, 692, 692, 692, 692, 692, 54, 692,
886 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
887
888 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
889 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
890 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
891 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
892 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
893 692, 692, 692, 692, 692, 692, 54, 692, 692, 692,
894 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
895 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
896 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
897 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
898
899 692, 692, 692, 54, 692, 692, 692, 692, 692, 692,
900 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
901 692, 692, 692, 692, 692, 692, 692, 697, 692, 692,
902 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
903 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
904 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
905 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
906 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
907 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
908 692, 0, 692, 692, 692, 692, 692, 692, 692, 692,
909
910 692, 692, 692, 692, 692, 692
911 } ;
912
913 static const flex_int16_t yy_nxt[1882] =
914 { 0,
915 12, 13, 14, 15, 16, 17, 18, 12, 19, 20,
916 21, 22, 23, 24, 24, 12, 25, 26, 27, 28,
917 29, 30, 31, 32, 33, 34, 35, 36, 37, 38,
918 39, 40, 12, 41, 42, 43, 44, 45, 46, 12,
919 12, 12, 12, 12, 25, 26, 27, 28, 29, 30,
920 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
921 41, 42, 43, 44, 45, 46, 12, 12, 12, 12,
922 12, 47, 48, 49, 50, 51, 14, 52, 53, 54,
923 55, 50, 56, 57, 58, 59, 60, 61, 61, 50,
924 62, 63, 64, 65, 66, 67, 68, 69, 70, 71,
925
926 72, 73, 74, 75, 76, 77, 50, 78, 79, 80,
927 81, 82, 83, 50, 50, 50, 50, 50, 62, 63,
928 64, 65, 66, 67, 68, 69, 70, 71, 72, 73,
929 74, 75, 76, 77, 78, 79, 80, 81, 82, 83,
930 50, 50, 50, 50, 50, 50, 50, 50, 85, 86,
931 85, 86, 92, 87, 92, 87, 88, 89, 88, 88,
932 88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
933 88, 88, 101, 145, 102, 103, 103, 104, 101, 112,
934 105, 106, 106, 107, 107, 107, 109, 113, 103, 103,
935 103, 146, 93, 157, 93, 158, 110, 686, 88, 101,
936
937 145, 102, 103, 103, 674, 104, 101, 112, 105, 106,
938 106, 107, 107, 107, 113, 667, 194, 98, 638, 146,
939 108, 157, 146, 158, 110, 88, 88, 88, 88, 88,
940 88, 89, 88, 88, 88, 88, 88, 88, 88, 88,
941 88, 88, 88, 88, 88, 88, 120, 616, 145, 109,
942 146, 103, 103, 103, 124, 128, 134, 121, 125, 110,
943 122, 609, 135, 129, 214, 130, 123, 126, 157, 197,
944 127, 215, 88, 198, 120, 145, 593, 197, 111, 225,
945 158, 198, 124, 128, 134, 121, 125, 110, 122, 135,
946 129, 214, 130, 123, 126, 560, 157, 127, 215, 88,
947
948 88, 88, 88, 88, 98, 111, 225, 181, 158, 112,
949 212, 547, 182, 213, 99, 99, 99, 113, 99, 99,
950 99, 99, 99, 99, 546, 131, 142, 107, 107, 107,
951 536, 132, 534, 515, 133, 181, 143, 112, 212, 182,
952 218, 213, 144, 221, 113, 442, 99, 99, 99, 99,
953 99, 99, 114, 131, 142, 396, 115, 176, 116, 132,
954 117, 133, 393, 177, 143, 227, 118, 178, 218, 144,
955 119, 221, 109, 179, 103, 103, 103, 381, 180, 226,
956 114, 376, 110, 147, 115, 148, 116, 357, 117, 149,
957 134, 177, 227, 150, 118, 178, 135, 119, 136, 151,
958
959 137, 179, 138, 351, 152, 180, 181, 226, 228, 139,
960 110, 182, 140, 148, 165, 141, 166, 149, 134, 229,
961 167, 150, 168, 135, 169, 153, 136, 151, 137, 154,
962 138, 152, 230, 155, 181, 170, 228, 139, 182, 156,
963 140, 231, 141, 98, 166, 239, 229, 199, 167, 306,
964 168, 240, 169, 153, 98, 171, 205, 154, 172, 173,
965 230, 155, 170, 232, 120, 174, 216, 156, 159, 231,
966 175, 189, 160, 239, 217, 121, 161, 190, 122, 240,
967 191, 162, 163, 171, 123, 164, 172, 173, 98, 96,
968 232, 233, 120, 174, 216, 241, 159, 175, 94, 189,
969
970 160, 217, 202, 121, 161, 190, 122, 191, 238, 162,
971 163, 123, 164, 183, 184, 185, 131, 186, 233, 242,
972 142, 187, 132, 241, 109, 133, 103, 103, 103, 128,
973 143, 199, 188, 96, 110, 238, 144, 129, 244, 130,
974 243, 183, 184, 185, 131, 186, 94, 242, 142, 187,
975 132, 193, 133, 111, 246, 219, 245, 128, 143, 188,
976 98, 220, 110, 144, 129, 244, 130, 247, 243, 124,
977 99, 99, 99, 125, 99, 99, 99, 99, 99, 99,
978 111, 246, 126, 219, 245, 127, 248, 193, 220, 109,
979 249, 103, 103, 103, 250, 247, 256, 124, 192, 110,
980
981 253, 125, 99, 99, 99, 99, 99, 99, 147, 126,
982 148, 153, 127, 248, 149, 154, 176, 249, 150, 155,
983 254, 250, 177, 256, 151, 156, 178, 110, 253, 152,
984 171, 108, 179, 172, 173, 189, 96, 180, 148, 153,
985 174, 190, 149, 154, 191, 175, 150, 155, 254, 165,
986 177, 166, 151, 156, 178, 167, 152, 168, 171, 169,
987 179, 172, 173, 189, 180, 260, 94, 692, 174, 190,
988 170, 191, 175, 692, 109, 692, 106, 106, 106, 166,
989 210, 210, 210, 167, 110, 168, 109, 169, 103, 103,
990 103, 109, 260, 106, 106, 106, 110, 170, 203, 203,
991
992 203, 110, 203, 203, 203, 203, 203, 203, 107, 107,
993 107, 255, 110, 692, 692, 111, 207, 107, 107, 107,
994 206, 261, 209, 209, 110, 110, 210, 210, 210, 110,
995 203, 203, 203, 203, 203, 203, 234, 222, 236, 255,
996 235, 257, 111, 251, 207, 223, 224, 206, 252, 261,
997 264, 265, 237, 110, 258, 692, 259, 262, 269, 263,
998 270, 271, 272, 274, 234, 222, 236, 235, 266, 257,
999 275, 251, 273, 223, 224, 252, 267, 268, 264, 265,
1000 237, 278, 258, 259, 262, 269, 263, 270, 276, 271,
1001 272, 274, 279, 692, 277, 280, 266, 281, 275, 273,
1002
1003 283, 284, 287, 267, 268, 286, 290, 282, 292, 278,
1004 291, 293, 294, 692, 285, 295, 276, 296, 692, 288,
1005 279, 277, 297, 280, 298, 281, 289, 299, 283, 284,
1006 287, 300, 286, 301, 290, 282, 292, 291, 302, 293,
1007 294, 285, 303, 295, 304, 296, 288, 305, 692, 692,
1008 297, 311, 298, 289, 692, 299, 692, 692, 300, 312,
1009 301, 313, 314, 309, 309, 315, 302, 310, 310, 310,
1010 303, 304, 210, 210, 210, 305, 307, 307, 307, 311,
1011 307, 307, 307, 307, 307, 307, 317, 312, 316, 313,
1012 314, 318, 319, 315, 321, 322, 323, 324, 692, 325,
1013
1014 320, 329, 692, 330, 331, 692, 332, 333, 307, 307,
1015 307, 307, 307, 307, 317, 316, 334, 337, 318, 326,
1016 319, 335, 321, 322, 323, 324, 325, 327, 320, 329,
1017 330, 336, 331, 332, 338, 333, 349, 328, 339, 340,
1018 341, 342, 343, 344, 334, 337, 345, 326, 335, 346,
1019 347, 348, 350, 352, 355, 327, 353, 354, 336, 356,
1020 692, 358, 338, 349, 328, 359, 339, 340, 341, 342,
1021 343, 344, 360, 362, 345, 363, 361, 346, 347, 348,
1022 350, 352, 355, 353, 354, 364, 365, 356, 358, 366,
1023 692, 367, 368, 359, 369, 692, 370, 373, 374, 371,
1024
1025 360, 362, 375, 363, 361, 372, 377, 378, 379, 380,
1026 382, 384, 385, 364, 365, 383, 386, 366, 367, 387,
1027 368, 388, 369, 370, 391, 373, 374, 371, 394, 389,
1028 375, 390, 392, 372, 377, 378, 379, 380, 382, 384,
1029 385, 395, 383, 397, 386, 398, 399, 387, 388, 400,
1030 401, 403, 391, 402, 404, 394, 389, 405, 390, 406,
1031 392, 407, 310, 310, 310, 310, 310, 310, 692, 395,
1032 692, 397, 398, 409, 399, 410, 400, 411, 401, 403,
1033 402, 412, 404, 413, 405, 414, 415, 406, 416, 407,
1034 408, 408, 408, 417, 408, 408, 408, 408, 408, 408,
1035
1036 419, 409, 418, 410, 420, 411, 421, 422, 423, 412,
1037 424, 413, 425, 414, 415, 426, 416, 427, 428, 429,
1038 417, 430, 408, 408, 408, 408, 408, 408, 419, 418,
1039 431, 433, 420, 421, 432, 422, 423, 424, 434, 425,
1040 435, 436, 426, 437, 427, 438, 428, 429, 430, 439,
1041 692, 440, 441, 443, 444, 692, 445, 446, 431, 433,
1042 447, 432, 448, 451, 449, 434, 452, 435, 453, 436,
1043 437, 454, 456, 438, 455, 457, 458, 439, 440, 441,
1044 450, 443, 444, 445, 459, 446, 460, 461, 447, 462,
1045 448, 451, 449, 463, 452, 464, 453, 465, 466, 454,
1046
1047 456, 455, 467, 457, 458, 468, 469, 450, 470, 471,
1048 472, 474, 459, 460, 461, 473, 462, 475, 476, 479,
1049 477, 463, 480, 464, 465, 466, 478, 482, 481, 483,
1050 467, 484, 485, 468, 469, 470, 486, 471, 472, 474,
1051 487, 488, 473, 692, 692, 475, 476, 479, 477, 692,
1052 480, 692, 490, 478, 482, 481, 491, 483, 484, 485,
1053 492, 493, 494, 495, 486, 496, 497, 498, 487, 488,
1054 489, 489, 489, 499, 489, 489, 489, 489, 489, 489,
1055 490, 500, 501, 491, 502, 692, 503, 492, 504, 493,
1056 494, 495, 496, 505, 497, 498, 506, 507, 508, 510,
1057
1058 499, 509, 489, 489, 489, 489, 489, 489, 511, 500,
1059 501, 512, 502, 503, 513, 514, 504, 516, 692, 517,
1060 518, 505, 519, 520, 506, 507, 508, 510, 509, 521,
1061 692, 522, 523, 524, 525, 511, 526, 527, 528, 512,
1062 529, 531, 513, 514, 530, 516, 517, 518, 533, 519,
1063 535, 520, 537, 538, 692, 532, 539, 521, 522, 540,
1064 523, 524, 525, 526, 527, 541, 528, 542, 529, 531,
1065 543, 530, 544, 545, 548, 551, 533, 549, 535, 537,
1066 550, 538, 532, 552, 539, 553, 540, 554, 555, 556,
1067 692, 692, 692, 541, 562, 542, 692, 543, 692, 692,
1068
1069 544, 545, 548, 551, 549, 558, 559, 550, 561, 563,
1070 566, 552, 564, 553, 565, 554, 555, 556, 557, 557,
1071 557, 562, 557, 557, 557, 557, 557, 557, 567, 568,
1072 569, 692, 570, 558, 559, 571, 561, 563, 566, 564,
1073 572, 565, 573, 574, 575, 576, 577, 578, 579, 581,
1074 557, 557, 557, 557, 557, 557, 567, 568, 569, 570,
1075 580, 582, 584, 571, 583, 585, 586, 587, 572, 573,
1076 574, 588, 575, 576, 577, 578, 579, 581, 589, 590,
1077 591, 592, 692, 594, 595, 692, 596, 580, 597, 582,
1078 584, 583, 585, 598, 586, 587, 599, 600, 588, 601,
1079
1080 602, 603, 692, 692, 692, 605, 589, 590, 591, 592,
1081 594, 692, 595, 596, 606, 597, 607, 692, 608, 610,
1082 611, 598, 612, 614, 599, 600, 601, 613, 602, 603,
1083 604, 604, 604, 605, 604, 604, 604, 604, 604, 604,
1084 615, 606, 617, 618, 607, 608, 619, 610, 611, 620,
1085 612, 614, 621, 623, 613, 622, 624, 625, 626, 627,
1086 692, 692, 604, 604, 604, 604, 604, 604, 615, 617,
1087 630, 618, 629, 631, 619, 632, 633, 620, 634, 636,
1088 621, 623, 622, 624, 635, 625, 626, 627, 628, 628,
1089 628, 637, 628, 628, 628, 628, 628, 628, 630, 629,
1090
1091 631, 639, 632, 640, 633, 641, 634, 636, 642, 643,
1092 644, 635, 645, 646, 647, 648, 692, 649, 650, 637,
1093 628, 628, 628, 628, 628, 628, 651, 652, 639, 653,
1094 640, 654, 655, 641, 656, 657, 642, 643, 644, 658,
1095 645, 646, 647, 648, 649, 659, 650, 660, 661, 662,
1096 663, 692, 664, 665, 651, 652, 666, 653, 668, 654,
1097 655, 669, 656, 657, 670, 692, 671, 658, 672, 673,
1098 677, 692, 678, 659, 679, 660, 661, 662, 663, 664,
1099 665, 675, 681, 666, 680, 668, 685, 676, 682, 669,
1100 683, 684, 670, 671, 687, 688, 672, 673, 677, 678,
1101
1102 689, 679, 690, 691, 692, 692, 692, 692, 692, 675,
1103 681, 680, 692, 685, 676, 692, 682, 692, 683, 684,
1104 692, 692, 687, 688, 692, 692, 692, 689, 692, 692,
1105 690, 691, 84, 84, 84, 84, 84, 84, 84, 90,
1106 90, 90, 90, 90, 90, 90, 91, 91, 91, 91,
1107 91, 91, 91, 95, 95, 95, 95, 95, 95, 95,
1108 97, 97, 97, 97, 97, 97, 97, 100, 100, 195,
1109 692, 692, 195, 195, 195, 195, 196, 692, 196, 196,
1110 196, 196, 196, 200, 200, 200, 201, 692, 201, 201,
1111 201, 201, 204, 204, 204, 208, 208, 208, 208, 208,
1112
1113 208, 208, 211, 211, 308, 308, 11, 692, 692, 692,
1114 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
1115 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
1116 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
1117 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
1118 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
1119 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
1120 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
1121 692
1122 } ;
1123
1124 static const flex_int16_t yy_chk[1882] =
1125 { 0,
1126 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1127 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1128 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1129 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1130 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1131 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1132 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1133 1, 1, 1, 1, 3, 3, 3, 3, 3, 3,
1134 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
1135 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
1136
1137 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
1138 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
1139 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
1140 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
1141 3, 3, 3, 3, 3, 3, 3, 3, 5, 5,
1142 6, 6, 9, 5, 10, 6, 7, 7, 7, 7,
1143 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
1144 7, 7, 19, 34, 19, 19, 19, 20, 20, 25,
1145 20, 20, 20, 21, 21, 21, 24, 25, 24, 24,
1146 24, 35, 9, 38, 10, 39, 24, 684, 7, 56,
1147
1148 34, 56, 56, 56, 673, 57, 57, 25, 57, 57,
1149 57, 58, 58, 58, 25, 663, 59, 628, 621, 35,
1150 59, 38, 72, 39, 24, 7, 7, 7, 7, 7,
1151 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
1152 8, 8, 8, 8, 8, 8, 27, 577, 71, 23,
1153 72, 23, 23, 23, 28, 29, 31, 27, 28, 23,
1154 27, 563, 31, 29, 115, 29, 27, 28, 75, 87,
1155 28, 117, 8, 87, 27, 71, 541, 197, 23, 123,
1156 76, 197, 28, 29, 31, 27, 28, 23, 27, 31,
1157 29, 115, 29, 27, 28, 492, 75, 28, 117, 8,
1158
1159 8, 8, 8, 8, 17, 23, 123, 44, 76, 62,
1160 112, 478, 44, 114, 17, 17, 17, 62, 17, 17,
1161 17, 17, 17, 17, 477, 30, 33, 101, 101, 101,
1162 465, 30, 462, 440, 30, 44, 33, 62, 112, 44,
1163 119, 114, 33, 121, 62, 354, 17, 17, 17, 17,
1164 17, 17, 26, 30, 33, 294, 26, 43, 26, 30,
1165 26, 30, 290, 43, 33, 125, 26, 43, 119, 33,
1166 26, 121, 61, 43, 61, 61, 61, 280, 43, 124,
1167 26, 275, 61, 36, 26, 36, 26, 256, 26, 36,
1168 68, 43, 125, 36, 26, 43, 68, 26, 32, 36,
1169
1170 32, 43, 32, 250, 36, 43, 81, 124, 126, 32,
1171 61, 81, 32, 36, 41, 32, 41, 36, 68, 127,
1172 41, 36, 41, 68, 41, 37, 32, 36, 32, 37,
1173 32, 36, 128, 37, 81, 41, 126, 32, 81, 37,
1174 32, 129, 32, 208, 41, 135, 127, 199, 41, 192,
1175 41, 136, 41, 37, 108, 42, 104, 37, 42, 42,
1176 128, 37, 41, 130, 64, 42, 118, 37, 40, 129,
1177 42, 46, 40, 135, 118, 64, 40, 46, 64, 136,
1178 46, 40, 40, 42, 64, 40, 42, 42, 97, 95,
1179 130, 131, 64, 42, 118, 137, 40, 42, 94, 46,
1180
1181 40, 118, 93, 64, 40, 46, 64, 46, 134, 40,
1182 40, 64, 40, 45, 45, 45, 67, 45, 131, 138,
1183 70, 45, 67, 137, 60, 67, 60, 60, 60, 66,
1184 70, 89, 45, 53, 60, 134, 70, 66, 140, 66,
1185 139, 45, 45, 45, 67, 45, 51, 138, 70, 45,
1186 67, 49, 67, 60, 143, 120, 141, 66, 70, 45,
1187 54, 120, 60, 70, 66, 140, 66, 144, 139, 65,
1188 54, 54, 54, 65, 54, 54, 54, 54, 54, 54,
1189 60, 143, 65, 120, 141, 65, 145, 48, 120, 103,
1190 146, 103, 103, 103, 147, 144, 152, 65, 47, 103,
1191
1192 149, 65, 54, 54, 54, 54, 54, 54, 73, 65,
1193 73, 74, 65, 145, 73, 74, 80, 146, 73, 74,
1194 150, 147, 80, 152, 73, 74, 80, 103, 149, 73,
1195 79, 22, 80, 79, 79, 83, 16, 80, 73, 74,
1196 79, 83, 73, 74, 83, 79, 73, 74, 150, 78,
1197 80, 78, 73, 74, 80, 78, 73, 78, 79, 78,
1198 80, 79, 79, 83, 80, 154, 13, 11, 79, 83,
1199 78, 83, 79, 0, 106, 0, 106, 106, 106, 78,
1200 209, 209, 209, 78, 106, 78, 102, 78, 102, 102,
1201 102, 105, 154, 105, 105, 105, 102, 78, 99, 99,
1202
1203 99, 105, 99, 99, 99, 99, 99, 99, 107, 107,
1204 107, 151, 106, 0, 0, 102, 107, 109, 109, 109,
1205 105, 155, 110, 110, 102, 109, 110, 110, 110, 105,
1206 99, 99, 99, 99, 99, 99, 132, 122, 133, 151,
1207 132, 153, 102, 148, 107, 122, 122, 105, 148, 155,
1208 157, 158, 133, 109, 153, 0, 153, 156, 160, 156,
1209 161, 162, 163, 164, 132, 122, 133, 132, 159, 153,
1210 165, 148, 163, 122, 122, 148, 159, 159, 157, 158,
1211 133, 167, 153, 153, 156, 160, 156, 161, 166, 162,
1212 163, 164, 169, 0, 166, 170, 159, 171, 165, 163,
1213
1214 172, 173, 175, 159, 159, 174, 176, 171, 178, 167,
1215 177, 179, 180, 0, 173, 181, 166, 182, 0, 175,
1216 169, 166, 183, 170, 184, 171, 175, 185, 172, 173,
1217 175, 186, 174, 187, 176, 171, 178, 177, 188, 179,
1218 180, 173, 189, 181, 190, 182, 175, 191, 0, 0,
1219 183, 212, 184, 175, 0, 185, 0, 0, 186, 213,
1220 187, 214, 215, 207, 207, 216, 188, 207, 207, 207,
1221 189, 190, 210, 210, 210, 191, 203, 203, 203, 212,
1222 203, 203, 203, 203, 203, 203, 218, 213, 217, 214,
1223 215, 219, 220, 216, 221, 222, 223, 224, 0, 225,
1224
1225 220, 227, 0, 228, 229, 0, 230, 231, 203, 203,
1226 203, 203, 203, 203, 218, 217, 232, 236, 219, 226,
1227 220, 233, 221, 222, 223, 224, 225, 226, 220, 227,
1228 228, 234, 229, 230, 237, 231, 248, 226, 238, 239,
1229 240, 241, 242, 243, 232, 236, 244, 226, 233, 245,
1230 246, 247, 249, 251, 254, 226, 252, 253, 234, 255,
1231 0, 257, 237, 248, 226, 258, 238, 239, 240, 241,
1232 242, 243, 259, 260, 244, 261, 259, 245, 246, 247,
1233 249, 251, 254, 252, 253, 262, 263, 255, 257, 264,
1234 0, 265, 266, 258, 267, 0, 268, 270, 272, 269,
1235
1236 259, 260, 273, 261, 259, 269, 276, 277, 278, 279,
1237 281, 282, 283, 262, 263, 281, 284, 264, 265, 285,
1238 266, 286, 267, 268, 288, 270, 272, 269, 291, 287,
1239 273, 287, 289, 269, 276, 277, 278, 279, 281, 282,
1240 283, 292, 281, 295, 284, 296, 297, 285, 286, 298,
1241 299, 301, 288, 300, 302, 291, 287, 303, 287, 304,
1242 289, 305, 309, 309, 309, 310, 310, 310, 0, 292,
1243 0, 295, 296, 311, 297, 312, 298, 313, 299, 301,
1244 300, 314, 302, 316, 303, 317, 318, 304, 319, 305,
1245 307, 307, 307, 320, 307, 307, 307, 307, 307, 307,
1246
1247 324, 311, 323, 312, 325, 313, 326, 327, 329, 314,
1248 331, 316, 333, 317, 318, 334, 319, 335, 337, 339,
1249 320, 340, 307, 307, 307, 307, 307, 307, 324, 323,
1250 341, 343, 325, 326, 342, 327, 329, 331, 344, 333,
1251 345, 346, 334, 347, 335, 348, 337, 339, 340, 349,
1252 0, 351, 352, 355, 356, 0, 357, 358, 341, 343,
1253 359, 342, 360, 363, 361, 344, 364, 345, 365, 346,
1254 347, 367, 370, 348, 368, 371, 372, 349, 351, 352,
1255 361, 355, 356, 357, 373, 358, 374, 375, 359, 376,
1256 360, 363, 361, 377, 364, 379, 365, 380, 381, 367,
1257
1258 370, 368, 382, 371, 372, 383, 384, 361, 385, 386,
1259 388, 390, 373, 374, 375, 389, 376, 391, 392, 395,
1260 393, 377, 396, 379, 380, 381, 393, 397, 396, 399,
1261 382, 400, 401, 383, 384, 385, 402, 386, 388, 390,
1262 403, 405, 389, 0, 0, 391, 392, 395, 393, 0,
1263 396, 0, 409, 393, 397, 396, 410, 399, 400, 401,
1264 411, 412, 413, 414, 402, 415, 416, 417, 403, 405,
1265 408, 408, 408, 418, 408, 408, 408, 408, 408, 408,
1266 409, 419, 421, 410, 422, 0, 423, 411, 424, 412,
1267 413, 414, 415, 426, 416, 417, 430, 431, 432, 435,
1268
1269 418, 433, 408, 408, 408, 408, 408, 408, 436, 419,
1270 421, 437, 422, 423, 438, 439, 424, 441, 0, 442,
1271 443, 426, 445, 447, 430, 431, 432, 435, 433, 448,
1272 0, 449, 450, 451, 453, 436, 454, 455, 457, 437,
1273 458, 460, 438, 439, 459, 441, 442, 443, 461, 445,
1274 464, 447, 466, 467, 0, 460, 468, 448, 449, 469,
1275 450, 451, 453, 454, 455, 471, 457, 472, 458, 460,
1276 473, 459, 474, 475, 479, 482, 461, 480, 464, 466,
1277 481, 467, 460, 483, 468, 484, 469, 485, 486, 487,
1278 0, 0, 0, 471, 497, 472, 0, 473, 0, 0,
1279
1280 474, 475, 479, 482, 480, 490, 491, 481, 495, 498,
1281 503, 483, 500, 484, 501, 485, 486, 487, 489, 489,
1282 489, 497, 489, 489, 489, 489, 489, 489, 504, 505,
1283 506, 0, 508, 490, 491, 510, 495, 498, 503, 500,
1284 512, 501, 513, 514, 515, 516, 517, 519, 520, 524,
1285 489, 489, 489, 489, 489, 489, 504, 505, 506, 508,
1286 521, 527, 529, 510, 528, 531, 533, 534, 512, 513,
1287 514, 536, 515, 516, 517, 519, 520, 524, 537, 538,
1288 539, 540, 0, 546, 547, 0, 548, 521, 549, 527,
1289 529, 528, 531, 550, 533, 534, 551, 553, 536, 554,
1290
1291 555, 556, 0, 0, 0, 558, 537, 538, 539, 540,
1292 546, 0, 547, 548, 559, 549, 560, 0, 562, 566,
1293 567, 550, 568, 572, 551, 553, 554, 571, 555, 556,
1294 557, 557, 557, 558, 557, 557, 557, 557, 557, 557,
1295 576, 559, 581, 583, 560, 562, 584, 566, 567, 586,
1296 568, 572, 588, 592, 571, 590, 593, 596, 599, 602,
1297 0, 0, 557, 557, 557, 557, 557, 557, 576, 581,
1298 606, 583, 605, 607, 584, 609, 610, 586, 613, 617,
1299 588, 592, 590, 593, 616, 596, 599, 602, 604, 604,
1300 604, 618, 604, 604, 604, 604, 604, 604, 606, 605,
1301
1302 607, 622, 609, 623, 610, 624, 613, 617, 626, 630,
1303 631, 616, 632, 633, 634, 635, 0, 636, 637, 618,
1304 604, 604, 604, 604, 604, 604, 638, 641, 622, 644,
1305 623, 645, 646, 624, 648, 651, 626, 630, 631, 652,
1306 632, 633, 634, 635, 636, 653, 637, 655, 656, 657,
1307 658, 0, 660, 661, 638, 641, 662, 644, 664, 645,
1308 646, 667, 648, 651, 669, 0, 670, 652, 671, 672,
1309 675, 0, 676, 653, 677, 655, 656, 657, 658, 660,
1310 661, 674, 679, 662, 678, 664, 683, 674, 680, 667,
1311 681, 682, 669, 670, 686, 687, 671, 672, 675, 676,
1312
1313 688, 677, 689, 690, 0, 0, 0, 0, 0, 674,
1314 679, 678, 0, 683, 674, 0, 680, 0, 681, 682,
1315 0, 0, 686, 687, 0, 0, 0, 688, 0, 0,
1316 689, 690, 693, 693, 693, 693, 693, 693, 693, 694,
1317 694, 694, 694, 694, 694, 694, 695, 695, 695, 695,
1318 695, 695, 695, 696, 696, 696, 696, 696, 696, 696,
1319 697, 697, 697, 697, 697, 697, 697, 698, 698, 699,
1320 0, 0, 699, 699, 699, 699, 700, 0, 700, 700,
1321 700, 700, 700, 701, 701, 701, 702, 0, 702, 702,
1322 702, 702, 703, 703, 703, 704, 704, 704, 704, 704,
1323
1324 704, 704, 705, 705, 706, 706, 692, 692, 692, 692,
1325 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
1326 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
1327 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
1328 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
1329 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
1330 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
1331 692, 692, 692, 692, 692, 692, 692, 692, 692, 692,
1332 692
1333 } ;
1334
1335 static yy_state_type yy_last_accepting_state;
1336 static char *yy_last_accepting_cpos;
1337
1338 extern int yy_flex_debug;
1339 int yy_flex_debug = 0;
1340
1341 /* The intent behind this definition is that it'll catch
1342 * any uses of REJECT which flex missed.
1343 */
1344 #define REJECT reject_used_but_not_detected
1345 static int yy_more_flag = 0;
1346 static int yy_more_len = 0;
1347 #define yymore() ((yy_more_flag) = 1)
1348 #define YY_MORE_ADJ (yy_more_len)
1349 #define YY_RESTORE_YY_MORE_OFFSET
1350 char *yytext;
1351 #line 1 "kate_lexer.l"
1352 /* Copyright (C) 2008 Vincent Penquerc'h.
1353 This file is part of the Kate codec library.
1354 Written by Vincent Penquerc'h.
1355
1356 Use, distribution and reproduction of this library is governed
1357 by a BSD style source license included with this source in the
1358 file 'COPYING'. Please read these terms before distributing. */
1359 #line 11 "kate_lexer.l"
1360
1361 #define KATE_INTERNAL
1362 #include "kate_internal.h"
1363
1364 #include <stdarg.h>
1365 #include <stdlib.h>
1366 #ifdef HAVE_STRING_H
1367 #include <string.h>
1368 #endif
1369 #include "kate/kate.h"
1370 #include "katedesc.h"
1371 #include "kate_parser.h"
1372
1373 #define YY_DECL extern int katedesc_lex(YYSTYPE *lvalp)
1374
1375 static int previous_state=-1;
1376
1377 static size_t nmacros=0;
1378 static char **macro_names=NULL;
1379 static char **macro_bodies=NULL;
1380
1381 static void replace_macro(const char *name);
1382 static const char *find_macro(const char *name);
1383
1384 static void process_nlines(const char *text);
1385
1386 static int freeze_nlines=0;
1387
1388 static YY_BUFFER_STATE main_buffer=NULL;
1389
1390 int nlines=1;
1391
1392 /* string [a-zA-Z ,\.;:!\?\-\(\)\'\`0-9#/\\:@%_]+ */
1393
1394 #line 1395 "kate_lexer.c"
1395
1396 /* single_quoted_string \'[^\<\>\&']*\' */
1397 /* double_quoted_string \"[^\<\>\&"]*\" */
1398 /* single_quoted_string \'[^']*\' */
1399 /* double_quoted_string \"[^"\n]*\" */
1400 #line 1401 "kate_lexer.c"
1401
1402 #define INITIAL 0
1403 #define NORMAL 1
1404 #define BLOCK_COMMENT 2
1405 #define MACRO_1 3
1406 #define MACRO_2 4
1407
1408 #ifndef YY_NO_UNISTD_H
1409 /* Special case for "unistd.h", since it is non-ANSI. We include it way
1410 * down here because we want the user's section 1 to have been scanned first.
1411 * The user has a chance to override it with an option.
1412 */
1413 #include <unistd.h>
1414 #endif
1415
1416 #ifndef YY_EXTRA_TYPE
1417 #define YY_EXTRA_TYPE void *
1418 #endif
1419
1420 static int yy_init_globals ( void );
1421
1422 /* Accessor methods to globals.
1423 These are made visible to non-reentrant scanners for convenience. */
1424
1425 int yylex_destroy ( void );
1426
1427 int yyget_debug ( void );
1428
1429 void yyset_debug ( int debug_flag );
1430
1431 YY_EXTRA_TYPE yyget_extra ( void );
1432
1433 void yyset_extra ( YY_EXTRA_TYPE user_defined );
1434
1435 FILE *yyget_in ( void );
1436
1437 void yyset_in ( FILE * _in_str );
1438
1439 FILE *yyget_out ( void );
1440
1441 void yyset_out ( FILE * _out_str );
1442
1443 int yyget_leng ( void );
1444
1445 char *yyget_text ( void );
1446
1447 int yyget_lineno ( void );
1448
1449 void yyset_lineno ( int _line_number );
1450
1451 /* Macros after this point can all be overridden by user definitions in
1452 * section 1.
1453 */
1454
1455 #ifndef YY_SKIP_YYWRAP
1456 #ifdef __cplusplus
1457 extern "C" int yywrap ( void );
1458 #else
1459 extern int yywrap ( void );
1460 #endif
1461 #endif
1462
1463 #ifndef YY_NO_UNPUT
1464
1465 #endif
1466
1467 #ifndef yytext_ptr
1468 static void yy_flex_strncpy ( char *, const char *, int );
1469 #endif
1470
1471 #ifdef YY_NEED_STRLEN
1472 static int yy_flex_strlen ( const char * );
1473 #endif
1474
1475 #ifndef YY_NO_INPUT
1476 #ifdef __cplusplus
1477 static int yyinput ( void );
1478 #else
1479 static int input ( void );
1480 #endif
1481
1482 #endif
1483
1484 /* Amount of stuff to slurp up with each read. */
1485 #ifndef YY_READ_BUF_SIZE
1486 #ifdef __ia64__
1487 /* On IA-64, the buffer size is 16k, not 8k */
1488 #define YY_READ_BUF_SIZE 16384
1489 #else
1490 #define YY_READ_BUF_SIZE 8192
1491 #endif /* __ia64__ */
1492 #endif
1493
1494 /* Copy whatever the last rule matched to the standard output. */
1495 #ifndef ECHO
1496 /* This used to be an fputs(), but since the string might contain NUL's,
1497 * we now use fwrite().
1498 */
1499 #define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
1500 #endif
1501
1502 /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
1503 * is returned in "result".
1504 */
1505 #ifndef YY_INPUT
1506 #define YY_INPUT(buf,result,max_size) \
1507 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
1508 { \
1509 int c = '*'; \
1510 int n; \
1511 for ( n = 0; n < max_size && \
1512 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
1513 buf[n] = (char) c; \
1514 if ( c == '\n' ) \
1515 buf[n++] = (char) c; \
1516 if ( c == EOF && ferror( yyin ) ) \
1517 YY_FATAL_ERROR( "input in flex scanner failed" ); \
1518 result = n; \
1519 } \
1520 else \
1521 { \
1522 errno=0; \
1523 while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
1524 { \
1525 if( errno != EINTR) \
1526 { \
1527 YY_FATAL_ERROR( "input in flex scanner failed" ); \
1528 break; \
1529 } \
1530 errno=0; \
1531 clearerr(yyin); \
1532 } \
1533 }\
1534 \
1535
1536 #endif
1537
1538 /* No semi-colon after return; correct usage is to write "yyterminate();" -
1539 * we don't want an extra ';' after the "return" because that will cause
1540 * some compilers to complain about unreachable statements.
1541 */
1542 #ifndef yyterminate
1543 #define yyterminate() return YY_NULL
1544 #endif
1545
1546 /* Number of entries by which start-condition stack grows. */
1547 #ifndef YY_START_STACK_INCR
1548 #define YY_START_STACK_INCR 25
1549 #endif
1550
1551 /* Report a fatal error. */
1552 #ifndef YY_FATAL_ERROR
1553 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
1554 #endif
1555
1556 /* end tables serialization structures and prototypes */
1557
1558 /* Default declaration of generated scanner - a define so the user can
1559 * easily add parameters.
1560 */
1561 #ifndef YY_DECL
1562 #define YY_DECL_IS_OURS 1
1563
1564 extern int yylex (void);
1565
1566 #define YY_DECL int yylex (void)
1567 #endif /* !YY_DECL */
1568
1569 /* Code executed at the beginning of each rule, after yytext and yyleng
1570 * have been set up.
1571 */
1572 #ifndef YY_USER_ACTION
1573 #define YY_USER_ACTION
1574 #endif
1575
1576 /* Code executed at the end of each rule. */
1577 #ifndef YY_BREAK
1578 #define YY_BREAK /*LINTED*/break;
1579 #endif
1580
1581 #define YY_RULE_SETUP \
1582 YY_USER_ACTION
1583
1584 /** The main scanner function which does all the work.
1585 */
1586 YY_DECL
1587 {
1588 yy_state_type yy_current_state;
1589 char *yy_cp, *yy_bp;
1590 int yy_act;
1591
1592 if ( !(yy_init) )
1593 {
1594 (yy_init) = 1;
1595
1596 #ifdef YY_USER_INIT
1597 YY_USER_INIT;
1598 #endif
1599
1600 if ( ! (yy_start) )
1601 (yy_start) = 1; /* first start state */
1602
1603 if ( ! yyin )
1604 yyin = stdin;
1605
1606 if ( ! yyout )
1607 yyout = stdout;
1608
1609 if ( ! YY_CURRENT_BUFFER ) {
1610 yyensure_buffer_stack ();
1611 YY_CURRENT_BUFFER_LVALUE =
1612 yy_create_buffer( yyin, YY_BUF_SIZE );
1613 }
1614
1615 yy_load_buffer_state( );
1616 }
1617
1618 {
1619 #line 81 "kate_lexer.l"
1620
1621
1622
1623 #line 1624 "kate_lexer.c"
1624
1625 while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */
1626 {
1627 (yy_more_len) = 0;
1628 if ( (yy_more_flag) )
1629 {
1630 (yy_more_len) = (int) ((yy_c_buf_p) - (yytext_ptr));
1631 (yy_more_flag) = 0;
1632 }
1633 yy_cp = (yy_c_buf_p);
1634
1635 /* Support of yytext. */
1636 *yy_cp = (yy_hold_char);
1637
1638 /* yy_bp points to the position in yy_ch_buf of the start of
1639 * the current run.
1640 */
1641 yy_bp = yy_cp;
1642
1643 yy_current_state = (yy_start);
1644 yy_match:
1645 do
1646 {
1647 YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ;
1648 if ( yy_accept[yy_current_state] )
1649 {
1650 (yy_last_accepting_state) = yy_current_state;
1651 (yy_last_accepting_cpos) = yy_cp;
1652 }
1653 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1654 {
1655 yy_current_state = (int) yy_def[yy_current_state];
1656 if ( yy_current_state >= 693 )
1657 yy_c = yy_meta[yy_c];
1658 }
1659 yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
1660 ++yy_cp;
1661 }
1662 while ( yy_current_state != 692 );
1663 yy_cp = (yy_last_accepting_cpos);
1664 yy_current_state = (yy_last_accepting_state);
1665
1666 yy_find_action:
1667 yy_act = yy_accept[yy_current_state];
1668
1669 YY_DO_BEFORE_ACTION;
1670
1671 do_action: /* This label is used only to access EOF actions. */
1672
1673 switch ( yy_act )
1674 { /* beginning of action switch */
1675 case 0: /* must back up */
1676 /* undo the effects of YY_DO_BEFORE_ACTION */
1677 *yy_cp = (yy_hold_char);
1678 yy_cp = (yy_last_accepting_cpos);
1679 yy_current_state = (yy_last_accepting_state);
1680 goto yy_find_action;
1681
1682 case 1:
1683 YY_RULE_SETUP
1684 #line 84 "kate_lexer.l"
1685 {
1686 fprintf(stderr,"This file seems to be encoded in UTF-16, Kate only supports UTF-8\n");
1687 fprintf(stderr,"You will need to convert it to UTF-8 first (eg, use iconv)\n");
1688 }
1689 YY_BREAK
1690 case 2:
1691 YY_RULE_SETUP
1692 #line 88 "kate_lexer.l"
1693 {BEGIN(NORMAL);}
1694 YY_BREAK
1695 case 3:
1696 YY_RULE_SETUP
1697 #line 89 "kate_lexer.l"
1698 {yyless(0);BEGIN(NORMAL);}
1699 YY_BREAK
1700 case 4:
1701 YY_RULE_SETUP
1702 #line 91 "kate_lexer.l"
1703 {previous_state=NORMAL;BEGIN(BLOCK_COMMENT);}
1704 YY_BREAK
1705 case 5:
1706 YY_RULE_SETUP
1707 #line 92 "kate_lexer.l"
1708 {}
1709 YY_BREAK
1710 case 6:
1711 YY_RULE_SETUP
1712 #line 93 "kate_lexer.l"
1713 {}
1714 YY_BREAK
1715 case 7:
1716 /* rule 7 can match eol */
1717 YY_RULE_SETUP
1718 #line 94 "kate_lexer.l"
1719 {if (!freeze_nlines) nlines++;}
1720 YY_BREAK
1721 case 8:
1722 YY_RULE_SETUP
1723 #line 95 "kate_lexer.l"
1724 {BEGIN(previous_state);}
1725 YY_BREAK
1726 case 9:
1727 YY_RULE_SETUP
1728 #line 97 "kate_lexer.l"
1729 {}
1730 YY_BREAK
1731 case 10:
1732 YY_RULE_SETUP
1733 #line 98 "kate_lexer.l"
1734 {BEGIN(MACRO_2);lvalp->string=yytext;return IDENTIFIER;}
1735 YY_BREAK
1736 case 11:
1737 /* rule 11 can match eol */
1738 YY_RULE_SETUP
1739 #line 100 "kate_lexer.l"
1740 {yytext[yyleng-2]=' ';yymore();}
1741 YY_BREAK
1742 case 12:
1743 YY_RULE_SETUP
1744 #line 101 "kate_lexer.l"
1745 {yymore();}
1746 YY_BREAK
1747 case 13:
1748 /* rule 13 can match eol */
1749 YY_RULE_SETUP
1750 #line 102 "kate_lexer.l"
1751 {BEGIN(previous_state);lvalp->string=yytext;process_nlines(yytext);return MACRO_BODY;}
1752 YY_BREAK
1753 case 14:
1754 /* rule 14 can match eol */
1755 YY_RULE_SETUP
1756 #line 104 "kate_lexer.l"
1757 {if (!freeze_nlines) nlines++;}
1758 YY_BREAK
1759 case 15:
1760 YY_RULE_SETUP
1761 #line 105 "kate_lexer.l"
1762 {}
1763 YY_BREAK
1764 case 16:
1765 /* rule 16 can match eol */
1766 YY_RULE_SETUP
1767 #line 106 "kate_lexer.l"
1768 {if (!freeze_nlines) nlines++;}
1769 YY_BREAK
1770 case 17:
1771 YY_RULE_SETUP
1772 #line 108 "kate_lexer.l"
1773 {return KATE;}
1774 YY_BREAK
1775 case 18:
1776 YY_RULE_SETUP
1777 #line 110 "kate_lexer.l"
1778 {replace_macro(katedesc_text+1);}
1779 YY_BREAK
1780 case 19:
1781 YY_RULE_SETUP
1782 #line 112 "kate_lexer.l"
1783 {return DEFS;}
1784 YY_BREAK
1785 case 20:
1786 YY_RULE_SETUP
1787 #line 113 "kate_lexer.l"
1788 {return EVENT;}
1789 YY_BREAK
1790 case 21:
1791 YY_RULE_SETUP
1792 #line 114 "kate_lexer.l"
1793 {return LANGUAGE;}
1794 YY_BREAK
1795 case 22:
1796 YY_RULE_SETUP
1797 #line 115 "kate_lexer.l"
1798 {return COMMENT;}
1799 YY_BREAK
1800 case 23:
1801 YY_RULE_SETUP
1802 #line 116 "kate_lexer.l"
1803 {return DEFINE;}
1804 YY_BREAK
1805 case 24:
1806 YY_RULE_SETUP
1807 #line 117 "kate_lexer.l"
1808 {return STYLE;}
1809 YY_BREAK
1810 case 25:
1811 YY_RULE_SETUP
1812 #line 118 "kate_lexer.l"
1813 {return REGION;}
1814 YY_BREAK
1815 case 26:
1816 YY_RULE_SETUP
1817 #line 119 "kate_lexer.l"
1818 {return CURVE;}
1819 YY_BREAK
1820 case 27:
1821 YY_RULE_SETUP
1822 #line 120 "kate_lexer.l"
1823 {return TEXT;}
1824 YY_BREAK
1825 case 28:
1826 YY_RULE_SETUP
1827 #line 121 "kate_lexer.l"
1828 {return BACKGROUND;}
1829 YY_BREAK
1830 case 29:
1831 YY_RULE_SETUP
1832 #line 122 "kate_lexer.l"
1833 {return BACKGROUND;}
1834 YY_BREAK
1835 case 30:
1836 YY_RULE_SETUP
1837 #line 123 "kate_lexer.l"
1838 {return COLOR;}
1839 YY_BREAK
1840 case 31:
1841 YY_RULE_SETUP
1842 #line 124 "kate_lexer.l"
1843 {return MARKER;}
1844 YY_BREAK
1845 case 32:
1846 YY_RULE_SETUP
1847 #line 125 "kate_lexer.l"
1848 {return POSITION;}
1849 YY_BREAK
1850 case 33:
1851 YY_RULE_SETUP
1852 #line 126 "kate_lexer.l"
1853 {return SIZE;}
1854 YY_BREAK
1855 case 34:
1856 YY_RULE_SETUP
1857 #line 127 "kate_lexer.l"
1858 {return HALIGN;}
1859 YY_BREAK
1860 case 35:
1861 YY_RULE_SETUP
1862 #line 128 "kate_lexer.l"
1863 {return VALIGN;}
1864 YY_BREAK
1865 case 36:
1866 YY_RULE_SETUP
1867 #line 129 "kate_lexer.l"
1868 {return DEFAULT;}
1869 YY_BREAK
1870 case 37:
1871 YY_RULE_SETUP
1872 #line 130 "kate_lexer.l"
1873 {return POINTS;}
1874 YY_BREAK
1875 case 38:
1876 YY_RULE_SETUP
1877 #line 131 "kate_lexer.l"
1878 {return HLEFT;}
1879 YY_BREAK
1880 case 39:
1881 YY_RULE_SETUP
1882 #line 132 "kate_lexer.l"
1883 {return HCENTER;}
1884 YY_BREAK
1885 case 40:
1886 YY_RULE_SETUP
1887 #line 133 "kate_lexer.l"
1888 {return HRIGHT;}
1889 YY_BREAK
1890 case 41:
1891 YY_RULE_SETUP
1892 #line 134 "kate_lexer.l"
1893 {return VTOP;}
1894 YY_BREAK
1895 case 42:
1896 YY_RULE_SETUP
1897 #line 135 "kate_lexer.l"
1898 {return VCENTER;}
1899 YY_BREAK
1900 case 43:
1901 YY_RULE_SETUP
1902 #line 136 "kate_lexer.l"
1903 {return VBOTTOM;}
1904 YY_BREAK
1905 case 44:
1906 YY_RULE_SETUP
1907 #line 137 "kate_lexer.l"
1908 {return STARTS;}
1909 YY_BREAK
1910 case 45:
1911 YY_RULE_SETUP
1912 #line 138 "kate_lexer.l"
1913 {return ENDS;}
1914 YY_BREAK
1915 case 46:
1916 YY_RULE_SETUP
1917 #line 139 "kate_lexer.l"
1918 {return AT;}
1919 YY_BREAK
1920 case 47:
1921 YY_RULE_SETUP
1922 #line 140 "kate_lexer.l"
1923 {return START;}
1924 YY_BREAK
1925 case 48:
1926 YY_RULE_SETUP
1927 #line 141 "kate_lexer.l"
1928 {return END;}
1929 YY_BREAK
1930 case 49:
1931 YY_RULE_SETUP
1932 #line 142 "kate_lexer.l"
1933 {return TIME;}
1934 YY_BREAK
1935 case 50:
1936 YY_RULE_SETUP
1937 #line 143 "kate_lexer.l"
1938 {return DURATION;}
1939 YY_BREAK
1940 case 51:
1941 YY_RULE_SETUP
1942 #line 144 "kate_lexer.l"
1943 {return ARROW;}
1944 YY_BREAK
1945 case 52:
1946 YY_RULE_SETUP
1947 #line 145 "kate_lexer.l"
1948 {return MOTION;}
1949 YY_BREAK
1950 case 53:
1951 YY_RULE_SETUP
1952 #line 146 "kate_lexer.l"
1953 {return MAPPING;}
1954 YY_BREAK
1955 case 54:
1956 YY_RULE_SETUP
1957 #line 147 "kate_lexer.l"
1958 {return FRAME;}
1959 YY_BREAK
1960 case 55:
1961 YY_RULE_SETUP
1962 #line 148 "kate_lexer.l"
1963 {return NONE;}
1964 YY_BREAK
1965 case 56:
1966 YY_RULE_SETUP
1967 #line 149 "kate_lexer.l"
1968 {return SEMANTICS;}
1969 YY_BREAK
1970 case 57:
1971 YY_RULE_SETUP
1972 #line 150 "kate_lexer.l"
1973 {return EXTERNAL;}
1974 YY_BREAK
1975 case 58:
1976 YY_RULE_SETUP
1977 #line 151 "kate_lexer.l"
1978 {return INTERNAL;}
1979 YY_BREAK
1980 case 59:
1981 YY_RULE_SETUP
1982 #line 152 "kate_lexer.l"
1983 {return ALIGNMENT;}
1984 YY_BREAK
1985 case 60:
1986 YY_RULE_SETUP
1987 #line 153 "kate_lexer.l"
1988 {return RG;}
1989 YY_BREAK
1990 case 61:
1991 YY_RULE_SETUP
1992 #line 154 "kate_lexer.l"
1993 {return BA;}
1994 YY_BREAK
1995 case 62:
1996 YY_RULE_SETUP
1997 #line 155 "kate_lexer.l"
1998 {return FOR;}
1999 YY_BREAK
2000 case 63:
2001 YY_RULE_SETUP
2002 #line 156 "kate_lexer.l"
2003 {return FROM;}
2004 YY_BREAK
2005 case 64:
2006 YY_RULE_SETUP
2007 #line 157 "kate_lexer.l"
2008 {return TO;}
2009 YY_BREAK
2010 case 65:
2011 YY_RULE_SETUP
2012 #line 158 "kate_lexer.l"
2013 {return MACRO;}
2014 YY_BREAK
2015 case 66:
2016 YY_RULE_SETUP
2017 #line 159 "kate_lexer.l"
2018 {return TIMEBASE;}
2019 YY_BREAK
2020 case 67:
2021 YY_RULE_SETUP
2022 #line 160 "kate_lexer.l"
2023 {return MORPH;}
2024 YY_BREAK
2025 case 68:
2026 YY_RULE_SETUP
2027 #line 161 "kate_lexer.l"
2028 {return SECONDARY;}
2029 YY_BREAK
2030 case 69:
2031 YY_RULE_SETUP
2032 #line 162 "kate_lexer.l"
2033 {return PATH;}
2034 YY_BREAK
2035 case 70:
2036 YY_RULE_SETUP
2037 #line 163 "kate_lexer.l"
2038 {return SECTION;}
2039 YY_BREAK
2040 case 71:
2041 YY_RULE_SETUP
2042 #line 164 "kate_lexer.l"
2043 {return DIRECTIONALITY;}
2044 YY_BREAK
2045 case 72:
2046 YY_RULE_SETUP
2047 #line 165 "kate_lexer.l"
2048 {return PALETTE;}
2049 YY_BREAK
2050 case 73:
2051 YY_RULE_SETUP
2052 #line 166 "kate_lexer.l"
2053 {return BITMAP;}
2054 YY_BREAK
2055 case 74:
2056 YY_RULE_SETUP
2057 #line 167 "kate_lexer.l"
2058 {return COLORS;}
2059 YY_BREAK
2060 case 75:
2061 YY_RULE_SETUP
2062 #line 168 "kate_lexer.l"
2063 {return FONT;}
2064 YY_BREAK
2065 case 76:
2066 YY_RULE_SETUP
2067 #line 169 "kate_lexer.l"
2068 {return RANGE;}
2069 YY_BREAK
2070 case 77:
2071 YY_RULE_SETUP
2072 #line 170 "kate_lexer.l"
2073 {return FIRST;}
2074 YY_BREAK
2075 case 78:
2076 YY_RULE_SETUP
2077 #line 171 "kate_lexer.l"
2078 {return LAST;}
2079 YY_BREAK
2080 case 79:
2081 YY_RULE_SETUP
2082 #line 172 "kate_lexer.l"
2083 {return CODE;}
2084 YY_BREAK
2085 case 80:
2086 YY_RULE_SETUP
2087 #line 173 "kate_lexer.l"
2088 {return POINT;}
2089 YY_BREAK
2090 case 81:
2091 YY_RULE_SETUP
2092 #line 174 "kate_lexer.l"
2093 {return USER;}
2094 YY_BREAK
2095 case 82:
2096 YY_RULE_SETUP
2097 #line 175 "kate_lexer.l"
2098 {return SOURCE;}
2099 YY_BREAK
2100 case 83:
2101 YY_RULE_SETUP
2102 #line 176 "kate_lexer.l"
2103 {return DRAW;}
2104 YY_BREAK
2105 case 84:
2106 YY_RULE_SETUP
2107 #line 177 "kate_lexer.l"
2108 {return VISIBLE;}
2109 YY_BREAK
2110 case 85:
2111 YY_RULE_SETUP
2112 #line 178 "kate_lexer.l"
2113 {return CATEGORY;}
2114 YY_BREAK
2115 case 86:
2116 YY_RULE_SETUP
2117 #line 179 "kate_lexer.l"
2118 {return ID;}
2119 YY_BREAK
2120 case 87:
2121 YY_RULE_SETUP
2122 #line 180 "kate_lexer.l"
2123 {return BOLD;}
2124 YY_BREAK
2125 case 88:
2126 YY_RULE_SETUP
2127 #line 181 "kate_lexer.l"
2128 {return ITALICS;}
2129 YY_BREAK
2130 case 89:
2131 YY_RULE_SETUP
2132 #line 182 "kate_lexer.l"
2133 {return UNDERLINE;}
2134 YY_BREAK
2135 case 90:
2136 YY_RULE_SETUP
2137 #line 183 "kate_lexer.l"
2138 {return STRIKE;}
2139 YY_BREAK
2140 case 91:
2141 YY_RULE_SETUP
2142 #line 184 "kate_lexer.l"
2143 {return PERIODIC;}
2144 YY_BREAK
2145 case 92:
2146 YY_RULE_SETUP
2147 #line 185 "kate_lexer.l"
2148 {return GRANULE;}
2149 YY_BREAK
2150 case 93:
2151 YY_RULE_SETUP
2152 #line 186 "kate_lexer.l"
2153 {return RATE;}
2154 YY_BREAK
2155 case 94:
2156 YY_RULE_SETUP
2157 #line 187 "kate_lexer.l"
2158 {return SHIFT;}
2159 YY_BREAK
2160 case 95:
2161 YY_RULE_SETUP
2162 #line 188 "kate_lexer.l"
2163 {return WIDTH;}
2164 YY_BREAK
2165 case 96:
2166 YY_RULE_SETUP
2167 #line 189 "kate_lexer.l"
2168 {return HEIGHT;}
2169 YY_BREAK
2170 case 97:
2171 YY_RULE_SETUP
2172 #line 190 "kate_lexer.l"
2173 {return LEFT;}
2174 YY_BREAK
2175 case 98:
2176 YY_RULE_SETUP
2177 #line 191 "kate_lexer.l"
2178 {return TOP;}
2179 YY_BREAK
2180 case 99:
2181 YY_RULE_SETUP
2182 #line 192 "kate_lexer.l"
2183 {return RIGHT;}
2184 YY_BREAK
2185 case 100:
2186 YY_RULE_SETUP
2187 #line 193 "kate_lexer.l"
2188 {return BOTTOM;}
2189 YY_BREAK
2190 case 101:
2191 YY_RULE_SETUP
2192 #line 194 "kate_lexer.l"
2193 {return MARGIN;}
2194 YY_BREAK
2195 case 102:
2196 YY_RULE_SETUP
2197 #line 195 "kate_lexer.l"
2198 {return MARGINS;}
2199 YY_BREAK
2200 case 103:
2201 YY_RULE_SETUP
2202 #line 196 "kate_lexer.l"
2203 {return HORIZONTAL;}
2204 YY_BREAK
2205 case 104:
2206 YY_RULE_SETUP
2207 #line 197 "kate_lexer.l"
2208 {return VERTICAL;}
2209 YY_BREAK
2210 case 105:
2211 YY_RULE_SETUP
2212 #line 198 "kate_lexer.l"
2213 {return PNG;}
2214 YY_BREAK
2215 case 106:
2216 YY_RULE_SETUP
2217 #line 199 "kate_lexer.l"
2218 {return JUSTIFY;}
2219 YY_BREAK
2220 case 107:
2221 YY_RULE_SETUP
2222 #line 200 "kate_lexer.l"
2223 {return CLIP;}
2224 YY_BREAK
2225 case 108:
2226 YY_RULE_SETUP
2227 #line 201 "kate_lexer.l"
2228 {return PRE;}
2229 YY_BREAK
2230 case 109:
2231 YY_RULE_SETUP
2232 #line 202 "kate_lexer.l"
2233 {return MARKUP;}
2234 YY_BREAK
2235 case 110:
2236 YY_RULE_SETUP
2237 #line 203 "kate_lexer.l"
2238 {return CANVAS;}
2239 YY_BREAK
2240 case 111:
2241 YY_RULE_SETUP
2242 #line 204 "kate_lexer.l"
2243 {return LOCAL;}
2244 YY_BREAK
2245 case 112:
2246 YY_RULE_SETUP
2247 #line 205 "kate_lexer.l"
2248 {return OFFSET;}
2249 YY_BREAK
2250 case 113:
2251 YY_RULE_SETUP
2252 #line 206 "kate_lexer.l"
2253 {return WRAP;}
2254 YY_BREAK
2255 case 114:
2256 YY_RULE_SETUP
2257 #line 207 "kate_lexer.l"
2258 {return WORD;}
2259 YY_BREAK
2260 case 115:
2261 YY_RULE_SETUP
2262 #line 208 "kate_lexer.l"
2263 {return META;}
2264 YY_BREAK
2265 case 116:
2266 YY_RULE_SETUP
2267 #line 212 "kate_lexer.l"
2268 {return L2R_T2B;}
2269 YY_BREAK
2270 case 117:
2271 YY_RULE_SETUP
2272 #line 213 "kate_lexer.l"
2273 {return R2L_T2B;}
2274 YY_BREAK
2275 case 118:
2276 YY_RULE_SETUP
2277 #line 214 "kate_lexer.l"
2278 {return T2B_R2L;}
2279 YY_BREAK
2280 case 119:
2281 YY_RULE_SETUP
2282 #line 215 "kate_lexer.l"
2283 {return T2B_L2R;}
2284 YY_BREAK
2285 case 120:
2286 YY_RULE_SETUP
2287 #line 217 "kate_lexer.l"
2288 {lvalp->number=kate_pixel;return METRIC;}
2289 YY_BREAK
2290 case 121:
2291 YY_RULE_SETUP
2292 #line 218 "kate_lexer.l"
2293 {lvalp->number=kate_pixel;return METRIC;}
2294 YY_BREAK
2295 case 122:
2296 YY_RULE_SETUP
2297 #line 219 "kate_lexer.l"
2298 {lvalp->number=kate_percentage;return METRIC;}
2299 YY_BREAK
2300 case 123:
2301 YY_RULE_SETUP
2302 #line 220 "kate_lexer.l"
2303 {lvalp->number=kate_percentage;return METRIC;}
2304 YY_BREAK
2305 case 124:
2306 YY_RULE_SETUP
2307 #line 221 "kate_lexer.l"
2308 {lvalp->number=kate_millionths;return METRIC;}
2309 YY_BREAK
2310 case 125:
2311 YY_RULE_SETUP
2312 #line 223 "kate_lexer.l"
2313 {return STATIC;}
2314 YY_BREAK
2315 case 126:
2316 YY_RULE_SETUP
2317 #line 224 "kate_lexer.l"
2318 {return LINEAR;}
2319 YY_BREAK
2320 case 127:
2321 YY_RULE_SETUP
2322 #line 225 "kate_lexer.l"
2323 {return CATMULL_ROM;}
2324 YY_BREAK
2325 case 128:
2326 YY_RULE_SETUP
2327 #line 226 "kate_lexer.l"
2328 {return BEZIER_CUBIC;}
2329 YY_BREAK
2330 case 129:
2331 YY_RULE_SETUP
2332 #line 227 "kate_lexer.l"
2333 {return BSPLINE;}
2334 YY_BREAK
2335 case 130:
2336 YY_RULE_SETUP
2337 #line 229 "kate_lexer.l"
2338 {return SIMPLE_TIMED_GLYPH_MARKER;}
2339 YY_BREAK
2340 case 131:
2341 YY_RULE_SETUP
2342 #line 230 "kate_lexer.l"
2343 {return SIMPLE_TIMED_GLYPH_STYLE_MORPH;}
2344 YY_BREAK
2345 case 132:
2346 YY_RULE_SETUP
2347 #line 231 "kate_lexer.l"
2348 {return GLYPH;}
2349 YY_BREAK
2350 case 133:
2351 YY_RULE_SETUP
2352 #line 232 "kate_lexer.l"
2353 {return POINTER;}
2354 YY_BREAK
2355 case 134:
2356 YY_RULE_SETUP
2357 #line 233 "kate_lexer.l"
2358 {return IN;}
2359 YY_BREAK
2360 case 135:
2361 YY_RULE_SETUP
2362 #line 234 "kate_lexer.l"
2363 {return PAUSE;}
2364 YY_BREAK
2365 case 136:
2366 /* rule 136 can match eol */
2367 YY_RULE_SETUP
2368 #line 236 "kate_lexer.l"
2369 {
2370 katedesc_text[strlen(katedesc_text)-1]=0;
2371 lvalp->string=katedesc_text+1;
2372 process_nlines(katedesc_text);
2373 return STRING;
2374 }
2375 YY_BREAK
2376 case 137:
2377 YY_RULE_SETUP
2378 #line 242 "kate_lexer.l"
2379 {lvalp->unumber=strtoul(katedesc_text,NULL,10);return UNUMBER;}
2380 YY_BREAK
2381 case 138:
2382 YY_RULE_SETUP
2383 #line 243 "kate_lexer.l"
2384 {lvalp->unumber=strtoul(katedesc_text,NULL,16);return UNUMBER;}
2385 YY_BREAK
2386 case 139:
2387 YY_RULE_SETUP
2388 #line 244 "kate_lexer.l"
2389 {lvalp->number=strtol(katedesc_text,NULL,10);return NUMBER;}
2390 YY_BREAK
2391 case 140:
2392 YY_RULE_SETUP
2393 #line 245 "kate_lexer.l"
2394 {lvalp->number=strtol(katedesc_text,NULL,16);return NUMBER;}
2395 YY_BREAK
2396 case 141:
2397 YY_RULE_SETUP
2398 #line 246 "kate_lexer.l"
2399 {lvalp->fp=(kate_float)atof(katedesc_text);return FLOAT;}
2400 YY_BREAK
2401 case 142:
2402 YY_RULE_SETUP
2403 #line 247 "kate_lexer.l"
2404 {lvalp->color=strtol(katedesc_text+1,NULL,16);return COLORSPEC;}
2405 YY_BREAK
2406 case 143:
2407 YY_RULE_SETUP
2408 #line 248 "kate_lexer.l"
2409 {lvalp->color=strtol(katedesc_text+1,NULL,16);return COLORSPEC;}
2410 YY_BREAK
2411 case YY_STATE_EOF(INITIAL):
2412 case YY_STATE_EOF(NORMAL):
2413 case YY_STATE_EOF(BLOCK_COMMENT):
2414 case YY_STATE_EOF(MACRO_1):
2415 case YY_STATE_EOF(MACRO_2):
2416 #line 251 "kate_lexer.l"
2417 {
2418 katedesc_text="<EOF>";
2419 if (freeze_nlines) --freeze_nlines;
2420 yy_delete_buffer(YY_CURRENT_BUFFER);
2421 if (main_buffer) {
2422 yy_switch_to_buffer(main_buffer);
2423 main_buffer=NULL;
2424 }
2425 else yyterminate();
2426 }
2427 YY_BREAK
2428 case 144:
2429 YY_RULE_SETUP
2430 #line 262 "kate_lexer.l"
2431 {return katedesc_text[0];}
2432 YY_BREAK
2433 case 145:
2434 YY_RULE_SETUP
2435 #line 265 "kate_lexer.l"
2436 ECHO;
2437 YY_BREAK
2438 #line 2439 "kate_lexer.c"
2439
2440 case YY_END_OF_BUFFER:
2441 {
2442 /* Amount of text matched not including the EOB char. */
2443 int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
2444
2445 /* Undo the effects of YY_DO_BEFORE_ACTION. */
2446 *yy_cp = (yy_hold_char);
2447 YY_RESTORE_YY_MORE_OFFSET
2448
2449 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
2450 {
2451 /* We're scanning a new file or input source. It's
2452 * possible that this happened because the user
2453 * just pointed yyin at a new source and called
2454 * yylex(). If so, then we have to assure
2455 * consistency between YY_CURRENT_BUFFER and our
2456 * globals. Here is the right place to do so, because
2457 * this is the first action (other than possibly a
2458 * back-up) that will match for the new input source.
2459 */
2460 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
2461 YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
2462 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
2463 }
2464
2465 /* Note that here we test for yy_c_buf_p "<=" to the position
2466 * of the first EOB in the buffer, since yy_c_buf_p will
2467 * already have been incremented past the NUL character
2468 * (since all states make transitions on EOB to the
2469 * end-of-buffer state). Contrast this with the test
2470 * in input().
2471 */
2472 if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
2473 { /* This was really a NUL. */
2474 yy_state_type yy_next_state;
2475
2476 (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
2477
2478 yy_current_state = yy_get_previous_state( );
2479
2480 /* Okay, we're now positioned to make the NUL
2481 * transition. We couldn't have
2482 * yy_get_previous_state() go ahead and do it
2483 * for us because it doesn't know how to deal
2484 * with the possibility of jamming (and we don't
2485 * want to build jamming into it because then it
2486 * will run more slowly).
2487 */
2488
2489 yy_next_state = yy_try_NUL_trans( yy_current_state );
2490
2491 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
2492
2493 if ( yy_next_state )
2494 {
2495 /* Consume the NUL. */
2496 yy_cp = ++(yy_c_buf_p);
2497 yy_current_state = yy_next_state;
2498 goto yy_match;
2499 }
2500
2501 else
2502 {
2503 yy_cp = (yy_last_accepting_cpos);
2504 yy_current_state = (yy_last_accepting_state);
2505 goto yy_find_action;
2506 }
2507 }
2508
2509 else switch ( yy_get_next_buffer( ) )
2510 {
2511 case EOB_ACT_END_OF_FILE:
2512 {
2513 (yy_did_buffer_switch_on_eof) = 0;
2514
2515 if ( yywrap( ) )
2516 {
2517 /* Note: because we've taken care in
2518 * yy_get_next_buffer() to have set up
2519 * yytext, we can now set up
2520 * yy_c_buf_p so that if some total
2521 * hoser (like flex itself) wants to
2522 * call the scanner after we return the
2523 * YY_NULL, it'll still work - another
2524 * YY_NULL will get returned.
2525 */
2526 (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
2527
2528 yy_act = YY_STATE_EOF(YY_START);
2529 goto do_action;
2530 }
2531
2532 else
2533 {
2534 if ( ! (yy_did_buffer_switch_on_eof) )
2535 YY_NEW_FILE;
2536 }
2537 break;
2538 }
2539
2540 case EOB_ACT_CONTINUE_SCAN:
2541 (yy_c_buf_p) =
2542 (yytext_ptr) + yy_amount_of_matched_text;
2543
2544 yy_current_state = yy_get_previous_state( );
2545
2546 yy_cp = (yy_c_buf_p);
2547 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
2548 goto yy_match;
2549
2550 case EOB_ACT_LAST_MATCH:
2551 (yy_c_buf_p) =
2552 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
2553
2554 yy_current_state = yy_get_previous_state( );
2555
2556 yy_cp = (yy_c_buf_p);
2557 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
2558 goto yy_find_action;
2559 }
2560 break;
2561 }
2562
2563 default:
2564 YY_FATAL_ERROR(
2565 "fatal flex scanner internal error--no action found" );
2566 } /* end of action switch */
2567 } /* end of scanning one token */
2568 } /* end of user's declarations */
2569 } /* end of yylex */
2570
2571 /* yy_get_next_buffer - try to read in a new buffer
2572 *
2573 * Returns a code representing an action:
2574 * EOB_ACT_LAST_MATCH -
2575 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
2576 * EOB_ACT_END_OF_FILE - end of file
2577 */
2578 static int yy_get_next_buffer (void)
2579 {
2580 char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
2581 char *source = (yytext_ptr);
2582 int number_to_move, i;
2583 int ret_val;
2584
2585 if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
2586 YY_FATAL_ERROR(
2587 "fatal flex scanner internal error--end of buffer missed" );
2588
2589 if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
2590 { /* Don't try to fill the buffer, so this is an EOF. */
2591 if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
2592 {
2593 /* We matched a single character, the EOB, so
2594 * treat this as a final EOF.
2595 */
2596 return EOB_ACT_END_OF_FILE;
2597 }
2598
2599 else
2600 {
2601 /* We matched some text prior to the EOB, first
2602 * process it.
2603 */
2604 return EOB_ACT_LAST_MATCH;
2605 }
2606 }
2607
2608 /* Try to read more data. */
2609
2610 /* First move last chars to start of buffer. */
2611 number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr) - 1);
2612
2613 for ( i = 0; i < number_to_move; ++i )
2614 *(dest++) = *(source++);
2615
2616 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
2617 /* don't do the read, it's not guaranteed to return an EOF,
2618 * just force an EOF
2619 */
2620 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
2621
2622 else
2623 {
2624 int num_to_read =
2625 YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
2626
2627 while ( num_to_read <= 0 )
2628 { /* Not enough room in the buffer - grow it. */
2629
2630 /* just a shorter name for the current buffer */
2631 YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
2632
2633 int yy_c_buf_p_offset =
2634 (int) ((yy_c_buf_p) - b->yy_ch_buf);
2635
2636 if ( b->yy_is_our_buffer )
2637 {
2638 int new_size = b->yy_buf_size * 2;
2639
2640 if ( new_size <= 0 )
2641 b->yy_buf_size += b->yy_buf_size / 8;
2642 else
2643 b->yy_buf_size *= 2;
2644
2645 b->yy_ch_buf = (char *)
2646 /* Include room in for 2 EOB chars. */
2647 yyrealloc( (void *) b->yy_ch_buf,
2648 (yy_size_t) (b->yy_buf_size + 2) );
2649 }
2650 else
2651 /* Can't grow it, we don't own it. */
2652 b->yy_ch_buf = NULL;
2653
2654 if ( ! b->yy_ch_buf )
2655 YY_FATAL_ERROR(
2656 "fatal error - scanner input buffer overflow" );
2657
2658 (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
2659
2660 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
2661 number_to_move - 1;
2662
2663 }
2664
2665 if ( num_to_read > YY_READ_BUF_SIZE )
2666 num_to_read = YY_READ_BUF_SIZE;
2667
2668 /* Read in more data. */
2669 YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
2670 (yy_n_chars), num_to_read );
2671
2672 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
2673 }
2674
2675 if ( (yy_n_chars) == 0 )
2676 {
2677 if ( number_to_move == YY_MORE_ADJ )
2678 {
2679 ret_val = EOB_ACT_END_OF_FILE;
2680 yyrestart( yyin );
2681 }
2682
2683 else
2684 {
2685 ret_val = EOB_ACT_LAST_MATCH;
2686 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
2687 YY_BUFFER_EOF_PENDING;
2688 }
2689 }
2690
2691 else
2692 ret_val = EOB_ACT_CONTINUE_SCAN;
2693
2694 if (((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
2695 /* Extend the array by 50%, plus the number we really need. */
2696 int new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
2697 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(
2698 (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size );
2699 if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
2700 YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
2701 /* "- 2" to take care of EOB's */
2702 YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
2703 }
2704
2705 (yy_n_chars) += number_to_move;
2706 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
2707 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
2708
2709 (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
2710
2711 return ret_val;
2712 }
2713
2714 /* yy_get_previous_state - get the state just before the EOB char was reached */
2715
2716 static yy_state_type yy_get_previous_state (void)
2717 {
2718 yy_state_type yy_current_state;
2719 char *yy_cp;
2720
2721 yy_current_state = (yy_start);
2722
2723 for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
2724 {
2725 YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
2726 if ( yy_accept[yy_current_state] )
2727 {
2728 (yy_last_accepting_state) = yy_current_state;
2729 (yy_last_accepting_cpos) = yy_cp;
2730 }
2731 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2732 {
2733 yy_current_state = (int) yy_def[yy_current_state];
2734 if ( yy_current_state >= 693 )
2735 yy_c = yy_meta[yy_c];
2736 }
2737 yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
2738 }
2739
2740 return yy_current_state;
2741 }
2742
2743 /* yy_try_NUL_trans - try to make a transition on the NUL character
2744 *
2745 * synopsis
2746 * next_state = yy_try_NUL_trans( current_state );
2747 */
2748 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
2749 {
2750 int yy_is_jam;
2751 char *yy_cp = (yy_c_buf_p);
2752
2753 YY_CHAR yy_c = 1;
2754 if ( yy_accept[yy_current_state] )
2755 {
2756 (yy_last_accepting_state) = yy_current_state;
2757 (yy_last_accepting_cpos) = yy_cp;
2758 }
2759 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2760 {
2761 yy_current_state = (int) yy_def[yy_current_state];
2762 if ( yy_current_state >= 693 )
2763 yy_c = yy_meta[yy_c];
2764 }
2765 yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
2766 yy_is_jam = (yy_current_state == 692);
2767
2768 return yy_is_jam ? 0 : yy_current_state;
2769 }
2770
2771 #ifndef YY_NO_UNPUT
2772
2773 #endif
2774
2775 #ifndef YY_NO_INPUT
2776 #ifdef __cplusplus
2777 static int yyinput (void)
2778 #else
2779 static int input (void)
2780 #endif
2781
2782 {
2783 int c;
2784
2785 *(yy_c_buf_p) = (yy_hold_char);
2786
2787 if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
2788 {
2789 /* yy_c_buf_p now points to the character we want to return.
2790 * If this occurs *before* the EOB characters, then it's a
2791 * valid NUL; if not, then we've hit the end of the buffer.
2792 */
2793 if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
2794 /* This was really a NUL. */
2795 *(yy_c_buf_p) = '\0';
2796
2797 else
2798 { /* need more input */
2799 int offset = (int) ((yy_c_buf_p) - (yytext_ptr));
2800 ++(yy_c_buf_p);
2801
2802 switch ( yy_get_next_buffer( ) )
2803 {
2804 case EOB_ACT_LAST_MATCH:
2805 /* This happens because yy_g_n_b()
2806 * sees that we've accumulated a
2807 * token and flags that we need to
2808 * try matching the token before
2809 * proceeding. But for input(),
2810 * there's no matching to consider.
2811 * So convert the EOB_ACT_LAST_MATCH
2812 * to EOB_ACT_END_OF_FILE.
2813 */
2814
2815 /* Reset buffer status. */
2816 yyrestart( yyin );
2817
2818 /*FALLTHROUGH*/
2819
2820 case EOB_ACT_END_OF_FILE:
2821 {
2822 if ( yywrap( ) )
2823 return 0;
2824
2825 if ( ! (yy_did_buffer_switch_on_eof) )
2826 YY_NEW_FILE;
2827 #ifdef __cplusplus
2828 return yyinput();
2829 #else
2830 return input();
2831 #endif
2832 }
2833
2834 case EOB_ACT_CONTINUE_SCAN:
2835 (yy_c_buf_p) = (yytext_ptr) + offset;
2836 break;
2837 }
2838 }
2839 }
2840
2841 c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
2842 *(yy_c_buf_p) = '\0'; /* preserve yytext */
2843 (yy_hold_char) = *++(yy_c_buf_p);
2844
2845 return c;
2846 }
2847 #endif /* ifndef YY_NO_INPUT */
2848
2849 /** Immediately switch to a different input stream.
2850 * @param input_file A readable stream.
2851 *
2852 * @note This function does not reset the start condition to @c INITIAL .
2853 */
2854 void yyrestart (FILE * input_file )
2855 {
2856
2857 if ( ! YY_CURRENT_BUFFER ){
2858 yyensure_buffer_stack ();
2859 YY_CURRENT_BUFFER_LVALUE =
2860 yy_create_buffer( yyin, YY_BUF_SIZE );
2861 }
2862
2863 yy_init_buffer( YY_CURRENT_BUFFER, input_file );
2864 yy_load_buffer_state( );
2865 }
2866
2867 /** Switch to a different input buffer.
2868 * @param new_buffer The new input buffer.
2869 *
2870 */
2871 void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
2872 {
2873
2874 /* TODO. We should be able to replace this entire function body
2875 * with
2876 * yypop_buffer_state();
2877 * yypush_buffer_state(new_buffer);
2878 */
2879 yyensure_buffer_stack ();
2880 if ( YY_CURRENT_BUFFER == new_buffer )
2881 return;
2882
2883 if ( YY_CURRENT_BUFFER )
2884 {
2885 /* Flush out information for old buffer. */
2886 *(yy_c_buf_p) = (yy_hold_char);
2887 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
2888 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
2889 }
2890
2891 YY_CURRENT_BUFFER_LVALUE = new_buffer;
2892 yy_load_buffer_state( );
2893
2894 /* We don't actually know whether we did this switch during
2895 * EOF (yywrap()) processing, but the only time this flag
2896 * is looked at is after yywrap() is called, so it's safe
2897 * to go ahead and always set it.
2898 */
2899 (yy_did_buffer_switch_on_eof) = 1;
2900 }
2901
2902 static void yy_load_buffer_state (void)
2903 {
2904 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
2905 (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
2906 yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
2907 (yy_hold_char) = *(yy_c_buf_p);
2908 }
2909
2910 /** Allocate and initialize an input buffer state.
2911 * @param file A readable stream.
2912 * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
2913 *
2914 * @return the allocated buffer state.
2915 */
2916 YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
2917 {
2918 YY_BUFFER_STATE b;
2919
2920 b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
2921 if ( ! b )
2922 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2923
2924 b->yy_buf_size = size;
2925
2926 /* yy_ch_buf has to be 2 characters longer than the size given because
2927 * we need to put in 2 end-of-buffer characters.
2928 */
2929 b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) );
2930 if ( ! b->yy_ch_buf )
2931 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2932
2933 b->yy_is_our_buffer = 1;
2934
2935 yy_init_buffer( b, file );
2936
2937 return b;
2938 }
2939
2940 /** Destroy the buffer.
2941 * @param b a buffer created with yy_create_buffer()
2942 *
2943 */
2944 void yy_delete_buffer (YY_BUFFER_STATE b )
2945 {
2946
2947 if ( ! b )
2948 return;
2949
2950 if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
2951 YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
2952
2953 if ( b->yy_is_our_buffer )
2954 yyfree( (void *) b->yy_ch_buf );
2955
2956 yyfree( (void *) b );
2957 }
2958
2959 /* Initializes or reinitializes a buffer.
2960 * This function is sometimes called more than once on the same buffer,
2961 * such as during a yyrestart() or at EOF.
2962 */
2963 static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
2964
2965 {
2966 int oerrno = errno;
2967
2968 yy_flush_buffer( b );
2969
2970 b->yy_input_file = file;
2971 b->yy_fill_buffer = 1;
2972
2973 /* If b is the current buffer, then yy_init_buffer was _probably_
2974 * called from yyrestart() or through yy_get_next_buffer.
2975 * In that case, we don't want to reset the lineno or column.
2976 */
2977 if (b != YY_CURRENT_BUFFER){
2978 b->yy_bs_lineno = 1;
2979 b->yy_bs_column = 0;
2980 }
2981
2982 b->yy_is_interactive = 0;
2983
2984 errno = oerrno;
2985 }
2986
2987 /** Discard all buffered characters. On the next scan, YY_INPUT will be called.
2988 * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
2989 *
2990 */
2991 void yy_flush_buffer (YY_BUFFER_STATE b )
2992 {
2993 if ( ! b )
2994 return;
2995
2996 b->yy_n_chars = 0;
2997
2998 /* We always need two end-of-buffer characters. The first causes
2999 * a transition to the end-of-buffer state. The second causes
3000 * a jam in that state.
3001 */
3002 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
3003 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
3004
3005 b->yy_buf_pos = &b->yy_ch_buf[0];
3006
3007 b->yy_at_bol = 1;
3008 b->yy_buffer_status = YY_BUFFER_NEW;
3009
3010 if ( b == YY_CURRENT_BUFFER )
3011 yy_load_buffer_state( );
3012 }
3013
3014 /** Pushes the new state onto the stack. The new state becomes
3015 * the current state. This function will allocate the stack
3016 * if necessary.
3017 * @param new_buffer The new state.
3018 *
3019 */
3020 void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
3021 {
3022 if (new_buffer == NULL)
3023 return;
3024
3025 yyensure_buffer_stack();
3026
3027 /* This block is copied from yy_switch_to_buffer. */
3028 if ( YY_CURRENT_BUFFER )
3029 {
3030 /* Flush out information for old buffer. */
3031 *(yy_c_buf_p) = (yy_hold_char);
3032 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
3033 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
3034 }
3035
3036 /* Only push if top exists. Otherwise, replace top. */
3037 if (YY_CURRENT_BUFFER)
3038 (yy_buffer_stack_top)++;
3039 YY_CURRENT_BUFFER_LVALUE = new_buffer;
3040
3041 /* copied from yy_switch_to_buffer. */
3042 yy_load_buffer_state( );
3043 (yy_did_buffer_switch_on_eof) = 1;
3044 }
3045
3046 /** Removes and deletes the top of the stack, if present.
3047 * The next element becomes the new top.
3048 *
3049 */
3050 void yypop_buffer_state (void)
3051 {
3052 if (!YY_CURRENT_BUFFER)
3053 return;
3054
3055 yy_delete_buffer(YY_CURRENT_BUFFER );
3056 YY_CURRENT_BUFFER_LVALUE = NULL;
3057 if ((yy_buffer_stack_top) > 0)
3058 --(yy_buffer_stack_top);
3059
3060 if (YY_CURRENT_BUFFER) {
3061 yy_load_buffer_state( );
3062 (yy_did_buffer_switch_on_eof) = 1;
3063 }
3064 }
3065
3066 /* Allocates the stack if it does not exist.
3067 * Guarantees space for at least one push.
3068 */
3069 static void yyensure_buffer_stack (void)
3070 {
3071 yy_size_t num_to_alloc;
3072
3073 if (!(yy_buffer_stack)) {
3074
3075 /* First allocation is just for 2 elements, since we don't know if this
3076 * scanner will even need a stack. We use 2 instead of 1 to avoid an
3077 * immediate realloc on the next call.
3078 */
3079 num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */
3080 (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
3081 (num_to_alloc * sizeof(struct yy_buffer_state*)
3082 );
3083 if ( ! (yy_buffer_stack) )
3084 YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
3085
3086 memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
3087
3088 (yy_buffer_stack_max) = num_to_alloc;
3089 (yy_buffer_stack_top) = 0;
3090 return;
3091 }
3092
3093 if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
3094
3095 /* Increase the buffer to prepare for a possible push. */
3096 yy_size_t grow_size = 8 /* arbitrary grow size */;
3097
3098 num_to_alloc = (yy_buffer_stack_max) + grow_size;
3099 (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
3100 ((yy_buffer_stack),
3101 num_to_alloc * sizeof(struct yy_buffer_state*)
3102 );
3103 if ( ! (yy_buffer_stack) )
3104 YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
3105
3106 /* zero only the new slots.*/
3107 memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
3108 (yy_buffer_stack_max) = num_to_alloc;
3109 }
3110 }
3111
3112 /** Setup the input buffer state to scan directly from a user-specified character buffer.
3113 * @param base the character buffer
3114 * @param size the size in bytes of the character buffer
3115 *
3116 * @return the newly allocated buffer state object.
3117 */
3118 YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
3119 {
3120 YY_BUFFER_STATE b;
3121
3122 if ( size < 2 ||
3123 base[size-2] != YY_END_OF_BUFFER_CHAR ||
3124 base[size-1] != YY_END_OF_BUFFER_CHAR )
3125 /* They forgot to leave room for the EOB's. */
3126 return NULL;
3127
3128 b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
3129 if ( ! b )
3130 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
3131
3132 b->yy_buf_size = (int) (size - 2); /* "- 2" to take care of EOB's */
3133 b->yy_buf_pos = b->yy_ch_buf = base;
3134 b->yy_is_our_buffer = 0;
3135 b->yy_input_file = NULL;
3136 b->yy_n_chars = b->yy_buf_size;
3137 b->yy_is_interactive = 0;
3138 b->yy_at_bol = 1;
3139 b->yy_fill_buffer = 0;
3140 b->yy_buffer_status = YY_BUFFER_NEW;
3141
3142 yy_switch_to_buffer( b );
3143
3144 return b;
3145 }
3146
3147 /** Setup the input buffer state to scan a string. The next call to yylex() will
3148 * scan from a @e copy of @a str.
3149 * @param yystr a NUL-terminated string to scan
3150 *
3151 * @return the newly allocated buffer state object.
3152 * @note If you want to scan bytes that may contain NUL values, then use
3153 * yy_scan_bytes() instead.
3154 */
3155 YY_BUFFER_STATE yy_scan_string (const char * yystr )
3156 {
3157
3158 return yy_scan_bytes( yystr, (int) strlen(yystr) );
3159 }
3160
3161 /** Setup the input buffer state to scan the given bytes. The next call to yylex() will
3162 * scan from a @e copy of @a bytes.
3163 * @param yybytes the byte buffer to scan
3164 * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
3165 *
3166 * @return the newly allocated buffer state object.
3167 */
3168 YY_BUFFER_STATE yy_scan_bytes (const char * yybytes, int _yybytes_len )
3169 {
3170 YY_BUFFER_STATE b;
3171 char *buf;
3172 yy_size_t n;
3173 int i;
3174
3175 /* Get memory for full buffer, including space for trailing EOB's. */
3176 n = (yy_size_t) (_yybytes_len + 2);
3177 buf = (char *) yyalloc( n );
3178 if ( ! buf )
3179 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
3180
3181 for ( i = 0; i < _yybytes_len; ++i )
3182 buf[i] = yybytes[i];
3183
3184 buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
3185
3186 b = yy_scan_buffer( buf, n );
3187 if ( ! b )
3188 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
3189
3190 /* It's okay to grow etc. this buffer, and we should throw it
3191 * away when we're done.
3192 */
3193 b->yy_is_our_buffer = 1;
3194
3195 return b;
3196 }
3197
3198 #ifndef YY_EXIT_FAILURE
3199 #define YY_EXIT_FAILURE 2
3200 #endif
3201
3202 static void yynoreturn yy_fatal_error (const char* msg )
3203 {
3204 fprintf( stderr, "%s\n", msg );
3205 exit( YY_EXIT_FAILURE );
3206 }
3207
3208 /* Redefine yyless() so it works in section 3 code. */
3209
3210 #undef yyless
3211 #define yyless(n) \
3212 do \
3213 { \
3214 /* Undo effects of setting up yytext. */ \
3215 int yyless_macro_arg = (n); \
3216 YY_LESS_LINENO(yyless_macro_arg);\
3217 yytext[yyleng] = (yy_hold_char); \
3218 (yy_c_buf_p) = yytext + yyless_macro_arg; \
3219 (yy_hold_char) = *(yy_c_buf_p); \
3220 *(yy_c_buf_p) = '\0'; \
3221 yyleng = yyless_macro_arg; \
3222 } \
3223 while ( 0 )
3224
3225 /* Accessor methods (get/set functions) to struct members. */
3226
3227 /** Get the current line number.
3228 *
3229 */
3230 int yyget_lineno (void)
3231 {
3232
3233 return yylineno;
3234 }
3235
3236 /** Get the input stream.
3237 *
3238 */
3239 FILE *yyget_in (void)
3240 {
3241 return yyin;
3242 }
3243
3244 /** Get the output stream.
3245 *
3246 */
3247 FILE *yyget_out (void)
3248 {
3249 return yyout;
3250 }
3251
3252 /** Get the length of the current token.
3253 *
3254 */
3255 int yyget_leng (void)
3256 {
3257 return yyleng;
3258 }
3259
3260 /** Get the current token.
3261 *
3262 */
3263
3264 char *yyget_text (void)
3265 {
3266 return yytext;
3267 }
3268
3269 /** Set the current line number.
3270 * @param _line_number line number
3271 *
3272 */
3273 void yyset_lineno (int _line_number )
3274 {
3275
3276 yylineno = _line_number;
3277 }
3278
3279 /** Set the input stream. This does not discard the current
3280 * input buffer.
3281 * @param _in_str A readable stream.
3282 *
3283 * @see yy_switch_to_buffer
3284 */
3285 void yyset_in (FILE * _in_str )
3286 {
3287 yyin = _in_str ;
3288 }
3289
3290 void yyset_out (FILE * _out_str )
3291 {
3292 yyout = _out_str ;
3293 }
3294
3295 int yyget_debug (void)
3296 {
3297 return yy_flex_debug;
3298 }
3299
3300 void yyset_debug (int _bdebug )
3301 {
3302 yy_flex_debug = _bdebug ;
3303 }
3304
3305 static int yy_init_globals (void)
3306 {
3307 /* Initialization is the same as for the non-reentrant scanner.
3308 * This function is called from yylex_destroy(), so don't allocate here.
3309 */
3310
3311 (yy_buffer_stack) = NULL;
3312 (yy_buffer_stack_top) = 0;
3313 (yy_buffer_stack_max) = 0;
3314 (yy_c_buf_p) = NULL;
3315 (yy_init) = 0;
3316 (yy_start) = 0;
3317
3318 /* Defined in main.c */
3319 #ifdef YY_STDINIT
3320 yyin = stdin;
3321 yyout = stdout;
3322 #else
3323 yyin = NULL;
3324 yyout = NULL;
3325 #endif
3326
3327 /* For future reference: Set errno on error, since we are called by
3328 * yylex_init()
3329 */
3330 return 0;
3331 }
3332
3333 /* yylex_destroy is for both reentrant and non-reentrant scanners. */
3334 int yylex_destroy (void)
3335 {
3336
3337 /* Pop the buffer stack, destroying each element. */
3338 while(YY_CURRENT_BUFFER){
3339 yy_delete_buffer( YY_CURRENT_BUFFER );
3340 YY_CURRENT_BUFFER_LVALUE = NULL;
3341 yypop_buffer_state();
3342 }
3343
3344 /* Destroy the stack itself. */
3345 yyfree((yy_buffer_stack) );
3346 (yy_buffer_stack) = NULL;
3347
3348 /* Reset the globals. This is important in a non-reentrant scanner so the next time
3349 * yylex() is called, initialization will occur. */
3350 yy_init_globals( );
3351
3352 return 0;
3353 }
3354
3355 /*
3356 * Internal utility routines.
3357 */
3358
3359 #ifndef yytext_ptr
3360 static void yy_flex_strncpy (char* s1, const char * s2, int n )
3361 {
3362
3363 int i;
3364 for ( i = 0; i < n; ++i )
3365 s1[i] = s2[i];
3366 }
3367 #endif
3368
3369 #ifdef YY_NEED_STRLEN
3370 static int yy_flex_strlen (const char * s )
3371 {
3372 int n;
3373 for ( n = 0; s[n]; ++n )
3374 ;
3375
3376 return n;
3377 }
3378 #endif
3379
3380 void *yyalloc (yy_size_t size )
3381 {
3382 return malloc(size);
3383 }
3384
3385 void *yyrealloc (void * ptr, yy_size_t size )
3386 {
3387
3388 /* The cast to (char *) in the following accommodates both
3389 * implementations that use char* generic pointers, and those
3390 * that use void* generic pointers. It works with the latter
3391 * because both ANSI C and C++ allow castless assignment from
3392 * any pointer type to void*, and deal with argument conversions
3393 * as though doing an assignment.
3394 */
3395 return realloc(ptr, size);
3396 }
3397
3398 void yyfree (void * ptr )
3399 {
3400 free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
3401 }
3402
3403 #define YYTABLES_NAME "yytables"
3404
3405 #line 265 "kate_lexer.l"
3406
3407
3408 int katedesc_wrap()
3409 {
3410 return 1;
3411 }
3412
3413 void set_macro_mode()
3414 {
3415 BEGIN(MACRO_1);
3416 }
3417
3418 void unset_macro_mode()
3419 {
3420 BEGIN(NORMAL);
3421 }
3422
3423 static void replace_macro(const char *name)
3424 {
3425 const char *body=find_macro(name);
3426 if (body) {
3427 ++freeze_nlines;
3428 main_buffer=YY_CURRENT_BUFFER;
3429 yy_scan_string(body);
3430 }
3431 }
3432
3433 void add_macro(const char *name,const char *body)
3434 {
3435 size_t nlen,blen;
3436
3437 if (!name || !body) {
3438 katedesc_error("name and body cannot be null");
3439 exit(-1);
3440 }
3441
3442 ++nmacros;
3443 macro_names=(char**)kate_realloc(macro_names,nmacros*sizeof(char*));
3444 macro_bodies=(char**)kate_realloc(macro_bodies,nmacros*sizeof(char*));
3445 if (!macro_names || !macro_bodies) {
3446 katedesc_error("out of memory");
3447 exit(-1);
3448 }
3449
3450 nlen=strlen(name);
3451 blen=strlen(body);
3452 macro_names[nmacros-1]=kate_malloc(nlen+1);
3453 macro_bodies[nmacros-1]=kate_malloc(blen+1);
3454 if (!macro_names[nmacros-1] || !macro_bodies[nmacros-1]) {
3455 katedesc_error("out of memory");
3456 exit(-1);
3457 }
3458 strcpy(macro_names[nmacros-1],name);
3459 strcpy(macro_bodies[nmacros-1],body);
3460 }
3461
3462 static const char *find_macro(const char *name)
3463 {
3464 size_t n;
3465 if (!name) {
3466 katedesc_error("macro name cannot be null");
3467 exit(-1);
3468 }
3469 for (n=0;n<nmacros;++n) {
3470 if (!strcmp(macro_names[n],name)) return macro_bodies[n];
3471 }
3472 katedesc_error("undefined macro");
3473 return NULL;
3474 }
3475
3476 void free_macros(void)
3477 {
3478 size_t n;
3479 for (n=0;n<nmacros;++n) {
3480 kate_free(macro_names[n]);
3481 kate_free(macro_bodies[n]);
3482 }
3483 kate_free(macro_names);
3484 kate_free(macro_bodies);
3485 }
3486
3487 static int get_nlines(const char *text)
3488 {
3489 int text_nlines=0;
3490 if (!text) {
3491 katedesc_error("null text");
3492 return 0;
3493 }
3494 while (*text) if (*text++=='\n') ++text_nlines;
3495 return text_nlines;
3496 }
3497
3498 static void process_nlines(const char *text)
3499 {
3500 if (!freeze_nlines) {
3501 nlines+=get_nlines(text);
3502 }
3503 }
3504
3505 void cleanup_lexer(void)
3506 {
3507 #ifdef FLEX_SCANNER
3508 #if (YY_FLEX_MAJOR_VERSION+0)*0x10000+(YY_FLEX_MINOR_VERSION+0)*0x100+(YY_FLEX_SUBMINOR_VERSION+0)>=0x020509
3509 katedesc_lex_destroy();
3510 #endif
3511 #endif
3512 }
3513
3514