1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361
|
/* A Bison parser, made by GNU Bison 2.4.1. */
/* Skeleton interface for Bison's Yacc-like parsers in C
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
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 <http://www.gnu.org/licenses/>. */
/* 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 {
ID = 258,
HBLOCK = 259,
POUND = 260,
STRING = 261,
INCLUDE = 262,
IMPORT = 263,
INSERT = 264,
CHARCONST = 265,
NUM_INT = 266,
NUM_FLOAT = 267,
NUM_UNSIGNED = 268,
NUM_LONG = 269,
NUM_ULONG = 270,
NUM_LONGLONG = 271,
NUM_ULONGLONG = 272,
NUM_BOOL = 273,
TYPEDEF = 274,
TYPE_INT = 275,
TYPE_UNSIGNED = 276,
TYPE_SHORT = 277,
TYPE_LONG = 278,
TYPE_FLOAT = 279,
TYPE_DOUBLE = 280,
TYPE_CHAR = 281,
TYPE_WCHAR = 282,
TYPE_VOID = 283,
TYPE_SIGNED = 284,
TYPE_BOOL = 285,
TYPE_COMPLEX = 286,
TYPE_TYPEDEF = 287,
TYPE_RAW = 288,
TYPE_NON_ISO_INT8 = 289,
TYPE_NON_ISO_INT16 = 290,
TYPE_NON_ISO_INT32 = 291,
TYPE_NON_ISO_INT64 = 292,
LPAREN = 293,
RPAREN = 294,
COMMA = 295,
SEMI = 296,
EXTERN = 297,
INIT = 298,
LBRACE = 299,
RBRACE = 300,
PERIOD = 301,
CONST_QUAL = 302,
VOLATILE = 303,
REGISTER = 304,
STRUCT = 305,
UNION = 306,
EQUAL = 307,
SIZEOF = 308,
MODULE = 309,
LBRACKET = 310,
RBRACKET = 311,
BEGINFILE = 312,
ENDOFFILE = 313,
ILLEGAL = 314,
CONSTANT = 315,
NAME = 316,
RENAME = 317,
NAMEWARN = 318,
EXTEND = 319,
PRAGMA = 320,
FEATURE = 321,
VARARGS = 322,
ENUM = 323,
CLASS = 324,
TYPENAME = 325,
PRIVATE = 326,
PUBLIC = 327,
PROTECTED = 328,
COLON = 329,
STATIC = 330,
VIRTUAL = 331,
FRIEND = 332,
THROW = 333,
CATCH = 334,
EXPLICIT = 335,
USING = 336,
NAMESPACE = 337,
NATIVE = 338,
INLINE = 339,
TYPEMAP = 340,
EXCEPT = 341,
ECHO = 342,
APPLY = 343,
CLEAR = 344,
SWIGTEMPLATE = 345,
FRAGMENT = 346,
WARN = 347,
LESSTHAN = 348,
GREATERTHAN = 349,
DELETE_KW = 350,
LESSTHANOREQUALTO = 351,
GREATERTHANOREQUALTO = 352,
EQUALTO = 353,
NOTEQUALTO = 354,
QUESTIONMARK = 355,
TYPES = 356,
PARMS = 357,
NONID = 358,
DSTAR = 359,
DCNOT = 360,
TEMPLATE = 361,
OPERATOR = 362,
COPERATOR = 363,
PARSETYPE = 364,
PARSEPARM = 365,
PARSEPARMS = 366,
CAST = 367,
LOR = 368,
LAND = 369,
OR = 370,
XOR = 371,
AND = 372,
RSHIFT = 373,
LSHIFT = 374,
MINUS = 375,
PLUS = 376,
MODULO = 377,
SLASH = 378,
STAR = 379,
LNOT = 380,
NOT = 381,
UMINUS = 382,
DCOLON = 383
};
#endif
/* Tokens. */
#define ID 258
#define HBLOCK 259
#define POUND 260
#define STRING 261
#define INCLUDE 262
#define IMPORT 263
#define INSERT 264
#define CHARCONST 265
#define NUM_INT 266
#define NUM_FLOAT 267
#define NUM_UNSIGNED 268
#define NUM_LONG 269
#define NUM_ULONG 270
#define NUM_LONGLONG 271
#define NUM_ULONGLONG 272
#define NUM_BOOL 273
#define TYPEDEF 274
#define TYPE_INT 275
#define TYPE_UNSIGNED 276
#define TYPE_SHORT 277
#define TYPE_LONG 278
#define TYPE_FLOAT 279
#define TYPE_DOUBLE 280
#define TYPE_CHAR 281
#define TYPE_WCHAR 282
#define TYPE_VOID 283
#define TYPE_SIGNED 284
#define TYPE_BOOL 285
#define TYPE_COMPLEX 286
#define TYPE_TYPEDEF 287
#define TYPE_RAW 288
#define TYPE_NON_ISO_INT8 289
#define TYPE_NON_ISO_INT16 290
#define TYPE_NON_ISO_INT32 291
#define TYPE_NON_ISO_INT64 292
#define LPAREN 293
#define RPAREN 294
#define COMMA 295
#define SEMI 296
#define EXTERN 297
#define INIT 298
#define LBRACE 299
#define RBRACE 300
#define PERIOD 301
#define CONST_QUAL 302
#define VOLATILE 303
#define REGISTER 304
#define STRUCT 305
#define UNION 306
#define EQUAL 307
#define SIZEOF 308
#define MODULE 309
#define LBRACKET 310
#define RBRACKET 311
#define BEGINFILE 312
#define ENDOFFILE 313
#define ILLEGAL 314
#define CONSTANT 315
#define NAME 316
#define RENAME 317
#define NAMEWARN 318
#define EXTEND 319
#define PRAGMA 320
#define FEATURE 321
#define VARARGS 322
#define ENUM 323
#define CLASS 324
#define TYPENAME 325
#define PRIVATE 326
#define PUBLIC 327
#define PROTECTED 328
#define COLON 329
#define STATIC 330
#define VIRTUAL 331
#define FRIEND 332
#define THROW 333
#define CATCH 334
#define EXPLICIT 335
#define USING 336
#define NAMESPACE 337
#define NATIVE 338
#define INLINE 339
#define TYPEMAP 340
#define EXCEPT 341
#define ECHO 342
#define APPLY 343
#define CLEAR 344
#define SWIGTEMPLATE 345
#define FRAGMENT 346
#define WARN 347
#define LESSTHAN 348
#define GREATERTHAN 349
#define DELETE_KW 350
#define LESSTHANOREQUALTO 351
#define GREATERTHANOREQUALTO 352
#define EQUALTO 353
#define NOTEQUALTO 354
#define QUESTIONMARK 355
#define TYPES 356
#define PARMS 357
#define NONID 358
#define DSTAR 359
#define DCNOT 360
#define TEMPLATE 361
#define OPERATOR 362
#define COPERATOR 363
#define PARSETYPE 364
#define PARSEPARM 365
#define PARSEPARMS 366
#define CAST 367
#define LOR 368
#define LAND 369
#define OR 370
#define XOR 371
#define AND 372
#define RSHIFT 373
#define LSHIFT 374
#define MINUS 375
#define PLUS 376
#define MODULO 377
#define SLASH 378
#define STAR 379
#define LNOT 380
#define NOT 381
#define UMINUS 382
#define DCOLON 383
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE
{
/* Line 1676 of yacc.c */
#line 1593 "parser.y"
char *id;
List *bases;
struct Define {
String *val;
String *rawval;
int type;
String *qualifier;
String *bitfield;
Parm *throws;
String *throwf;
} dtype;
struct {
char *type;
String *filename;
int line;
} loc;
struct {
char *id;
SwigType *type;
String *defarg;
ParmList *parms;
short have_parms;
ParmList *throws;
String *throwf;
} decl;
Parm *tparms;
struct {
String *method;
Hash *kwargs;
} tmap;
struct {
String *type;
String *us;
} ptype;
SwigType *type;
String *str;
Parm *p;
ParmList *pl;
int intvalue;
Node *node;
/* Line 1676 of yacc.c */
#line 353 "y.tab.h"
} YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
#endif
extern YYSTYPE yylval;
|