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

Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
/* Skeleton implementation for Bison's Yacc-like parsers in C
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
   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 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., 51 Franklin Street, Fifth Floor,
   Boston, MA 02110-1301, USA.  */

/* 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.  */

/* C LALR(1) parser skeleton 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

/* Bison version.  */
#define YYBISON_VERSION "2.3"

/* Skeleton name.  */
#define YYSKELETON_NAME "yacc.c"

/* Pure parsers.  */
#define YYPURE 0

/* Using locations.  */
#define YYLSP_NEEDED 0

Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
/* Substitute the variable and function names.  */
#define yyparse gmsh_yyparse
#define yylex   gmsh_yylex
#define yyerror gmsh_yyerror
#define yylval  gmsh_yylval
#define yychar  gmsh_yychar
#define yydebug gmsh_yydebug
#define yynerrs gmsh_yynerrs
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed


/* 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,
     tEuclidian = 267,
     tCoordinates = 268,
     tExp = 269,
     tLog = 270,
     tLog10 = 271,
     tSqrt = 272,
     tSin = 273,
     tAsin = 274,
     tCos = 275,
     tAcos = 276,
     tTan = 277,
     tRand = 278,
     tAtan = 279,
     tAtan2 = 280,
     tSinh = 281,
     tCosh = 282,
     tTanh = 283,
     tFabs = 284,
     tFloor = 285,
     tCeil = 286,
     tFmod = 287,
     tModulo = 288,
     tHypot = 289,
     tPrintf = 290,
     tSprintf = 291,
     tStrCat = 292,
     tStrPrefix = 293,
     tStrRelative = 294,
     tBoundingBox = 295,
     tDraw = 296,
     tToday = 297,
     tPoint = 298,
     tCircle = 299,
     tEllipse = 300,
     tLine = 301,
     tSphere = 302,
     tPolarSphere = 303,
     tSurface = 304,
     tSpline = 305,
     tVolume = 306,
     tCharacteristic = 307,
     tLength = 308,
     tParametric = 309,
     tElliptic = 310,
     tPlane = 311,
     tRuled = 312,
     tTransfinite = 313,
     tComplex = 314,
     tPhysical = 315,
     tUsing = 316,
     tBump = 317,
     tProgression = 318,
     tPlugin = 319,
     tRotate = 320,
     tTranslate = 321,
     tSymmetry = 322,
     tDilate = 323,
     tExtrude = 324,
     tDuplicata = 325,
     tLoop = 326,
     tRecombine = 327,
     tDelete = 328,
     tCoherence = 329,
     tIntersect = 330,
     tBoundary = 331,
     tAttractor = 332,
     tLayers = 333,
     tHole = 334,
     tAlias = 335,
     tAliasWithOptions = 336,
     tText2D = 337,
     tText3D = 338,
     tInterpolationScheme = 339,
     tTime = 340,
     tCombine = 341,
     tBSpline = 342,
     tBezier = 343,
     tNurbs = 344,
     tOrder = 345,
     tKnots = 346,
     tColor = 347,
     tColorTable = 348,
     tFor = 349,
     tIn = 350,
     tEndFor = 351,
     tIf = 352,
     tEndIf = 353,
     tExit = 354,
     tField = 355,
     tThreshold = 356,
     tStructured = 357,
     tLatLon = 358,
     tGrad = 359,
     tPostView = 360,
     tReturn = 361,
     tCall = 362,
     tFunction = 363,
     tShow = 364,
     tHide = 365,
     tGetValue = 366,
     tGMSH_MAJOR_VERSION = 367,
     tGMSH_MINOR_VERSION = 368,
     tGMSH_PATCH_VERSION = 369,
     tAFFECTDIVIDE = 370,
     tAFFECTTIMES = 371,
     tAFFECTMINUS = 372,
     tAFFECTPLUS = 373,
     tOR = 374,
     tAND = 375,
     tNOTEQUAL = 376,
     tEQUAL = 377,
     tGREATEROREQUAL = 378,
     tLESSOREQUAL = 379,
     UNARYPREC = 380,
     tMINUSMINUS = 381,
     tPLUSPLUS = 382
   };
#endif
/* Tokens.  */
#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 tEuclidian 267
#define tCoordinates 268
#define tExp 269
#define tLog 270
#define tLog10 271
#define tSqrt 272
#define tSin 273
#define tAsin 274
#define tCos 275
#define tAcos 276
#define tTan 277
#define tRand 278
#define tAtan 279
#define tAtan2 280
#define tSinh 281
#define tCosh 282
#define tTanh 283
#define tFabs 284
#define tFloor 285
#define tCeil 286
#define tFmod 287
#define tModulo 288
#define tHypot 289
#define tPrintf 290
#define tSprintf 291
#define tStrCat 292
#define tStrPrefix 293
#define tStrRelative 294
#define tBoundingBox 295
#define tDraw 296
#define tToday 297
#define tPoint 298
#define tCircle 299
#define tEllipse 300
#define tLine 301
#define tSphere 302
#define tPolarSphere 303
#define tSurface 304
#define tSpline 305
#define tVolume 306
#define tCharacteristic 307
#define tLength 308
#define tParametric 309
#define tElliptic 310
#define tPlane 311
#define tRuled 312
#define tTransfinite 313
#define tComplex 314
#define tPhysical 315
#define tUsing 316
#define tBump 317
#define tProgression 318
#define tPlugin 319
#define tRotate 320
#define tTranslate 321
#define tSymmetry 322
#define tDilate 323
#define tExtrude 324
#define tDuplicata 325
#define tLoop 326
#define tRecombine 327
#define tDelete 328
#define tCoherence 329
#define tIntersect 330
#define tBoundary 331
#define tAttractor 332
#define tLayers 333
#define tHole 334
#define tAlias 335
#define tAliasWithOptions 336
#define tText2D 337
#define tText3D 338
#define tInterpolationScheme 339
#define tTime 340
#define tCombine 341
#define tBSpline 342
#define tBezier 343
#define tNurbs 344
#define tOrder 345
#define tKnots 346
#define tColor 347
#define tColorTable 348
#define tFor 349
#define tIn 350
#define tEndFor 351
#define tIf 352
#define tEndIf 353
#define tExit 354
#define tField 355
#define tThreshold 356
#define tStructured 357
#define tLatLon 358
#define tGrad 359
#define tPostView 360
#define tReturn 361
#define tCall 362
#define tFunction 363
#define tShow 364
#define tHide 365
#define tGetValue 366
#define tGMSH_MAJOR_VERSION 367
#define tGMSH_MINOR_VERSION 368
#define tGMSH_PATCH_VERSION 369
#define tAFFECTDIVIDE 370
#define tAFFECTTIMES 371
#define tAFFECTMINUS 372
#define tAFFECTPLUS 373
#define tOR 374
#define tAND 375
#define tNOTEQUAL 376
#define tEQUAL 377
#define tGREATEROREQUAL 378
#define tLESSOREQUAL 379
#define UNARYPREC 380
#define tMINUSMINUS 381
#define tPLUSPLUS 382




/* Copy the first part of user declarations.  */
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed

Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
// $Id: Gmsh.tab.cpp,v 1.343 2008-01-22 17:02:22 geuzaine Exp $
Christophe Geuzaine's avatar
Christophe Geuzaine committed
// Copyright (C) 1997-2007 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.
// 
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
// Please report all bugs and problems to <gmsh@geuz.org>.
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#include <time.h>
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#include "Message.h"
#include "Malloc.h"
#include "Tools.h"
#include "PluginManager.h"
#include "ParUtil.h"
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#include "GModel.h"
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#include "GeoInterpolation.h"
#include "Generator.h"
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#include "PView.h"
#include "PViewDataList.h"
Christophe Geuzaine's avatar
Christophe Geuzaine committed
#include "Options.h"
#include "Parser.h"
#include "OpenFile.h"
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#include "CommandLine.h"
#include "FunctionManager.h"
#include "ColorTable.h"
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#include "OS.h"
#include "CreateFile.h"
#include "gmshSurface.h"
#include "Field.h"
#include "BackgroundMesh.h"
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
Tree_T *Symbol_T = NULL;
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed

extern Context_T CTX;

static ExtrudeParams extr;
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed

static gmshSurface *myGmshSurface = 0;

Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
static PViewDataList *ViewData;
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
static List_T *ViewValueList;
static double ViewCoord[100];
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
static int *ViewNumList, ViewCoordIdx;
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed

Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#define MAX_RECUR_LOOPS 100
static int ImbricatedLoop = 0;
static fpos_t yyposImbricatedLoopsTab[MAX_RECUR_LOOPS];
static int yylinenoImbricatedLoopsTab[MAX_RECUR_LOOPS];
static double LoopControlVariablesTab[MAX_RECUR_LOOPS][3];
static char *LoopControlVariablesNameTab[MAX_RECUR_LOOPS];

Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
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);
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed

/* 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

/* Enabling the token table.  */
#ifndef YYTOKEN_TABLE
# define YYTOKEN_TABLE 0
#endif

#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#line 78 "Gmsh.y"
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
{
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;
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
}
/* Line 193 of yacc.c.  */
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#line 445 "Gmsh.tab.cpp"
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
	YYSTYPE;
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
# define YYSTYPE_IS_TRIVIAL 1
#endif

Christophe Geuzaine's avatar
 
Christophe Geuzaine committed

/* Copy the second part of user declarations.  */


/* Line 216 of yacc.c.  */
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#line 458 "Gmsh.tab.cpp"
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed

#ifdef short
# undef short
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed

#ifdef YYTYPE_UINT8
typedef YYTYPE_UINT8 yytype_uint8;
#else
typedef unsigned char yytype_uint8;
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed

Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#ifdef YYTYPE_INT8
typedef YYTYPE_INT8 yytype_int8;
#elif (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
typedef signed char yytype_int8;
#else
typedef short int yytype_int8;
#endif
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed

Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#ifdef YYTYPE_UINT16
typedef YYTYPE_UINT16 yytype_uint16;
#else
typedef unsigned short int yytype_uint16;
#endif
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed

Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#ifdef YYTYPE_INT16
typedef YYTYPE_INT16 yytype_int16;
#else
typedef short int yytype_int16;
#endif
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed

Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#ifndef YYSIZE_T
# ifdef __SIZE_TYPE__
#  define YYSIZE_T __SIZE_TYPE__
# elif defined size_t
#  define YYSIZE_T size_t
# elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
#  include <stddef.h> /* INFRINGES ON USER NAME SPACE */
#  define YYSIZE_T size_t
# else
#  define YYSIZE_T unsigned int
# endif
#endif
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed

Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)

#ifndef YY_
# if defined YYENABLE_NLS && YYENABLE_NLS
#  if ENABLE_NLS
#   include <libintl.h> /* INFRINGES ON USER NAME SPACE */
#   define YY_(msgid) dgettext ("bison-runtime", msgid)
#  endif
# endif
# ifndef YY_
#  define YY_(msgid) msgid
# endif
#endif
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed

Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
/* Suppress unused-variable warnings by "using" E.  */
#if ! defined lint || defined __GNUC__
# define YYUSE(e) ((void) (e))
#else
# define YYUSE(e) /* empty */
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#endif
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed

Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
/* Identity function, used to suppress warnings about constant conditions.  */
#ifndef lint
# define YYID(n) (n)
#else
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static int
YYID (int i)
#else
static int
YYID (i)
    int i;
#endif
{
  return i;
}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#endif
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed

Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#if ! defined yyoverflow || YYERROR_VERBOSE

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

# ifdef YYSTACK_USE_ALLOCA
#  if YYSTACK_USE_ALLOCA
#   ifdef __GNUC__
#    define YYSTACK_ALLOC __builtin_alloca
#   elif defined __BUILTIN_VA_ARG_INCR
#    include <alloca.h> /* INFRINGES ON USER NAME SPACE */
#   elif defined _AIX
#    define YYSTACK_ALLOC __alloca
#   elif defined _MSC_VER
#    include <malloc.h> /* INFRINGES ON USER NAME SPACE */
#    define alloca _alloca
#   else
#    define YYSTACK_ALLOC alloca
#    if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
#     include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
#     ifndef _STDLIB_H
#      define _STDLIB_H 1
#     endif
#    endif
#   endif
#  endif
# endif

# ifdef YYSTACK_ALLOC
   /* Pacify GCC's `empty if-body' warning.  */
#  define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
#  ifndef YYSTACK_ALLOC_MAXIMUM
    /* The OS might guarantee only one guard page at the bottom of the stack,
       and a page size can be as small as 4096 bytes.  So we cannot safely
       invoke alloca (N) if N exceeds 4096.  Use a slightly smaller number
       to allow for a few compiler-allocated temporary stack slots.  */
#   define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
#  endif
# else
#  define YYSTACK_ALLOC YYMALLOC
#  define YYSTACK_FREE YYFREE
#  ifndef YYSTACK_ALLOC_MAXIMUM
#   define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
#  endif
#  if (defined __cplusplus && ! defined _STDLIB_H \
       && ! ((defined YYMALLOC || defined malloc) \
	     && (defined YYFREE || defined free)))
#   include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
#   ifndef _STDLIB_H
#    define _STDLIB_H 1
#   endif
#  endif
#  ifndef YYMALLOC
#   define YYMALLOC malloc
#   if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
#   endif
#  endif
#  ifndef YYFREE
#   define YYFREE free
#   if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
void free (void *); /* INFRINGES ON USER NAME SPACE */
#   endif
#  endif
# endif
#endif /* ! defined yyoverflow || YYERROR_VERBOSE */


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

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

/* The size of the maximum gap between one aligned stack and the next.  */
# define YYSTACK_GAP_MAXIMUM (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 (yytype_int16) + sizeof (YYSTYPE)) \
      + YYSTACK_GAP_MAXIMUM)

/* Copy COUNT objects from FROM to TO.  The source and destination do
   not overlap.  */
# ifndef YYCOPY
#  if defined __GNUC__ && 1 < __GNUC__
#   define YYCOPY(To, From, Count) \
      __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
#  else
#   define YYCOPY(To, From, Count)		\
      do					\
	{					\
	  YYSIZE_T yyi;				\
	  for (yyi = 0; yyi < (Count); yyi++)	\
	    (To)[yyi] = (From)[yyi];		\
	}					\
      while (YYID (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_MAXIMUM; \
	yyptr += yynewbytes / sizeof (*yyptr);				\
      }									\
    while (YYID (0))
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed

#endif
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed

Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
/* YYFINAL -- State number of the termination state.  */
#define YYFINAL  5
/* YYLAST -- Last index in YYTABLE.  */
#define YYLAST   6585

/* YYNTOKENS -- Number of terminals.  */
#define YYNTOKENS  148
/* YYNNTS -- Number of nonterminals.  */
#define YYNNTS  68
/* YYNRULES -- Number of rules.  */
#define YYNRULES  353
/* YYNRULES -- Number of states.  */
#define YYNSTATES  1274

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

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

/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX.  */
static const yytype_uint8 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,   133,     2,   143,     2,   132,     2,     2,
     138,   139,   130,   128,   144,   129,   142,   131,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     124,     2,   125,   119,     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,   140,     2,   141,   137,     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,   145,     2,   146,   147,     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,   120,   121,   122,   123,   126,   127,
     134,   135,   136
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed

Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#if YYDEBUG
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
   YYRHS.  */
static const yytype_uint16 yyprhs[] =
{
       0,     0,     3,     5,     8,     9,    12,    14,    16,    18,
      20,    22,    24,    26,    28,    30,    32,    34,    36,    38,
      40,    42,    45,    51,    59,    67,    77,    84,    91,    98,
      99,   102,   105,   108,   111,   114,   116,   120,   122,   126,
     127,   128,   139,   141,   145,   146,   160,   162,   166,   167,
     183,   192,   207,   208,   215,   217,   219,   221,   223,   225,
     227,   229,   234,   242,   252,   259,   266,   270,   277,   282,
     289,   299,   306,   316,   322,   331,   340,   352,   359,   369,
     379,   389,   391,   393,   401,   410,   420,   429,   438,   447,
     456,   466,   475,   481,   488,   495,   502,   510,   518,   526,
     536,   544,   554,   572,   580,   588,   600,   609,   618,   627,
     636,   640,   645,   656,   664,   672,   681,   690,   699,   707,
     716,   722,   734,   740,   750,   755,   765,   770,   772,   774,
     775,   778,   785,   792,   799,   806,   811,   818,   822,   827,
     833,   837,   841,   846,   851,   855,   863,   871,   875,   883,
     887,   890,   893,   909,   912,   919,   928,   937,   948,   950,
     953,   955,   959,   964,   966,   972,   984,   998,   999,  1007,
    1008,  1022,  1023,  1039,  1040,  1047,  1048,  1059,  1068,  1077,
    1086,  1099,  1112,  1125,  1140,  1155,  1170,  1171,  1184,  1185,
    1198,  1199,  1212,  1213,  1230,  1231,  1248,  1249,  1266,  1267,
    1286,  1287,  1306,  1307,  1326,  1328,  1331,  1337,  1345,  1355,
    1358,  1368,  1375,  1385,  1395,  1404,  1414,  1423,  1432,  1439,
    1444,  1455,  1466,  1477,  1488,  1491,  1493,  1497,  1500,  1503,
    1506,  1510,  1514,  1518,  1522,  1526,  1530,  1534,  1538,  1542,
    1546,  1550,  1554,  1558,  1562,  1568,  1573,  1578,  1583,  1588,
    1593,  1598,  1603,  1608,  1613,  1618,  1625,  1630,  1635,  1640,
    1645,  1650,  1655,  1662,  1669,  1676,  1681,  1686,  1691,  1696,
    1701,  1706,  1711,  1716,  1721,  1726,  1731,  1738,  1743,  1748,
    1753,  1758,  1763,  1768,  1775,  1782,  1789,  1794,  1796,  1798,
    1800,  1802,  1804,  1806,  1808,  1810,  1816,  1821,  1826,  1829,
    1835,  1839,  1846,  1851,  1859,  1866,  1868,  1871,  1874,  1878,
    1882,  1894,  1904,  1912,  1920,  1922,  1926,  1928,  1930,  1933,
    1937,  1942,  1948,  1951,  1955,  1959,  1965,  1970,  1972,  1974,
    1978,  1985,  1987,  1989,  1993,  1997,  2007,  2015,  2017,  2023,
    2027,  2034,  2036,  2040,  2042,  2044,  2046,  2048,  2055,  2060,
    2065,  2070,  2077,  2084
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed

Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
/* YYRHS -- A `-1'-separated list of the rules' RHS.  */
static const yytype_int16 yyrhs[] =
{
     149,     0,    -1,   150,    -1,     1,     6,    -1,    -1,   150,
     151,    -1,   154,    -1,   153,    -1,   172,    -1,   174,    -1,
     175,    -1,   178,    -1,   179,    -1,   180,    -1,   183,    -1,
     200,    -1,   201,    -1,   202,    -1,   182,    -1,   181,    -1,
     125,    -1,   125,   125,    -1,    35,   138,     5,   139,     6,
      -1,    35,   138,     5,   139,   152,   214,     6,    -1,    35,
     138,     5,   144,   210,   139,     6,    -1,    35,   138,     5,
     144,   210,   139,   152,   214,     6,    -1,     4,     5,   145,
     155,   146,     6,    -1,    80,     4,   140,   203,   141,     6,
      -1,    81,     4,   140,   203,   141,     6,    -1,    -1,   155,
     158,    -1,   155,   162,    -1,   155,   165,    -1,   155,   167,
      -1,   155,   168,    -1,   203,    -1,   156,   144,   203,    -1,
     203,    -1,   157,   144,   203,    -1,    -1,    -1,     4,   159,
     138,   156,   139,   160,   145,   157,   146,     6,    -1,   214,
      -1,   161,   144,   214,    -1,    -1,    82,   138,   203,   144,
     203,   144,   203,   139,   163,   145,   161,   146,     6,    -1,
     214,    -1,   164,   144,   214,    -1,    -1,    83,   138,   203,
     144,   203,   144,   203,   144,   203,   139,   166,   145,   164,
     146,     6,    -1,    84,   145,   207,   146,   145,   207,   146,
       6,    -1,    84,   145,   207,   146,   145,   207,   146,   145,
     207,   146,   145,   207,   146,     6,    -1,    -1,    85,   169,
     145,   157,   146,     6,    -1,     7,    -1,   118,    -1,   117,
      -1,   116,    -1,   115,    -1,   136,    -1,   135,    -1,     4,
     170,   203,     6,    -1,     4,   140,   203,   141,   170,   203,
       6,    -1,     4,   140,   145,   210,   146,   141,   170,   208,
       6,    -1,     4,   140,   141,     7,   208,     6,    -1,     4,
     140,   141,   118,   208,     6,    -1,     4,   171,     6,    -1,
       4,   140,   203,   141,   171,     6,    -1,     4,     7,   215,
       6,    -1,     4,   142,     4,     7,   215,     6,    -1,     4,
     140,   203,   141,   142,     4,     7,   215,     6,    -1,     4,
     142,     4,   170,   203,     6,    -1,     4,   140,   203,   141,
     142,     4,   170,   203,     6,    -1,     4,   142,     4,   171,
       6,    -1,     4,   140,   203,   141,   142,     4,   171,     6,
      -1,     4,   142,    92,   142,     4,     7,   211,     6,    -1,
       4,   140,   203,   141,   142,    92,   142,     4,     7,   211,
       6,    -1,     4,   142,    93,     7,   212,     6,    -1,     4,
     140,   203,   141,   142,    93,     7,   212,     6,    -1,    64,
     138,     4,   139,   142,     4,     7,   203,     6,    -1,    64,
     138,     4,   139,   142,     4,     7,   215,     6,    -1,   203,
      -1,   215,    -1,    43,   138,   203,   139,     7,   205,     6,
      -1,    60,    43,   138,   173,   139,     7,   208,     6,    -1,
      77,    43,   100,   138,   203,   139,     7,   208,     6,    -1,
     103,   100,   138,   203,   139,     7,   203,     6,    -1,   105,
     100,   138,   203,   139,     7,   203,     6,    -1,   101,   100,
     138,   203,   139,     7,   208,     6,    -1,   108,   100,   138,
     203,   139,     7,     5,     6,    -1,   108,   100,   138,   203,
     139,     7,     5,   208,     6,    -1,   102,   100,   138,   203,
     139,     7,     5,     6,    -1,    52,    53,   100,   208,     6,
      -1,    77,    43,   208,     7,   208,     6,    -1,    77,    46,
     208,     7,   208,     6,    -1,    52,    53,   208,     7,   203,
       6,    -1,    46,   138,   203,   139,     7,   208,     6,    -1,
      50,   138,   203,   139,     7,   208,     6,    -1,    44,   138,
     203,   139,     7,   208,     6,    -1,    44,   138,   203,   139,
       7,   208,    56,   205,     6,    -1,    45,   138,   203,   139,
       7,   208,     6,    -1,    45,   138,   203,   139,     7,   208,
      56,   205,     6,    -1,    54,   138,   203,   139,     7,   145,
     203,   144,   203,   144,     5,   144,     5,   144,     5,   146,
       6,    -1,    87,   138,   203,   139,     7,   208,     6,    -1,
      88,   138,   203,   139,     7,   208,     6,    -1,    89,   138,
     203,   139,     7,   208,    91,   208,    90,   203,     6,    -1,
      46,    71,   138,   203,   139,     7,   208,     6,    -1,    60,
      46,   138,   173,   139,     7,   208,     6,    -1,    56,    49,
     138,   203,   139,     7,   208,     6,    -1,    57,    49,   138,
     203,   139,     7,   208,     6,    -1,    12,    13,     6,    -1,
      13,    49,   203,     6,    -1,    54,    49,   138,   203,   139,
       7,     5,     5,     5,     6,    -1,    47,   138,   203,   139,
       7,   208,     6,    -1,    48,   138,   203,   139,     7,   208,
       6,    -1,    49,    71,   138,   203,   139,     7,   208,     6,
      -1,    60,    49,   138,   173,   139,     7,   208,     6,    -1,
      59,    51,   138,   203,   139,     7,   208,     6,    -1,    51,
     138,   203,   139,     7,   208,     6,    -1,    60,    51,   138,
     173,   139,     7,   208,     6,    -1,    66,   205,   145,   176,
     146,    -1,    65,   145,   205,   144,   205,   144,   203,   146,
     145,   176,   146,    -1,    67,   205,   145,   176,   146,    -1,
      68,   145,   205,   144,   203,   146,   145,   176,   146,    -1,
      70,   145,   176,   146,    -1,    75,    46,   145,   210,   146,
      49,   145,   203,   146,    -1,    76,   145,   176,   146,    -1,
     177,    -1,   175,    -1,    -1,   177,   174,    -1,   177,    43,
     145,   210,   146,     6,    -1,   177,    46,   145,   210,   146,
       6,    -1,   177,    49,   145,   210,   146,     6,    -1,   177,
      51,   145,   210,   146,     6,    -1,    73,   145,   177,   146,
      -1,    73,     4,   140,   203,   141,     6,    -1,    73,     4,
       6,    -1,    73,     4,     4,     6,    -1,    92,   211,   145,
     177,   146,    -1,   109,   214,     6,    -1,   110,   214,     6,
      -1,   109,   145,   177,   146,    -1,   110,   145,   177,   146,
      -1,     4,   215,     6,    -1,     4,     4,   140,   203,   141,
     214,     6,    -1,     4,     4,     4,   140,   203,   141,     6,
      -1,     4,   203,     6,    -1,    64,   138,     4,   139,   142,
       4,     6,    -1,    86,     4,     6,    -1,    99,     6,    -1,
      40,     6,    -1,    40,   145,   203,   144,   203,   144,   203,
     144,   203,   144,   203,   144,   203,   146,     6,    -1,    41,
       6,    -1,    94,   138,   203,     8,   203,   139,    -1,    94,
     138,   203,     8,   203,     8,   203,   139,    -1,    94,     4,
      95,   145,   203,     8,   203,   146,    -1,    94,     4,    95,
     145,   203,     8,   203,     8,   203,   146,    -1,    96,    -1,
     108,     4,    -1,   106,    -1,   107,     4,     6,    -1,    97,
     138,   203,   139,    -1,    98,    -1,    69,   205,   145,   177,
     146,    -1,    69,   145,   205,   144,   205,   144,   203,   146,
     145,   177,   146,    -1,    69,   145,   205,   144,   205,   144,
     205,   144,   203,   146,   145,   177,   146,    -1,    -1,    69,
     205,   145,   177,   184,   198,   146,    -1,    -1,    69,   145,
     205,   144,   205,   144,   203,   146,   145,   177,   185,   198,
     146,    -1,    -1,    69,   145,   205,   144,   205,   144,   205,
     144,   203,   146,   145,   177,   186,   198,   146,    -1,    -1,
      69,   145,   177,   187,   198,   146,    -1,    -1,    69,     4,
     140,   203,   141,   145,   177,   188,   198,   146,    -1,    69,
      43,   145,   203,   144,   205,   146,     6,    -1,    69,    46,
     145,   203,   144,   205,   146,     6,    -1,    69,    49,   145,
     203,   144,   205,   146,     6,    -1,    69,    43,   145,   203,
     144,   205,   144,   205,   144,   203,   146,     6,    -1,    69,
      46,   145,   203,   144,   205,   144,   205,   144,   203,   146,
       6,    -1,    69,    49,   145,   203,   144,   205,   144,   205,
     144,   203,   146,     6,    -1,    69,    43,   145,   203,   144,
     205,   144,   205,   144,   205,   144,   203,   146,     6,    -1,
      69,    46,   145,   203,   144,   205,   144,   205,   144,   205,
     144,   203,   146,     6,    -1,    69,    49,   145,   203,   144,
     205,   144,   205,   144,   205,   144,   203,   146,     6,    -1,
      -1,    69,    43,   145,   203,   144,   205,   146,   189,   145,
     198,   146,     6,    -1,    -1,    69,    46,   145,   203,   144,
     205,   146,   190,   145,   198,   146,     6,    -1,    -1,    69,
      49,   145,   203,   144,   205,   146,   191,   145,   198,   146,
       6,    -1,    -1,    69,    43,   145,   203,   144,   205,   144,
     205,   144,   203,   146,   192,   145,   198,   146,     6,    -1,
      -1,    69,    46,   145,   203,   144,   205,   144,   205,   144,
     203,   146,   193,   145,   198,   146,     6,    -1,    -1,    69,
      49,   145,   203,   144,   205,   144,   205,   144,   203,   146,
     194,   145,   198,   146,     6,    -1,    -1,    69,    43,   145,
     203,   144,   205,   144,   205,   144,   205,   144,   203,   146,
     195,   145,   198,   146,     6,    -1,    -1,    69,    46,   145,
     203,   144,   205,   144,   205,   144,   205,   144,   203,   146,
     196,   145,   198,   146,     6,    -1,    -1,    69,    49,   145,
     203,   144,   205,   144,   205,   144,   205,   144,   203,   146,
     197,   145,   198,   146,     6,    -1,   199,    -1,   198,   199,
      -1,    78,   145,   203,   146,     6,    -1,    78,   145,   208,
     144,   208,   146,     6,    -1,    78,   145,   208,   144,   208,
     144,   208,   146,     6,    -1,    72,     6,    -1,    79,   138,
     203,   139,     7,   208,    61,   203,     6,    -1,    58,    46,
     208,     7,   203,     6,    -1,    58,    46,   208,     7,   203,
      61,    63,   203,     6,    -1,    58,    46,   208,     7,   203,
      61,    62,   203,     6,    -1,    58,    49,   145,   203,   146,
       7,   208,     6,    -1,    58,    49,   145,   203,   146,     7,
     208,     4,     6,    -1,    55,    49,   145,   203,   146,     7,
     208,     6,    -1,    58,    51,   145,   203,   146,     7,   208,
       6,    -1,    72,    49,   208,     7,   203,     6,    -1,    72,
      49,   208,     6,    -1,    43,   145,   210,   146,    95,    49,
     145,   203,   146,     6,    -1,    46,   145,   210,   146,    95,
      49,   145,   203,   146,     6,    -1,    46,   145,   210,   146,
      95,    51,   145,   203,   146,     6,    -1,    49,   145,   210,
     146,    95,    51,   145,   203,   146,     6,    -1,    74,     6,
      -1,   204,    -1,   138,   203,   139,    -1,   129,   203,    -1,
     128,   203,    -1,   133,   203,    -1,   203,   129,   203,    -1,
     203,   128,   203,    -1,   203,   130,   203,    -1,   203,   131,
     203,    -1,   203,   132,   203,    -1,   203,   137,   203,    -1,
     203,   124,   203,    -1,   203,   125,   203,    -1,   203,   127,
     203,    -1,   203,   126,   203,    -1,   203,   123,   203,    -1,
     203,   122,   203,    -1,   203,   121,   203,    -1,   203,   120,
     203,    -1,   203,   119,   203,     8,   203,    -1,    14,   138,
     203,   139,    -1,    15,   138,   203,   139,    -1,    16,   138,
     203,   139,    -1,    17,   138,   203,   139,    -1,    18,   138,
     203,   139,    -1,    19,   138,   203,   139,    -1,    20,   138,
     203,   139,    -1,    21,   138,   203,   139,    -1,    22,   138,
     203,   139,    -1,    24,   138,   203,   139,    -1,    25,   138,
     203,   144,   203,   139,    -1,    26,   138,   203,   139,    -1,
      27,   138,   203,   139,    -1,    28,   138,   203,   139,    -1,
      29,   138,   203,   139,    -1,    30,   138,   203,   139,    -1,
      31,   138,   203,   139,    -1,    32,   138,   203,   144,   203,
     139,    -1,    33,   138,   203,   144,   203,   139,    -1,    34,
     138,   203,   144,   203,   139,    -1,    23,   138,   203,   139,
      -1,    14,   140,   203,   141,    -1,    15,   140,   203,   141,
      -1,    16,   140,   203,   141,    -1,    17,   140,   203,   141,
      -1,    18,   140,   203,   141,    -1,    19,   140,   203,   141,
      -1,    20,   140,   203,   141,    -1,    21,   140,   203,   141,
      -1,    22,   140,   203,   141,    -1,    24,   140,   203,   141,
      -1,    25,   140,   203,   144,   203,   141,    -1,    26,   140,
     203,   141,    -1,    27,   140,   203,   141,    -1,    28,   140,
     203,   141,    -1,    29,   140,   203,   141,    -1,    30,   140,
     203,   141,    -1,    31,   140,   203,   141,    -1,    32,   140,
     203,   144,   203,   141,    -1,    33,   140,   203,   144,   203,
     141,    -1,    34,   140,   203,   144,   203,   141,    -1,    23,
     140,   203,   141,    -1,     3,    -1,     9,    -1,    10,    -1,
      11,    -1,   112,    -1,   113,    -1,   114,    -1,     4,    -1,
       4,   147,   145,   203,   146,    -1,     4,   140,   203,   141,
      -1,   143,     4,   140,   141,    -1,     4,   171,    -1,     4,
     140,   203,   141,   171,    -1,     4,   142,     4,    -1,     4,
     140,   203,   141,   142,     4,    -1,     4,   142,     4,   171,
      -1,     4,   140,   203,   141,   142,     4,   171,    -1,   111,
     138,     5,   144,   203,   139,    -1,   206,    -1,   129,   205,
      -1,   128,   205,    -1,   205,   129,   205,    -1,   205,   128,
     205,    -1,   145,   203,   144,   203,   144,   203,   144,   203,
     144,   203,   146,    -1,   145,   203,   144,   203,   144,   203,
     144,   203,   146,    -1,   145,   203,   144,   203,   144,   203,
     146,    -1,   138,   203,   144,   203,   144,   203,   139,    -1,
     208,    -1,   207,   144,   208,    -1,   203,    -1,   209,    -1,
     145,   146,    -1,   145,   210,   146,    -1,   129,   145,   210,
     146,    -1,   203,   130,   145,   210,   146,    -1,   129,   209,
      -1,   203,   130,   209,    -1,   203,     8,   203,    -1,   203,
       8,   203,     8,   203,    -1,    43,   145,   203,   146,    -1,
     175,    -1,   183,    -1,     4,   140,   141,    -1,     4,   140,
     145,   210,   146,   141,    -1,   203,    -1,   209,    -1,   210,
     144,   203,    -1,   210,   144,   209,    -1,   145,   203,   144,
     203,   144,   203,   144,   203,   146,    -1,   145,   203,   144,
     203,   144,   203,   146,    -1,     4,    -1,     4,   142,    92,
     142,     4,    -1,   145,   213,   146,    -1,     4,   140,   203,
     141,   142,    93,    -1,   211,    -1,   213,   144,   211,    -1,
     215,    -1,     4,    -1,     5,    -1,    42,    -1,    37,   138,
     214,   144,   214,   139,    -1,    38,   138,   214,   139,    -1,
      39,   138,   214,   139,    -1,    36,   138,   214,   139,    -1,
      36,   138,   214,   144,   210,   139,    -1,    36,   138,     4,
     142,     4,   139,    -1,    36,   138,     4,   140,   203,   141,
     142,     4,   139,    -1
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
/* YYRLINE[YYN] -- source line where rule number YYN was defined.  */
static const yytype_uint16 yyrline[] =
{
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
       0,   145,   145,   146,   151,   153,   157,   158,   159,   160,
     161,   162,   163,   164,   165,   166,   167,   168,   169,   170,
     174,   178,   185,   190,   205,   218,   247,   264,   273,   286,
     289,   290,   291,   292,   293,   297,   299,   304,   306,   312,
     456,   311,   470,   475,   484,   483,   498,   503,   512,   511,
     525,   530,   541,   540,   552,   553,   554,   555,   556,   560,