source: src/Parser/parser.h@ ac71a86

ADT aaron-thesis arm-eh ast-experimental cleanup-dtors ctor deferred_resn demangler enum forall-pointer-decay jacob/cs343-translation jenkins-sandbox memory new-ast new-ast-unique-expr new-env no_list persistent-indexer pthread-emulation qualifiedEnum resolv-new with_gc
Last change on this file since ac71a86 was ac71a86, checked in by Thierry Delisle <tdelisle@…>, 9 years ago

removed more memory leaks from the system

  • Property mode set to 100644
File size: 6.4 KB
Line 
1/* A Bison parser, made by GNU Bison 3.0.2. */
2
3/* Bison interface for Yacc-like parsers in C
4
5 Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc.
6
7 This program is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>. */
19
20/* As a special exception, you may create a larger work that contains
21 part or all of the Bison parser skeleton and distribute that work
22 under terms of your choice, so long as that work isn't itself a
23 parser generator using the skeleton or a modified version thereof
24 as a parser skeleton. Alternatively, if you modify or redistribute
25 the parser skeleton itself, you may (at your option) remove this
26 special exception, which will cause the skeleton and the resulting
27 Bison output files to be licensed under the GNU General Public
28 License without this special exception.
29
30 This special exception was added by the Free Software Foundation in
31 version 2.2 of Bison. */
32
33#ifndef YY_YY_PARSER_PARSER_H_INCLUDED
34# define YY_YY_PARSER_PARSER_H_INCLUDED
35/* Debug traces. */
36#ifndef YYDEBUG
37# define YYDEBUG 1
38#endif
39#if YYDEBUG
40extern int yydebug;
41#endif
42
43/* Token type. */
44#ifndef YYTOKENTYPE
45# define YYTOKENTYPE
46 enum yytokentype
47 {
48 TYPEDEF = 258,
49 AUTO = 259,
50 EXTERN = 260,
51 REGISTER = 261,
52 STATIC = 262,
53 INLINE = 263,
54 FORTRAN = 264,
55 CONST = 265,
56 VOLATILE = 266,
57 RESTRICT = 267,
58 FORALL = 268,
59 LVALUE = 269,
60 VOID = 270,
61 CHAR = 271,
62 SHORT = 272,
63 INT = 273,
64 LONG = 274,
65 FLOAT = 275,
66 DOUBLE = 276,
67 SIGNED = 277,
68 UNSIGNED = 278,
69 VALIST = 279,
70 BOOL = 280,
71 COMPLEX = 281,
72 IMAGINARY = 282,
73 TYPEOF = 283,
74 LABEL = 284,
75 ENUM = 285,
76 STRUCT = 286,
77 UNION = 287,
78 OTYPE = 288,
79 FTYPE = 289,
80 DTYPE = 290,
81 TRAIT = 291,
82 SIZEOF = 292,
83 OFFSETOF = 293,
84 ATTRIBUTE = 294,
85 EXTENSION = 295,
86 IF = 296,
87 ELSE = 297,
88 SWITCH = 298,
89 CASE = 299,
90 DEFAULT = 300,
91 DO = 301,
92 WHILE = 302,
93 FOR = 303,
94 BREAK = 304,
95 CONTINUE = 305,
96 GOTO = 306,
97 RETURN = 307,
98 CHOOSE = 308,
99 DISABLE = 309,
100 ENABLE = 310,
101 FALLTHRU = 311,
102 TRY = 312,
103 CATCH = 313,
104 CATCHRESUME = 314,
105 FINALLY = 315,
106 THROW = 316,
107 THROWRESUME = 317,
108 AT = 318,
109 ASM = 319,
110 ALIGNAS = 320,
111 ALIGNOF = 321,
112 ATOMIC = 322,
113 GENERIC = 323,
114 NORETURN = 324,
115 STATICASSERT = 325,
116 THREADLOCAL = 326,
117 IDENTIFIER = 327,
118 QUOTED_IDENTIFIER = 328,
119 TYPEDEFname = 329,
120 TYPEGENname = 330,
121 ATTR_IDENTIFIER = 331,
122 ATTR_TYPEDEFname = 332,
123 ATTR_TYPEGENname = 333,
124 INTEGERconstant = 334,
125 FLOATINGconstant = 335,
126 CHARACTERconstant = 336,
127 STRINGliteral = 337,
128 ZERO = 338,
129 ONE = 339,
130 ARROW = 340,
131 ICR = 341,
132 DECR = 342,
133 LS = 343,
134 RS = 344,
135 LE = 345,
136 GE = 346,
137 EQ = 347,
138 NE = 348,
139 ANDAND = 349,
140 OROR = 350,
141 ELLIPSIS = 351,
142 MULTassign = 352,
143 DIVassign = 353,
144 MODassign = 354,
145 PLUSassign = 355,
146 MINUSassign = 356,
147 LSassign = 357,
148 RSassign = 358,
149 ANDassign = 359,
150 ERassign = 360,
151 ORassign = 361,
152 ATassign = 362,
153 THEN = 363
154 };
155#endif
156/* Tokens. */
157#define TYPEDEF 258
158#define AUTO 259
159#define EXTERN 260
160#define REGISTER 261
161#define STATIC 262
162#define INLINE 263
163#define FORTRAN 264
164#define CONST 265
165#define VOLATILE 266
166#define RESTRICT 267
167#define FORALL 268
168#define LVALUE 269
169#define VOID 270
170#define CHAR 271
171#define SHORT 272
172#define INT 273
173#define LONG 274
174#define FLOAT 275
175#define DOUBLE 276
176#define SIGNED 277
177#define UNSIGNED 278
178#define VALIST 279
179#define BOOL 280
180#define COMPLEX 281
181#define IMAGINARY 282
182#define TYPEOF 283
183#define LABEL 284
184#define ENUM 285
185#define STRUCT 286
186#define UNION 287
187#define OTYPE 288
188#define FTYPE 289
189#define DTYPE 290
190#define TRAIT 291
191#define SIZEOF 292
192#define OFFSETOF 293
193#define ATTRIBUTE 294
194#define EXTENSION 295
195#define IF 296
196#define ELSE 297
197#define SWITCH 298
198#define CASE 299
199#define DEFAULT 300
200#define DO 301
201#define WHILE 302
202#define FOR 303
203#define BREAK 304
204#define CONTINUE 305
205#define GOTO 306
206#define RETURN 307
207#define CHOOSE 308
208#define DISABLE 309
209#define ENABLE 310
210#define FALLTHRU 311
211#define TRY 312
212#define CATCH 313
213#define CATCHRESUME 314
214#define FINALLY 315
215#define THROW 316
216#define THROWRESUME 317
217#define AT 318
218#define ASM 319
219#define ALIGNAS 320
220#define ALIGNOF 321
221#define ATOMIC 322
222#define GENERIC 323
223#define NORETURN 324
224#define STATICASSERT 325
225#define THREADLOCAL 326
226#define IDENTIFIER 327
227#define QUOTED_IDENTIFIER 328
228#define TYPEDEFname 329
229#define TYPEGENname 330
230#define ATTR_IDENTIFIER 331
231#define ATTR_TYPEDEFname 332
232#define ATTR_TYPEGENname 333
233#define INTEGERconstant 334
234#define FLOATINGconstant 335
235#define CHARACTERconstant 336
236#define STRINGliteral 337
237#define ZERO 338
238#define ONE 339
239#define ARROW 340
240#define ICR 341
241#define DECR 342
242#define LS 343
243#define RS 344
244#define LE 345
245#define GE 346
246#define EQ 347
247#define NE 348
248#define ANDAND 349
249#define OROR 350
250#define ELLIPSIS 351
251#define MULTassign 352
252#define DIVassign 353
253#define MODassign 354
254#define PLUSassign 355
255#define MINUSassign 356
256#define LSassign 357
257#define RSassign 358
258#define ANDassign 359
259#define ERassign 360
260#define ORassign 361
261#define ATassign 362
262#define THEN 363
263
264/* Value type. */
265#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
266typedef union YYSTYPE YYSTYPE;
267union YYSTYPE
268{
269#line 115 "parser.yy" /* yacc.c:1909 */
270
271 Token tok;
272 ParseNode *pn;
273 ExpressionNode *en;
274 DeclarationNode *decl;
275 DeclarationNode::Aggregate aggKey;
276 DeclarationNode::TypeClass tclass;
277 StatementNode *sn;
278 ConstantExpr *constant;
279 ForCtl *fctl;
280 LabelNode *label;
281 InitializerNode *in;
282 OperKinds op;
283 bool flag;
284
285#line 286 "Parser/parser.h" /* yacc.c:1909 */
286};
287# define YYSTYPE_IS_TRIVIAL 1
288# define YYSTYPE_IS_DECLARED 1
289#endif
290
291
292extern YYSTYPE yylval;
293
294int yyparse (void);
295
296#endif /* !YY_YY_PARSER_PARSER_H_INCLUDED */
Note: See TracBrowser for help on using the repository browser.