-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathyacc.hpp
More file actions
314 lines (300 loc) · 6.79 KB
/
Copy pathyacc.hpp
File metadata and controls
314 lines (300 loc) · 6.79 KB
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
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
/* A Bison parser, made by GNU Bison 2.1. */
/* Skeleton parser for Yacc-like parsing with Bison,
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005 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., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, 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 {
ABSTRACT = 258,
ASSERT = 259,
BOOLEAN = 260,
BREAK = 261,
BYVALUE = 262,
CASE = 263,
CAST = 264,
CATCH = 265,
CLASS = 266,
CONST = 267,
CONTINUE = 268,
DEFAULT = 269,
DO = 270,
ENUM = 271,
EXTENDS = 272,
FINAL = 273,
FINALLY = 274,
FOR = 275,
FUTURE = 276,
GENERIC = 277,
GOTO = 278,
IF = 279,
IMPLEMENTS = 280,
IMPORT = 281,
INNER = 282,
INSTANCEOF = 283,
INTERFACE = 284,
NATIVE = 285,
NEW = 286,
JNULL = 287,
OPERATOR = 288,
OUTER = 289,
PACKAGE = 290,
PRIVATE = 291,
PROTECTED = 292,
PUBLIC = 293,
REST = 294,
RETURN = 295,
STATIC = 296,
SUPER = 297,
SWITCH = 298,
SYNCHRONIZED = 299,
THIS = 300,
THROW = 301,
THROWS = 302,
TRANSIENT = 303,
TRY = 304,
VAR = 305,
VOID = 306,
VOLATILE = 307,
WHILE = 308,
OP_INC = 309,
OP_DEC = 310,
OP_SHL = 311,
OP_SHR = 312,
OP_SHRR = 313,
OP_GE = 314,
OP_LE = 315,
OP_EQ = 316,
OP_NE = 317,
OP_LAND = 318,
OP_LOR = 319,
OP_DIM = 320,
ASS_MUL = 321,
ASS_DIV = 322,
ASS_MOD = 323,
ASS_ADD = 324,
ASS_SUB = 325,
ASS_SHL = 326,
ASS_SHR = 327,
ASS_SHRR = 328,
ASS_AND = 329,
ASS_XOR = 330,
ASS_OR = 331,
OPEN_B = 332,
CLOSE_B = 333,
OPEN = 334,
CLOSE = 335,
COLON = 336,
COMMA = 337,
PLUS = 338,
MINUS = 339,
MULT = 340,
DIV = 341,
AND = 342,
OR = 343,
QUES_MARK = 344,
EXC_MARK = 345,
MODULE = 346,
DURA = 347,
ASSIGN = 348,
XOR = 349,
LESS = 350,
GREATER = 351,
INT = 352,
SHORT = 353,
LONG = 354,
FLOAT = 355,
DOUBLE = 356,
CHAR = 357,
BYTE = 358,
IDENTIFIER = 359,
INTEGER_VALUE = 360,
LONG_VALUE = 361,
N_ID = 362,
FLOAT_VALUE = 363,
CHAR_VALUE = 364,
STRING_VALUE = 365,
BOOLLIT = 366,
LITERAL = 367,
e1 = 368,
ELSE = 369,
e4 = 370,
e2 = 371,
e3 = 372,
CLOSE_D = 373,
OPEN_D = 374,
e5 = 375,
e6 = 376,
e7 = 377,
POINT = 378,
SEMICOLON = 379,
e8 = 380,
e9 = 381
};
#endif
/* Tokens. */
#define ABSTRACT 258
#define ASSERT 259
#define BOOLEAN 260
#define BREAK 261
#define BYVALUE 262
#define CASE 263
#define CAST 264
#define CATCH 265
#define CLASS 266
#define CONST 267
#define CONTINUE 268
#define DEFAULT 269
#define DO 270
#define ENUM 271
#define EXTENDS 272
#define FINAL 273
#define FINALLY 274
#define FOR 275
#define FUTURE 276
#define GENERIC 277
#define GOTO 278
#define IF 279
#define IMPLEMENTS 280
#define IMPORT 281
#define INNER 282
#define INSTANCEOF 283
#define INTERFACE 284
#define NATIVE 285
#define NEW 286
#define JNULL 287
#define OPERATOR 288
#define OUTER 289
#define PACKAGE 290
#define PRIVATE 291
#define PROTECTED 292
#define PUBLIC 293
#define REST 294
#define RETURN 295
#define STATIC 296
#define SUPER 297
#define SWITCH 298
#define SYNCHRONIZED 299
#define THIS 300
#define THROW 301
#define THROWS 302
#define TRANSIENT 303
#define TRY 304
#define VAR 305
#define VOID 306
#define VOLATILE 307
#define WHILE 308
#define OP_INC 309
#define OP_DEC 310
#define OP_SHL 311
#define OP_SHR 312
#define OP_SHRR 313
#define OP_GE 314
#define OP_LE 315
#define OP_EQ 316
#define OP_NE 317
#define OP_LAND 318
#define OP_LOR 319
#define OP_DIM 320
#define ASS_MUL 321
#define ASS_DIV 322
#define ASS_MOD 323
#define ASS_ADD 324
#define ASS_SUB 325
#define ASS_SHL 326
#define ASS_SHR 327
#define ASS_SHRR 328
#define ASS_AND 329
#define ASS_XOR 330
#define ASS_OR 331
#define OPEN_B 332
#define CLOSE_B 333
#define OPEN 334
#define CLOSE 335
#define COLON 336
#define COMMA 337
#define PLUS 338
#define MINUS 339
#define MULT 340
#define DIV 341
#define AND 342
#define OR 343
#define QUES_MARK 344
#define EXC_MARK 345
#define MODULE 346
#define DURA 347
#define ASSIGN 348
#define XOR 349
#define LESS 350
#define GREATER 351
#define INT 352
#define SHORT 353
#define LONG 354
#define FLOAT 355
#define DOUBLE 356
#define CHAR 357
#define BYTE 358
#define IDENTIFIER 359
#define INTEGER_VALUE 360
#define LONG_VALUE 361
#define N_ID 362
#define FLOAT_VALUE 363
#define CHAR_VALUE 364
#define STRING_VALUE 365
#define BOOLLIT 366
#define LITERAL 367
#define e1 368
#define ELSE 369
#define e4 370
#define e2 371
#define e3 372
#define CLOSE_D 373
#define OPEN_D 374
#define e5 375
#define e6 376
#define e7 377
#define POINT 378
#define SEMICOLON 379
#define e8 380
#define e9 381
#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
#line 29 "C:\\Users\\Yara\\Documents\\Visual Studio 2013\\Projects\\JavaCompiler\\yacc.y"
typedef union YYSTYPE {
struct R {
int i;
float f;
char c;
char* str;
int myLineNo;
int myColNo;
}r;
class YaccSimpleType * yaccSimpleType;
class Variable * variable;
class DataMember * dm;
class Function * function;
class Type * type;
} YYSTYPE;
/* Line 1447 of yacc.c. */
#line 306 "yacc.hpp"
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
# define YYSTYPE_IS_TRIVIAL 1
#endif
extern YYSTYPE yylval;