forked from senarukana/sqlparser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsql1.h
259 lines (238 loc) · 5.5 KB
/
sql1.h
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
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
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
/* A Bison parser, made by GNU Bison 2.5. */
/* Bison interface for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2011 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 3 of the License, 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, see <http://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
under terms of your choice, so long as that work isn't itself a
parser generator using the skeleton or a modified version thereof
as a parser skeleton. Alternatively, if you modify or redistribute
the parser skeleton itself, you may (at your option) remove this
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
This special exception was added by the Free Software Foundation in
version 2.2 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 {
NAME = 258,
STRING = 259,
INTNUM = 260,
APPROXNUM = 261,
OR = 262,
AND = 263,
NOT = 264,
COMPARISON = 265,
UMINUS = 266,
ALL = 267,
AMMSC = 268,
ANY = 269,
AS = 270,
ASC = 271,
AUTHORIZATION = 272,
BETWEEN = 273,
BY = 274,
CHARACTER = 275,
CHECK = 276,
CLOSE = 277,
COMMIT = 278,
CONTINUE = 279,
CREATE = 280,
CURRENT = 281,
CURSOR = 282,
DECIMAL = 283,
DECLARE = 284,
DEFAULT = 285,
DELETE = 286,
DESC = 287,
DISTINCT = 288,
DOUBLE = 289,
ESCAPE = 290,
EXISTS = 291,
FETCH = 292,
FLOAT = 293,
FOR = 294,
FOREIGN = 295,
FOUND = 296,
FROM = 297,
GOTO = 298,
GRANT = 299,
GROUP = 300,
HAVING = 301,
IN = 302,
INDICATOR = 303,
INSERT = 304,
INTEGER = 305,
INTO = 306,
IS = 307,
KEY = 308,
LANGUAGE = 309,
LIKE = 310,
MODULE = 311,
NULLX = 312,
NUMERIC = 313,
OF = 314,
ON = 315,
OPEN = 316,
OPTION = 317,
ORDER = 318,
PRECISION = 319,
PRIMARY = 320,
PRIVILEGES = 321,
PROCEDURE = 322,
PUBLIC = 323,
REAL = 324,
REFERENCES = 325,
ROLLBACK = 326,
SCHEMA = 327,
SELECT = 328,
SET = 329,
SMALLINT = 330,
SOME = 331,
SQLCODE = 332,
SQLERROR = 333,
TABLE = 334,
TO = 335,
UNION = 336,
UNIQUE = 337,
UPDATE = 338,
USER = 339,
VALUES = 340,
VIEW = 341,
WHENEVER = 342,
WHERE = 343,
WITH = 344,
WORK = 345,
COBOL = 346,
FORTRAN = 347,
PASCAL = 348,
PLI = 349,
C = 350,
ADA = 351
};
#endif
/* Tokens. */
#define NAME 258
#define STRING 259
#define INTNUM 260
#define APPROXNUM 261
#define OR 262
#define AND 263
#define NOT 264
#define COMPARISON 265
#define UMINUS 266
#define ALL 267
#define AMMSC 268
#define ANY 269
#define AS 270
#define ASC 271
#define AUTHORIZATION 272
#define BETWEEN 273
#define BY 274
#define CHARACTER 275
#define CHECK 276
#define CLOSE 277
#define COMMIT 278
#define CONTINUE 279
#define CREATE 280
#define CURRENT 281
#define CURSOR 282
#define DECIMAL 283
#define DECLARE 284
#define DEFAULT 285
#define DELETE 286
#define DESC 287
#define DISTINCT 288
#define DOUBLE 289
#define ESCAPE 290
#define EXISTS 291
#define FETCH 292
#define FLOAT 293
#define FOR 294
#define FOREIGN 295
#define FOUND 296
#define FROM 297
#define GOTO 298
#define GRANT 299
#define GROUP 300
#define HAVING 301
#define IN 302
#define INDICATOR 303
#define INSERT 304
#define INTEGER 305
#define INTO 306
#define IS 307
#define KEY 308
#define LANGUAGE 309
#define LIKE 310
#define MODULE 311
#define NULLX 312
#define NUMERIC 313
#define OF 314
#define ON 315
#define OPEN 316
#define OPTION 317
#define ORDER 318
#define PRECISION 319
#define PRIMARY 320
#define PRIVILEGES 321
#define PROCEDURE 322
#define PUBLIC 323
#define REAL 324
#define REFERENCES 325
#define ROLLBACK 326
#define SCHEMA 327
#define SELECT 328
#define SET 329
#define SMALLINT 330
#define SOME 331
#define SQLCODE 332
#define SQLERROR 333
#define TABLE 334
#define TO 335
#define UNION 336
#define UNIQUE 337
#define UPDATE 338
#define USER 339
#define VALUES 340
#define VIEW 341
#define WHENEVER 342
#define WHERE 343
#define WITH 344
#define WORK 345
#define COBOL 346
#define FORTRAN 347
#define PASCAL 348
#define PLI 349
#define C 350
#define ADA 351
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE
{
/* Line 2068 of yacc.c */
#line 3 "sql1.y"
int intval;
double floatval;
char *strval;
int subtok;
/* Line 2068 of yacc.c */
#line 251 "y.tab.h"
} YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
#endif
extern YYSTYPE yylval;