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