cprover
xml_lex.yy.cpp
Go to the documentation of this file.
1 #line 2 "xml_lex.yy.cpp"
2 
3 #line 4 "xml_lex.yy.cpp"
4 
5 #define YY_INT_ALIGNED short int
6 
7 /* A lexical scanner generated by flex */
8 
9 #define yy_create_buffer yyxml_create_buffer
10 #define yy_delete_buffer yyxml_delete_buffer
11 #define yy_flex_debug yyxml_flex_debug
12 #define yy_init_buffer yyxml_init_buffer
13 #define yy_flush_buffer yyxml_flush_buffer
14 #define yy_load_buffer_state yyxml_load_buffer_state
15 #define yy_switch_to_buffer yyxml_switch_to_buffer
16 #define yyin yyxmlin
17 #define yyleng yyxmlleng
18 #define yylex yyxmllex
19 #define yylineno yyxmllineno
20 #define yyout yyxmlout
21 #define yyrestart yyxmlrestart
22 #define yytext yyxmltext
23 #define yywrap yyxmlwrap
24 #define yyalloc yyxmlalloc
25 #define yyrealloc yyxmlrealloc
26 #define yyfree yyxmlfree
27 
28 #define FLEX_SCANNER
29 #define YY_FLEX_MAJOR_VERSION 2
30 #define YY_FLEX_MINOR_VERSION 6
31 #define YY_FLEX_SUBMINOR_VERSION 1
32 #if YY_FLEX_SUBMINOR_VERSION > 0
33 #define FLEX_BETA
34 #endif
35 
36 /* First, we deal with platform-specific or compiler-specific issues. */
37 
38 /* begin standard C headers. */
39 #include <stdio.h>
40 #include <string.h>
41 #include <errno.h>
42 #include <stdlib.h>
43 
44 /* end standard C headers. */
45 
46 /* flex integer type definitions */
47 
48 #ifndef FLEXINT_H
49 #define FLEXINT_H
50 
51 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
52 
53 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
54 
55 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
56  * if you want the limit (max/min) macros for int types.
57  */
58 #ifndef __STDC_LIMIT_MACROS
59 #define __STDC_LIMIT_MACROS 1
60 #endif
61 
62 #include <inttypes.h>
63 typedef int8_t flex_int8_t;
64 typedef uint8_t flex_uint8_t;
65 typedef int16_t flex_int16_t;
66 typedef uint16_t flex_uint16_t;
67 typedef int32_t flex_int32_t;
68 typedef uint32_t flex_uint32_t;
69 #else
70 typedef signed char flex_int8_t;
71 typedef short int flex_int16_t;
72 typedef int flex_int32_t;
73 typedef unsigned char flex_uint8_t;
74 typedef unsigned short int flex_uint16_t;
75 typedef unsigned int flex_uint32_t;
76 
77 /* Limits of integral types. */
78 #ifndef INT8_MIN
79 #define INT8_MIN (-128)
80 #endif
81 #ifndef INT16_MIN
82 #define INT16_MIN (-32767-1)
83 #endif
84 #ifndef INT32_MIN
85 #define INT32_MIN (-2147483647-1)
86 #endif
87 #ifndef INT8_MAX
88 #define INT8_MAX (127)
89 #endif
90 #ifndef INT16_MAX
91 #define INT16_MAX (32767)
92 #endif
93 #ifndef INT32_MAX
94 #define INT32_MAX (2147483647)
95 #endif
96 #ifndef UINT8_MAX
97 #define UINT8_MAX (255U)
98 #endif
99 #ifndef UINT16_MAX
100 #define UINT16_MAX (65535U)
101 #endif
102 #ifndef UINT32_MAX
103 #define UINT32_MAX (4294967295U)
104 #endif
105 
106 #endif /* ! C99 */
107 
108 #endif /* ! FLEXINT_H */
109 
110 /* TODO: this is always defined, so inline it */
111 #define yyconst const
112 
113 #if defined(__GNUC__) && __GNUC__ >= 3
114 #define yynoreturn __attribute__((__noreturn__))
115 #else
116 #define yynoreturn
117 #endif
118 
119 /* Returned upon end-of-file. */
120 #define YY_NULL 0
121 
122 /* Promotes a possibly negative, possibly signed char to an unsigned
123  * integer for use as an array index. If the signed char is negative,
124  * we want to instead treat it as an 8-bit unsigned char, hence the
125  * double cast.
126  */
127 #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
128 
129 /* Enter a start condition. This macro really ought to take a parameter,
130  * but we do it the disgusting crufty way forced on us by the ()-less
131  * definition of BEGIN.
132  */
133 #define BEGIN (yy_start) = 1 + 2 *
134 
135 /* Translate the current start state into a value that can be later handed
136  * to BEGIN to return to the state. The YYSTATE alias is for lex
137  * compatibility.
138  */
139 #define YY_START (((yy_start) - 1) / 2)
140 #define YYSTATE YY_START
141 
142 /* Action number for EOF rule of a given start state. */
143 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
144 
145 /* Special action meaning "start processing a new file". */
146 #define YY_NEW_FILE yyxmlrestart(yyxmlin )
147 
148 #define YY_END_OF_BUFFER_CHAR 0
149 
150 /* Size of default input buffer. */
151 #ifndef YY_BUF_SIZE
152 #ifdef __ia64__
153 /* On IA-64, the buffer size is 16k, not 8k.
154  * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
155  * Ditto for the __ia64__ case accordingly.
156  */
157 #define YY_BUF_SIZE 32768
158 #else
159 #define YY_BUF_SIZE 16384
160 #endif /* __ia64__ */
161 #endif
162 
163 /* The state buf must be large enough to hold one state per character in the main buffer.
164  */
165 #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
166 
167 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
168 #define YY_TYPEDEF_YY_BUFFER_STATE
170 #endif
171 
172 #ifndef YY_TYPEDEF_YY_SIZE_T
173 #define YY_TYPEDEF_YY_SIZE_T
174 typedef size_t yy_size_t;
175 #endif
176 
177 extern int yyxmlleng;
178 
179 extern FILE *yyxmlin, *yyxmlout;
180 
181 #define EOB_ACT_CONTINUE_SCAN 0
182 #define EOB_ACT_END_OF_FILE 1
183 #define EOB_ACT_LAST_MATCH 2
184 
185  #define YY_LESS_LINENO(n)
186  #define YY_LINENO_REWIND_TO(ptr)
187 
188 /* Return all but the first "n" matched characters back to the input stream. */
189 #define yyless(n) \
190  do \
191  { \
192  /* Undo effects of setting up yyxmltext. */ \
193  yy_size_t yyless_macro_arg = (n); \
194  YY_LESS_LINENO(yyless_macro_arg);\
195  *yy_cp = (yy_hold_char); \
196  YY_RESTORE_YY_MORE_OFFSET \
197  (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
198  YY_DO_BEFORE_ACTION; /* set up yyxmltext again */ \
199  } \
200  while ( 0 )
201 
202 #define unput(c) yyunput( c, (yytext_ptr) )
203 
204 #ifndef YY_STRUCT_YY_BUFFER_STATE
205 #define YY_STRUCT_YY_BUFFER_STATE
206 struct yy_buffer_state
207  {
208  FILE *yy_input_file;
209 
210  char *yy_ch_buf; /* input buffer */
211  char *yy_buf_pos; /* current position in input buffer */
212 
213  /* Size of input buffer in bytes, not including room for EOB
214  * characters.
215  */
216  int yy_buf_size;
217 
218  /* Number of characters read into yy_ch_buf, not including EOB
219  * characters.
220  */
221  int yy_n_chars;
222 
223  /* Whether we "own" the buffer - i.e., we know we created it,
224  * and can realloc() it to grow it, and should free() it to
225  * delete it.
226  */
227  int yy_is_our_buffer;
228 
229  /* Whether this is an "interactive" input source; if so, and
230  * if we're using stdio for input, then we want to use getc()
231  * instead of fread(), to make sure we stop fetching input after
232  * each newline.
233  */
234  int yy_is_interactive;
235 
236  /* Whether we're considered to be at the beginning of a line.
237  * If so, '^' rules will be active on the next match, otherwise
238  * not.
239  */
240  int yy_at_bol;
241 
242  int yy_bs_lineno;
243  int yy_bs_column;
245  /* Whether to try to fill the input buffer when we reach the
246  * end of it.
247  */
248  int yy_fill_buffer;
249 
250  int yy_buffer_status;
251 
252 #define YY_BUFFER_NEW 0
253 #define YY_BUFFER_NORMAL 1
254  /* When an EOF's been seen but there's still some text to process
255  * then we mark the buffer as YY_EOF_PENDING, to indicate that we
256  * shouldn't try reading from the input source any more. We might
257  * still have a bunch of tokens to match, though, because of
258  * possible backing-up.
259  *
260  * When we actually see the EOF, we change the status to "new"
261  * (via yyxmlrestart()), so that the user can continue scanning by
262  * just pointing yyxmlin at a new input file.
263  */
264 #define YY_BUFFER_EOF_PENDING 2
265 
266  };
267 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
268 
269 /* Stack of input buffers. */
270 static size_t yy_buffer_stack_top = 0;
271 static size_t yy_buffer_stack_max = 0;
274 /* We provide macros for accessing buffer states in case in the
275  * future we want to put the buffer states in a more general
276  * "scanner state".
277  *
278  * Returns the top of the stack, or NULL.
279  */
280 #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
281  ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
282  : NULL)
283 
284 /* Same as previous macro, but useful when we know that the buffer stack is not
285  * NULL or when we need an lvalue. For internal use only.
286  */
287 #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
288 
289 /* yy_hold_char holds the character lost when yyxmltext is formed. */
290 static char yy_hold_char;
291 static int yy_n_chars; /* number of characters read into yy_ch_buf */
293 
294 /* Points to current character in buffer. */
295 static char *yy_c_buf_p = NULL;
296 static int yy_init = 0; /* whether we need to initialize */
297 static int yy_start = 0; /* start state number */
298 
299 /* Flag which is used to allow yyxmlwrap()'s to do buffer switches
300  * instead of setting up a fresh yyxmlin. A bit of a hack ...
301  */
303 
304 void yyxmlrestart (FILE *input_file );
305 void yyxml_switch_to_buffer (YY_BUFFER_STATE new_buffer );
306 YY_BUFFER_STATE yyxml_create_buffer (FILE *file,int size );
309 void yyxmlpush_buffer_state (YY_BUFFER_STATE new_buffer );
310 void yyxmlpop_buffer_state (void );
311 
312 static void yyxmlensure_buffer_stack (void );
313 static void yyxml_load_buffer_state (void );
314 static void yyxml_init_buffer (YY_BUFFER_STATE b,FILE *file );
315 
316 #define YY_FLUSH_BUFFER yyxml_flush_buffer(YY_CURRENT_BUFFER )
317 
318 YY_BUFFER_STATE yyxml_scan_buffer (char *base,yy_size_t size );
320 YY_BUFFER_STATE yyxml_scan_bytes (yyconst char *bytes,int len );
321 
322 void *yyxmlalloc (yy_size_t );
323 void *yyxmlrealloc (void *,yy_size_t );
324 void yyxmlfree (void * );
325 
326 #define yy_new_buffer yyxml_create_buffer
327 
328 #define yy_set_interactive(is_interactive) \
329  { \
330  if ( ! YY_CURRENT_BUFFER ){ \
331  yyxmlensure_buffer_stack (); \
332  YY_CURRENT_BUFFER_LVALUE = \
333  yyxml_create_buffer(yyxmlin,YY_BUF_SIZE ); \
334  } \
335  YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
336  }
337 
338 #define yy_set_bol(at_bol) \
339  { \
340  if ( ! YY_CURRENT_BUFFER ){\
341  yyxmlensure_buffer_stack (); \
342  YY_CURRENT_BUFFER_LVALUE = \
343  yyxml_create_buffer(yyxmlin,YY_BUF_SIZE ); \
344  } \
345  YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
346  }
347 
348 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
349 
350 /* Begin user sect3 */
351 
352 typedef unsigned char YY_CHAR;
353 
354 FILE *yyxmlin = NULL, *yyxmlout = NULL;
355 
356 typedef int yy_state_type;
357 
358 extern int yyxmllineno;
359 
360 int yyxmllineno = 1;
361 
362 extern char *yyxmltext;
363 #ifdef yytext_ptr
364 #undef yytext_ptr
365 #endif
366 #define yytext_ptr yyxmltext
367 
368 static yy_state_type yy_get_previous_state (void );
369 static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
370 static int yy_get_next_buffer (void );
371 static void yynoreturn yy_fatal_error (yyconst char* msg );
372 
373 /* Done after the current pattern has been matched and before the
374  * corresponding action - sets up yyxmltext.
375  */
376 #define YY_DO_BEFORE_ACTION \
377  (yytext_ptr) = yy_bp; \
378  yyxmlleng = (int) (yy_cp - yy_bp); \
379  (yy_hold_char) = *yy_cp; \
380  *yy_cp = '\0'; \
381  (yy_c_buf_p) = yy_cp;
382 
383 #define YY_NUM_RULES 19
384 #define YY_END_OF_BUFFER 20
385 /* This struct is not used in this scanner,
386  but its presence is necessary. */
387 struct yy_trans_info
388  {
391  };
393  { 0,
394  0, 0, 0, 0, 0, 0, 0, 0, 20, 17,
395  1, 1, 1, 17, 17, 2, 17, 3, 4, 17,
396  5, 13, 18, 13, 17, 17, 1, 1, 15, 18,
397  15, 15, 15, 1, 0, 1, 0, 6, 0, 0,
398  0, 0, 0, 9, 11, 8, 4, 4, 7, 5,
399  13, 0, 0, 0, 0, 18, 0, 0, 0, 1,
400  18, 16, 0, 0, 0, 0, 0, 0, 0, 0,
401  8, 7, 7, 0, 0, 0, 0, 13, 16, 16,
402  0, 0, 0, 0, 0, 0, 0, 0, 0, 13,
403  0, 0, 0, 0, 0, 0, 10, 0, 0, 0,
404 
405  12, 0, 12, 12, 0, 14, 0
406  } ;
407 
408 static yyconst YY_CHAR yy_ec[256] =
409  { 0,
410  1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
411  1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
412  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
413  1, 2, 5, 6, 7, 1, 1, 8, 9, 1,
414  1, 1, 1, 1, 10, 11, 12, 13, 13, 13,
415  13, 13, 13, 13, 13, 13, 13, 11, 14, 15,
416  16, 17, 18, 1, 19, 19, 20, 21, 22, 19,
417  23, 23, 23, 23, 23, 23, 23, 23, 24, 25,
418  23, 23, 23, 26, 23, 23, 23, 23, 27, 23,
419  1, 1, 28, 1, 29, 1, 19, 19, 19, 19,
420 
421  19, 19, 23, 23, 23, 23, 23, 30, 31, 23,
422  23, 23, 23, 23, 23, 23, 23, 23, 23, 32,
423  23, 23, 1, 1, 1, 1, 1, 29, 29, 29,
424  29, 29, 29, 29, 29, 29, 29, 29, 29, 29,
425  29, 29, 29, 29, 29, 29, 29, 29, 29, 29,
426  29, 29, 29, 29, 29, 29, 29, 29, 29, 29,
427  29, 29, 29, 29, 29, 29, 29, 29, 29, 29,
428  29, 29, 29, 29, 29, 29, 29, 29, 29, 29,
429  29, 29, 29, 29, 29, 29, 29, 29, 29, 29,
430  29, 29, 29, 29, 29, 29, 29, 29, 29, 29,
431 
432  29, 29, 29, 29, 29, 29, 29, 29, 29, 29,
433  29, 29, 29, 29, 29, 29, 29, 29, 29, 29,
434  29, 29, 29, 29, 29, 29, 29, 29, 29, 29,
435  29, 29, 29, 29, 29, 29, 29, 29, 29, 29,
436  29, 29, 29, 29, 29, 29, 29, 29, 29, 29,
437  29, 29, 29, 29, 29
438  } ;
439 
440 static yyconst YY_CHAR yy_meta[33] =
441  { 0,
442  1, 2, 2, 2, 3, 1, 4, 1, 1, 5,
443  6, 3, 7, 1, 8, 1, 1, 3, 9, 9,
444  10, 9, 11, 11, 11, 11, 11, 1, 12, 11,
445  11, 11
446  } ;
447 
449  { 0,
450  0, 0, 30, 32, 45, 60, 38, 40, 295, 330,
451  48, 67, 76, 31, 50, 330, 90, 330, 70, 272,
452  0, 53, 68, 81, 277, 107, 83, 101, 330, 268,
453  85, 0, 265, 111, 276, 118, 59, 330, 272, 98,
454  271, 112, 80, 330, 241, 0, 330, 269, 120, 0,
455  123, 263, 263, 258, 0, 119, 86, 121, 254, 134,
456  248, 136, 116, 136, 119, 138, 151, 252, 233, 225,
457  0, 330, 252, 128, 149, 133, 0, 154, 330, 251,
458  145, 0, 151, 0, 238, 216, 198, 153, 0, 165,
459  213, 212, 211, 214, 161, 135, 330, 130, 125, 70,
460 
461  166, 56, 330, 51, 24, 330, 330, 173, 185, 197,
462  209, 220, 228, 240, 249, 257, 265, 275, 281, 290,
463  295, 299, 303, 313, 319
464  } ;
465 
467  { 0,
468  107, 1, 108, 108, 1, 1, 109, 109, 107, 107,
469  107, 107, 107, 110, 111, 107, 112, 107, 107, 107,
470  113, 114, 114, 114, 115, 112, 107, 107, 107, 107,
471  107, 26, 107, 107, 26, 107, 110, 107, 116, 111,
472  117, 26, 118, 107, 107, 119, 107, 107, 107, 113,
473  114, 114, 115, 120, 26, 114, 107, 115, 107, 107,
474  107, 107, 107, 116, 107, 117, 107, 107, 107, 107,
475  119, 107, 107, 107, 120, 107, 121, 114, 107, 107,
476  107, 122, 107, 123, 124, 107, 107, 107, 125, 114,
477  121, 122, 123, 124, 124, 107, 107, 125, 107, 107,
478 
479  107, 107, 107, 107, 107, 107, 0, 107, 107, 107,
480  107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
481  107, 107, 107, 107, 107
482  } ;
483 
485  { 0,
486  10, 11, 12, 13, 10, 14, 10, 10, 15, 10,
487  10, 16, 10, 10, 17, 18, 19, 20, 21, 21,
488  21, 21, 21, 21, 21, 21, 21, 10, 21, 21,
489  21, 21, 23, 24, 23, 24, 38, 25, 39, 25,
490  30, 31, 30, 31, 26, 106, 26, 27, 28, 34,
491  34, 34, 32, 103, 32, 52, 10, 41, 38, 26,
492  53, 10, 27, 28, 38, 33, 39, 33, 34, 34,
493  34, 10, 47, 48, 26, 54, 10, 34, 36, 34,
494  105, 35, 55, 56, 34, 34, 34, 61, 53, 68,
495  35, 42, 42, 42, 43, 55, 102, 55, 76, 55,
496 
497  69, 44, 34, 60, 34, 41, 38, 45, 42, 42,
498  42, 59, 34, 34, 34, 55, 107, 77, 44, 34,
499  34, 34, 72, 73, 45, 52, 54, 107, 81, 107,
500  53, 83, 35, 55, 78, 34, 34, 34, 79, 80,
501  88, 101, 107, 90, 107, 76, 78, 82, 55, 37,
502  84, 40, 67, 67, 67, 107, 52, 81, 37, 89,
503  100, 53, 90, 83, 40, 88, 90, 52, 103, 104,
504  99, 69, 53, 22, 22, 22, 22, 22, 22, 22,
505  22, 22, 22, 22, 22, 29, 29, 29, 29, 29,
506  29, 29, 29, 29, 29, 29, 29, 37, 37, 37,
507 
508  37, 37, 37, 37, 37, 37, 37, 37, 37, 40,
509  40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
510  40, 46, 46, 95, 40, 37, 78, 97, 46, 46,
511  46, 46, 50, 50, 50, 96, 50, 50, 50, 50,
512  51, 51, 51, 51, 51, 51, 51, 95, 51, 51,
513  51, 51, 58, 79, 72, 87, 86, 58, 58, 58,
514  64, 85, 55, 68, 74, 64, 64, 64, 66, 57,
515  54, 47, 70, 66, 66, 66, 67, 65, 63, 67,
516  43, 62, 55, 57, 67, 71, 71, 71, 49, 71,
517  71, 71, 71, 75, 107, 107, 107, 107, 75, 75,
518 
519  75, 91, 107, 91, 91, 92, 107, 92, 92, 93,
520  107, 93, 93, 94, 94, 94, 94, 94, 94, 94,
521  94, 94, 94, 94, 94, 98, 107, 98, 98, 9,
522  107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
523  107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
524  107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
525  107, 107
526  } ;
527 
529  { 0,
530  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
531  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
532  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
533  1, 1, 3, 3, 4, 4, 14, 3, 14, 4,
534  7, 7, 8, 8, 3, 105, 4, 5, 5, 11,
535  11, 11, 7, 104, 8, 22, 5, 15, 15, 5,
536  22, 5, 6, 6, 37, 7, 37, 8, 12, 12,
537  12, 6, 19, 19, 6, 23, 6, 13, 13, 13,
538  102, 12, 23, 24, 27, 27, 27, 31, 24, 43,
539  13, 17, 17, 17, 17, 24, 100, 27, 57, 31,
540 
541  43, 17, 28, 28, 28, 40, 40, 17, 26, 26,
542  26, 26, 34, 34, 34, 28, 42, 57, 26, 36,
543  36, 36, 49, 49, 26, 51, 56, 58, 63, 42,
544  51, 65, 36, 56, 58, 60, 60, 60, 62, 62,
545  74, 99, 64, 98, 66, 76, 76, 63, 60, 64,
546  65, 66, 67, 67, 67, 75, 78, 81, 81, 74,
547  96, 78, 75, 83, 83, 88, 88, 90, 101, 101,
548  95, 67, 90, 108, 108, 108, 108, 108, 108, 108,
549  108, 108, 108, 108, 108, 109, 109, 109, 109, 109,
550  109, 109, 109, 109, 109, 109, 109, 110, 110, 110,
551 
552  110, 110, 110, 110, 110, 110, 110, 110, 110, 111,
553  111, 111, 111, 111, 111, 111, 111, 111, 111, 111,
554  111, 112, 112, 94, 93, 92, 91, 87, 112, 112,
555  112, 112, 113, 113, 113, 86, 113, 113, 113, 113,
556  114, 114, 114, 114, 114, 114, 114, 85, 114, 114,
557  114, 114, 115, 80, 73, 70, 69, 115, 115, 115,
558  116, 68, 61, 59, 54, 116, 116, 116, 117, 53,
559  52, 48, 45, 117, 117, 117, 118, 41, 39, 118,
560  35, 33, 30, 25, 118, 119, 119, 119, 20, 119,
561  119, 119, 119, 120, 9, 0, 0, 0, 120, 120,
562 
563  120, 121, 0, 121, 121, 122, 0, 122, 122, 123,
564  0, 123, 123, 124, 124, 124, 124, 124, 124, 124,
565  124, 124, 124, 124, 124, 125, 0, 125, 125, 107,
566  107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
567  107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
568  107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
569  107, 107
570  } ;
571 
574 
575 extern int yyxml_flex_debug;
577 
578 /* The intent behind this definition is that it'll catch
579  * any uses of REJECT which flex missed.
580  */
581 #define REJECT reject_used_but_not_detected
582 #define yymore() yymore_used_but_not_detected
583 #define YY_MORE_ADJ 0
584 #define YY_RESTORE_YY_MORE_OFFSET
585 char *yyxmltext;
586 #line 1 "scanner.l"
587 #define YY_NO_INPUT 1
588 #define YY_NO_UNISTD_H 1
589 #line 8 "scanner.l"
590 
591 #include <cctype>
592 #include <cstring>
593 #include <cstdlib>
594 
595 #include "xml_parser.h"
596 #include "xml_y.tab.h"
597 
598 #define PARSER xml_parser
599 
600 //static int keep; /* To store start condition */
601 
602 static char *word(char *s)
603 {
604  char *buf;
605  int i, k;
606  for (k = 0; isspace(s[k]) || s[k] == '<'; k++) ;
607  for (i = k; s[i] && ! isspace(s[i]); i++) ;
608  buf = (char *)malloc((i - k + 1) * sizeof(char));
609  strncpy(buf, &s[k], i - k);
610  buf[i - k] = '\0';
611  return buf;
612 }
613 
614 #include <util/pragma_wsign_compare.def>
615 #include <util/pragma_wnull_conversion.def>
616 #include <util/pragma_wdeprecated_register.def>
617 
618 /*
619  * The CONTENT mode is used for the content of elements, i.e.,
620  * between the ">" and "<" of element tags.
621  * The INITIAL mode is used outside the top level element
622  * and inside markup.
623  */
624 
625 
626 
627 #line 628 "xml_lex.yy.cpp"
628 
629 #define INITIAL 0
630 #define CONTENT 1
631 #define PI 2
632 #define DTD 3
633 
634 #ifndef YY_NO_UNISTD_H
635 /* Special case for "unistd.h", since it is non-ANSI. We include it way
636  * down here because we want the user's section 1 to have been scanned first.
637  * The user has a chance to override it with an option.
638  */
639 #include <unistd.h>
640 #endif
641 
642 #ifndef YY_EXTRA_TYPE
643 #define YY_EXTRA_TYPE void *
644 #endif
645 
646 static int yy_init_globals (void );
647 
648 /* Accessor methods to globals.
649  These are made visible to non-reentrant scanners for convenience. */
650 
651 int yyxmllex_destroy (void );
652 
653 int yyxmlget_debug (void );
654 
655 void yyxmlset_debug (int debug_flag );
656 
658 
659 void yyxmlset_extra (YY_EXTRA_TYPE user_defined );
660 
661 FILE *yyxmlget_in (void );
662 
663 void yyxmlset_in (FILE * _in_str );
664 
665 FILE *yyxmlget_out (void );
666 
667 void yyxmlset_out (FILE * _out_str );
668 
669  int yyxmlget_leng (void );
670 
671 char *yyxmlget_text (void );
672 
673 int yyxmlget_lineno (void );
674 
675 void yyxmlset_lineno (int _line_number );
676 
677 /* Macros after this point can all be overridden by user definitions in
678  * section 1.
679  */
680 
681 #ifndef YY_SKIP_YYWRAP
682 #ifdef __cplusplus
683 extern "C" int yyxmlwrap (void );
684 #else
685 extern int yyxmlwrap (void );
686 #endif
687 #endif
688 
689 #ifndef YY_NO_UNPUT
690 
691 #endif
692 
693 #ifndef yytext_ptr
694 static void yy_flex_strncpy (char *,yyconst char *,int );
695 #endif
696 
697 #ifdef YY_NEED_STRLEN
698 static int yy_flex_strlen (yyconst char * );
699 #endif
700 
701 #ifndef YY_NO_INPUT
702 
703 #ifdef __cplusplus
704 static int yyinput (void );
705 #else
706 static int input (void );
707 #endif
708 
709 #endif
710 
711 /* Amount of stuff to slurp up with each read. */
712 #ifndef YY_READ_BUF_SIZE
713 #ifdef __ia64__
714 /* On IA-64, the buffer size is 16k, not 8k */
715 #define YY_READ_BUF_SIZE 16384
716 #else
717 #define YY_READ_BUF_SIZE 8192
718 #endif /* __ia64__ */
719 #endif
720 
721 /* Copy whatever the last rule matched to the standard output. */
722 #ifndef ECHO
723 /* This used to be an fputs(), but since the string might contain NUL's,
724  * we now use fwrite().
725  */
726 #define ECHO do { if (fwrite( yyxmltext, (size_t) yyxmlleng, 1, yyxmlout )) {} } while (0)
727 #endif
728 
729 /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
730  * is returned in "result".
731  */
732 #ifndef YY_INPUT
733 #define YY_INPUT(buf,result,max_size) \
734  if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
735  { \
736  int c = '*'; \
737  int n; \
738  for ( n = 0; n < max_size && \
739  (c = getc( yyxmlin )) != EOF && c != '\n'; ++n ) \
740  buf[n] = (char) c; \
741  if ( c == '\n' ) \
742  buf[n++] = (char) c; \
743  if ( c == EOF && ferror( yyxmlin ) ) \
744  YY_FATAL_ERROR( "input in flex scanner failed" ); \
745  result = n; \
746  } \
747  else \
748  { \
749  errno=0; \
750  while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyxmlin)) == 0 && ferror(yyxmlin)) \
751  { \
752  if( errno != EINTR) \
753  { \
754  YY_FATAL_ERROR( "input in flex scanner failed" ); \
755  break; \
756  } \
757  errno=0; \
758  clearerr(yyxmlin); \
759  } \
760  }\
761 \
762 
763 #endif
764 
765 /* No semi-colon after return; correct usage is to write "yyterminate();" -
766  * we don't want an extra ';' after the "return" because that will cause
767  * some compilers to complain about unreachable statements.
768  */
769 #ifndef yyterminate
770 #define yyterminate() return YY_NULL
771 #endif
772 
773 /* Number of entries by which start-condition stack grows. */
774 #ifndef YY_START_STACK_INCR
775 #define YY_START_STACK_INCR 25
776 #endif
777 
778 /* Report a fatal error. */
779 #ifndef YY_FATAL_ERROR
780 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
781 #endif
782 
783 /* end tables serialization structures and prototypes */
784 
785 /* Default declaration of generated scanner - a define so the user can
786  * easily add parameters.
787  */
788 #ifndef YY_DECL
789 #define YY_DECL_IS_OURS 1
790 
791 extern int yyxmllex (void);
792 
793 #define YY_DECL int yyxmllex (void)
794 #endif /* !YY_DECL */
795 
796 /* Code executed at the beginning of each rule, after yyxmltext and yyxmlleng
797  * have been set up.
798  */
799 #ifndef YY_USER_ACTION
800 #define YY_USER_ACTION
801 #endif
802 
803 /* Code executed at the end of each rule. */
804 #ifndef YY_BREAK
805 #define YY_BREAK /*LINTED*/break;
806 #endif
807 
808 #define YY_RULE_SETUP \
809  YY_USER_ACTION
810 
814 {
815  yy_state_type yy_current_state;
816  char *yy_cp, *yy_bp;
817  int yy_act;
818 
819  if ( !(yy_init) )
820  {
821  (yy_init) = 1;
822 
823 #ifdef YY_USER_INIT
824  YY_USER_INIT;
825 #endif
826 
827  if ( ! (yy_start) )
828  (yy_start) = 1; /* first start state */
829 
830  if ( ! yyxmlin )
831  yyxmlin = stdin;
832 
833  if ( ! yyxmlout )
834  yyxmlout = stdout;
835 
836  if ( ! YY_CURRENT_BUFFER ) {
840  }
841 
843  }
844 
845  {
846 #line 62 "scanner.l"
847 
848 
849 #line 850 "xml_lex.yy.cpp"
850 
851  while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */
852  {
853  yy_cp = (yy_c_buf_p);
854 
855  /* Support of yyxmltext. */
856  *yy_cp = (yy_hold_char);
857 
858  /* yy_bp points to the position in yy_ch_buf of the start of
859  * the current run.
860  */
861  yy_bp = yy_cp;
862 
863  yy_current_state = (yy_start);
864 yy_match:
865  do
866  {
867  YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ;
868  if ( yy_accept[yy_current_state] )
869  {
870  (yy_last_accepting_state) = yy_current_state;
871  (yy_last_accepting_cpos) = yy_cp;
872  }
873  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
874  {
875  yy_current_state = (int) yy_def[yy_current_state];
876  if ( yy_current_state >= 108 )
877  yy_c = yy_meta[(unsigned int) yy_c];
878  }
879  yy_current_state = yy_nxt[yy_base[yy_current_state] + (flex_int16_t) yy_c];
880  ++yy_cp;
881  }
882  while ( yy_current_state != 107 );
883  yy_cp = (yy_last_accepting_cpos);
884  yy_current_state = (yy_last_accepting_state);
885 
886 yy_find_action:
887  yy_act = yy_accept[yy_current_state];
888 
890 
891 do_action: /* This label is used only to access EOF actions. */
892 
893  switch ( yy_act )
894  { /* beginning of action switch */
895  case 0: /* must back up */
896  /* undo the effects of YY_DO_BEFORE_ACTION */
897  *yy_cp = (yy_hold_char);
898  yy_cp = (yy_last_accepting_cpos);
899  yy_current_state = (yy_last_accepting_state);
900  goto yy_find_action;
901 
902 case 1:
903 /* rule 1 can match eol */
905 #line 64 "scanner.l"
906 {/* skip */}
907  YY_BREAK
908 case 2:
910 #line 65 "scanner.l"
911 {return SLASH;}
912  YY_BREAK
913 case 3:
915 #line 66 "scanner.l"
916 {return EQ;}
917  YY_BREAK
918 case 4:
919 /* rule 4 can match eol */
921 #line 67 "scanner.l"
922 {BEGIN(CONTENT); return CLOSE;}
923  YY_BREAK
924 case 5:
926 #line 68 "scanner.l"
927 {yyxmllval.s=strdup(yyxmltext); return NAME;}
928  YY_BREAK
929 case 6:
930 /* rule 6 can match eol */
932 #line 69 "scanner.l"
933 {yyxmllval.s=strdup(yyxmltext); return VALUE;}
934  YY_BREAK
935 case 7:
936 /* rule 7 can match eol */
938 #line 70 "scanner.l"
939 {BEGIN(INITIAL); return ENDPI;}
940  YY_BREAK
941 case 8:
942 /* rule 8 can match eol */
944 #line 72 "scanner.l"
946  YY_BREAK
947 case 9:
948 /* rule 9 can match eol */
950 #line 73 "scanner.l"
951 {BEGIN(INITIAL); return END;}
952  YY_BREAK
953 case 10:
954 /* rule 10 can match eol */
956 #line 74 "scanner.l"
957 {BEGIN(INITIAL); return STARTXMLDECL;}
958  YY_BREAK
959 case 11:
960 /* rule 11 can match eol */
962 #line 75 "scanner.l"
963 {BEGIN(PI); yyxmllval.s=word(yyxmltext); return STARTPI;}
964  YY_BREAK
965 case 12:
966 /* rule 12 can match eol */
968 #line 76 "scanner.l"
969 {yyxmllval.s=strdup(yyxmltext); return COMMENT;}
970  YY_BREAK
971 case 13:
972 /* rule 13 can match eol */
974 #line 78 "scanner.l"
975 {yyxmllval.s=strdup(yyxmltext); return DATA;}
976  YY_BREAK
977 case 14:
978 /* rule 14 can match eol */
980 #line 80 "scanner.l"
981 {BEGIN(DTD); /* skip */}
982  YY_BREAK
983 case 15:
985 #line 81 "scanner.l"
986 {/* skip */}
987  YY_BREAK
988 case 16:
989 /* rule 16 can match eol */
991 #line 82 "scanner.l"
992 {BEGIN(INITIAL); /* skip */}
993  YY_BREAK
994 case 17:
996 #line 84 "scanner.l"
997 { yyxmlerror("unexpected character"); }
998  YY_BREAK
999 case 18:
1000 /* rule 18 can match eol */
1002 #line 85 "scanner.l"
1003 {/* skip, must be an extra one at EOF */;}
1004  YY_BREAK
1005 case 19:
1007 #line 87 "scanner.l"
1008 YY_FATAL_ERROR( "flex scanner jammed" );
1009  YY_BREAK
1010 #line 1011 "xml_lex.yy.cpp"
1011 case YY_STATE_EOF(INITIAL):
1012 case YY_STATE_EOF(CONTENT):
1013 case YY_STATE_EOF(PI):
1014 case YY_STATE_EOF(DTD):
1015  yyterminate();
1016 
1017  case YY_END_OF_BUFFER:
1018  {
1019  /* Amount of text matched not including the EOB char. */
1020  int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
1021 
1022  /* Undo the effects of YY_DO_BEFORE_ACTION. */
1023  *yy_cp = (yy_hold_char);
1025 
1026  if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
1027  {
1028  /* We're scanning a new file or input source. It's
1029  * possible that this happened because the user
1030  * just pointed yyxmlin at a new source and called
1031  * yyxmllex(). If so, then we have to assure
1032  * consistency between YY_CURRENT_BUFFER and our
1033  * globals. Here is the right place to do so, because
1034  * this is the first action (other than possibly a
1035  * back-up) that will match for the new input source.
1036  */
1037  (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1038  YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyxmlin;
1039  YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
1040  }
1041 
1042  /* Note that here we test for yy_c_buf_p "<=" to the position
1043  * of the first EOB in the buffer, since yy_c_buf_p will
1044  * already have been incremented past the NUL character
1045  * (since all states make transitions on EOB to the
1046  * end-of-buffer state). Contrast this with the test
1047  * in input().
1048  */
1049  if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
1050  { /* This was really a NUL. */
1051  yy_state_type yy_next_state;
1052 
1053  (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
1054 
1055  yy_current_state = yy_get_previous_state( );
1056 
1057  /* Okay, we're now positioned to make the NUL
1058  * transition. We couldn't have
1059  * yy_get_previous_state() go ahead and do it
1060  * for us because it doesn't know how to deal
1061  * with the possibility of jamming (and we don't
1062  * want to build jamming into it because then it
1063  * will run more slowly).
1064  */
1065 
1066  yy_next_state = yy_try_NUL_trans( yy_current_state );
1067 
1068  yy_bp = (yytext_ptr) + YY_MORE_ADJ;
1069 
1070  if ( yy_next_state )
1071  {
1072  /* Consume the NUL. */
1073  yy_cp = ++(yy_c_buf_p);
1074  yy_current_state = yy_next_state;
1075  goto yy_match;
1076  }
1077 
1078  else
1079  {
1080  yy_cp = (yy_last_accepting_cpos);
1081  yy_current_state = (yy_last_accepting_state);
1082  goto yy_find_action;
1083  }
1084  }
1085 
1086  else switch ( yy_get_next_buffer( ) )
1087  {
1088  case EOB_ACT_END_OF_FILE:
1089  {
1091 
1092  if ( yyxmlwrap( ) )
1093  {
1094  /* Note: because we've taken care in
1095  * yy_get_next_buffer() to have set up
1096  * yyxmltext, we can now set up
1097  * yy_c_buf_p so that if some total
1098  * hoser (like flex itself) wants to
1099  * call the scanner after we return the
1100  * YY_NULL, it'll still work - another
1101  * YY_NULL will get returned.
1102  */
1104 
1105  yy_act = YY_STATE_EOF(YY_START);
1106  goto do_action;
1107  }
1108 
1109  else
1110  {
1111  if ( ! (yy_did_buffer_switch_on_eof) )
1112  YY_NEW_FILE;
1113  }
1114  break;
1115  }
1116 
1117  case EOB_ACT_CONTINUE_SCAN:
1118  (yy_c_buf_p) =
1119  (yytext_ptr) + yy_amount_of_matched_text;
1120 
1121  yy_current_state = yy_get_previous_state( );
1122 
1123  yy_cp = (yy_c_buf_p);
1124  yy_bp = (yytext_ptr) + YY_MORE_ADJ;
1125  goto yy_match;
1126 
1127  case EOB_ACT_LAST_MATCH:
1128  (yy_c_buf_p) =
1129  &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
1130 
1131  yy_current_state = yy_get_previous_state( );
1132 
1133  yy_cp = (yy_c_buf_p);
1134  yy_bp = (yytext_ptr) + YY_MORE_ADJ;
1135  goto yy_find_action;
1136  }
1137  break;
1138  }
1139 
1140  default:
1142  "fatal flex scanner internal error--no action found" );
1143  } /* end of action switch */
1144  } /* end of scanning one token */
1145  } /* end of user's declarations */
1146 } /* end of yyxmllex */
1147 
1148 /* yy_get_next_buffer - try to read in a new buffer
1149  *
1150  * Returns a code representing an action:
1151  * EOB_ACT_LAST_MATCH -
1152  * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
1153  * EOB_ACT_END_OF_FILE - end of file
1154  */
1155 static int yy_get_next_buffer (void)
1156 {
1157  char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
1158  char *source = (yytext_ptr);
1159  yy_size_t number_to_move, i;
1160  int ret_val;
1161 
1162  if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
1164  "fatal flex scanner internal error--end of buffer missed" );
1165 
1166  if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
1167  { /* Don't try to fill the buffer, so this is an EOF. */
1168  if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
1169  {
1170  /* We matched a single character, the EOB, so
1171  * treat this as a final EOF.
1172  */
1173  return EOB_ACT_END_OF_FILE;
1174  }
1175 
1176  else
1177  {
1178  /* We matched some text prior to the EOB, first
1179  * process it.
1180  */
1181  return EOB_ACT_LAST_MATCH;
1182  }
1183  }
1184 
1185  /* Try to read more data. */
1186 
1187  /* First move last chars to start of buffer. */
1188  number_to_move = (yy_size_t) ((yy_c_buf_p) - (yytext_ptr)) - 1;
1189 
1190  for ( i = 0; i < number_to_move; ++i )
1191  *(dest++) = *(source++);
1192 
1193  if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
1194  /* don't do the read, it's not guaranteed to return an EOF,
1195  * just force an EOF
1196  */
1197  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
1198 
1199  else
1200  {
1201  int num_to_read =
1202  YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
1203 
1204  while ( num_to_read <= 0 )
1205  { /* Not enough room in the buffer - grow it. */
1206 
1207  /* just a shorter name for the current buffer */
1209 
1210  int yy_c_buf_p_offset =
1211  (int) ((yy_c_buf_p) - b->yy_ch_buf);
1212 
1213  if ( b->yy_is_our_buffer )
1214  {
1215  int new_size = b->yy_buf_size * 2;
1216 
1217  if ( new_size <= 0 )
1218  b->yy_buf_size += b->yy_buf_size / 8;
1219  else
1220  b->yy_buf_size *= 2;
1221 
1222  b->yy_ch_buf = (char *)
1223  /* Include room in for 2 EOB chars. */
1224  yyxmlrealloc((void *) b->yy_ch_buf,(yy_size_t) (b->yy_buf_size + 2) );
1225  }
1226  else
1227  /* Can't grow it, we don't own it. */
1228  b->yy_ch_buf = NULL;
1229 
1230  if ( ! b->yy_ch_buf )
1232  "fatal error - scanner input buffer overflow" );
1233 
1234  (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
1235 
1236  num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
1237  number_to_move - 1;
1238 
1239  }
1240 
1241  if ( num_to_read > YY_READ_BUF_SIZE )
1242  num_to_read = YY_READ_BUF_SIZE;
1243 
1244  /* Read in more data. */
1245  YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
1246  (yy_n_chars), num_to_read );
1247 
1248  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1249  }
1250 
1251  if ( (yy_n_chars) == 0 )
1252  {
1253  if ( number_to_move == YY_MORE_ADJ )
1254  {
1255  ret_val = EOB_ACT_END_OF_FILE;
1257  }
1258 
1259  else
1260  {
1261  ret_val = EOB_ACT_LAST_MATCH;
1262  YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
1264  }
1265  }
1266 
1267  else
1268  ret_val = EOB_ACT_CONTINUE_SCAN;
1269 
1270  if ((int) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
1271  /* Extend the array by 50%, plus the number we really need. */
1272  int new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
1273  YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyxmlrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,(yy_size_t) new_size );
1274  if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
1275  YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
1276  }
1277 
1278  (yy_n_chars) += number_to_move;
1281 
1282  (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
1283 
1284  return ret_val;
1285 }
1286 
1287 /* yy_get_previous_state - get the state just before the EOB char was reached */
1288 
1290 {
1291  yy_state_type yy_current_state;
1292  char *yy_cp;
1293 
1294  yy_current_state = (yy_start);
1295 
1296  for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
1297  {
1298  YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
1299  if ( yy_accept[yy_current_state] )
1300  {
1301  (yy_last_accepting_state) = yy_current_state;
1302  (yy_last_accepting_cpos) = yy_cp;
1303  }
1304  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1305  {
1306  yy_current_state = (int) yy_def[yy_current_state];
1307  if ( yy_current_state >= 108 )
1308  yy_c = yy_meta[(unsigned int) yy_c];
1309  }
1310  yy_current_state = yy_nxt[yy_base[yy_current_state] + (flex_int16_t) yy_c];
1311  }
1312 
1313  return yy_current_state;
1314 }
1315 
1316 /* yy_try_NUL_trans - try to make a transition on the NUL character
1317  *
1318  * synopsis
1319  * next_state = yy_try_NUL_trans( current_state );
1320  */
1321  static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
1322 {
1323  int yy_is_jam;
1324  char *yy_cp = (yy_c_buf_p);
1325 
1326  YY_CHAR yy_c = 1;
1327  if ( yy_accept[yy_current_state] )
1328  {
1329  (yy_last_accepting_state) = yy_current_state;
1330  (yy_last_accepting_cpos) = yy_cp;
1331  }
1332  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1333  {
1334  yy_current_state = (int) yy_def[yy_current_state];
1335  if ( yy_current_state >= 108 )
1336  yy_c = yy_meta[(unsigned int) yy_c];
1337  }
1338  yy_current_state = yy_nxt[yy_base[yy_current_state] + (flex_int16_t) yy_c];
1339  yy_is_jam = (yy_current_state == 107);
1340 
1341  return yy_is_jam ? 0 : yy_current_state;
1342 }
1343 
1344 #ifndef YY_NO_UNPUT
1345 
1346 #endif
1347 
1348 #ifndef YY_NO_INPUT
1349 #ifdef __cplusplus
1350  static int yyinput (void)
1351 #else
1352  static int input (void)
1353 #endif
1354 
1355 {
1356  int c;
1357 
1358  *(yy_c_buf_p) = (yy_hold_char);
1359 
1360  if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
1361  {
1362  /* yy_c_buf_p now points to the character we want to return.
1363  * If this occurs *before* the EOB characters, then it's a
1364  * valid NUL; if not, then we've hit the end of the buffer.
1365  */
1366  if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
1367  /* This was really a NUL. */
1368  *(yy_c_buf_p) = '\0';
1369 
1370  else
1371  { /* need more input */
1372  int offset = (yy_c_buf_p) - (yytext_ptr);
1373  ++(yy_c_buf_p);
1374 
1375  switch ( yy_get_next_buffer( ) )
1376  {
1377  case EOB_ACT_LAST_MATCH:
1378  /* This happens because yy_g_n_b()
1379  * sees that we've accumulated a
1380  * token and flags that we need to
1381  * try matching the token before
1382  * proceeding. But for input(),
1383  * there's no matching to consider.
1384  * So convert the EOB_ACT_LAST_MATCH
1385  * to EOB_ACT_END_OF_FILE.
1386  */
1387 
1388  /* Reset buffer status. */
1390 
1391  /*FALLTHROUGH*/
1392 
1393  case EOB_ACT_END_OF_FILE:
1394  {
1395  if ( yyxmlwrap( ) )
1396  return 0;
1397 
1398  if ( ! (yy_did_buffer_switch_on_eof) )
1399  YY_NEW_FILE;
1400 #ifdef __cplusplus
1401  return yyinput();
1402 #else
1403  return input();
1404 #endif
1405  }
1406 
1407  case EOB_ACT_CONTINUE_SCAN:
1408  (yy_c_buf_p) = (yytext_ptr) + offset;
1409  break;
1410  }
1411  }
1412  }
1413 
1414  c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
1415  *(yy_c_buf_p) = '\0'; /* preserve yyxmltext */
1416  (yy_hold_char) = *++(yy_c_buf_p);
1417 
1418  return c;
1419 }
1420 #endif /* ifndef YY_NO_INPUT */
1421 
1427  void yyxmlrestart (FILE * input_file )
1428 {
1429 
1430  if ( ! YY_CURRENT_BUFFER ){
1434  }
1435 
1436  yyxml_init_buffer(YY_CURRENT_BUFFER,input_file );
1438 }
1439 
1445 {
1446 
1447  /* TODO. We should be able to replace this entire function body
1448  * with
1449  * yyxmlpop_buffer_state();
1450  * yyxmlpush_buffer_state(new_buffer);
1451  */
1453  if ( YY_CURRENT_BUFFER == new_buffer )
1454  return;
1455 
1456  if ( YY_CURRENT_BUFFER )
1457  {
1458  /* Flush out information for old buffer. */
1459  *(yy_c_buf_p) = (yy_hold_char);
1460  YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
1461  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1462  }
1463 
1464  YY_CURRENT_BUFFER_LVALUE = new_buffer;
1466 
1467  /* We don't actually know whether we did this switch during
1468  * EOF (yyxmlwrap()) processing, but the only time this flag
1469  * is looked at is after yyxmlwrap() is called, so it's safe
1470  * to go ahead and always set it.
1471  */
1473 }
1474 
1475 static void yyxml_load_buffer_state (void)
1476 {
1477  (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1478  (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
1479  yyxmlin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
1480  (yy_hold_char) = *(yy_c_buf_p);
1481 }
1482 
1490 {
1491  YY_BUFFER_STATE b;
1492 
1493  b = (YY_BUFFER_STATE) yyxmlalloc(sizeof( struct yy_buffer_state ) );
1494  if ( ! b )
1495  YY_FATAL_ERROR( "out of dynamic memory in yyxml_create_buffer()" );
1496 
1497  b->yy_buf_size = size;
1498 
1499  /* yy_ch_buf has to be 2 characters longer than the size given because
1500  * we need to put in 2 end-of-buffer characters.
1501  */
1502  b->yy_ch_buf = (char *) yyxmlalloc((yy_size_t) (b->yy_buf_size + 2) );
1503  if ( ! b->yy_ch_buf )
1504  YY_FATAL_ERROR( "out of dynamic memory in yyxml_create_buffer()" );
1505 
1506  b->yy_is_our_buffer = 1;
1507 
1508  yyxml_init_buffer(b,file );
1509 
1510  return b;
1511 }
1512 
1518 {
1519 
1520  if ( ! b )
1521  return;
1522 
1523  if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
1525 
1526  if ( b->yy_is_our_buffer )
1527  yyxmlfree((void *) b->yy_ch_buf );
1528 
1529  yyxmlfree((void *) b );
1530 }
1531 
1532 /* Initializes or reinitializes a buffer.
1533  * This function is sometimes called more than once on the same buffer,
1534  * such as during a yyxmlrestart() or at EOF.
1535  */
1536  static void yyxml_init_buffer (YY_BUFFER_STATE b, FILE * file )
1537 
1538 {
1539  int oerrno = errno;
1540 
1541  yyxml_flush_buffer(b );
1542 
1543  b->yy_input_file = file;
1544  b->yy_fill_buffer = 1;
1545 
1546  /* If b is the current buffer, then yyxml_init_buffer was _probably_
1547  * called from yyxmlrestart() or through yy_get_next_buffer.
1548  * In that case, we don't want to reset the lineno or column.
1549  */
1550  if (b != YY_CURRENT_BUFFER){
1551  b->yy_bs_lineno = 1;
1552  b->yy_bs_column = 0;
1553  }
1554 
1555  b->yy_is_interactive = 0;
1556 
1557  errno = oerrno;
1558 }
1559 
1565 {
1566  if ( ! b )
1567  return;
1568 
1569  b->yy_n_chars = 0;
1570 
1571  /* We always need two end-of-buffer characters. The first causes
1572  * a transition to the end-of-buffer state. The second causes
1573  * a jam in that state.
1574  */
1577 
1578  b->yy_buf_pos = &b->yy_ch_buf[0];
1579 
1580  b->yy_at_bol = 1;
1582 
1583  if ( b == YY_CURRENT_BUFFER )
1585 }
1586 
1594 {
1595  if (new_buffer == NULL)
1596  return;
1597 
1599 
1600  /* This block is copied from yyxml_switch_to_buffer. */
1601  if ( YY_CURRENT_BUFFER )
1602  {
1603  /* Flush out information for old buffer. */
1604  *(yy_c_buf_p) = (yy_hold_char);
1605  YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
1606  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1607  }
1608 
1609  /* Only push if top exists. Otherwise, replace top. */
1610  if (YY_CURRENT_BUFFER)
1611  (yy_buffer_stack_top)++;
1612  YY_CURRENT_BUFFER_LVALUE = new_buffer;
1613 
1614  /* copied from yyxml_switch_to_buffer. */
1617 }
1618 
1624 {
1625  if (!YY_CURRENT_BUFFER)
1626  return;
1627 
1629  YY_CURRENT_BUFFER_LVALUE = NULL;
1630  if ((yy_buffer_stack_top) > 0)
1631  --(yy_buffer_stack_top);
1632 
1633  if (YY_CURRENT_BUFFER) {
1636  }
1637 }
1638 
1639 /* Allocates the stack if it does not exist.
1640  * Guarantees space for at least one push.
1641  */
1642 static void yyxmlensure_buffer_stack (void)
1643 {
1644  int num_to_alloc;
1645 
1646  if (!(yy_buffer_stack)) {
1647 
1648  /* First allocation is just for 2 elements, since we don't know if this
1649  * scanner will even need a stack. We use 2 instead of 1 to avoid an
1650  * immediate realloc on the next call.
1651  */
1652  num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */
1654  (num_to_alloc * sizeof(struct yy_buffer_state*)
1655  );
1656  if ( ! (yy_buffer_stack) )
1657  YY_FATAL_ERROR( "out of dynamic memory in yyxmlensure_buffer_stack()" );
1658 
1659  memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
1660 
1661  (yy_buffer_stack_max) = num_to_alloc;
1662  (yy_buffer_stack_top) = 0;
1663  return;
1664  }
1665 
1666  if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
1667 
1668  /* Increase the buffer to prepare for a possible push. */
1669  yy_size_t grow_size = 8 /* arbitrary grow size */;
1670 
1671  num_to_alloc = (yy_buffer_stack_max) + grow_size;
1673  ((yy_buffer_stack),
1674  num_to_alloc * sizeof(struct yy_buffer_state*)
1675  );
1676  if ( ! (yy_buffer_stack) )
1677  YY_FATAL_ERROR( "out of dynamic memory in yyxmlensure_buffer_stack()" );
1678 
1679  /* zero only the new slots.*/
1680  memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
1681  (yy_buffer_stack_max) = num_to_alloc;
1682  }
1683 }
1684 
1692 {
1693  YY_BUFFER_STATE b;
1694 
1695  if ( size < 2 ||
1696  base[size-2] != YY_END_OF_BUFFER_CHAR ||
1697  base[size-1] != YY_END_OF_BUFFER_CHAR )
1698  /* They forgot to leave room for the EOB's. */
1699  return NULL;
1700 
1701  b = (YY_BUFFER_STATE) yyxmlalloc(sizeof( struct yy_buffer_state ) );
1702  if ( ! b )
1703  YY_FATAL_ERROR( "out of dynamic memory in yyxml_scan_buffer()" );
1704 
1705  b->yy_buf_size = (int) (size - 2); /* "- 2" to take care of EOB's */
1706  b->yy_buf_pos = b->yy_ch_buf = base;
1707  b->yy_is_our_buffer = 0;
1708  b->yy_input_file = NULL;
1709  b->yy_n_chars = b->yy_buf_size;
1710  b->yy_is_interactive = 0;
1711  b->yy_at_bol = 1;
1712  b->yy_fill_buffer = 0;
1714 
1716 
1717  return b;
1718 }
1719 
1729 {
1730 
1731  return yyxml_scan_bytes(yystr,(int) strlen(yystr) );
1732 }
1733 
1741 YY_BUFFER_STATE yyxml_scan_bytes (yyconst char * yybytes, int _yybytes_len )
1742 {
1743  YY_BUFFER_STATE b;
1744  char *buf;
1745  yy_size_t n;
1746  int i;
1747 
1748  /* Get memory for full buffer, including space for trailing EOB's. */
1749  n = (yy_size_t) (_yybytes_len + 2);
1750  buf = (char *) yyxmlalloc(n );
1751  if ( ! buf )
1752  YY_FATAL_ERROR( "out of dynamic memory in yyxml_scan_bytes()" );
1753 
1754  for ( i = 0; i < _yybytes_len; ++i )
1755  buf[i] = yybytes[i];
1756 
1757  buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
1758 
1759  b = yyxml_scan_buffer(buf,n );
1760  if ( ! b )
1761  YY_FATAL_ERROR( "bad buffer in yyxml_scan_bytes()" );
1762 
1763  /* It's okay to grow etc. this buffer, and we should throw it
1764  * away when we're done.
1765  */
1766  b->yy_is_our_buffer = 1;
1767 
1768  return b;
1769 }
1770 
1771 #ifndef YY_EXIT_FAILURE
1772 #define YY_EXIT_FAILURE 2
1773 #endif
1774 
1775 static void yynoreturn yy_fatal_error (yyconst char* msg )
1776 {
1777  (void) fprintf( stderr, "%s\n", msg );
1778  exit( YY_EXIT_FAILURE );
1779 }
1780 
1781 /* Redefine yyless() so it works in section 3 code. */
1782 
1783 #undef yyless
1784 #define yyless(n) \
1785  do \
1786  { \
1787  /* Undo effects of setting up yyxmltext. */ \
1788  yy_size_t yyless_macro_arg = (n); \
1789  YY_LESS_LINENO(yyless_macro_arg);\
1790  yyxmltext[yyxmlleng] = (yy_hold_char); \
1791  (yy_c_buf_p) = yyxmltext + yyless_macro_arg; \
1792  (yy_hold_char) = *(yy_c_buf_p); \
1793  *(yy_c_buf_p) = '\0'; \
1794  yyxmlleng = yyless_macro_arg; \
1795  } \
1796  while ( 0 )
1797 
1798 /* Accessor methods (get/set functions) to struct members. */
1799 
1804 {
1805 
1806  return yyxmllineno;
1807 }
1808 
1812 FILE *yyxmlget_in (void)
1813 {
1814  return yyxmlin;
1815 }
1816 
1820 FILE *yyxmlget_out (void)
1821 {
1822  return yyxmlout;
1823 }
1824 
1828 int yyxmlget_leng (void)
1829 {
1830  return yyxmlleng;
1831 }
1832 
1837 char *yyxmlget_text (void)
1838 {
1839  return yyxmltext;
1840 }
1841 
1846 void yyxmlset_lineno (int _line_number )
1847 {
1848 
1849  yyxmllineno = _line_number;
1850 }
1851 
1858 void yyxmlset_in (FILE * _in_str )
1859 {
1860  yyxmlin = _in_str ;
1861 }
1862 
1863 void yyxmlset_out (FILE * _out_str )
1864 {
1865  yyxmlout = _out_str ;
1866 }
1867 
1868 int yyxmlget_debug (void)
1869 {
1870  return yyxml_flex_debug;
1871 }
1872 
1873 void yyxmlset_debug (int _bdebug )
1874 {
1875  yyxml_flex_debug = _bdebug ;
1876 }
1877 
1878 static int yy_init_globals (void)
1879 {
1880  /* Initialization is the same as for the non-reentrant scanner.
1881  * This function is called from yyxmllex_destroy(), so don't allocate here.
1882  */
1883 
1884  (yy_buffer_stack) = NULL;
1885  (yy_buffer_stack_top) = 0;
1886  (yy_buffer_stack_max) = 0;
1887  (yy_c_buf_p) = NULL;
1888  (yy_init) = 0;
1889  (yy_start) = 0;
1890 
1891 /* Defined in main.c */
1892 #ifdef YY_STDINIT
1893  yyxmlin = stdin;
1894  yyxmlout = stdout;
1895 #else
1896  yyxmlin = NULL;
1897  yyxmlout = NULL;
1898 #endif
1899 
1900  /* For future reference: Set errno on error, since we are called by
1901  * yyxmllex_init()
1902  */
1903  return 0;
1904 }
1905 
1906 /* yyxmllex_destroy is for both reentrant and non-reentrant scanners. */
1908 {
1909 
1910  /* Pop the buffer stack, destroying each element. */
1911  while(YY_CURRENT_BUFFER){
1913  YY_CURRENT_BUFFER_LVALUE = NULL;
1915  }
1916 
1917  /* Destroy the stack itself. */
1919  (yy_buffer_stack) = NULL;
1920 
1921  /* Reset the globals. This is important in a non-reentrant scanner so the next time
1922  * yyxmllex() is called, initialization will occur. */
1923  yy_init_globals( );
1924 
1925  return 0;
1926 }
1927 
1928 /*
1929  * Internal utility routines.
1930  */
1931 
1932 #ifndef yytext_ptr
1933 static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
1934 {
1935 
1936  int i;
1937  for ( i = 0; i < n; ++i )
1938  s1[i] = s2[i];
1939 }
1940 #endif
1941 
1942 #ifdef YY_NEED_STRLEN
1943 static int yy_flex_strlen (yyconst char * s )
1944 {
1945  int n;
1946  for ( n = 0; s[n]; ++n )
1947  ;
1948 
1949  return n;
1950 }
1951 #endif
1952 
1953 void *yyxmlalloc (yy_size_t size )
1954 {
1955  return malloc(size);
1956 }
1957 
1958 void *yyxmlrealloc (void * ptr, yy_size_t size )
1959 {
1960 
1961  /* The cast to (char *) in the following accommodates both
1962  * implementations that use char* generic pointers, and those
1963  * that use void* generic pointers. It works with the latter
1964  * because both ANSI C and C++ allow castless assignment from
1965  * any pointer type to void*, and deal with argument conversions
1966  * as though doing an assignment.
1967  */
1968  return realloc(ptr, size);
1969 }
1970 
1971 void yyxmlfree (void * ptr )
1972 {
1973  free( (char *) ptr ); /* see yyxmlrealloc() for (char *) cast */
1974 }
1975 
1976 #define YYTABLES_NAME "yytables"
1977 
1978 #line 87 "scanner.l"
1979 
1980 
1981 
1982 int yyxmlwrap() { return 1; }
1983 
#define CONTENT
Definition: xml_lex.yy.cpp:630
int yyxmllineno
Definition: xml_lex.yy.cpp:360
int yy_state_type
#define STARTPI
Definition: xml_y.tab.cpp:143
static void yyxml_load_buffer_state(void)
static const flex_int16_t yy_accept[108]
Definition: xml_lex.yy.cpp:392
#define DATA
Definition: xml_y.tab.cpp:152
int yyxmlget_debug(void)
#define SLASH
Definition: xml_y.tab.cpp:146
static char * yy_c_buf_p
Definition: xml_lex.yy.cpp:295
static const flex_int16_t yy_def[126]
Definition: xml_lex.yy.cpp:466
size_t yy_size_t
Definition: xml_lex.yy.cpp:174
int flex_int32_t
Definition: xml_lex.yy.cpp:72
static const YY_CHAR yy_meta[33]
Definition: xml_lex.yy.cpp:440
void * yyxmlget_extra(void)
static const flex_uint16_t yy_nxt[363]
Definition: xml_lex.yy.cpp:484
static yy_state_type yy_get_previous_state(void)
#define YY_BUF_SIZE
Definition: xml_lex.yy.cpp:159
#define YY_NEW_FILE
Definition: xml_lex.yy.cpp:146
YY_BUFFER_STATE yyxml_create_buffer(FILE *file, int size)
Allocate and initialize an input buffer state.
size_t yy_size_t
void yyxml_switch_to_buffer(YY_BUFFER_STATE new_buffer)
Switch to a different input buffer.
#define YY_INPUT(buf, result, max_size)
Definition: xml_lex.yy.cpp:733
static void yy_fatal_error(const char *msg)
void yyxmlpush_buffer_state(YY_BUFFER_STATE new_buffer)
Pushes the new state onto the stack.
int yyxmllex(void)
The main scanner function which does all the work.
Definition: xml_lex.yy.cpp:813
int yyxmlwrap(void)
#define YY_DECL
Definition: xml_lex.yy.cpp:793
void yyxmlset_lineno(int _line_number)
Set the current line number.
int yy_bs_lineno
The line count.
#define VALUE
Definition: xml_y.tab.cpp:151
static yy_state_type yy_last_accepting_state
Definition: xml_lex.yy.cpp:572
FILE * yyxmlin
Definition: xml_lex.yy.cpp:354
#define YY_BREAK
Definition: xml_lex.yy.cpp:805
int yyxml_flex_debug
Definition: xml_lex.yy.cpp:576
#define PI
Definition: xml_lex.yy.cpp:631
#define YY_MORE_ADJ
Definition: xml_lex.yy.cpp:583
#define yytext_ptr
Definition: xml_lex.yy.cpp:366
int flex_int32_t
void yyxmlset_extra(void *user_defined)
void * yyxmlrealloc(void *, yy_size_t)
void free(void *)
unsigned short int flex_uint16_t
Definition: xml_lex.yy.cpp:74
static int yy_init
Definition: xml_lex.yy.cpp:296
#define BEGIN
Definition: xml_lex.yy.cpp:133
static int yy_did_buffer_switch_on_eof
Definition: xml_lex.yy.cpp:302
short int flex_int16_t
#define NAME
Definition: xml_y.tab.cpp:150
char * yyxmltext
Definition: xml_lex.yy.cpp:585
FILE * yyxmlget_in(void)
Get the input stream.
int yy_bs_column
The column count.
#define EQ
Definition: xml_y.tab.cpp:145
static YY_BUFFER_STATE * yy_buffer_stack
Stack as an array.
Definition: xml_lex.yy.cpp:272
static size_t yy_buffer_stack_top
index of top of stack.
Definition: xml_lex.yy.cpp:270
#define YY_SC_TO_UI(c)
Definition: xml_lex.yy.cpp:127
#define START
Definition: xml_y.tab.cpp:154
#define EOB_ACT_CONTINUE_SCAN
Definition: xml_lex.yy.cpp:181
static char * word(char *s)
Definition: xml_lex.yy.cpp:602
#define YY_DO_BEFORE_ACTION
Definition: xml_lex.yy.cpp:376
YY_BUFFER_STATE yyxml_scan_string(const char *yy_str)
Setup the input buffer state to scan a string.
unsigned char YY_CHAR
Definition: xml_lex.yy.cpp:352
static int yy_n_chars
Definition: xml_lex.yy.cpp:291
FILE * yyxmlout
Definition: xml_lex.yy.cpp:354
static int yy_get_next_buffer(void)
unsigned short int flex_uint16_t
void yyxmlrestart(FILE *input_file)
Immediately switch to a different input stream.
#define YY_BUFFER_EOF_PENDING
Definition: xml_lex.yy.cpp:264
void yyxmlpop_buffer_state(void)
Removes and deletes the top of the stack, if present.
#define COMMENT
int yyxmllex_destroy(void)
char * s
Definition: xml_y.tab.cpp:162
static const YY_CHAR yy_ec[256]
Definition: xml_lex.yy.cpp:408
static char yy_hold_char
Definition: xml_lex.yy.cpp:290
#define DTD
Definition: xml_lex.yy.cpp:632
static void yyxml_init_buffer(YY_BUFFER_STATE b, FILE *file)
#define INITIAL
Definition: xml_lex.yy.cpp:629
#define yynoreturn
Definition: xml_lex.yy.cpp:116
#define YY_READ_BUF_SIZE
Definition: xml_lex.yy.cpp:717
#define YY_EXTRA_TYPE
Definition: xml_lex.yy.cpp:643
#define YY_BUFFER_NEW
Definition: xml_lex.yy.cpp:252
YYSTYPE yyxmllval
Definition: xml_y.tab.cpp:1030
#define YY_STATE_EOF(state)
Definition: xml_lex.yy.cpp:143
#define STARTXMLDECL
Definition: xml_y.tab.cpp:141
static const flex_int16_t yy_chk[363]
Definition: xml_lex.yy.cpp:528
signed char flex_int8_t
Definition: xml_lex.yy.cpp:70
#define YY_BUFFER_NORMAL
Definition: xml_lex.yy.cpp:253
int yyxmlget_leng(void)
Get the length of the current token.
#define END
Definition: xml_y.tab.cpp:148
int yyxmlget_lineno(void)
Get the current line number.
void yyxmlfree(void *)
static const flex_uint16_t yy_base[126]
Definition: xml_lex.yy.cpp:448
#define YY_END_OF_BUFFER
Definition: xml_lex.yy.cpp:384
static int yy_start
Definition: xml_lex.yy.cpp:297
#define YY_EXIT_FAILURE
unsigned int flex_uint32_t
Definition: xml_lex.yy.cpp:75
int yyxmlerror(const std::string &error)
Definition: xml_y.tab.cpp:82
#define YY_CURRENT_BUFFER
Definition: xml_lex.yy.cpp:280
flex_int32_t yy_verify
YY_BUFFER_STATE yyxml_scan_buffer(char *base, yy_size_t size)
Setup the input buffer state to scan directly from a user-specified character buffer.
FILE * yyxmlget_out(void)
Get the output stream.
#define YY_RULE_SETUP
Definition: xml_lex.yy.cpp:808
void yyxml_delete_buffer(YY_BUFFER_STATE b)
Destroy the buffer.
#define EOB_ACT_END_OF_FILE
Definition: xml_lex.yy.cpp:182
int yy_state_type
Definition: xml_lex.yy.cpp:356
#define EOB_ACT_LAST_MATCH
Definition: xml_lex.yy.cpp:183
#define CLOSE
Definition: xml_y.tab.cpp:147
void * malloc(size_t)
flex_int32_t yy_nxt
static size_t yy_buffer_stack_max
capacity of stack.
Definition: xml_lex.yy.cpp:271
#define yyterminate()
Definition: xml_lex.yy.cpp:770
void yyxmlset_in(FILE *_in_str)
Set the input stream.
int yyxmlleng
Definition: xml_lex.yy.cpp:292
#define yyconst
Definition: xml_lex.yy.cpp:111
int8_t s1
Definition: bytecode_info.h:59
#define YY_FATAL_ERROR(msg)
Definition: xml_lex.yy.cpp:780
void yyxml_flush_buffer(YY_BUFFER_STATE b)
Discard all buffered characters.
int16_t s2
Definition: bytecode_info.h:60
unsigned char YY_CHAR
struct yy_buffer_state * YY_BUFFER_STATE
Definition: xml_lex.yy.cpp:169
char * yyxmlget_text(void)
Get the current token.
void * yyxmlalloc(yy_size_t)
unsigned char flex_uint8_t
Definition: xml_lex.yy.cpp:73
#define YY_RESTORE_YY_MORE_OFFSET
Definition: xml_lex.yy.cpp:584
void yyxmlset_debug(int debug_flag)
short int flex_int16_t
Definition: xml_lex.yy.cpp:71
#define YY_START
Definition: xml_lex.yy.cpp:139
#define YY_CURRENT_BUFFER_LVALUE
Definition: xml_lex.yy.cpp:287
#define ENDPI
Definition: xml_y.tab.cpp:144
void yyxmlset_out(FILE *_out_str)
static void yyxmlensure_buffer_stack(void)
YY_BUFFER_STATE yyxml_scan_bytes(const char *bytes, int len)
Setup the input buffer state to scan the given bytes.
static char * yy_last_accepting_cpos
Definition: xml_lex.yy.cpp:573
static int yy_init_globals(void)
#define YY_END_OF_BUFFER_CHAR
Definition: xml_lex.yy.cpp:148
Definition: kdev_t.h:19
static yy_state_type yy_try_NUL_trans(yy_state_type current_state)