ddc
yyQLexer.h
Go to the documentation of this file.
1 #ifndef yyqHEADER_H
2 #define yyqHEADER_H 1
3 #define yyqIN_HEADER 1
4 
5 #line 6 "yyQLexer.h"
6 
7 #line 8 "yyQLexer.h"
8 
9 #define YY_INT_ALIGNED short int
10 
11 /* A lexical scanner generated by flex */
12 
13 /* %not-for-header */
14 
15 #define FLEX_SCANNER
16 #define YY_FLEX_MAJOR_VERSION 2
17 #define YY_FLEX_MINOR_VERSION 6
18 #define YY_FLEX_SUBMINOR_VERSION 4
19 #if YY_FLEX_SUBMINOR_VERSION > 0
20 #define FLEX_BETA
21 #endif
22 
23 /* %if-c++-only */
24  /* The c++ scanner is a mess. The FlexLexer.h header file relies on the
25  * following macro. This is required in order to pass the c++-multiple-scanners
26  * test in the regression suite. We get reports that it breaks inheritance.
27  * We will address this in a future release of flex, or omit the C++ scanner
28  * altogether.
29  */
30  #define yyFlexLexer yyqFlexLexer
31 /* %endif */
32 
33 /* %if-c-only */
34 /* %endif */
35 
36 #ifdef yyalloc
37 #define yyqalloc_ALREADY_DEFINED
38 #else
39 #define yyalloc yyqalloc
40 #endif
41 
42 #ifdef yyrealloc
43 #define yyqrealloc_ALREADY_DEFINED
44 #else
45 #define yyrealloc yyqrealloc
46 #endif
47 
48 #ifdef yyfree
49 #define yyqfree_ALREADY_DEFINED
50 #else
51 #define yyfree yyqfree
52 #endif
53 
54 /* %if-c-only */
55 /* %endif */
56 
57 /* First, we deal with platform-specific or compiler-specific issues. */
58 
59 /* begin standard C headers. */
60 /* %if-c-only */
61 /* %endif */
62 
63 /* %if-tables-serialization */
64 /* %endif */
65 /* end standard C headers. */
66 
67 /* %if-c-or-c++ */
68 /* flex integer type definitions */
69 
70 #ifndef FLEXINT_H
71 #define FLEXINT_H
72 
73 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
74 
75 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
76 
77 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
78  * if you want the limit (max/min) macros for int types.
79  */
80 #ifndef __STDC_LIMIT_MACROS
81 #define __STDC_LIMIT_MACROS 1
82 #endif
83 
84 #include <inttypes.h>
85 typedef int8_t flex_int8_t;
86 typedef uint8_t flex_uint8_t;
87 typedef int16_t flex_int16_t;
88 typedef uint16_t flex_uint16_t;
89 typedef int32_t flex_int32_t;
90 typedef uint32_t flex_uint32_t;
91 #else
92 typedef signed char flex_int8_t;
93 typedef short int flex_int16_t;
94 typedef int flex_int32_t;
95 typedef unsigned char flex_uint8_t;
96 typedef unsigned short int flex_uint16_t;
97 typedef unsigned int flex_uint32_t;
98 
99 /* Limits of integral types. */
100 #ifndef INT8_MIN
101 #define INT8_MIN (-128)
102 #endif
103 #ifndef INT16_MIN
104 #define INT16_MIN (-32767-1)
105 #endif
106 #ifndef INT32_MIN
107 #define INT32_MIN (-2147483647-1)
108 #endif
109 #ifndef INT8_MAX
110 #define INT8_MAX (127)
111 #endif
112 #ifndef INT16_MAX
113 #define INT16_MAX (32767)
114 #endif
115 #ifndef INT32_MAX
116 #define INT32_MAX (2147483647)
117 #endif
118 #ifndef UINT8_MAX
119 #define UINT8_MAX (255U)
120 #endif
121 #ifndef UINT16_MAX
122 #define UINT16_MAX (65535U)
123 #endif
124 #ifndef UINT32_MAX
125 #define UINT32_MAX (4294967295U)
126 #endif
127 
128 #ifndef SIZE_MAX
129 #define SIZE_MAX (~(size_t)0)
130 #endif
131 
132 #endif /* ! C99 */
133 
134 #endif /* ! FLEXINT_H */
135 
136 /* %endif */
137 
138 /* begin standard C++ headers. */
139 /* %if-c++-only */
140 #include <iostream>
141 #include <errno.h>
142 #include <cstdlib>
143 #include <cstdio>
144 #include <cstring>
145 /* end standard C++ headers. */
146 /* %endif */
147 
148 /* TODO: this is always defined, so inline it */
149 #define yyconst const
150 
151 #if defined(__GNUC__) && __GNUC__ >= 3
152 #define yynoreturn __attribute__((__noreturn__))
153 #else
154 #define yynoreturn
155 #endif
156 
157 /* %not-for-header */
158 
159 /* %not-for-header */
160 
161 /* %if-reentrant */
162 /* %endif */
163 
164 /* %if-not-reentrant */
165 
166 /* %endif */
167 
168 /* Size of default input buffer. */
169 #ifndef YY_BUF_SIZE
170 #ifdef __ia64__
171 /* On IA-64, the buffer size is 16k, not 8k.
172  * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
173  * Ditto for the __ia64__ case accordingly.
174  */
175 #define YY_BUF_SIZE 32768
176 #else
177 #define YY_BUF_SIZE 16384
178 #endif /* __ia64__ */
179 #endif
180 
181 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
182 #define YY_TYPEDEF_YY_BUFFER_STATE
184 #endif
185 
186 #ifndef YY_TYPEDEF_YY_SIZE_T
187 #define YY_TYPEDEF_YY_SIZE_T
188 typedef size_t yy_size_t;
189 #endif
190 
191 /* %if-not-reentrant */
192 extern int yyleng;
193 /* %endif */
194 
195 /* %if-c-only */
196 /* %if-not-reentrant */
197 /* %endif */
198 /* %endif */
199 
200 #ifndef YY_STRUCT_YY_BUFFER_STATE
201 #define YY_STRUCT_YY_BUFFER_STATE
202 struct yy_buffer_state
203  {
204 /* %if-c-only */
205 /* %endif */
206 
207 /* %if-c++-only */
208  std::streambuf* yy_input_file;
209 /* %endif */
210 
211  char *yy_ch_buf; /* input buffer */
212  char *yy_buf_pos; /* current position in input buffer */
213 
214  /* Size of input buffer in bytes, not including room for EOB
215  * characters.
216  */
217  int yy_buf_size;
218 
219  /* Number of characters read into yy_ch_buf, not including EOB
220  * characters.
221  */
222  int yy_n_chars;
223 
224  /* Whether we "own" the buffer - i.e., we know we created it,
225  * and can realloc() it to grow it, and should free() it to
226  * delete it.
227  */
228  int yy_is_our_buffer;
229 
230  /* Whether this is an "interactive" input source; if so, and
231  * if we're using stdio for input, then we want to use getc()
232  * instead of fread(), to make sure we stop fetching input after
233  * each newline.
234  */
235  int yy_is_interactive;
236 
237  /* Whether we're considered to be at the beginning of a line.
238  * If so, '^' rules will be active on the next match, otherwise
239  * not.
240  */
241  int yy_at_bol;
242 
243  int yy_bs_lineno;
244  int yy_bs_column;
246  /* Whether to try to fill the input buffer when we reach the
247  * end of it.
248  */
249  int yy_fill_buffer;
250 
251  int yy_buffer_status;
252 
253  };
254 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
255 
256 /* %if-c-only Standard (non-C++) definition */
257 /* %not-for-header */
258 
259 /* %endif */
260 
261 /* %if-c-only Standard (non-C++) definition */
262 /* %if-not-reentrant */
263 /* %not-for-header */
264 
265 /* %endif */
266 /* %endif */
267 
268 void *yyalloc ( yy_size_t );
269 void *yyrealloc ( void *, yy_size_t );
270 void yyfree ( void * );
271 
272 /* %% [1.0] yytext/yyin/yyout/yy_state_type/yylineno etc. def's & init go here */
273 /* Begin user sect3 */
274 
275 #define FLEX_DEBUG
276 
277 #define yytext_ptr yytext
278 #define YY_INTERACTIVE
279 
280 #include <FlexLexer.h>
281 int yyFlexLexer::yylex()
282  {
283  LexerError( "yyFlexLexer::yylex invoked but %option yyclass used" );
284  return 0;
285  }
286 
287 #define YY_DECL int yyqLexer::yylex()
288 
289 /* %if-c-only Standard (non-C++) definition */
290 /* %endif */
291 
292 #ifdef YY_HEADER_EXPORT_START_CONDITIONS
293 #define INITIAL 0
294 #define S_NOID 1
295 #define Q_DATE 2
296 #define Q_REGOPT 3
297 #define Q_REGREP 4
298 #define Q_XPIPE 5
299 #define Q_COMMENT 6
300 #define Q_CORPORA 7
301 #define Q_MATCHID 8
302 
303 #endif
304 
305 #ifndef YY_NO_UNISTD_H
306 /* Special case for "unistd.h", since it is non-ANSI. We include it way
307  * down here because we want the user's section 1 to have been scanned first.
308  * The user has a chance to override it with an option.
309  */
310 /* %if-c-only */
311 /* %endif */
312 /* %if-c++-only */
313 #include <unistd.h>
314 /* %endif */
315 #endif
316 
317 #ifndef YY_EXTRA_TYPE
318 #define YY_EXTRA_TYPE void *
319 #endif
320 
321 /* %if-c-only Reentrant structure and macros (non-C++). */
322 /* %if-reentrant */
323 /* %if-c-only */
324 /* %endif */
325 /* %if-reentrant */
326 /* %endif */
327 /* %endif End reentrant structures and macros. */
328 /* %if-bison-bridge */
329 /* %endif */
330 /* %not-for-header */
331 
332 /* %endif */
333 
334 #ifndef yytext_ptr
335 static void yy_flex_strncpy ( char *, const char *, int );
336 #endif
337 
338 #ifdef YY_NEED_STRLEN
339 static int yy_flex_strlen ( const char * );
340 #endif
341 
342 #ifndef YY_NO_INPUT
343 /* %if-c-only Standard (non-C++) definition */
344 /* %not-for-header */
345 
346 /* %endif */
347 #endif
348 
349 /* %if-c-only */
350 /* %endif */
351 
352 /* Amount of stuff to slurp up with each read. */
353 #ifndef YY_READ_BUF_SIZE
354 #ifdef __ia64__
355 /* On IA-64, the buffer size is 16k, not 8k */
356 #define YY_READ_BUF_SIZE 16384
357 #else
358 #define YY_READ_BUF_SIZE 8192
359 #endif /* __ia64__ */
360 #endif
361 
362 /* Number of entries by which start-condition stack grows. */
363 #ifndef YY_START_STACK_INCR
364 #define YY_START_STACK_INCR 25
365 #endif
366 
367 /* %if-tables-serialization structures and prototypes */
368 /* %not-for-header */
369 
370 /* %not-for-header */
371 
372 /* Default declaration of generated scanner - a define so the user can
373  * easily add parameters.
374  */
375 #ifndef YY_DECL
376 #define YY_DECL_IS_OURS 1
377 /* %if-c-only Standard (non-C++) definition */
378 /* %endif */
379 /* %if-c++-only C++ definition */
380 #define YY_DECL int yyFlexLexer::yylex()
381 /* %endif */
382 #endif /* !YY_DECL */
383 
384 /* %not-for-header */
385 
386 /* %if-c++-only */
387 /* %not-for-header */
388 
389 /* %endif */
390 
391 /* yy_get_previous_state - get the state just before the EOB char was reached */
392 
393 /* %if-c-only */
394 /* %not-for-header */
395 
396 #undef YY_NEW_FILE
397 #undef YY_FLUSH_BUFFER
398 #undef yy_set_bol
399 #undef yy_new_buffer
400 #undef yy_set_interactive
401 #undef YY_DO_BEFORE_ACTION
402 
403 #ifdef YY_DECL_IS_OURS
404 #undef YY_DECL_IS_OURS
405 #undef YY_DECL
406 #endif
407 
408 #ifndef yyq_create_buffer_ALREADY_DEFINED
409 #undef yy_create_buffer
410 #endif
411 #ifndef yyq_delete_buffer_ALREADY_DEFINED
412 #undef yy_delete_buffer
413 #endif
414 #ifndef yyq_scan_buffer_ALREADY_DEFINED
415 #undef yy_scan_buffer
416 #endif
417 #ifndef yyq_scan_string_ALREADY_DEFINED
418 #undef yy_scan_string
419 #endif
420 #ifndef yyq_scan_bytes_ALREADY_DEFINED
421 #undef yy_scan_bytes
422 #endif
423 #ifndef yyq_init_buffer_ALREADY_DEFINED
424 #undef yy_init_buffer
425 #endif
426 #ifndef yyq_flush_buffer_ALREADY_DEFINED
427 #undef yy_flush_buffer
428 #endif
429 #ifndef yyq_load_buffer_state_ALREADY_DEFINED
430 #undef yy_load_buffer_state
431 #endif
432 #ifndef yyq_switch_to_buffer_ALREADY_DEFINED
433 #undef yy_switch_to_buffer
434 #endif
435 #ifndef yyqpush_buffer_state_ALREADY_DEFINED
436 #undef yypush_buffer_state
437 #endif
438 #ifndef yyqpop_buffer_state_ALREADY_DEFINED
439 #undef yypop_buffer_state
440 #endif
441 #ifndef yyqensure_buffer_stack_ALREADY_DEFINED
442 #undef yyensure_buffer_stack
443 #endif
444 #ifndef yyqlex_ALREADY_DEFINED
445 #undef yylex
446 #endif
447 #ifndef yyqrestart_ALREADY_DEFINED
448 #undef yyrestart
449 #endif
450 #ifndef yyqlex_init_ALREADY_DEFINED
451 #undef yylex_init
452 #endif
453 #ifndef yyqlex_init_extra_ALREADY_DEFINED
454 #undef yylex_init_extra
455 #endif
456 #ifndef yyqlex_destroy_ALREADY_DEFINED
457 #undef yylex_destroy
458 #endif
459 #ifndef yyqget_debug_ALREADY_DEFINED
460 #undef yyget_debug
461 #endif
462 #ifndef yyqset_debug_ALREADY_DEFINED
463 #undef yyset_debug
464 #endif
465 #ifndef yyqget_extra_ALREADY_DEFINED
466 #undef yyget_extra
467 #endif
468 #ifndef yyqset_extra_ALREADY_DEFINED
469 #undef yyset_extra
470 #endif
471 #ifndef yyqget_in_ALREADY_DEFINED
472 #undef yyget_in
473 #endif
474 #ifndef yyqset_in_ALREADY_DEFINED
475 #undef yyset_in
476 #endif
477 #ifndef yyqget_out_ALREADY_DEFINED
478 #undef yyget_out
479 #endif
480 #ifndef yyqset_out_ALREADY_DEFINED
481 #undef yyset_out
482 #endif
483 #ifndef yyqget_leng_ALREADY_DEFINED
484 #undef yyget_leng
485 #endif
486 #ifndef yyqget_text_ALREADY_DEFINED
487 #undef yyget_text
488 #endif
489 #ifndef yyqget_lineno_ALREADY_DEFINED
490 #undef yyget_lineno
491 #endif
492 #ifndef yyqset_lineno_ALREADY_DEFINED
493 #undef yyset_lineno
494 #endif
495 #ifndef yyqget_column_ALREADY_DEFINED
496 #undef yyget_column
497 #endif
498 #ifndef yyqset_column_ALREADY_DEFINED
499 #undef yyset_column
500 #endif
501 #ifndef yyqwrap_ALREADY_DEFINED
502 #undef yywrap
503 #endif
504 #ifndef yyqget_lval_ALREADY_DEFINED
505 #undef yyget_lval
506 #endif
507 #ifndef yyqset_lval_ALREADY_DEFINED
508 #undef yyset_lval
509 #endif
510 #ifndef yyqget_lloc_ALREADY_DEFINED
511 #undef yyget_lloc
512 #endif
513 #ifndef yyqset_lloc_ALREADY_DEFINED
514 #undef yyset_lloc
515 #endif
516 #ifndef yyqalloc_ALREADY_DEFINED
517 #undef yyalloc
518 #endif
519 #ifndef yyqrealloc_ALREADY_DEFINED
520 #undef yyrealloc
521 #endif
522 #ifndef yyqfree_ALREADY_DEFINED
523 #undef yyfree
524 #endif
525 #ifndef yyqtext_ALREADY_DEFINED
526 #undef yytext
527 #endif
528 #ifndef yyqleng_ALREADY_DEFINED
529 #undef yyleng
530 #endif
531 #ifndef yyqin_ALREADY_DEFINED
532 #undef yyin
533 #endif
534 #ifndef yyqout_ALREADY_DEFINED
535 #undef yyout
536 #endif
537 #ifndef yyq_flex_debug_ALREADY_DEFINED
538 #undef yy_flex_debug
539 #endif
540 #ifndef yyqlineno_ALREADY_DEFINED
541 #undef yylineno
542 #endif
543 #ifndef yyqtables_fload_ALREADY_DEFINED
544 #undef yytables_fload
545 #endif
546 #ifndef yyqtables_destroy_ALREADY_DEFINED
547 #undef yytables_destroy
548 #endif
549 #ifndef yyqTABLES_NAME_ALREADY_DEFINED
550 #undef yyTABLES_NAME
551 #endif
552 
553 #line 295 "yyQLexer.l"
554 
555 
556 #line 557 "yyQLexer.h"
557 #undef yyqIN_HEADER
558 #endif /* yyqHEADER_H */
virtual int yylex()
int flex_int32_t
Definition: yyQLexer.h:94
char * yy_buf_pos
Definition: yyQLexer.cpp:283
int yy_n_chars
Definition: yyQLexer.cpp:293
int yy_fill_buffer
Definition: yyQLexer.cpp:320
unsigned int flex_uint32_t
Definition: yyQLexer.h:97
int yy_buf_size
Definition: yyQLexer.cpp:288
int yy_bs_lineno
Definition: yyQLexer.cpp:314
size_t yy_size_t
Definition: yyQLexer.h:188
int yyleng
int yy_at_bol
Definition: yyQLexer.cpp:312
unsigned char flex_uint8_t
Definition: yyQLexer.h:95
int yy_bs_column
Definition: yyQLexer.cpp:315
short int flex_int16_t
Definition: yyQLexer.h:93
char * yy_ch_buf
Definition: yyQLexer.cpp:282
struct yy_buffer_state * YY_BUFFER_STATE
Definition: yyQLexer.h:183
Definition: yyQLexer.cpp:273
int yy_is_our_buffer
Definition: yyQLexer.cpp:299
signed char flex_int8_t
Definition: yyQLexer.h:92
#define yyfree
Definition: yyQLexer.h:51
#define yyrealloc
Definition: yyQLexer.h:45
#define yyalloc
Definition: yyQLexer.h:39
unsigned short int flex_uint16_t
Definition: yyQLexer.h:96
int yy_is_interactive
Definition: yyQLexer.cpp:306
size_t yy_size_t
Definition: yyQLexer.cpp:218
int yy_buffer_status
Definition: yyQLexer.cpp:322
std::streambuf * yy_input_file
Definition: yyQLexer.cpp:279