/* A Bison parser, made by GNU Bison 2.5. */ /* Bison interface for Yacc-like parsers in C Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ /* As a special exception, you may create a larger work that contains part or all of the Bison parser skeleton and distribute that work under terms of your choice, so long as that work isn't itself a parser generator using the skeleton or a modified version thereof as a parser skeleton. Alternatively, if you modify or redistribute the parser skeleton itself, you may (at your option) remove this special exception, which will cause the skeleton and the resulting Bison output files to be licensed under the GNU General Public License without this special exception. This special exception was added by the Free Software Foundation in version 2.2 of Bison. */ /* Tokens. */ #ifndef YYTOKENTYPE # define YYTOKENTYPE /* Put the tokens into the symbol table, so that GDB and other debuggers know about them. */ enum yytokentype { TYPEDEF = 258, AUTO = 259, EXTERN = 260, REGISTER = 261, STATIC = 262, INLINE = 263, FORTRAN = 264, CONST = 265, VOLATILE = 266, RESTRICT = 267, FORALL = 268, LVALUE = 269, VOID = 270, CHAR = 271, SHORT = 272, INT = 273, LONG = 274, FLOAT = 275, DOUBLE = 276, SIGNED = 277, UNSIGNED = 278, VALIST = 279, BOOL = 280, COMPLEX = 281, IMAGINARY = 282, TYPEOF = 283, LABEL = 284, ENUM = 285, STRUCT = 286, UNION = 287, OTYPE = 288, FTYPE = 289, DTYPE = 290, TRAIT = 291, SIZEOF = 292, OFFSETOF = 293, ATTRIBUTE = 294, EXTENSION = 295, IF = 296, ELSE = 297, SWITCH = 298, CASE = 299, DEFAULT = 300, DO = 301, WHILE = 302, FOR = 303, BREAK = 304, CONTINUE = 305, GOTO = 306, RETURN = 307, CHOOSE = 308, DISABLE = 309, ENABLE = 310, FALLTHRU = 311, TRY = 312, CATCH = 313, CATCHRESUME = 314, FINALLY = 315, THROW = 316, THROWRESUME = 317, AT = 318, ASM = 319, ALIGNAS = 320, ALIGNOF = 321, ATOMIC = 322, GENERIC = 323, NORETURN = 324, STATICASSERT = 325, THREADLOCAL = 326, IDENTIFIER = 327, QUOTED_IDENTIFIER = 328, TYPEDEFname = 329, TYPEGENname = 330, ATTR_IDENTIFIER = 331, ATTR_TYPEDEFname = 332, ATTR_TYPEGENname = 333, INTEGERconstant = 334, CHARACTERconstant = 335, STRINGliteral = 336, REALDECIMALconstant = 337, REALFRACTIONconstant = 338, FLOATINGconstant = 339, ZERO = 340, ONE = 341, ARROW = 342, ICR = 343, DECR = 344, LS = 345, RS = 346, LE = 347, GE = 348, EQ = 349, NE = 350, ANDAND = 351, OROR = 352, ELLIPSIS = 353, MULTassign = 354, DIVassign = 355, MODassign = 356, PLUSassign = 357, MINUSassign = 358, LSassign = 359, RSassign = 360, ANDassign = 361, ERassign = 362, ORassign = 363, ATassign = 364, THEN = 365 }; #endif /* Tokens. */ #define TYPEDEF 258 #define AUTO 259 #define EXTERN 260 #define REGISTER 261 #define STATIC 262 #define INLINE 263 #define FORTRAN 264 #define CONST 265 #define VOLATILE 266 #define RESTRICT 267 #define FORALL 268 #define LVALUE 269 #define VOID 270 #define CHAR 271 #define SHORT 272 #define INT 273 #define LONG 274 #define FLOAT 275 #define DOUBLE 276 #define SIGNED 277 #define UNSIGNED 278 #define VALIST 279 #define BOOL 280 #define COMPLEX 281 #define IMAGINARY 282 #define TYPEOF 283 #define LABEL 284 #define ENUM 285 #define STRUCT 286 #define UNION 287 #define OTYPE 288 #define FTYPE 289 #define DTYPE 290 #define TRAIT 291 #define SIZEOF 292 #define OFFSETOF 293 #define ATTRIBUTE 294 #define EXTENSION 295 #define IF 296 #define ELSE 297 #define SWITCH 298 #define CASE 299 #define DEFAULT 300 #define DO 301 #define WHILE 302 #define FOR 303 #define BREAK 304 #define CONTINUE 305 #define GOTO 306 #define RETURN 307 #define CHOOSE 308 #define DISABLE 309 #define ENABLE 310 #define FALLTHRU 311 #define TRY 312 #define CATCH 313 #define CATCHRESUME 314 #define FINALLY 315 #define THROW 316 #define THROWRESUME 317 #define AT 318 #define ASM 319 #define ALIGNAS 320 #define ALIGNOF 321 #define ATOMIC 322 #define GENERIC 323 #define NORETURN 324 #define STATICASSERT 325 #define THREADLOCAL 326 #define IDENTIFIER 327 #define QUOTED_IDENTIFIER 328 #define TYPEDEFname 329 #define TYPEGENname 330 #define ATTR_IDENTIFIER 331 #define ATTR_TYPEDEFname 332 #define ATTR_TYPEGENname 333 #define INTEGERconstant 334 #define CHARACTERconstant 335 #define STRINGliteral 336 #define REALDECIMALconstant 337 #define REALFRACTIONconstant 338 #define FLOATINGconstant 339 #define ZERO 340 #define ONE 341 #define ARROW 342 #define ICR 343 #define DECR 344 #define LS 345 #define RS 346 #define LE 347 #define GE 348 #define EQ 349 #define NE 350 #define ANDAND 351 #define OROR 352 #define ELLIPSIS 353 #define MULTassign 354 #define DIVassign 355 #define MODassign 356 #define PLUSassign 357 #define MINUSassign 358 #define LSassign 359 #define RSassign 360 #define ANDassign 361 #define ERassign 362 #define ORassign 363 #define ATassign 364 #define THEN 365 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef union YYSTYPE { /* Line 2068 of yacc.c */ #line 120 "parser.yy" Token tok; ParseNode *pn; ExpressionNode *en; DeclarationNode *decl; DeclarationNode::Aggregate aggKey; DeclarationNode::TypeClass tclass; StatementNode *sn; ConstantExpr *constant; ForCtl *fctl; LabelNode *label; InitializerNode *in; OperKinds op; std::string *str; bool flag; /* Line 2068 of yacc.c */ #line 289 "Parser/parser.h" } YYSTYPE; # define YYSTYPE_IS_TRIVIAL 1 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 #endif extern YYSTYPE yylval;