1 2 3 4 5 6 7 8 9 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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 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 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173
|
/* A Bison parser, made by GNU Bison 1.875a. */
/* Skeleton parser for Yacc-like parsing with Bison,
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
/* As a special exception, when this file is copied by Bison into a
Bison output file, you may use that output file without restriction.
This special exception was added by the Free Software Foundation
in version 1.24 of Bison. */
/* Tokens. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
/* Put the tokens into the symbol table, so that GDB and other debuggers
know about them. */
enum yytokentype {
L_SELECT = 258,
L_FROM = 259,
L_WHERE = 260,
L_AS = 261,
L_ON = 262,
L_ORDER = 263,
L_BY = 264,
L_ORDER_ASC = 265,
L_ORDER_DSC = 266,
L_DISTINCT = 267,
L_BETWEEN = 268,
L_IN = 269,
L_GROUP = 270,
L_INSERT = 271,
L_INTO = 272,
L_VALUES = 273,
L_UPDATE = 274,
L_SET = 275,
L_DOT = 276,
L_COMMA = 277,
L_NULL = 278,
L_LBRACKET = 279,
L_RBRACKET = 280,
L_IDENT = 281,
L_EQ = 282,
L_IS = 283,
L_LIKE = 284,
L_GT = 285,
L_LT = 286,
L_GEQ = 287,
L_LEQ = 288,
L_DIFF = 289,
L_NOT = 290,
L_AND = 291,
L_OR = 292,
L_MINUS = 293,
L_PLUS = 294,
L_TIMES = 295,
L_DIV = 296,
L_STRING = 297,
L_TEXTUAL = 298,
L_DELETE = 299,
L_JOIN = 300,
L_INNER = 301,
L_LEFT = 302,
L_RIGHT = 303,
L_FULL = 304,
L_OUTER = 305,
L_LSBRACKET = 306,
L_RSBRACKET = 307,
L_PNAME = 308,
L_PTYPE = 309,
L_PISPARAM = 310,
L_PDESCR = 311,
L_PNULLOK = 312
};
#endif
#define L_SELECT 258
#define L_FROM 259
#define L_WHERE 260
#define L_AS 261
#define L_ON 262
#define L_ORDER 263
#define L_BY 264
#define L_ORDER_ASC 265
#define L_ORDER_DSC 266
#define L_DISTINCT 267
#define L_BETWEEN 268
#define L_IN 269
#define L_GROUP 270
#define L_INSERT 271
#define L_INTO 272
#define L_VALUES 273
#define L_UPDATE 274
#define L_SET 275
#define L_DOT 276
#define L_COMMA 277
#define L_NULL 278
#define L_LBRACKET 279
#define L_RBRACKET 280
#define L_IDENT 281
#define L_EQ 282
#define L_IS 283
#define L_LIKE 284
#define L_GT 285
#define L_LT 286
#define L_GEQ 287
#define L_LEQ 288
#define L_DIFF 289
#define L_NOT 290
#define L_AND 291
#define L_OR 292
#define L_MINUS 293
#define L_PLUS 294
#define L_TIMES 295
#define L_DIV 296
#define L_STRING 297
#define L_TEXTUAL 298
#define L_DELETE 299
#define L_JOIN 300
#define L_INNER 301
#define L_LEFT 302
#define L_RIGHT 303
#define L_FULL 304
#define L_OUTER 305
#define L_LSBRACKET 306
#define L_RSBRACKET 307
#define L_PNAME 308
#define L_PTYPE 309
#define L_PISPARAM 310
#define L_PDESCR 311
#define L_PNULLOK 312
#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
#line 17 "parser.y"
typedef union YYSTYPE {
void *v;
char *str;
int i;
GList *list;
sql_field *f;
sql_field_item *fi;
sql_table *t;
sql_condition *c;
sql_where *w;
param_spec *ps;
sql_order_field *of;
} YYSTYPE;
/* Line 1240 of yacc.c. */
#line 165 "parser.h"
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
# define YYSTYPE_IS_TRIVIAL 1
#endif
extern YYSTYPE sqllval;
|