Drizzled Public API Documentation

scanner.h
1 #ifndef execute_HEADER_H
2 #define execute_HEADER_H 1
3 #define execute_IN_HEADER 1
4 
5 #line 6 "drizzled/execute/scanner.h"
6 #line 41 "drizzled/execute/scanner.l"
7 
8 #include <config.h>
9 #include <unistd.h>
10 
11 #ifndef execute_HEADER_H
12 # define execute_HEADER_H 1
13 #endif
14 
15 #include "drizzled/execute/common.h"
16 #include "drizzled/lex_string.h"
17 
18 using namespace drizzled;
19 
20 #ifndef __INTEL_COMPILER
21 #pragma GCC diagnostic ignored "-Wold-style-cast"
22 #pragma GCC diagnostic ignored "-Wsign-compare"
23 #pragma GCC diagnostic ignored "-Wunused-parameter"
24 #pragma GCC diagnostic ignored "-Wmissing-declarations"
25 #endif
26 
27 #ifndef YY_EXTRA_TYPE
28 # define YY_EXTRA_TYPE drizzled::execute::Context*
29 #endif
30 
31 
32 
33 
34 #line 35 "drizzled/execute/scanner.h"
35 
36 #define YY_INT_ALIGNED short int
37 
38 /* A lexical scanner generated by flex */
39 
40 /* %not-for-header */
41 
42 #define FLEX_SCANNER
43 #define YY_FLEX_MAJOR_VERSION 2
44 #define YY_FLEX_MINOR_VERSION 5
45 #define YY_FLEX_SUBMINOR_VERSION 35
46 #if YY_FLEX_SUBMINOR_VERSION > 0
47 #define FLEX_BETA
48 #endif
49 
50 /* %if-c++-only */
51 /* %endif */
52 
53 /* %if-c-only */
54 
55 /* %endif */
56 
57 /* %if-c-only */
58 
59 /* %endif */
60 
61 /* First, we deal with platform-specific or compiler-specific issues. */
62 
63 /* begin standard C headers. */
64 /* %if-c-only */
65 #include <stdio.h>
66 #include <string.h>
67 #include <errno.h>
68 #include <stdlib.h>
69 /* %endif */
70 
71 /* %if-tables-serialization */
72 /* %endif */
73 /* end standard C headers. */
74 
75 /* %if-c-or-c++ */
76 /* flex integer type definitions */
77 
78 #ifndef FLEXINT_H
79 #define FLEXINT_H
80 
81 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
82 
83 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
84 
85 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
86  * if you want the limit (max/min) macros for int types.
87  */
88 #ifndef __STDC_LIMIT_MACROS
89 #define __STDC_LIMIT_MACROS 1
90 #endif
91 
92 #include <inttypes.h>
93 typedef int8_t flex_int8_t;
94 typedef uint8_t flex_uint8_t;
95 typedef int16_t flex_int16_t;
96 typedef uint16_t flex_uint16_t;
97 typedef int32_t flex_int32_t;
98 typedef uint32_t flex_uint32_t;
99 #else
100 typedef signed char flex_int8_t;
101 typedef short int flex_int16_t;
102 typedef int flex_int32_t;
103 typedef unsigned char flex_uint8_t;
104 typedef unsigned short int flex_uint16_t;
105 typedef unsigned int flex_uint32_t;
106 
107 /* Limits of integral types. */
108 #ifndef INT8_MIN
109 #define INT8_MIN (-128)
110 #endif
111 #ifndef INT16_MIN
112 #define INT16_MIN (-32767-1)
113 #endif
114 #ifndef INT32_MIN
115 #define INT32_MIN (-2147483647-1)
116 #endif
117 #ifndef INT8_MAX
118 #define INT8_MAX (127)
119 #endif
120 #ifndef INT16_MAX
121 #define INT16_MAX (32767)
122 #endif
123 #ifndef INT32_MAX
124 #define INT32_MAX (2147483647)
125 #endif
126 #ifndef UINT8_MAX
127 #define UINT8_MAX (255U)
128 #endif
129 #ifndef UINT16_MAX
130 #define UINT16_MAX (65535U)
131 #endif
132 #ifndef UINT32_MAX
133 #define UINT32_MAX (4294967295U)
134 #endif
135 
136 #endif /* ! C99 */
137 
138 #endif /* ! FLEXINT_H */
139 
140 /* %endif */
141 
142 /* %if-c++-only */
143 /* %endif */
144 
145 #ifdef __cplusplus
146 
147 /* The "const" storage-class-modifier is valid. */
148 #define YY_USE_CONST
149 
150 #else /* ! __cplusplus */
151 
152 /* C99 requires __STDC__ to be defined as 1. */
153 #if defined (__STDC__)
154 
155 #define YY_USE_CONST
156 
157 #endif /* defined (__STDC__) */
158 #endif /* ! __cplusplus */
159 
160 #ifdef YY_USE_CONST
161 #define yyconst const
162 #else
163 #define yyconst
164 #endif
165 
166 /* %not-for-header */
167 
168 /* %not-for-header */
169 
170 /* %if-reentrant */
171 
172 /* An opaque pointer. */
173 #ifndef YY_TYPEDEF_YY_SCANNER_T
174 #define YY_TYPEDEF_YY_SCANNER_T
175 typedef void* yyscan_t;
176 #endif
177 
178 /* For convenience, these vars (plus the bison vars far below)
179  are macros in the reentrant scanner. */
180 #define yyin yyg->yyin_r
181 #define yyout yyg->yyout_r
182 #define yyextra yyg->yyextra_r
183 #define yyleng yyg->yyleng_r
184 #define yytext yyg->yytext_r
185 #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
186 #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
187 #define yy_flex_debug yyg->yy_flex_debug_r
188 
189 /* %endif */
190 
191 /* %if-not-reentrant */
192 /* %endif */
193 
194 /* Size of default input buffer. */
195 #ifndef YY_BUF_SIZE
196 #ifdef __ia64__
197 /* On IA-64, the buffer size is 16k, not 8k.
198  * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
199  * Ditto for the __ia64__ case accordingly.
200  */
201 #define YY_BUF_SIZE 32768
202 #else
203 #define YY_BUF_SIZE 16384
204 #endif /* __ia64__ */
205 #endif
206 
207 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
208 #define YY_TYPEDEF_YY_BUFFER_STATE
209 typedef struct yy_buffer_state *YY_BUFFER_STATE;
210 #endif
211 
212 /* %if-not-reentrant */
213 /* %endif */
214 
215 /* %if-c-only */
216 /* %if-not-reentrant */
217 /* %endif */
218 /* %endif */
219 
220 #ifndef YY_TYPEDEF_YY_SIZE_T
221 #define YY_TYPEDEF_YY_SIZE_T
222 typedef size_t yy_size_t;
223 #endif
224 
225 #ifndef YY_STRUCT_YY_BUFFER_STATE
226 #define YY_STRUCT_YY_BUFFER_STATE
227 struct yy_buffer_state
228  {
229 /* %if-c-only */
230  FILE *yy_input_file;
231 /* %endif */
232 
233 /* %if-c++-only */
234 /* %endif */
235 
236  char *yy_ch_buf; /* input buffer */
237  char *yy_buf_pos; /* current position in input buffer */
238 
239  /* Size of input buffer in bytes, not including room for EOB
240  * characters.
241  */
242  yy_size_t yy_buf_size;
243 
244  /* Number of characters read into yy_ch_buf, not including EOB
245  * characters.
246  */
247  int yy_n_chars;
248 
249  /* Whether we "own" the buffer - i.e., we know we created it,
250  * and can realloc() it to grow it, and should free() it to
251  * delete it.
252  */
253  int yy_is_our_buffer;
254 
255  /* Whether this is an "interactive" input source; if so, and
256  * if we're using stdio for input, then we want to use getc()
257  * instead of fread(), to make sure we stop fetching input after
258  * each newline.
259  */
260  int yy_is_interactive;
261 
262  /* Whether we're considered to be at the beginning of a line.
263  * If so, '^' rules will be active on the next match, otherwise
264  * not.
265  */
266  int yy_at_bol;
267 
268  int yy_bs_lineno;
269  int yy_bs_column;
271  /* Whether to try to fill the input buffer when we reach the
272  * end of it.
273  */
274  int yy_fill_buffer;
275 
276  int yy_buffer_status;
277 
278  };
279 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
280 
281 /* %if-c-only Standard (non-C++) definition */
282 /* %not-for-header */
283 
284 /* %endif */
285 
286 /* %if-c-only Standard (non-C++) definition */
287 
288 /* %if-not-reentrant */
289 /* %not-for-header */
290 
291 /* %endif */
292 
293 void execute_restart (FILE *input_file ,yyscan_t yyscanner );
294 void execute__switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
295 YY_BUFFER_STATE execute__create_buffer (FILE *file,int size ,yyscan_t yyscanner );
296 void execute__delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
297 void execute__flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
298 void execute_push_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
299 void execute_pop_buffer_state (yyscan_t yyscanner );
300 
301 YY_BUFFER_STATE execute__scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
302 YY_BUFFER_STATE execute__scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
303 YY_BUFFER_STATE execute__scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner );
304 
305 /* %endif */
306 
307 void *execute_alloc (yy_size_t ,yyscan_t yyscanner );
308 void *execute_realloc (void *,yy_size_t ,yyscan_t yyscanner );
309 void execute_free (void * ,yyscan_t yyscanner );
310 
311 /* %% [1.0] yytext/yyin/yyout/yy_state_type/yylineno etc. def's & init go here */
312 /* Begin user sect3 */
313 
314 #define execute_wrap(n) 1
315 #define YY_SKIP_YYWRAP
316 
317 #define FLEX_DEBUG
318 
319 #define yytext_ptr yytext_r
320 
321 /* %if-c-only Standard (non-C++) definition */
322 
323 /* %endif */
324 
325 #ifdef YY_HEADER_EXPORT_START_CONDITIONS
326 #define INITIAL 0
327 
328 #endif
329 
330 #ifndef YY_NO_UNISTD_H
331 /* Special case for "unistd.h", since it is non-ANSI. We include it way
332  * down here because we want the user's section 1 to have been scanned first.
333  * The user has a chance to override it with an option.
334  */
335 /* %if-c-only */
336 #include <unistd.h>
337 /* %endif */
338 /* %if-c++-only */
339 /* %endif */
340 #endif
341 
342 #ifndef YY_EXTRA_TYPE
343 #define YY_EXTRA_TYPE void *
344 #endif
345 
346 /* %if-c-only Reentrant structure and macros (non-C++). */
347 /* %if-reentrant */
348 
349 /* %if-c-only */
350 
351 /* %endif */
352 
353 /* %if-reentrant */
354 
355 int execute_lex_init (yyscan_t* scanner);
356 
357 int execute_lex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner);
358 
359 /* %endif */
360 
361 /* %endif End reentrant structures and macros. */
362 
363 /* Accessor methods to globals.
364  These are made visible to non-reentrant scanners for convenience. */
365 
366 int execute_lex_destroy (yyscan_t yyscanner );
367 
368 int execute_get_debug (yyscan_t yyscanner );
369 
370 void execute_set_debug (int debug_flag ,yyscan_t yyscanner );
371 
372 YY_EXTRA_TYPE execute_get_extra (yyscan_t yyscanner );
373 
374 void execute_set_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
375 
376 FILE *execute_get_in (yyscan_t yyscanner );
377 
378 void execute_set_in (FILE * in_str ,yyscan_t yyscanner );
379 
380 FILE *execute_get_out (yyscan_t yyscanner );
381 
382 void execute_set_out (FILE * out_str ,yyscan_t yyscanner );
383 
384 int execute_get_leng (yyscan_t yyscanner );
385 
386 char *execute_get_text (yyscan_t yyscanner );
387 
388 int execute_get_lineno (yyscan_t yyscanner );
389 
390 void execute_set_lineno (int line_number ,yyscan_t yyscanner );
391 
392 int execute_get_column (yyscan_t yyscanner );
393 
394 void execute_set_column (int column_no ,yyscan_t yyscanner );
395 
396 /* %if-bison-bridge */
397 
398 YYSTYPE * execute_get_lval (yyscan_t yyscanner );
399 
400 void execute_set_lval (YYSTYPE * yylval_param ,yyscan_t yyscanner );
401 
402 /* %endif */
403 
404 /* Macros after this point can all be overridden by user definitions in
405  * section 1.
406  */
407 
408 #ifndef YY_SKIP_YYWRAP
409 #ifdef __cplusplus
410 extern "C" int execute_wrap (yyscan_t yyscanner );
411 #else
412 extern int execute_wrap (yyscan_t yyscanner );
413 #endif
414 #endif
415 
416 /* %not-for-header */
417 
418 /* %endif */
419 
420 #ifndef yytext_ptr
421 static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
422 #endif
423 
424 #ifdef YY_NEED_STRLEN
425 static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
426 #endif
427 
428 #ifndef YY_NO_INPUT
429 /* %if-c-only Standard (non-C++) definition */
430 /* %not-for-header */
431 
432 /* %endif */
433 #endif
434 
435 /* %if-c-only */
436 
437 /* %endif */
438 
439 /* Amount of stuff to slurp up with each read. */
440 #ifndef YY_READ_BUF_SIZE
441 #ifdef __ia64__
442 /* On IA-64, the buffer size is 16k, not 8k */
443 #define YY_READ_BUF_SIZE 16384
444 #else
445 #define YY_READ_BUF_SIZE 8192
446 #endif /* __ia64__ */
447 #endif
448 
449 /* Number of entries by which start-condition stack grows. */
450 #ifndef YY_START_STACK_INCR
451 #define YY_START_STACK_INCR 25
452 #endif
453 
454 /* %if-tables-serialization structures and prototypes */
455 /* %not-for-header */
456 
457 /* %not-for-header */
458 
459 /* Default declaration of generated scanner - a define so the user can
460  * easily add parameters.
461  */
462 #ifndef YY_DECL
463 #define YY_DECL_IS_OURS 1
464 /* %if-c-only Standard (non-C++) definition */
465 
466 extern int execute_lex \
467  (YYSTYPE * yylval_param ,yyscan_t yyscanner);
468 
469 #define YY_DECL int execute_lex \
470  (YYSTYPE * yylval_param , yyscan_t yyscanner)
471 /* %endif */
472 /* %if-c++-only C++ definition */
473 /* %endif */
474 #endif /* !YY_DECL */
475 
476 /* %not-for-header */
477 
478 /* %if-c++-only */
479 /* %not-for-header */
480 
481 /* %endif */
482 
483 /* yy_get_previous_state - get the state just before the EOB char was reached */
484 
485 /* %if-c-only */
486 /* %not-for-header */
487 
488 #undef YY_NEW_FILE
489 #undef YY_FLUSH_BUFFER
490 #undef yy_set_bol
491 #undef yy_new_buffer
492 #undef yy_set_interactive
493 #undef YY_DO_BEFORE_ACTION
494 
495 #ifdef YY_DECL_IS_OURS
496 #undef YY_DECL_IS_OURS
497 #undef YY_DECL
498 #endif
499 
500 #line 143 "drizzled/execute/scanner.l"
501 
502 
503 #line 504 "drizzled/execute/scanner.h"
504 #undef execute_IN_HEADER
505 #endif /* execute_HEADER_H */