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