source: src/Parser/parser.h @ 0afffee

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change on this file since 0afffee was 1b29996, checked in by Peter A. Buhr <pabuhr@…>, 8 years ago

lex/parse new tuples

  • Property mode set to 100644
File size: 6.6 KB
Line 
1/* A Bison parser, made by GNU Bison 2.5.  */
2
3/* Bison interface for Yacc-like parsers in C
4   
5      Copyright (C) 1984, 1989-1990, 2000-2011 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
34/* Tokens.  */
35#ifndef YYTOKENTYPE
36# define YYTOKENTYPE
37   /* Put the tokens into the symbol table, so that GDB and other debuggers
38      know about them.  */
39   enum yytokentype {
40     TYPEDEF = 258,
41     AUTO = 259,
42     EXTERN = 260,
43     REGISTER = 261,
44     STATIC = 262,
45     INLINE = 263,
46     FORTRAN = 264,
47     CONST = 265,
48     VOLATILE = 266,
49     RESTRICT = 267,
50     FORALL = 268,
51     LVALUE = 269,
52     VOID = 270,
53     CHAR = 271,
54     SHORT = 272,
55     INT = 273,
56     LONG = 274,
57     FLOAT = 275,
58     DOUBLE = 276,
59     SIGNED = 277,
60     UNSIGNED = 278,
61     VALIST = 279,
62     BOOL = 280,
63     COMPLEX = 281,
64     IMAGINARY = 282,
65     TYPEOF = 283,
66     LABEL = 284,
67     ENUM = 285,
68     STRUCT = 286,
69     UNION = 287,
70     OTYPE = 288,
71     FTYPE = 289,
72     DTYPE = 290,
73     TRAIT = 291,
74     SIZEOF = 292,
75     OFFSETOF = 293,
76     ATTRIBUTE = 294,
77     EXTENSION = 295,
78     IF = 296,
79     ELSE = 297,
80     SWITCH = 298,
81     CASE = 299,
82     DEFAULT = 300,
83     DO = 301,
84     WHILE = 302,
85     FOR = 303,
86     BREAK = 304,
87     CONTINUE = 305,
88     GOTO = 306,
89     RETURN = 307,
90     CHOOSE = 308,
91     DISABLE = 309,
92     ENABLE = 310,
93     FALLTHRU = 311,
94     TRY = 312,
95     CATCH = 313,
96     CATCHRESUME = 314,
97     FINALLY = 315,
98     THROW = 316,
99     THROWRESUME = 317,
100     AT = 318,
101     ASM = 319,
102     ALIGNAS = 320,
103     ALIGNOF = 321,
104     ATOMIC = 322,
105     GENERIC = 323,
106     NORETURN = 324,
107     STATICASSERT = 325,
108     THREADLOCAL = 326,
109     IDENTIFIER = 327,
110     QUOTED_IDENTIFIER = 328,
111     TYPEDEFname = 329,
112     TYPEGENname = 330,
113     ATTR_IDENTIFIER = 331,
114     ATTR_TYPEDEFname = 332,
115     ATTR_TYPEGENname = 333,
116     INTEGERconstant = 334,
117     CHARACTERconstant = 335,
118     STRINGliteral = 336,
119     REALDECIMALconstant = 337,
120     REALFRACTIONconstant = 338,
121     FLOATINGconstant = 339,
122     ZERO = 340,
123     ONE = 341,
124     ARROW = 342,
125     ICR = 343,
126     DECR = 344,
127     LS = 345,
128     RS = 346,
129     LE = 347,
130     GE = 348,
131     EQ = 349,
132     NE = 350,
133     ANDAND = 351,
134     OROR = 352,
135     ELLIPSIS = 353,
136     MULTassign = 354,
137     DIVassign = 355,
138     MODassign = 356,
139     PLUSassign = 357,
140     MINUSassign = 358,
141     LSassign = 359,
142     RSassign = 360,
143     ANDassign = 361,
144     ERassign = 362,
145     ORassign = 363,
146     ATassign = 364,
147     THEN = 365
148   };
149#endif
150/* Tokens.  */
151#define TYPEDEF 258
152#define AUTO 259
153#define EXTERN 260
154#define REGISTER 261
155#define STATIC 262
156#define INLINE 263
157#define FORTRAN 264
158#define CONST 265
159#define VOLATILE 266
160#define RESTRICT 267
161#define FORALL 268
162#define LVALUE 269
163#define VOID 270
164#define CHAR 271
165#define SHORT 272
166#define INT 273
167#define LONG 274
168#define FLOAT 275
169#define DOUBLE 276
170#define SIGNED 277
171#define UNSIGNED 278
172#define VALIST 279
173#define BOOL 280
174#define COMPLEX 281
175#define IMAGINARY 282
176#define TYPEOF 283
177#define LABEL 284
178#define ENUM 285
179#define STRUCT 286
180#define UNION 287
181#define OTYPE 288
182#define FTYPE 289
183#define DTYPE 290
184#define TRAIT 291
185#define SIZEOF 292
186#define OFFSETOF 293
187#define ATTRIBUTE 294
188#define EXTENSION 295
189#define IF 296
190#define ELSE 297
191#define SWITCH 298
192#define CASE 299
193#define DEFAULT 300
194#define DO 301
195#define WHILE 302
196#define FOR 303
197#define BREAK 304
198#define CONTINUE 305
199#define GOTO 306
200#define RETURN 307
201#define CHOOSE 308
202#define DISABLE 309
203#define ENABLE 310
204#define FALLTHRU 311
205#define TRY 312
206#define CATCH 313
207#define CATCHRESUME 314
208#define FINALLY 315
209#define THROW 316
210#define THROWRESUME 317
211#define AT 318
212#define ASM 319
213#define ALIGNAS 320
214#define ALIGNOF 321
215#define ATOMIC 322
216#define GENERIC 323
217#define NORETURN 324
218#define STATICASSERT 325
219#define THREADLOCAL 326
220#define IDENTIFIER 327
221#define QUOTED_IDENTIFIER 328
222#define TYPEDEFname 329
223#define TYPEGENname 330
224#define ATTR_IDENTIFIER 331
225#define ATTR_TYPEDEFname 332
226#define ATTR_TYPEGENname 333
227#define INTEGERconstant 334
228#define CHARACTERconstant 335
229#define STRINGliteral 336
230#define REALDECIMALconstant 337
231#define REALFRACTIONconstant 338
232#define FLOATINGconstant 339
233#define ZERO 340
234#define ONE 341
235#define ARROW 342
236#define ICR 343
237#define DECR 344
238#define LS 345
239#define RS 346
240#define LE 347
241#define GE 348
242#define EQ 349
243#define NE 350
244#define ANDAND 351
245#define OROR 352
246#define ELLIPSIS 353
247#define MULTassign 354
248#define DIVassign 355
249#define MODassign 356
250#define PLUSassign 357
251#define MINUSassign 358
252#define LSassign 359
253#define RSassign 360
254#define ANDassign 361
255#define ERassign 362
256#define ORassign 363
257#define ATassign 364
258#define THEN 365
259
260
261
262
263#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
264typedef union YYSTYPE
265{
266
267/* Line 2068 of yacc.c  */
268#line 120 "parser.yy"
269
270        Token tok;
271        ParseNode *pn;
272        ExpressionNode *en;
273        DeclarationNode *decl;
274        DeclarationNode::Aggregate aggKey;
275        DeclarationNode::TypeClass tclass;
276        StatementNode *sn;
277        ConstantExpr *constant;
278        ForCtl *fctl;
279        LabelNode *label;
280        InitializerNode *in;
281        OperKinds op;
282        std::string *str;
283        bool flag;
284
285
286
287/* Line 2068 of yacc.c  */
288#line 289 "Parser/parser.h"
289} YYSTYPE;
290# define YYSTYPE_IS_TRIVIAL 1
291# define yystype YYSTYPE /* obsolescent; will be withdrawn */
292# define YYSTYPE_IS_DECLARED 1
293#endif
294
295extern YYSTYPE yylval;
296
297
Note: See TracBrowser for help on using the repository browser.