lex_sql.h 8.3 KB
Newer Older
羽飞's avatar
羽飞 已提交
1 2 3 4
#ifndef yyHEADER_H
#define yyHEADER_H 1
#define yyIN_HEADER 1

羽飞's avatar
羽飞 已提交
5 6 7
#line 6 "lex_sql.h"

#line 8 "lex_sql.h"
羽飞's avatar
羽飞 已提交
8

羽飞's avatar
羽飞 已提交
9
#define  YY_INT_ALIGNED short int
羽飞's avatar
羽飞 已提交
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37

/* A lexical scanner generated by flex */

#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5
#define YY_FLEX_SUBMINOR_VERSION 35
#if YY_FLEX_SUBMINOR_VERSION > 0
#define FLEX_BETA
#endif

/* First, we deal with  platform-specific or compiler-specific issues. */

/* begin standard C headers. */
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>

/* end standard C headers. */

/* flex integer type definitions */

#ifndef FLEXINT_H
#define FLEXINT_H

/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */

羽飞's avatar
羽飞 已提交
38
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
羽飞's avatar
羽飞 已提交
39 40

/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
羽飞's avatar
羽飞 已提交
41
 * if you want the limit (max/min) macros for int types. 
羽飞's avatar
羽飞 已提交
42 43 44 45 46 47 48 49 50 51 52 53
 */
#ifndef __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS 1
#endif

#include <inttypes.h>
typedef int8_t flex_int8_t;
typedef uint8_t flex_uint8_t;
typedef int16_t flex_int16_t;
typedef uint16_t flex_uint16_t;
typedef int32_t flex_int32_t;
typedef uint32_t flex_uint32_t;
羽飞's avatar
羽飞 已提交
54
typedef uint64_t flex_uint64_t;
羽飞's avatar
羽飞 已提交
55 56 57 58
#else
typedef signed char flex_int8_t;
typedef short int flex_int16_t;
typedef int flex_int32_t;
羽飞's avatar
羽飞 已提交
59
typedef unsigned char flex_uint8_t; 
羽飞's avatar
羽飞 已提交
60 61 62 63 64 65
typedef unsigned short int flex_uint16_t;
typedef unsigned int flex_uint32_t;
#endif /* ! C99 */

/* Limits of integral types. */
#ifndef INT8_MIN
羽飞's avatar
羽飞 已提交
66
#define INT8_MIN               (-128)
羽飞's avatar
羽飞 已提交
67 68
#endif
#ifndef INT16_MIN
羽飞's avatar
羽飞 已提交
69
#define INT16_MIN              (-32767-1)
羽飞's avatar
羽飞 已提交
70 71
#endif
#ifndef INT32_MIN
羽飞's avatar
羽飞 已提交
72
#define INT32_MIN              (-2147483647-1)
羽飞's avatar
羽飞 已提交
73 74
#endif
#ifndef INT8_MAX
羽飞's avatar
羽飞 已提交
75
#define INT8_MAX               (127)
羽飞's avatar
羽飞 已提交
76 77
#endif
#ifndef INT16_MAX
羽飞's avatar
羽飞 已提交
78
#define INT16_MAX              (32767)
羽飞's avatar
羽飞 已提交
79 80
#endif
#ifndef INT32_MAX
羽飞's avatar
羽飞 已提交
81
#define INT32_MAX              (2147483647)
羽飞's avatar
羽飞 已提交
82 83
#endif
#ifndef UINT8_MAX
羽飞's avatar
羽飞 已提交
84
#define UINT8_MAX              (255U)
羽飞's avatar
羽飞 已提交
85 86
#endif
#ifndef UINT16_MAX
羽飞's avatar
羽飞 已提交
87
#define UINT16_MAX             (65535U)
羽飞's avatar
羽飞 已提交
88 89
#endif
#ifndef UINT32_MAX
羽飞's avatar
羽飞 已提交
90
#define UINT32_MAX             (4294967295U)
羽飞's avatar
羽飞 已提交
91 92 93 94 95 96 97 98 99
#endif

#endif /* ! FLEXINT_H */

#ifdef __cplusplus

/* The "const" storage-class-modifier is valid. */
#define YY_USE_CONST

羽飞's avatar
羽飞 已提交
100
#else	/* ! __cplusplus */
羽飞's avatar
羽飞 已提交
101 102

/* C99 requires __STDC__ to be defined as 1. */
羽飞's avatar
羽飞 已提交
103
#if defined (__STDC__)
羽飞's avatar
羽飞 已提交
104 105 106

#define YY_USE_CONST

羽飞's avatar
羽飞 已提交
107 108
#endif	/* defined (__STDC__) */
#endif	/* ! __cplusplus */
羽飞's avatar
羽飞 已提交
109 110 111 112 113 114 115 116 117 118

#ifdef YY_USE_CONST
#define yyconst const
#else
#define yyconst
#endif

/* An opaque pointer. */
#ifndef YY_TYPEDEF_YY_SCANNER_T
#define YY_TYPEDEF_YY_SCANNER_T
羽飞's avatar
羽飞 已提交
119
typedef void* yyscan_t;
羽飞's avatar
羽飞 已提交
120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149
#endif

/* For convenience, these vars (plus the bison vars far below)
   are macros in the reentrant scanner. */
#define yyin yyg->yyin_r
#define yyout yyg->yyout_r
#define yyextra yyg->yyextra_r
#define yyleng yyg->yyleng_r
#define yytext yyg->yytext_r
#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
#define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
#define yy_flex_debug yyg->yy_flex_debug_r

/* Size of default input buffer. */
#ifndef YY_BUF_SIZE
#define YY_BUF_SIZE 16384
#endif

#ifndef YY_TYPEDEF_YY_BUFFER_STATE
#define YY_TYPEDEF_YY_BUFFER_STATE
typedef struct yy_buffer_state *YY_BUFFER_STATE;
#endif

#ifndef YY_TYPEDEF_YY_SIZE_T
#define YY_TYPEDEF_YY_SIZE_T
typedef size_t yy_size_t;
#endif

#ifndef YY_STRUCT_YY_BUFFER_STATE
#define YY_STRUCT_YY_BUFFER_STATE
羽飞's avatar
羽飞 已提交
150 151 152 153 154 155 156 157 158 159 160 161 162 163 164
struct yy_buffer_state
	{
	FILE *yy_input_file;

	char *yy_ch_buf;		/* input buffer */
	char *yy_buf_pos;		/* current position in input buffer */

	/* Size of input buffer in bytes, not including room for EOB
	 * characters.
	 */
	yy_size_t yy_buf_size;

	/* Number of characters read into yy_ch_buf, not including EOB
	 * characters.
	 */
羽飞's avatar
羽飞 已提交
165
	yy_size_t yy_n_chars;
羽飞's avatar
羽飞 已提交
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196

	/* Whether we "own" the buffer - i.e., we know we created it,
	 * and can realloc() it to grow it, and should free() it to
	 * delete it.
	 */
	int yy_is_our_buffer;

	/* Whether this is an "interactive" input source; if so, and
	 * if we're using stdio for input, then we want to use getc()
	 * instead of fread(), to make sure we stop fetching input after
	 * each newline.
	 */
	int yy_is_interactive;

	/* Whether we're considered to be at the beginning of a line.
	 * If so, '^' rules will be active on the next match, otherwise
	 * not.
	 */
	int yy_at_bol;

    int yy_bs_lineno; /**< The line count. */
    int yy_bs_column; /**< The column count. */
    
	/* Whether to try to fill the input buffer when we reach the
	 * end of it.
	 */
	int yy_fill_buffer;

	int yy_buffer_status;

	};
羽飞's avatar
羽飞 已提交
197 198
#endif /* !YY_STRUCT_YY_BUFFER_STATE */

羽飞's avatar
羽飞 已提交
199 200 201 202 203 204 205
void yyrestart (FILE *input_file ,yyscan_t yyscanner );
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
YY_BUFFER_STATE yy_create_buffer (FILE *file,int size ,yyscan_t yyscanner );
void yy_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
void yy_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
void yypush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
void yypop_buffer_state (yyscan_t yyscanner );
羽飞's avatar
羽飞 已提交
206

羽飞's avatar
羽飞 已提交
207 208
YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
羽飞's avatar
羽飞 已提交
209
YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,yy_size_t len ,yyscan_t yyscanner );
羽飞's avatar
羽飞 已提交
210

羽飞's avatar
羽飞 已提交
211 212 213
void *yyalloc (yy_size_t ,yyscan_t yyscanner );
void *yyrealloc (void *,yy_size_t ,yyscan_t yyscanner );
void yyfree (void * ,yyscan_t yyscanner );
羽飞's avatar
羽飞 已提交
214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239

/* Begin user sect3 */

#define yywrap(n) 1
#define YY_SKIP_YYWRAP

#define yytext_ptr yytext_r

#ifdef YY_HEADER_EXPORT_START_CONDITIONS
#define INITIAL 0
#define STR 1

#endif

#ifndef YY_NO_UNISTD_H
/* Special case for "unistd.h", since it is non-ANSI. We include it way
 * down here because we want the user's section 1 to have been scanned first.
 * The user has a chance to override it with an option.
 */
#include <unistd.h>
#endif

#ifndef YY_EXTRA_TYPE
#define YY_EXTRA_TYPE void *
#endif

羽飞's avatar
羽飞 已提交
240
int yylex_init (yyscan_t* scanner);
羽飞's avatar
羽飞 已提交
241

羽飞's avatar
羽飞 已提交
242
int yylex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner);
羽飞's avatar
羽飞 已提交
243 244 245 246

/* Accessor methods to globals.
   These are made visible to non-reentrant scanners for convenience. */

羽飞's avatar
羽飞 已提交
247
int yylex_destroy (yyscan_t yyscanner );
羽飞's avatar
羽飞 已提交
248

羽飞's avatar
羽飞 已提交
249
int yyget_debug (yyscan_t yyscanner );
羽飞's avatar
羽飞 已提交
250

羽飞's avatar
羽飞 已提交
251
void yyset_debug (int debug_flag ,yyscan_t yyscanner );
羽飞's avatar
羽飞 已提交
252

羽飞's avatar
羽飞 已提交
253
YY_EXTRA_TYPE yyget_extra (yyscan_t yyscanner );
羽飞's avatar
羽飞 已提交
254

羽飞's avatar
羽飞 已提交
255
void yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
羽飞's avatar
羽飞 已提交
256

羽飞's avatar
羽飞 已提交
257
FILE *yyget_in (yyscan_t yyscanner );
羽飞's avatar
羽飞 已提交
258

羽飞's avatar
羽飞 已提交
259
void yyset_in  (FILE * in_str ,yyscan_t yyscanner );
羽飞's avatar
羽飞 已提交
260

羽飞's avatar
羽飞 已提交
261
FILE *yyget_out (yyscan_t yyscanner );
羽飞's avatar
羽飞 已提交
262

羽飞's avatar
羽飞 已提交
263
void yyset_out  (FILE * out_str ,yyscan_t yyscanner );
羽飞's avatar
羽飞 已提交
264

羽飞's avatar
羽飞 已提交
265
yy_size_t yyget_leng (yyscan_t yyscanner );
羽飞's avatar
羽飞 已提交
266

羽飞's avatar
羽飞 已提交
267
char *yyget_text (yyscan_t yyscanner );
羽飞's avatar
羽飞 已提交
268

羽飞's avatar
羽飞 已提交
269
int yyget_lineno (yyscan_t yyscanner );
羽飞's avatar
羽飞 已提交
270

羽飞's avatar
羽飞 已提交
271
void yyset_lineno (int line_number ,yyscan_t yyscanner );
羽飞's avatar
羽飞 已提交
272

羽飞's avatar
羽飞 已提交
273
YYSTYPE * yyget_lval (yyscan_t yyscanner );
羽飞's avatar
羽飞 已提交
274

羽飞's avatar
羽飞 已提交
275
void yyset_lval (YYSTYPE * yylval_param ,yyscan_t yyscanner );
羽飞's avatar
羽飞 已提交
276

羽飞's avatar
羽飞 已提交
277 278 279 280
       YYLTYPE *yyget_lloc (yyscan_t yyscanner );
    
        void yyset_lloc (YYLTYPE * yylloc_param ,yyscan_t yyscanner );
    
羽飞's avatar
羽飞 已提交
281 282 283 284 285 286
/* Macros after this point can all be overridden by user definitions in
 * section 1.
 */

#ifndef YY_SKIP_YYWRAP
#ifdef __cplusplus
羽飞's avatar
羽飞 已提交
287
extern "C" int yywrap (yyscan_t yyscanner );
羽飞's avatar
羽飞 已提交
288
#else
羽飞's avatar
羽飞 已提交
289
extern int yywrap (yyscan_t yyscanner );
羽飞's avatar
羽飞 已提交
290 291 292 293
#endif
#endif

#ifndef yytext_ptr
羽飞's avatar
羽飞 已提交
294
static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
羽飞's avatar
羽飞 已提交
295 296 297
#endif

#ifdef YY_NEED_STRLEN
羽飞's avatar
羽飞 已提交
298
static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
羽飞's avatar
羽飞 已提交
299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320
#endif

#ifndef YY_NO_INPUT

#endif

/* Amount of stuff to slurp up with each read. */
#ifndef YY_READ_BUF_SIZE
#define YY_READ_BUF_SIZE 8192
#endif

/* Number of entries by which start-condition stack grows. */
#ifndef YY_START_STACK_INCR
#define YY_START_STACK_INCR 25
#endif

/* Default declaration of generated scanner - a define so the user can
 * easily add parameters.
 */
#ifndef YY_DECL
#define YY_DECL_IS_OURS 1

羽飞's avatar
羽飞 已提交
321
extern int yylex \
羽飞's avatar
羽飞 已提交
322
               (YYSTYPE * yylval_param,YYLTYPE * yylloc_param ,yyscan_t yyscanner);
羽飞's avatar
羽飞 已提交
323

羽飞's avatar
羽飞 已提交
324
#define YY_DECL int yylex \
羽飞's avatar
羽飞 已提交
325
               (YYSTYPE * yylval_param, YYLTYPE * yylloc_param , yyscan_t yyscanner)
羽飞's avatar
羽飞 已提交
326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341
#endif /* !YY_DECL */

/* yy_get_previous_state - get the state just before the EOB char was reached */

#undef YY_NEW_FILE
#undef YY_FLUSH_BUFFER
#undef yy_set_bol
#undef yy_new_buffer
#undef yy_set_interactive
#undef YY_DO_BEFORE_ACTION

#ifdef YY_DECL_IS_OURS
#undef YY_DECL_IS_OURS
#undef YY_DECL
#endif

羽飞's avatar
羽飞 已提交
342
#line 113 "lex_sql.l"
羽飞's avatar
羽飞 已提交
343

羽飞's avatar
羽飞 已提交
344

羽飞's avatar
羽飞 已提交
345
#line 346 "lex_sql.h"
羽飞's avatar
羽飞 已提交
346 347
#undef yyIN_HEADER
#endif /* yyHEADER_H */