Skip to content
Snippets Groups Projects
Gmsh.tab.cpp 410 KiB
Newer Older
/* A Bison parser, made from Gmsh.y, by GNU bison 1.75.  */
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed

/* Skeleton parser for Yacc-like parsing with Bison,
   Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software Foundation, Inc.
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 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423
   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 2, 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, write to the Free Software
   Foundation, Inc., 59 Temple Place - Suite 330,
   Boston, MA 02111-1307, USA.  */

/* As a special exception, when this file is copied by Bison into a
   Bison output file, you may use that output file without restriction.
   This special exception was added by the Free Software Foundation
   in version 1.24 of Bison.  */

/* Written by Richard Stallman by simplifying the original so called
   ``semantic'' parser.  */

/* All symbols defined below should begin with yy or YY, to avoid
   infringing on user name space.  This should be done even for local
   variables, as they might otherwise be expanded by user macros.
   There are some unavoidable exceptions within include files to
   define necessary library symbols; they are noted "INFRINGES ON
   USER NAME SPACE" below.  */

/* Identify Bison output.  */
#define YYBISON	1

/* Pure parsers.  */
#define YYPURE	0

/* Using locations.  */
#define YYLSP_NEEDED 0



/* Tokens.  */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
   /* Put the tokens into the symbol table, so that GDB and other debuggers
      know about them.  */
   enum yytokentype {
     tDOUBLE = 258,
     tSTRING = 259,
     tBIGSTR = 260,
     tEND = 261,
     tAFFECT = 262,
     tDOTS = 263,
     tPi = 264,
     tMPI_Rank = 265,
     tMPI_Size = 266,
     tExp = 267,
     tLog = 268,
     tLog10 = 269,
     tSqrt = 270,
     tSin = 271,
     tAsin = 272,
     tCos = 273,
     tAcos = 274,
     tTan = 275,
     tRand = 276,
     tAtan = 277,
     tAtan2 = 278,
     tSinh = 279,
     tCosh = 280,
     tTanh = 281,
     tFabs = 282,
     tFloor = 283,
     tCeil = 284,
     tFmod = 285,
     tModulo = 286,
     tHypot = 287,
     tPrintf = 288,
     tSprintf = 289,
     tStrCat = 290,
     tStrPrefix = 291,
     tDraw = 292,
     tPoint = 293,
     tCircle = 294,
     tEllipse = 295,
     tLine = 296,
     tSurface = 297,
     tSpline = 298,
     tVolume = 299,
     tCharacteristic = 300,
     tLength = 301,
     tParametric = 302,
     tElliptic = 303,
     tPlane = 304,
     tRuled = 305,
     tTriangulation = 306,
     tTransfinite = 307,
     tComplex = 308,
     tPhysical = 309,
     tUsing = 310,
     tBump = 311,
     tProgression = 312,
     tPlugin = 313,
     tRotate = 314,
     tTranslate = 315,
     tSymmetry = 316,
     tDilate = 317,
     tExtrude = 318,
     tDuplicata = 319,
     tLoop = 320,
     tRecombine = 321,
     tDelete = 322,
     tCoherence = 323,
     tIntersect = 324,
     tAttractor = 325,
     tLayers = 326,
     tScalarPoint = 327,
     tVectorPoint = 328,
     tTensorPoint = 329,
     tScalarLine = 330,
     tVectorLine = 331,
     tTensorLine = 332,
     tScalarTriangle = 333,
     tVectorTriangle = 334,
     tTensorTriangle = 335,
     tScalarQuadrangle = 336,
     tVectorQuadrangle = 337,
     tTensorQuadrangle = 338,
     tScalarTetrahedron = 339,
     tVectorTetrahedron = 340,
     tTensorTetrahedron = 341,
     tScalarHexahedron = 342,
     tVectorHexahedron = 343,
     tTensorHexahedron = 344,
     tScalarPrism = 345,
     tVectorPrism = 346,
     tTensorPrism = 347,
     tScalarPyramid = 348,
     tVectorPyramid = 349,
     tTensorPyramid = 350,
     tText2D = 351,
     tText3D = 352,
     tBSpline = 353,
     tBezier = 354,
     tNurbs = 355,
     tOrder = 356,
     tWith = 357,
     tBounds = 358,
     tKnots = 359,
     tColor = 360,
     tColorTable = 361,
     tFor = 362,
     tIn = 363,
     tEndFor = 364,
     tIf = 365,
     tEndIf = 366,
     tExit = 367,
     tReturn = 368,
     tCall = 369,
     tFunction = 370,
     tMesh = 371,
     tTrimmed = 372,
     tB_SPLINE_SURFACE_WITH_KNOTS = 373,
     tB_SPLINE_CURVE_WITH_KNOTS = 374,
     tCARTESIAN_POINT = 375,
     tTRUE = 376,
     tFALSE = 377,
     tUNSPECIFIED = 378,
     tU = 379,
     tV = 380,
     tEDGE_CURVE = 381,
     tVERTEX_POINT = 382,
     tORIENTED_EDGE = 383,
     tPLANE = 384,
     tFACE_OUTER_BOUND = 385,
     tEDGE_LOOP = 386,
     tADVANCED_FACE = 387,
     tVECTOR = 388,
     tDIRECTION = 389,
     tAXIS2_PLACEMENT_3D = 390,
     tISO = 391,
     tENDISO = 392,
     tENDSEC = 393,
     tDATA = 394,
     tHEADER = 395,
     tFILE_DESCRIPTION = 396,
     tFILE_SCHEMA = 397,
     tFILE_NAME = 398,
     tMANIFOLD_SOLID_BREP = 399,
     tCLOSED_SHELL = 400,
     tADVANCED_BREP_SHAPE_REPRESENTATION = 401,
     tFACE_BOUND = 402,
     tCYLINDRICAL_SURFACE = 403,
     tCONICAL_SURFACE = 404,
     tCIRCLE = 405,
     tTRIMMED_CURVE = 406,
     tGEOMETRIC_SET = 407,
     tCOMPOSITE_CURVE_SEGMENT = 408,
     tCONTINUOUS = 409,
     tCOMPOSITE_CURVE = 410,
     tTOROIDAL_SURFACE = 411,
     tPRODUCT_DEFINITION = 412,
     tPRODUCT_DEFINITION_SHAPE = 413,
     tSHAPE_DEFINITION_REPRESENTATION = 414,
     tELLIPSE = 415,
     tSolid = 416,
     tEndSolid = 417,
     tVertex = 418,
     tFacet = 419,
     tNormal = 420,
     tOuter = 421,
     tLoopSTL = 422,
     tEndLoop = 423,
     tEndFacet = 424,
     tAFFECTDIVIDE = 425,
     tAFFECTTIMES = 426,
     tAFFECTMINUS = 427,
     tAFFECTPLUS = 428,
     tOR = 429,
     tAND = 430,
     tAPPROXEQUAL = 431,
     tNOTEQUAL = 432,
     tEQUAL = 433,
     tGREATEROREQUAL = 434,
     tLESSOREQUAL = 435,
     tCROSSPRODUCT = 436,
     UNARYPREC = 437,
     tMINUSMINUS = 438,
     tPLUSPLUS = 439
   };
#endif
#define tDOUBLE 258
#define tSTRING 259
#define tBIGSTR 260
#define tEND 261
#define tAFFECT 262
#define tDOTS 263
#define tPi 264
#define tMPI_Rank 265
#define tMPI_Size 266
#define tExp 267
#define tLog 268
#define tLog10 269
#define tSqrt 270
#define tSin 271
#define tAsin 272
#define tCos 273
#define tAcos 274
#define tTan 275
#define tRand 276
#define tAtan 277
#define tAtan2 278
#define tSinh 279
#define tCosh 280
#define tTanh 281
#define tFabs 282
#define tFloor 283
#define tCeil 284
#define tFmod 285
#define tModulo 286
#define tHypot 287
#define tPrintf 288
#define tSprintf 289
#define tStrCat 290
#define tStrPrefix 291
#define tDraw 292
#define tPoint 293
#define tCircle 294
#define tEllipse 295
#define tLine 296
#define tSurface 297
#define tSpline 298
#define tVolume 299
#define tCharacteristic 300
#define tLength 301
#define tParametric 302
#define tElliptic 303
#define tPlane 304
#define tRuled 305
#define tTriangulation 306
#define tTransfinite 307
#define tComplex 308
#define tPhysical 309
#define tUsing 310
#define tBump 311
#define tProgression 312
#define tPlugin 313
#define tRotate 314
#define tTranslate 315
#define tSymmetry 316
#define tDilate 317
#define tExtrude 318
#define tDuplicata 319
#define tLoop 320
#define tRecombine 321
#define tDelete 322
#define tCoherence 323
#define tIntersect 324
#define tAttractor 325
#define tLayers 326
#define tScalarPoint 327
#define tVectorPoint 328
#define tTensorPoint 329
#define tScalarLine 330
#define tVectorLine 331
#define tTensorLine 332
#define tScalarTriangle 333
#define tVectorTriangle 334
#define tTensorTriangle 335
#define tScalarQuadrangle 336
#define tVectorQuadrangle 337
#define tTensorQuadrangle 338
#define tScalarTetrahedron 339
#define tVectorTetrahedron 340
#define tTensorTetrahedron 341
#define tScalarHexahedron 342
#define tVectorHexahedron 343
#define tTensorHexahedron 344
#define tScalarPrism 345
#define tVectorPrism 346
#define tTensorPrism 347
#define tScalarPyramid 348
#define tVectorPyramid 349
#define tTensorPyramid 350
#define tText2D 351
#define tText3D 352
#define tBSpline 353
#define tBezier 354
#define tNurbs 355
#define tOrder 356
#define tWith 357
#define tBounds 358
#define tKnots 359
#define tColor 360
#define tColorTable 361
#define tFor 362
#define tIn 363
#define tEndFor 364
#define tIf 365
#define tEndIf 366
#define tExit 367
#define tReturn 368
#define tCall 369
#define tFunction 370
#define tMesh 371
#define tTrimmed 372
#define tB_SPLINE_SURFACE_WITH_KNOTS 373
#define tB_SPLINE_CURVE_WITH_KNOTS 374
#define tCARTESIAN_POINT 375
#define tTRUE 376
#define tFALSE 377
#define tUNSPECIFIED 378
#define tU 379
#define tV 380
#define tEDGE_CURVE 381
#define tVERTEX_POINT 382
#define tORIENTED_EDGE 383
#define tPLANE 384
#define tFACE_OUTER_BOUND 385
#define tEDGE_LOOP 386
#define tADVANCED_FACE 387
#define tVECTOR 388
#define tDIRECTION 389
#define tAXIS2_PLACEMENT_3D 390
#define tISO 391
#define tENDISO 392
#define tENDSEC 393
#define tDATA 394
#define tHEADER 395
#define tFILE_DESCRIPTION 396
#define tFILE_SCHEMA 397
#define tFILE_NAME 398
#define tMANIFOLD_SOLID_BREP 399
#define tCLOSED_SHELL 400
#define tADVANCED_BREP_SHAPE_REPRESENTATION 401
#define tFACE_BOUND 402
#define tCYLINDRICAL_SURFACE 403
#define tCONICAL_SURFACE 404
#define tCIRCLE 405
#define tTRIMMED_CURVE 406
#define tGEOMETRIC_SET 407
#define tCOMPOSITE_CURVE_SEGMENT 408
#define tCONTINUOUS 409
#define tCOMPOSITE_CURVE 410
#define tTOROIDAL_SURFACE 411
#define tPRODUCT_DEFINITION 412
#define tPRODUCT_DEFINITION_SHAPE 413
#define tSHAPE_DEFINITION_REPRESENTATION 414
#define tELLIPSE 415
#define tSolid 416
#define tEndSolid 417
#define tVertex 418
#define tFacet 419
#define tNormal 420
#define tOuter 421
#define tLoopSTL 422
#define tEndLoop 423
#define tEndFacet 424
#define tAFFECTDIVIDE 425
#define tAFFECTTIMES 426
#define tAFFECTMINUS 427
#define tAFFECTPLUS 428
#define tOR 429
#define tAND 430
#define tAPPROXEQUAL 431
#define tNOTEQUAL 432
#define tEQUAL 433
#define tGREATEROREQUAL 434
#define tLESSOREQUAL 435
#define tCROSSPRODUCT 436
#define UNARYPREC 437
#define tMINUSMINUS 438
#define tPLUSPLUS 439




/* Copy the first part of user declarations.  */
// $Id: Gmsh.tab.cpp,v 1.160 2003-09-05 14:22:34 remacle Exp $
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
// Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle
//
// 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 2 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, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
// USA.
// 
// Please report all bugs and problems to "gmsh@geuz.org".
#include "PluginManager.h"
#include "ParUtil.h"
#include "Context.h"
#include "Geo.h"
#include "CAD.h"
#include "DataBase.h"
#include "Mesh.h"
#include "Create.h"
#include "Views.h"
#include "StepGeomDatabase.h"
Christophe Geuzaine's avatar
Christophe Geuzaine committed
#include "Options.h"
#include "OpenFile.h"
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#include "CommandLine.h"
#include "FunctionManager.h"
#include "ColorTable.h"
#include "Timer.h"
#include "CreateFile.h"
#include "STL.h"
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
Tree_T *Symbol_T = NULL;
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed

extern Context_T CTX;
extern Mesh *THEM;

static FILE *yyinTab[MAX_OPEN_FILES];
static int yylinenoTab[MAX_OPEN_FILES];
static fpos_t yyposImbricatedLoopsTab[MAX_OPEN_FILES];
static int yylinenoImbricatedLoopsTab[MAX_OPEN_FILES];
static double LoopControlVariablesTab[MAX_OPEN_FILES][3];
static char *LoopControlVariablesNameTab[MAX_OPEN_FILES];
static char yynameTab[MAX_OPEN_FILES][256];
static char tmpstring[1024];
static Symbol TheSymbol, *pSymbol;
static Surface *STL_Surf;
static Shape TheShape;
static int i, j, k, flag, RecursionLevel = 0, ImbricatedLoop = 0;
static int Last_NumberOfPoints = 0;
static double d, *pd;
static ExtrudeParams extr;
static char *str;
static StringXString *pStrCat;
static StringXNumber *pNumCat;
static StringXColor *pColCat;
static double (*pNumOpt)(int num, int action, double value);
static char* (*pStrOpt)(int num, int action, char *value);
static unsigned int (*pColOpt)(int num, int action, unsigned int value);
static Post_View *View;

char *strsave (char *ptr);
void yyerror (char *s);
void yymsg (int type, char *fmt, ...);
void skip_until (char *skip, char *until);
int PrintListOfDouble (char *format, List_T *list, char *buffer);

/* Enabling traces.  */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif

/* Enabling verbose error messages.  */
#ifdef YYERROR_VERBOSE
# undef YYERROR_VERBOSE
# define YYERROR_VERBOSE 1
#else
# define YYERROR_VERBOSE 0
#endif

#ifndef YYSTYPE
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#line 85 "Gmsh.y"
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
  char *c;
  int i;
  unsigned int u;
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
  double d;
  double v[5];
  Shape s;
  List_T *l;
} yystype;
/* Line 193 of /usr/share/bison/yacc.c.  */
#line 535 "Gmsh.tab.cpp"
# define YYSTYPE yystype
# define YYSTYPE_IS_TRIVIAL 1

#ifndef YYLTYPE
typedef struct yyltype
{
  int first_line;
  int first_column;
  int last_line;
  int last_column;
} yyltype;
# define YYLTYPE yyltype
# define YYLTYPE_IS_TRIVIAL 1
/* Copy the second part of user declarations.  */


/* Line 213 of /usr/share/bison/yacc.c.  */
#line 556 "Gmsh.tab.cpp"

#if ! defined (yyoverflow) || YYERROR_VERBOSE

/* The parser invokes alloca or malloc; define the necessary symbols.  */

# if YYSTACK_USE_ALLOCA
#  define YYSTACK_ALLOC alloca
# else
#  ifndef YYSTACK_USE_ALLOCA
#   if defined (alloca) || defined (_ALLOCA_H)
#    define YYSTACK_ALLOC alloca
#   else
#    ifdef __GNUC__
#     define YYSTACK_ALLOC __builtin_alloca
#    endif
#   endif
#  endif
# endif

# ifdef YYSTACK_ALLOC
   /* Pacify GCC's `empty if-body' warning. */
#  define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
# else
#  if defined (__STDC__) || defined (__cplusplus)
#   include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
#   define YYSIZE_T size_t
#  endif
#  define YYSTACK_ALLOC malloc
#  define YYSTACK_FREE free
# endif
#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */


#if (! defined (yyoverflow) \
     && (! defined (__cplusplus) \
	 || (YYLTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))

/* A type that is properly aligned for any stack member.  */
union yyalloc
{
  short yyss;
  YYSTYPE yyvs;
  };

/* The size of the maximum gap between one aligned stack and the next.  */
# define YYSTACK_GAP_MAX (sizeof (union yyalloc) - 1)

/* The size of an array large to enough to hold all stacks, each with
   N elements.  */
# define YYSTACK_BYTES(N) \
     ((N) * (sizeof (short) + sizeof (YYSTYPE))				\
      + YYSTACK_GAP_MAX)

/* Copy COUNT objects from FROM to TO.  The source and destination do
   not overlap.  */
# ifndef YYCOPY
#  if 1 < __GNUC__
#   define YYCOPY(To, From, Count) \
      __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
#  else
#   define YYCOPY(To, From, Count)		\
      do					\
	{					\
	  register YYSIZE_T yyi;		\
	  for (yyi = 0; yyi < (Count); yyi++)	\
	    (To)[yyi] = (From)[yyi];	\
	}					\
      while (0)
#  endif
# endif

/* Relocate STACK from its old location to the new one.  The
   local variables YYSIZE and YYSTACKSIZE give the old and new number of
   elements in the stack, and YYPTR gives the new location of the
   stack.  Advance YYPTR to a properly aligned location for the next
   stack.  */
# define YYSTACK_RELOCATE(Stack)					\
    do									\
      {									\
	YYSIZE_T yynewbytes;						\
	YYCOPY (&yyptr->Stack, Stack, yysize);				\
	Stack = &yyptr->Stack;						\
	yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAX;	\
	yyptr += yynewbytes / sizeof (*yyptr);				\
      }									\
    while (0)

#endif
#if defined (__STDC__) || defined (__cplusplus)
   typedef signed char yysigned_char;
#else
   typedef short yysigned_char;
#endif
/* YYFINAL -- State number of the termination state. */
#define YYFINAL  11
#define YYLAST   13250

/* YYNTOKENS -- Number of terminals. */
#define YYNTOKENS  203
/* YYNNTS -- Number of nonterminals. */
#define YYNNTS  134
/* YYNRULES -- Number of rules. */
#define YYNRULES  458
/* YYNRULES -- Number of states. */
#define YYNSTATES  2291

/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX.  */
#define YYUNDEFTOK  2
#define YYMAXUTOK   439

#define YYTRANSLATE(X) \
  ((unsigned)(X) <= YYMAXUTOK ? yytranslate[X] : YYUNDEFTOK)

/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX.  */
static const unsigned char yytranslate[] =
{
       0,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,   190,     2,     2,     2,   188,     2,     2,
     195,   196,   186,   184,   200,   185,   199,   187,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     180,     2,   181,   174,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,   197,     2,   198,   194,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,   201,     2,   202,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     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,   175,
     176,   177,   178,   179,   182,   183,   189,   191,   192,   193
#if YYDEBUG
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
   YYRHS.  */
static const unsigned short yyprhs[] =
{
       0,     0,     3,     5,     7,     9,    12,    14,    17,    19,
      41,    43,    44,    47,    49,    51,    53,    56,    59,    62,
      65,    68,    76,    82,   100,   110,   134,   166,   182,   194,
     206,   222,   232,   246,   256,   268,   282,   292,   302,   314,
     324,   336,   346,   358,   372,   386,   398,   412,   430,   440,
     452,   464,   478,   490,   500,   501,   504,   506,   508,   510,
     512,   514,   516,   518,   520,   522,   524,   526,   528,   530,
     536,   544,   551,   560,   561,   564,   567,   570,   573,   576,
     579,   582,   585,   588,   591,   594,   597,   600,   603,   606,
     609,   612,   615,   618,   621,   624,   627,   630,   633,   636,
     639,   641,   645,   646,   660,   662,   666,   667,   681,   683,
     687,   688,   702,   704,   708,   709,   729,   731,   735,   736,
     756,   758,   762,   763,   783,   785,   789,   790,   816,   818,
     822,   823,   849,   851,   855,   856,   882,   884,   888,   889,
     921,   923,   927,   928,   960,   962,   966,   967,   999,  1001,
    1005,  1006,  1038,  1040,  1044,  1045,  1077,  1079,  1083,  1084,
    1116,  1118,  1122,  1123,  1179,  1181,  1185,  1186,  1242,  1244,
    1248,  1249,  1305,  1307,  1311,  1312,  1356,  1358,  1362,  1363,
    1407,  1409,  1413,  1414,  1458,  1460,  1464,  1465,  1503,  1505,
    1509,  1510,  1548,  1550,  1554,  1555,  1593,  1595,  1599,  1600,
    1614,  1616,  1620,  1621,  1637,  1639,  1641,  1643,  1645,  1647,
    1649,  1651,  1656,  1664,  1674,  1681,  1685,  1692,  1699,  1709,
    1716,  1726,  1732,  1741,  1750,  1762,  1769,  1779,  1789,  1799,
    1807,  1816,  1829,  1836,  1844,  1852,  1865,  1873,  1881,  1891,
    1909,  1918,  1927,  1935,  1943,  1955,  1964,  1977,  1986,  2001,
    2024,  2045,  2054,  2063,  2072,  2080,  2089,  2095,  2107,  2113,
    2123,  2125,  2127,  2129,  2130,  2133,  2140,  2147,  2154,  2159,
    2166,  2171,  2178,  2182,  2188,  2192,  2196,  2204,  2207,  2210,
    2217,  2226,  2235,  2246,  2248,  2251,  2253,  2257,  2262,  2264,
    2273,  2286,  2301,  2302,  2315,  2316,  2333,  2334,  2353,  2362,
    2375,  2390,  2391,  2404,  2405,  2422,  2423,  2442,  2451,  2464,
    2479,  2480,  2493,  2494,  2511,  2512,  2531,  2533,  2536,  2546,
    2554,  2557,  2564,  2574,  2584,  2593,  2602,  2611,  2618,  2623,
    2626,  2629,  2631,  2633,  2635,  2637,  2639,  2641,  2645,  2648,
    2651,  2654,  2658,  2662,  2666,  2670,  2674,  2678,  2682,  2686,
    2690,  2694,  2698,  2702,  2706,  2710,  2716,  2721,  2726,  2731,
    2736,  2741,  2746,  2751,  2756,  2761,  2766,  2773,  2778,  2783,
    2788,  2793,  2798,  2803,  2810,  2817,  2824,  2829,  2834,  2839,
    2844,  2849,  2854,  2859,  2864,  2869,  2874,  2879,  2886,  2891,
    2896,  2901,  2906,  2911,  2916,  2923,  2930,  2937,  2942,  2944,
    2946,  2948,  2950,  2952,  2957,  2960,  2966,  2970,  2977,  2982,
    2990,  2992,  2995,  2998,  3002,  3006,  3018,  3028,  3036,  3044,
    3045,  3049,  3051,  3055,  3056,  3060,  3064,  3066,  3070,  3072,
    3074,  3078,  3083,  3085,  3089,  3095,  3100,  3104,  3109,  3116,
    3124,  3126,  3128,  3132,  3136,  3146,  3154,  3156,  3162,  3166,
    3173,  3175,  3179,  3181,  3188,  3193,  3198,  3205,  3212
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed

/* YYRHS -- A `-1'-separated list of the rules' RHS. */
static const short yyrhs[] =
{
     204,     0,    -1,   207,    -1,   206,    -1,   212,    -1,     1,
       6,    -1,     3,    -1,   185,     3,    -1,   161,    -1,   164,
     165,   205,   205,   205,   166,   167,   163,   205,   205,   205,
     163,   205,   205,   205,   163,   205,   205,   205,   168,   169,
      -1,   162,    -1,    -1,   207,   208,    -1,   209,    -1,   211,
      -1,   210,    -1,   136,     6,    -1,   137,     6,    -1,   139,
       6,    -1,   138,     6,    -1,   140,     6,    -1,   141,   195,
     326,   200,     5,   196,     6,    -1,   142,   195,   326,   196,
       6,    -1,   143,   195,     5,   200,     5,   200,   326,   200,
     326,   200,     5,   200,     5,   200,     5,   196,     6,    -1,
       3,     7,   120,   195,     5,   200,   324,   196,     6,    -1,
       3,     7,   119,   195,     5,   200,   322,   200,   330,   200,
     321,   200,   321,   200,   321,   200,   330,   200,   330,   200,
     321,   196,     6,    -1,     3,     7,   118,   195,     5,   200,
     322,   200,   322,   200,   328,   200,   321,   200,   321,   200,
     321,   200,   321,   200,   330,   200,   330,   200,   330,   200,
     330,   200,   321,   196,     6,    -1,     3,     7,   126,   195,
       5,   200,     3,   200,     3,   200,     3,   200,   321,   196,
       6,    -1,     3,     7,   130,   195,     5,   200,     3,   200,
     321,   196,     6,    -1,     3,     7,   147,   195,     5,   200,
       3,   200,   321,   196,     6,    -1,     3,     7,   128,   195,
       5,   200,   186,   200,   186,   200,   322,   200,   321,   196,
       6,    -1,     3,     7,   131,   195,     5,   200,   330,   196,
       6,    -1,     3,     7,   132,   195,     5,   200,   330,   200,
       3,   200,   321,   196,     6,    -1,     3,     7,   127,   195,
       5,   200,     3,   196,     6,    -1,     3,     7,   133,   195,
       5,   200,     3,   200,   322,   196,     6,    -1,     3,     7,
     135,   195,     5,   200,     3,   200,     3,   200,     3,   196,
       6,    -1,     3,     7,   134,   195,     5,   200,   324,   196,
       6,    -1,     3,     7,   129,   195,     5,   200,     3,   196,
       6,    -1,     3,     7,    41,   195,     5,   200,     3,   200,
       3,   196,     6,    -1,     3,     7,   145,   195,     5,   200,
     330,   196,     6,    -1,     3,     7,   146,   195,     5,   200,
     330,   200,     3,   196,     6,    -1,     3,     7,   144,   195,
       5,   200,     3,   196,     6,    -1,     3,     7,   148,   195,
       5,   200,     3,   200,   322,   196,     6,    -1,     3,     7,
     149,   195,     5,   200,     3,   200,   322,   200,   322,   196,
       6,    -1,     3,     7,   156,   195,     5,   200,     3,   200,
     322,   200,   322,   196,     6,    -1,     3,     7,   150,   195,
       5,   200,     3,   200,   322,   196,     6,    -1,     3,     7,
     160,   195,     5,   200,     3,   200,   322,   200,   322,   196,
       6,    -1,     3,     7,   151,   195,     5,   200,     3,   200,
     330,   200,   330,   200,   321,   200,   321,   196,     6,    -1,
       3,     7,   152,   195,     5,   200,   330,   196,     6,    -1,
       3,     7,   153,   195,   154,   200,   321,   200,     3,   196,
       6,    -1,     3,     7,   155,   195,     5,   200,   330,   200,
     321,   196,     6,    -1,     3,     7,   157,   195,     5,   200,
       5,   200,     3,   200,     3,   196,     6,    -1,     3,     7,
     158,   195,     5,   200,     5,   200,     3,   196,     6,    -1,
       3,     7,   159,   195,     3,   200,     3,   196,     6,    -1,
      -1,   212,   213,    -1,   215,    -1,   214,    -1,   297,    -1,
     298,    -1,   299,    -1,   302,    -1,   303,    -1,   304,    -1,
     307,    -1,   319,    -1,   320,    -1,   306,    -1,   305,    -1,
      33,   195,     5,   196,     6,    -1,    33,   195,     5,   200,
     332,   196,     6,    -1,     4,     5,   201,   216,   202,     6,
      -1,     4,     5,     4,   324,   201,   216,   202,     6,    -1,
      -1,   216,   218,    -1,   216,   221,    -1,   216,   224,    -1,
     216,   227,    -1,   216,   230,    -1,   216,   233,    -1,   216,
     236,    -1,   216,   239,    -1,   216,   242,    -1,   216,   245,
      -1,   216,   248,    -1,   216,   251,    -1,   216,   254,    -1,
     216,   257,    -1,   216,   260,    -1,   216,   263,    -1,   216,
     266,    -1,   216,   269,    -1,   216,   272,    -1,   216,   275,
      -1,   216,   278,    -1,   216,   281,    -1,   216,   284,    -1,
     216,   287,    -1,   216,   290,    -1,   216,   293,    -1,   322,
      -1,   217,   200,   322,    -1,    -1,    72,   195,   322,   200,
     322,   200,   322,   196,   219,   201,   217,   202,     6,    -1,
     322,    -1,   220,   200,   322,    -1,    -1,    73,   195,   322,
     200,   322,   200,   322,   196,   222,   201,   220,   202,     6,
      -1,   322,    -1,   223,   200,   322,    -1,    -1,    74,   195,
     322,   200,   322,   200,   322,   196,   225,   201,   223,   202,
       6,    -1,   322,    -1,   226,   200,   322,    -1,    -1,    75,
     195,   322,   200,   322,   200,   322,   200,   322,   200,   322,
     200,   322,   196,   228,   201,   226,   202,     6,    -1,   322,
      -1,   229,   200,   322,    -1,    -1,    76,   195,   322,   200,
     322,   200,   322,   200,   322,   200,   322,   200,   322,   196,
     231,   201,   229,   202,     6,    -1,   322,    -1,   232,   200,
     322,    -1,    -1,    77,   195,   322,   200,   322,   200,   322,
     200,   322,   200,   322,   200,   322,   196,   234,   201,   232,
     202,     6,    -1,   322,    -1,   235,   200,   322,    -1,    -1,
      78,   195,   322,   200,   322,   200,   322,   200,   322,   200,
     322,   200,   322,   200,   322,   200,   322,   200,   322,   196,
     237,   201,   235,   202,     6,    -1,   322,    -1,   238,   200,
     322,    -1,    -1,    79,   195,   322,   200,   322,   200,   322,
     200,   322,   200,   322,   200,   322,   200,   322,   200,   322,
     200,   322,   196,   240,   201,   238,   202,     6,    -1,   322,
      -1,   241,   200,   322,    -1,    -1,    80,   195,   322,   200,
     322,   200,   322,   200,   322,   200,   322,   200,   322,   200,
     322,   200,   322,   200,   322,   196,   243,   201,   241,   202,
       6,    -1,   322,    -1,   244,   200,   322,    -1,    -1,    81,
     195,   322,   200,   322,   200,   322,   200,   322,   200,   322,
     200,   322,   200,   322,   200,   322,   200,   322,   200,   322,
     200,   322,   200,   322,   196,   246,   201,   244,   202,     6,
      -1,   322,    -1,   247,   200,   322,    -1,    -1,    82,   195,
     322,   200,   322,   200,   322,   200,   322,   200,   322,   200,
     322,   200,   322,   200,   322,   200,   322,   200,   322,   200,
     322,   200,   322,   196,   249,   201,   247,   202,     6,    -1,
     322,    -1,   250,   200,   322,    -1,    -1,    83,   195,   322,
     200,   322,   200,   322,   200,   322,   200,   322,   200,   322,
     200,   322,   200,   322,   200,   322,   200,   322,   200,   322,
     200,   322,   196,   252,   201,   250,   202,     6,    -1,   322,
      -1,   253,   200,   322,    -1,    -1,    84,   195,   322,   200,
     322,   200,   322,   200,   322,   200,   322,   200,   322,   200,
     322,   200,   322,   200,   322,   200,   322,   200,   322,   200,
     322,   196,   255,   201,   253,   202,     6,    -1,   322,    -1,
     256,   200,   322,    -1,    -1,    85,   195,   322,   200,   322,
     200,   322,   200,   322,   200,   322,   200,   322,   200,   322,
     200,   322,   200,   322,   200,   322,   200,   322,   200,   322,
     196,   258,   201,   256,   202,     6,    -1,   322,    -1,   259,
     200,   322,    -1,    -1,    86,   195,   322,   200,   322,   200,
     322,   200,   322,   200,   322,   200,   322,   200,   322,   200,
     322,   200,   322,   200,   322,   200,   322,   200,   322,   196,
     261,   201,   259,   202,     6,    -1,   322,    -1,   262,   200,
     322,    -1,    -1,    87,   195,   322,   200,   322,   200,   322,
     200,   322,   200,   322,   200,   322,   200,   322,   200,   322,
     200,   322,   200,   322,   200,   322,   200,   322,   200,   322,
     200,   322,   200,   322,   200,   322,   200,   322,   200,   322,
     200,   322,   200,   322,   200,   322,   200,   322,   200,   322,
     200,   322,   196,   264,   201,   262,   202,     6,    -1,   322,
      -1,   265,   200,   322,    -1,    -1,    88,   195,   322,   200,
     322,   200,   322,   200,   322,   200,   322,   200,   322,   200,
     322,   200,   322,   200,   322,   200,   322,   200,   322,   200,
     322,   200,   322,   200,   322,   200,   322,   200,   322,   200,
     322,   200,   322,   200,   322,   200,   322,   200,   322,   200,
     322,   200,   322,   200,   322,   196,   267,   201,   265,   202,
       6,    -1,   322,    -1,   268,   200,   322,    -1,    -1,    89,
     195,   322,   200,   322,   200,   322,   200,   322,   200,   322,
     200,   322,   200,   322,   200,   322,   200,   322,   200,   322,
     200,   322,   200,   322,   200,   322,   200,   322,   200,   322,
     200,   322,   200,   322,   200,   322,   200,   322,   200,   322,
     200,   322,   200,   322,   200,   322,   200,   322,   196,   270,
     201,   268,   202,     6,    -1,   322,    -1,   271,   200,   322,
      -1,    -1,    90,   195,   322,   200,   322,   200,   322,   200,
     322,   200,   322,   200,   322,   200,   322,   200,   322,   200,
     322,   200,   322,   200,   322,   200,   322,   200,   322,   200,
     322,   200,   322,   200,   322,   200,   322,   200,   322,   196,
     273,   201,   271,   202,     6,    -1,   322,    -1,   274,   200,
     322,    -1,    -1,    91,   195,   322,   200,   322,   200,   322,
     200,   322,   200,   322,   200,   322,   200,   322,   200,   322,
     200,   322,   200,   322,   200,   322,   200,   322,   200,   322,
     200,   322,   200,   322,   200,   322,   200,   322,   200,   322,
     196,   276,   201,   274,   202,     6,    -1,   322,    -1,   277,
     200,   322,    -1,    -1,    92,   195,   322,   200,   322,   200,
     322,   200,   322,   200,   322,   200,   322,   200,   322,   200,
     322,   200,   322,   200,   322,   200,   322,   200,   322,   200,
     322,   200,   322,   200,   322,   200,   322,   200,   322,   200,
     322,   196,   279,   201,   277,   202,     6,    -1,   322,    -1,
     280,   200,   322,    -1,    -1,    93,   195,   322,   200,   322,
     200,   322,   200,   322,   200,   322,   200,   322,   200,   322,
     200,   322,   200,   322,   200,   322,   200,   322,   200,   322,
     200,   322,   200,   322,   200,   322,   196,   282,   201,   280,
     202,     6,    -1,   322,    -1,   283,   200,   322,    -1,    -1,
      94,   195,   322,   200,   322,   200,   322,   200,   322,   200,
     322,   200,   322,   200,   322,   200,   322,   200,   322,   200,
     322,   200,   322,   200,   322,   200,   322,   200,   322,   200,
     322,   196,   285,   201,   283,   202,     6,    -1,   322,    -1,
     286,   200,   322,    -1,    -1,    95,   195,   322,   200,   322,
     200,   322,   200,   322,   200,   322,   200,   322,   200,   322,
     200,   322,   200,   322,   200,   322,   200,   322,   200,   322,
     200,   322,   200,   322,   200,   322,   196,   288,   201,   286,
     202,     6,    -1,   336,    -1,   289,   200,   336,    -1,    -1,
      96,   195,   322,   200,   322,   200,   322,   196,   291,   201,
     289,   202,     6,    -1,   336,    -1,   292,   200,   336,    -1,
      -1,    97,   195,   322,   200,   322,   200,   322,   200,   322,
     196,   294,   201,   292,   202,     6,    -1,     7,    -1,   173,
      -1,   172,    -1,   171,    -1,   170,    -1,   193,    -1,   192,
      -1,     4,   295,   322,     6,    -1,     4,   197,   322,   198,
     295,   322,     6,    -1,     4,   197,   201,   332,   202,   198,
     295,   330,     6,    -1,     4,   197,   198,     7,   330,     6,
      -1,     4,   296,     6,    -1,     4,   197,   322,   198,   296,
       6,    -1,     4,   199,     4,     7,   336,     6,    -1,     4,
     197,   322,   198,   199,     4,     7,   336,     6,    -1,     4,
     199,     4,   295,   322,     6,    -1,     4,   197,   322,   198,
     199,     4,   295,   322,     6,    -1,     4,   199,     4,   296,
       6,    -1,     4,   197,   322,   198,   199,     4,   296,     6,
      -1,     4,   199,   105,   199,     4,     7,   333,     6,    -1,
       4,   197,   322,   198,   199,   105,   199,     4,     7,   333,
       6,    -1,     4,   199,   106,     7,   334,     6,    -1,     4,
     197,   322,   198,   199,   106,     7,   334,     6,    -1,    58,
     195,     4,   196,   199,     4,     7,   322,     6,    -1,    58,
     195,     4,   196,   199,     4,     7,   336,     6,    -1,    38,
     195,   322,   196,     7,   324,     6,    -1,    54,    38,   195,
     322,   196,     7,   330,     6,    -1,    70,    38,   330,     7,
     201,   322,   200,   322,   200,   322,   202,     6,    -1,    45,
      46,   330,     7,   322,     6,    -1,    41,   195,   322,   196,
       7,   330,     6,    -1,    43,   195,   322,   196,     7,   330,
       6,    -1,    70,    41,   330,     7,   201,   322,   200,   322,
     200,   322,   202,     6,    -1,    39,   195,   322,   196,     7,
     330,     6,    -1,    40,   195,   322,   196,     7,   330,     6,
      -1,    39,   195,   322,   196,     7,   330,    49,   324,     6,
      -1,    47,   195,   322,   196,     7,   201,   322,   200,   322,
     200,     5,   200,     5,   200,     5,   202,     6,    -1,    54,
      41,   195,   322,   196,     7,   330,     6,    -1,    41,    65,
     195,   322,   196,     7,   330,     6,    -1,    98,   195,   322,
     196,     7,   330,     6,    -1,    99,   195,   322,   196,     7,
     330,     6,    -1,   100,   195,   322,   196,     7,   330,   104,
     330,   101,   322,     6,    -1,    49,    42,   195,   322,   196,
       7,   330,     6,    -1,   117,    42,   195,   322,   196,     7,
     201,   322,   200,   330,   202,     6,    -1,    50,    42,   195,
     322,   196,     7,   330,     6,    -1,    51,    42,   195,   322,
     196,     7,   195,   322,   200,   322,   196,   330,   330,     6,
      -1,   100,    42,   102,   103,   195,   322,   196,     7,   328,
     104,   201,   330,   200,   330,   202,   101,   201,   322,   200,
     322,   202,     6,    -1,   100,    42,   195,   322,   196,     7,
     328,   104,   201,   330,   200,   330,   202,   101,   201,   322,
     200,   322,   202,     6,    -1,    54,    42,   195,   322,   196,
       7,   330,     6,    -1,    42,    65,   195,   322,   196,     7,
     330,     6,    -1,    53,    44,   195,   322,   196,     7,   330,
       6,    -1,    44,   195,   322,   196,     7,   330,     6,    -1,
      54,    44,   195,   322,   196,     7,   330,     6,    -1,    60,
     324,   201,   300,   202,    -1,    59,   201,   324,   200,   324,
     200,   322,   202,   201,   300,   202,    -1,    61,   324,   201,
     300,   202,    -1,    62,   201,   324,   200,   322,   202,   201,
     300,   202,    -1,   302,    -1,   301,    -1,   299,    -1,    -1,
     301,   298,    -1,   301,    38,   201,   332,   202,     6,    -1,
     301,    41,   201,   332,   202,     6,    -1,   301,    42,   201,
     332,   202,     6,    -1,    64,   201,   301,   202,    -1,    64,
       4,   197,   322,   198,     6,    -1,    67,   201,   301,   202,
      -1,    67,     4,   197,   322,   198,     6,    -1,    67,   116,
       6,    -1,   105,   333,   201,   301,   202,    -1,     4,   336,
       6,    -1,     4,   322,     6,    -1,    58,   195,     4,   196,
     199,     4,     6,    -1,   112,     6,    -1,    37,     6,    -1,
     107,   195,   322,     8,   322,   196,    -1,   107,   195,   322,
       8,   322,     8,   322,   196,    -1,   107,     4,   108,   201,
     322,     8,   322,   202,    -1,   107,     4,   108,   201,   322,
       8,   322,     8,   322,   202,    -1,   109,    -1,   115,     4,