/* 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, EXTERN = 259, STATIC = 260, AUTO = 261, REGISTER = 262, THREADLOCAL = 263, INLINE = 264, FORTRAN = 265, NORETURN = 266, CONST = 267, VOLATILE = 268, RESTRICT = 269, ATOMIC = 270, FORALL = 271, LVALUE = 272, MUTEX = 273, VOID = 274, CHAR = 275, SHORT = 276, INT = 277, LONG = 278, FLOAT = 279, DOUBLE = 280, SIGNED = 281, UNSIGNED = 282, ZERO_T = 283, ONE_T = 284, VALIST = 285, BOOL = 286, COMPLEX = 287, IMAGINARY = 288, TYPEOF = 289, LABEL = 290, ENUM = 291, STRUCT = 292, UNION = 293, OTYPE = 294, FTYPE = 295, DTYPE = 296, TTYPE = 297, TRAIT = 298, SIZEOF = 299, OFFSETOF = 300, ATTRIBUTE = 301, EXTENSION = 302, IF = 303, ELSE = 304, SWITCH = 305, CASE = 306, DEFAULT = 307, DO = 308, WHILE = 309, FOR = 310, BREAK = 311, CONTINUE = 312, GOTO = 313, RETURN = 314, CHOOSE = 315, DISABLE = 316, ENABLE = 317, FALLTHRU = 318, TRY = 319, CATCH = 320, CATCHRESUME = 321, FINALLY = 322, THROW = 323, THROWRESUME = 324, AT = 325, ASM = 326, ALIGNAS = 327, ALIGNOF = 328, GENERIC = 329, STATICASSERT = 330, IDENTIFIER = 331, QUOTED_IDENTIFIER = 332, TYPEDEFname = 333, TYPEGENname = 334, ATTR_IDENTIFIER = 335, ATTR_TYPEDEFname = 336, ATTR_TYPEGENname = 337, INTEGERconstant = 338, CHARACTERconstant = 339, STRINGliteral = 340, REALDECIMALconstant = 341, REALFRACTIONconstant = 342, FLOATINGconstant = 343, ZERO = 344, ONE = 345, ARROW = 346, ICR = 347, DECR = 348, LS = 349, RS = 350, LE = 351, GE = 352, EQ = 353, NE = 354, ANDAND = 355, OROR = 356, ELLIPSIS = 357, MULTassign = 358, DIVassign = 359, MODassign = 360, PLUSassign = 361, MINUSassign = 362, LSassign = 363, RSassign = 364, ANDassign = 365, ERassign = 366, ORassign = 367, ATassign = 368, THEN = 369 }; #endif /* Tokens. */ #define TYPEDEF 258 #define EXTERN 259 #define STATIC 260 #define AUTO 261 #define REGISTER 262 #define THREADLOCAL 263 #define INLINE 264 #define FORTRAN 265 #define NORETURN 266 #define CONST 267 #define VOLATILE 268 #define RESTRICT 269 #define ATOMIC 270 #define FORALL 271 #define LVALUE 272 #define MUTEX 273 #define VOID 274 #define CHAR 275 #define SHORT 276 #define INT 277 #define LONG 278 #define FLOAT 279 #define DOUBLE 280 #define SIGNED 281 #define UNSIGNED 282 #define ZERO_T 283 #define ONE_T 284 #define VALIST 285 #define BOOL 286 #define COMPLEX 287 #define IMAGINARY 288 #define TYPEOF 289 #define LABEL 290 #define ENUM 291 #define STRUCT 292 #define UNION 293 #define OTYPE 294 #define FTYPE 295 #define DTYPE 296 #define TTYPE 297 #define TRAIT 298 #define SIZEOF 299 #define OFFSETOF 300 #define ATTRIBUTE 301 #define EXTENSION 302 #define IF 303 #define ELSE 304 #define SWITCH 305 #define CASE 306 #define DEFAULT 307 #define DO 308 #define WHILE 309 #define FOR 310 #define BREAK 311 #define CONTINUE 312 #define GOTO 313 #define RETURN 314 #define CHOOSE 315 #define DISABLE 316 #define ENABLE 317 #define FALLTHRU 318 #define TRY 319 #define CATCH 320 #define CATCHRESUME 321 #define FINALLY 322 #define THROW 323 #define THROWRESUME 324 #define AT 325 #define ASM 326 #define ALIGNAS 327 #define ALIGNOF 328 #define GENERIC 329 #define STATICASSERT 330 #define IDENTIFIER 331 #define QUOTED_IDENTIFIER 332 #define TYPEDEFname 333 #define TYPEGENname 334 #define ATTR_IDENTIFIER 335 #define ATTR_TYPEDEFname 336 #define ATTR_TYPEGENname 337 #define INTEGERconstant 338 #define CHARACTERconstant 339 #define STRINGliteral 340 #define REALDECIMALconstant 341 #define REALFRACTIONconstant 342 #define FLOATINGconstant 343 #define ZERO 344 #define ONE 345 #define ARROW 346 #define ICR 347 #define DECR 348 #define LS 349 #define RS 350 #define LE 351 #define GE 352 #define EQ 353 #define NE 354 #define ANDAND 355 #define OROR 356 #define ELLIPSIS 357 #define MULTassign 358 #define DIVassign 359 #define MODassign 360 #define PLUSassign 361 #define MINUSassign 362 #define LSassign 363 #define RSassign 364 #define ANDassign 365 #define ERassign 366 #define ORassign 367 #define ATassign 368 #define THEN 369 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef union YYSTYPE { /* Line 2068 of yacc.c */ #line 141 "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 297 "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;