source: src/Parser/parser.h @ de62360d

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newstringwith_gc
Last change on this file since de62360d was de62360d, checked in by Peter A. Buhr <pabuhr@…>, 9 years ago

fix computed goto, fixed -std=, implicit typedefs for enum and aggregates, add _Noreturn _Thread_local

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