source: src/Parser/parser.h @ 3a2128f

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 3a2128f was 3a2128f, checked in by Peter A. Buhr <pabuhr@…>, 7 years ago

add types zero_t and one_t to lexer/parser

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