/
imcparser.h
315 lines (300 loc) · 7.18 KB
/
imcparser.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
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
/* ex: set ro ft=c:
* !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
*
* This file is generated automatically from 'compilers/imcc/imcc.y'
* by tools/build/fixup_gen_file.pl.
*
* Any changes made here will be lost!
*
*/
/* HEADERIZER HFILE: none */
/* HEADERIZER STOP */
/* A Bison parser, made by GNU Bison 2.3. */
/* Skeleton interface for Bison's Yacc-like parsers in C
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
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, 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 {
LOW_PREC = 258,
PARAM = 259,
HLL = 260,
TK_LINE = 261,
TK_FILE = 262,
GOTO = 263,
ARG = 264,
IF = 265,
UNLESS = 266,
PNULL = 267,
SET_RETURN = 268,
SET_YIELD = 269,
ADV_FLAT = 270,
ADV_SLURPY = 271,
ADV_OPTIONAL = 272,
ADV_OPT_FLAG = 273,
ADV_NAMED = 274,
ADV_ARROW = 275,
NEW = 276,
ADV_INVOCANT = 277,
NAMESPACE = 278,
DOT_METHOD = 279,
SUB = 280,
SYM = 281,
LOCAL = 282,
LEXICAL = 283,
CONST = 284,
ANNOTATE = 285,
INC = 286,
DEC = 287,
GLOBAL_CONST = 288,
PLUS_ASSIGN = 289,
MINUS_ASSIGN = 290,
MUL_ASSIGN = 291,
DIV_ASSIGN = 292,
CONCAT_ASSIGN = 293,
BAND_ASSIGN = 294,
BOR_ASSIGN = 295,
BXOR_ASSIGN = 296,
FDIV = 297,
FDIV_ASSIGN = 298,
MOD_ASSIGN = 299,
SHR_ASSIGN = 300,
SHL_ASSIGN = 301,
SHR_U_ASSIGN = 302,
SHIFT_LEFT = 303,
SHIFT_RIGHT = 304,
INTV = 305,
FLOATV = 306,
STRINGV = 307,
PMCV = 308,
LOG_XOR = 309,
RELOP_EQ = 310,
RELOP_NE = 311,
RELOP_GT = 312,
RELOP_GTE = 313,
RELOP_LT = 314,
RELOP_LTE = 315,
RESULT = 316,
RETURN = 317,
TAILCALL = 318,
YIELDT = 319,
GET_RESULTS = 320,
POW = 321,
SHIFT_RIGHT_U = 322,
LOG_AND = 323,
LOG_OR = 324,
COMMA = 325,
ESUB = 326,
DOTDOT = 327,
PCC_BEGIN = 328,
PCC_END = 329,
PCC_CALL = 330,
PCC_SUB = 331,
PCC_BEGIN_RETURN = 332,
PCC_END_RETURN = 333,
PCC_BEGIN_YIELD = 334,
PCC_END_YIELD = 335,
NCI_CALL = 336,
METH_CALL = 337,
INVOCANT = 338,
MAIN = 339,
LOAD = 340,
INIT = 341,
IMMEDIATE = 342,
POSTCOMP = 343,
METHOD = 344,
ANON = 345,
OUTER = 346,
NEED_LEX = 347,
MULTI = 348,
VTABLE_METHOD = 349,
LOADLIB = 350,
SUB_INSTANCE_OF = 351,
SUBID = 352,
NS_ENTRY = 353,
UNIQUE_REG = 354,
LABEL = 355,
EMIT = 356,
EOM = 357,
IREG = 358,
NREG = 359,
SREG = 360,
PREG = 361,
IDENTIFIER = 362,
REG = 363,
MACRO = 364,
ENDM = 365,
STRINGC = 366,
INTC = 367,
FLOATC = 368,
USTRINGC = 369,
PARROT_OP = 370,
VAR = 371,
LINECOMMENT = 372,
FILECOMMENT = 373,
DOT = 374,
CONCAT = 375
};
#endif
/* Tokens. */
#define LOW_PREC 258
#define PARAM 259
#define HLL 260
#define TK_LINE 261
#define TK_FILE 262
#define GOTO 263
#define ARG 264
#define IF 265
#define UNLESS 266
#define PNULL 267
#define SET_RETURN 268
#define SET_YIELD 269
#define ADV_FLAT 270
#define ADV_SLURPY 271
#define ADV_OPTIONAL 272
#define ADV_OPT_FLAG 273
#define ADV_NAMED 274
#define ADV_ARROW 275
#define NEW 276
#define ADV_INVOCANT 277
#define NAMESPACE 278
#define DOT_METHOD 279
#define SUB 280
#define SYM 281
#define LOCAL 282
#define LEXICAL 283
#define CONST 284
#define ANNOTATE 285
#define INC 286
#define DEC 287
#define GLOBAL_CONST 288
#define PLUS_ASSIGN 289
#define MINUS_ASSIGN 290
#define MUL_ASSIGN 291
#define DIV_ASSIGN 292
#define CONCAT_ASSIGN 293
#define BAND_ASSIGN 294
#define BOR_ASSIGN 295
#define BXOR_ASSIGN 296
#define FDIV 297
#define FDIV_ASSIGN 298
#define MOD_ASSIGN 299
#define SHR_ASSIGN 300
#define SHL_ASSIGN 301
#define SHR_U_ASSIGN 302
#define SHIFT_LEFT 303
#define SHIFT_RIGHT 304
#define INTV 305
#define FLOATV 306
#define STRINGV 307
#define PMCV 308
#define LOG_XOR 309
#define RELOP_EQ 310
#define RELOP_NE 311
#define RELOP_GT 312
#define RELOP_GTE 313
#define RELOP_LT 314
#define RELOP_LTE 315
#define RESULT 316
#define RETURN 317
#define TAILCALL 318
#define YIELDT 319
#define GET_RESULTS 320
#define POW 321
#define SHIFT_RIGHT_U 322
#define LOG_AND 323
#define LOG_OR 324
#define COMMA 325
#define ESUB 326
#define DOTDOT 327
#define PCC_BEGIN 328
#define PCC_END 329
#define PCC_CALL 330
#define PCC_SUB 331
#define PCC_BEGIN_RETURN 332
#define PCC_END_RETURN 333
#define PCC_BEGIN_YIELD 334
#define PCC_END_YIELD 335
#define NCI_CALL 336
#define METH_CALL 337
#define INVOCANT 338
#define MAIN 339
#define LOAD 340
#define INIT 341
#define IMMEDIATE 342
#define POSTCOMP 343
#define METHOD 344
#define ANON 345
#define OUTER 346
#define NEED_LEX 347
#define MULTI 348
#define VTABLE_METHOD 349
#define LOADLIB 350
#define SUB_INSTANCE_OF 351
#define SUBID 352
#define NS_ENTRY 353
#define UNIQUE_REG 354
#define LABEL 355
#define EMIT 356
#define EOM 357
#define IREG 358
#define NREG 359
#define SREG 360
#define PREG 361
#define IDENTIFIER 362
#define REG 363
#define MACRO 364
#define ENDM 365
#define STRINGC 366
#define INTC 367
#define FLOATC 368
#define USTRINGC 369
#define PARROT_OP 370
#define VAR 371
#define LINECOMMENT 372
#define FILECOMMENT 373
#define DOT 374
#define CONCAT 375
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE
#line 1049 "compilers/imcc/imcc.y"
{
IdList * idlist;
int t;
char * s;
SymReg * sr;
Instruction *i;
}
/* Line 1489 of yacc.c. */
#line 297 "compilers/imcc/imcparser.h"
YYSTYPE;
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
# define YYSTYPE_IS_TRIVIAL 1
#endif