lev_comp.h

Go to the documentation of this file.
00001 
00002 /* A Bison parser, made by GNU Bison 2.4.1.  */
00003 
00004 /* Skeleton interface for Bison's Yacc-like parsers in C
00005    
00006       Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
00007    Free Software Foundation, Inc.
00008    
00009    This program is free software: you can redistribute it and/or modify
00010    it under the terms of the GNU General Public License as published by
00011    the Free Software Foundation, either version 3 of the License, or
00012    (at your option) any later version.
00013    
00014    This program is distributed in the hope that it will be useful,
00015    but WITHOUT ANY WARRANTY; without even the implied warranty of
00016    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017    GNU General Public License for more details.
00018    
00019    You should have received a copy of the GNU General Public License
00020    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
00021 
00022 /* As a special exception, you may create a larger work that contains
00023    part or all of the Bison parser skeleton and distribute that work
00024    under terms of your choice, so long as that work isn't itself a
00025    parser generator using the skeleton or a modified version thereof
00026    as a parser skeleton.  Alternatively, if you modify or redistribute
00027    the parser skeleton itself, you may (at your option) remove this
00028    special exception, which will cause the skeleton and the resulting
00029    Bison output files to be licensed under the GNU General Public
00030    License without this special exception.
00031    
00032    This special exception was added by the Free Software Foundation in
00033    version 2.2 of Bison.  */
00034 
00035 
00036 /* Tokens.  */
00037 #ifndef YYTOKENTYPE
00038 # define YYTOKENTYPE
00039    /* Put the tokens into the symbol table, so that GDB and other debuggers
00040       know about them.  */
00041    enum yytokentype {
00042      CHAR = 258,
00043      INTEGER = 259,
00044      BOOLEAN = 260,
00045      PERCENT = 261,
00046      SPERCENT = 262,
00047      MINUS_INTEGER = 263,
00048      PLUS_INTEGER = 264,
00049      MAZE_GRID_ID = 265,
00050      SOLID_FILL_ID = 266,
00051      MINES_ID = 267,
00052      MESSAGE_ID = 268,
00053      LEVEL_ID = 269,
00054      LEV_INIT_ID = 270,
00055      GEOMETRY_ID = 271,
00056      NOMAP_ID = 272,
00057      OBJECT_ID = 273,
00058      COBJECT_ID = 274,
00059      MONSTER_ID = 275,
00060      TRAP_ID = 276,
00061      DOOR_ID = 277,
00062      DRAWBRIDGE_ID = 278,
00063      MAZEWALK_ID = 279,
00064      WALLIFY_ID = 280,
00065      REGION_ID = 281,
00066      FILLING = 282,
00067      ALTAR_ID = 283,
00068      LADDER_ID = 284,
00069      STAIR_ID = 285,
00070      NON_DIGGABLE_ID = 286,
00071      NON_PASSWALL_ID = 287,
00072      ROOM_ID = 288,
00073      PORTAL_ID = 289,
00074      TELEPRT_ID = 290,
00075      BRANCH_ID = 291,
00076      LEV = 292,
00077      CHANCE_ID = 293,
00078      CORRIDOR_ID = 294,
00079      GOLD_ID = 295,
00080      ENGRAVING_ID = 296,
00081      FOUNTAIN_ID = 297,
00082      POOL_ID = 298,
00083      SINK_ID = 299,
00084      NONE = 300,
00085      RAND_CORRIDOR_ID = 301,
00086      DOOR_STATE = 302,
00087      LIGHT_STATE = 303,
00088      CURSE_TYPE = 304,
00089      ENGRAVING_TYPE = 305,
00090      DIRECTION = 306,
00091      RANDOM_TYPE = 307,
00092      A_REGISTER = 308,
00093      ALIGNMENT = 309,
00094      LEFT_OR_RIGHT = 310,
00095      CENTER = 311,
00096      TOP_OR_BOT = 312,
00097      ALTAR_TYPE = 313,
00098      UP_OR_DOWN = 314,
00099      SUBROOM_ID = 315,
00100      NAME_ID = 316,
00101      FLAGS_ID = 317,
00102      FLAG_TYPE = 318,
00103      MON_ATTITUDE = 319,
00104      MON_ALERTNESS = 320,
00105      MON_APPEARANCE = 321,
00106      ROOMDOOR_ID = 322,
00107      IF_ID = 323,
00108      ELSE_ID = 324,
00109      SPILL_ID = 325,
00110      TERRAIN_ID = 326,
00111      HORIZ_OR_VERT = 327,
00112      REPLACE_TERRAIN_ID = 328,
00113      EXIT_ID = 329,
00114      SHUFFLE_ID = 330,
00115      QUANTITY_ID = 331,
00116      BURIED_ID = 332,
00117      LOOP_ID = 333,
00118      SWITCH_ID = 334,
00119      CASE_ID = 335,
00120      BREAK_ID = 336,
00121      DEFAULT_ID = 337,
00122      ERODED_ID = 338,
00123      TRAPPED_ID = 339,
00124      RECHARGED_ID = 340,
00125      INVIS_ID = 341,
00126      GREASED_ID = 342,
00127      FEMALE_ID = 343,
00128      CANCELLED_ID = 344,
00129      REVIVED_ID = 345,
00130      AVENGE_ID = 346,
00131      FLEEING_ID = 347,
00132      BLINDED_ID = 348,
00133      PARALYZED_ID = 349,
00134      STUNNED_ID = 350,
00135      CONFUSED_ID = 351,
00136      SEENTRAPS_ID = 352,
00137      ALL_ID = 353,
00138      MON_GENERATION_ID = 354,
00139      MONTYPE_ID = 355,
00140      GRAVE_ID = 356,
00141      ERODEPROOF_ID = 357,
00142      FUNCTION_ID = 358,
00143      INCLUDE_ID = 359,
00144      SOUNDS_ID = 360,
00145      MSG_OUTPUT_TYPE = 361,
00146      WALLWALK_ID = 362,
00147      COMPARE_TYPE = 363,
00148      rect_ID = 364,
00149      fillrect_ID = 365,
00150      line_ID = 366,
00151      randline_ID = 367,
00152      grow_ID = 368,
00153      selection_ID = 369,
00154      flood_ID = 370,
00155      rndcoord_ID = 371,
00156      circle_ID = 372,
00157      ellipse_ID = 373,
00158      filter_ID = 374,
00159      STRING = 375,
00160      MAP_ID = 376,
00161      NQSTRING = 377,
00162      VARSTRING = 378,
00163      VARSTRING_INT = 379,
00164      VARSTRING_INT_ARRAY = 380,
00165      VARSTRING_STRING = 381,
00166      VARSTRING_STRING_ARRAY = 382,
00167      VARSTRING_VAR = 383,
00168      VARSTRING_VAR_ARRAY = 384,
00169      VARSTRING_COORD = 385,
00170      VARSTRING_COORD_ARRAY = 386,
00171      VARSTRING_REGION = 387,
00172      VARSTRING_REGION_ARRAY = 388,
00173      VARSTRING_MAPCHAR = 389,
00174      VARSTRING_MAPCHAR_ARRAY = 390,
00175      VARSTRING_MONST = 391,
00176      VARSTRING_MONST_ARRAY = 392,
00177      VARSTRING_OBJ = 393,
00178      VARSTRING_OBJ_ARRAY = 394,
00179      VARSTRING_SEL = 395,
00180      VARSTRING_SEL_ARRAY = 396,
00181      DICE = 397
00182    };
00183 #endif
00184 /* Tokens.  */
00185 #define CHAR 258
00186 #define INTEGER 259
00187 #define BOOLEAN 260
00188 #define PERCENT 261
00189 #define SPERCENT 262
00190 #define MINUS_INTEGER 263
00191 #define PLUS_INTEGER 264
00192 #define MAZE_GRID_ID 265
00193 #define SOLID_FILL_ID 266
00194 #define MINES_ID 267
00195 #define MESSAGE_ID 268
00196 #define LEVEL_ID 269
00197 #define LEV_INIT_ID 270
00198 #define GEOMETRY_ID 271
00199 #define NOMAP_ID 272
00200 #define OBJECT_ID 273
00201 #define COBJECT_ID 274
00202 #define MONSTER_ID 275
00203 #define TRAP_ID 276
00204 #define DOOR_ID 277
00205 #define DRAWBRIDGE_ID 278
00206 #define MAZEWALK_ID 279
00207 #define WALLIFY_ID 280
00208 #define REGION_ID 281
00209 #define FILLING 282
00210 #define ALTAR_ID 283
00211 #define LADDER_ID 284
00212 #define STAIR_ID 285
00213 #define NON_DIGGABLE_ID 286
00214 #define NON_PASSWALL_ID 287
00215 #define ROOM_ID 288
00216 #define PORTAL_ID 289
00217 #define TELEPRT_ID 290
00218 #define BRANCH_ID 291
00219 #define LEV 292
00220 #define CHANCE_ID 293
00221 #define CORRIDOR_ID 294
00222 #define GOLD_ID 295
00223 #define ENGRAVING_ID 296
00224 #define FOUNTAIN_ID 297
00225 #define POOL_ID 298
00226 #define SINK_ID 299
00227 #define NONE 300
00228 #define RAND_CORRIDOR_ID 301
00229 #define DOOR_STATE 302
00230 #define LIGHT_STATE 303
00231 #define CURSE_TYPE 304
00232 #define ENGRAVING_TYPE 305
00233 #define DIRECTION 306
00234 #define RANDOM_TYPE 307
00235 #define A_REGISTER 308
00236 #define ALIGNMENT 309
00237 #define LEFT_OR_RIGHT 310
00238 #define CENTER 311
00239 #define TOP_OR_BOT 312
00240 #define ALTAR_TYPE 313
00241 #define UP_OR_DOWN 314
00242 #define SUBROOM_ID 315
00243 #define NAME_ID 316
00244 #define FLAGS_ID 317
00245 #define FLAG_TYPE 318
00246 #define MON_ATTITUDE 319
00247 #define MON_ALERTNESS 320
00248 #define MON_APPEARANCE 321
00249 #define ROOMDOOR_ID 322
00250 #define IF_ID 323
00251 #define ELSE_ID 324
00252 #define SPILL_ID 325
00253 #define TERRAIN_ID 326
00254 #define HORIZ_OR_VERT 327
00255 #define REPLACE_TERRAIN_ID 328
00256 #define EXIT_ID 329
00257 #define SHUFFLE_ID 330
00258 #define QUANTITY_ID 331
00259 #define BURIED_ID 332
00260 #define LOOP_ID 333
00261 #define SWITCH_ID 334
00262 #define CASE_ID 335
00263 #define BREAK_ID 336
00264 #define DEFAULT_ID 337
00265 #define ERODED_ID 338
00266 #define TRAPPED_ID 339
00267 #define RECHARGED_ID 340
00268 #define INVIS_ID 341
00269 #define GREASED_ID 342
00270 #define FEMALE_ID 343
00271 #define CANCELLED_ID 344
00272 #define REVIVED_ID 345
00273 #define AVENGE_ID 346
00274 #define FLEEING_ID 347
00275 #define BLINDED_ID 348
00276 #define PARALYZED_ID 349
00277 #define STUNNED_ID 350
00278 #define CONFUSED_ID 351
00279 #define SEENTRAPS_ID 352
00280 #define ALL_ID 353
00281 #define MON_GENERATION_ID 354
00282 #define MONTYPE_ID 355
00283 #define GRAVE_ID 356
00284 #define ERODEPROOF_ID 357
00285 #define FUNCTION_ID 358
00286 #define INCLUDE_ID 359
00287 #define SOUNDS_ID 360
00288 #define MSG_OUTPUT_TYPE 361
00289 #define WALLWALK_ID 362
00290 #define COMPARE_TYPE 363
00291 #define rect_ID 364
00292 #define fillrect_ID 365
00293 #define line_ID 366
00294 #define randline_ID 367
00295 #define grow_ID 368
00296 #define selection_ID 369
00297 #define flood_ID 370
00298 #define rndcoord_ID 371
00299 #define circle_ID 372
00300 #define ellipse_ID 373
00301 #define filter_ID 374
00302 #define STRING 375
00303 #define MAP_ID 376
00304 #define NQSTRING 377
00305 #define VARSTRING 378
00306 #define VARSTRING_INT 379
00307 #define VARSTRING_INT_ARRAY 380
00308 #define VARSTRING_STRING 381
00309 #define VARSTRING_STRING_ARRAY 382
00310 #define VARSTRING_VAR 383
00311 #define VARSTRING_VAR_ARRAY 384
00312 #define VARSTRING_COORD 385
00313 #define VARSTRING_COORD_ARRAY 386
00314 #define VARSTRING_REGION 387
00315 #define VARSTRING_REGION_ARRAY 388
00316 #define VARSTRING_MAPCHAR 389
00317 #define VARSTRING_MAPCHAR_ARRAY 390
00318 #define VARSTRING_MONST 391
00319 #define VARSTRING_MONST_ARRAY 392
00320 #define VARSTRING_OBJ 393
00321 #define VARSTRING_OBJ_ARRAY 394
00322 #define VARSTRING_SEL 395
00323 #define VARSTRING_SEL_ARRAY 396
00324 #define DICE 397
00325 
00326 
00327 
00328 
00329 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
00330 typedef union YYSTYPE
00331 {
00332 
00333 /* Line 1676 of yacc.c  */
00334 #line 126 "./lev_comp.y"
00335 
00336         long    i;
00337         char*   map;
00338         struct {
00339                 long room;
00340                 long wall;
00341                 long door;
00342         } corpos;
00343     struct {
00344         long area;
00345         long x1;
00346         long y1;
00347         long x2;
00348         long y2;
00349     } lregn;
00350     struct {
00351         long x;
00352         long y;
00353     } crd;
00354     struct {
00355         long ter;
00356         long lit;
00357     } terr;
00358     struct {
00359         long height;
00360         long width;
00361     } sze;
00362     struct {
00363         long die;
00364         long num;
00365     } dice;
00366 
00367 
00368 
00369 /* Line 1676 of yacc.c  */
00370 #line 371 "y.tab.h"
00371 } YYSTYPE;
00372 # define YYSTYPE_IS_TRIVIAL 1
00373 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
00374 # define YYSTYPE_IS_DECLARED 1
00375 #endif
00376 
00377 extern YYSTYPE yylval;
00378 
00379