source: src/Parser/parser.h @ c23e420

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

automake change gnu back to foreign (do not know why it changed), add := and & (reference) to lexer/parser

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