Skip to content
Snippets Groups Projects
Gmsh.tab.cpp 344 KiB
Newer Older
/* A Bison parser, made by GNU Bison 2.3.  */
/* Skeleton implementation for Bison's Yacc-like parsers in C

   Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
   Free Software Foundation, Inc.

   This program is free software; you can redistribute it and/or modify
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
   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.

Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
   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.
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
   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.  */
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed

/* 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.
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
   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"
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed

/* 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,
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
     tSyncModel = 298,
     tCreateTopology = 299,
     tDistanceFunction = 300,
     tPoint = 301,
     tCircle = 302,
     tEllipse = 303,
     tLine = 304,
     tSphere = 305,
     tPolarSphere = 306,
     tSurface = 307,
     tSpline = 308,
     tVolume = 309,
     tCharacteristic = 310,
     tLength = 311,
     tParametric = 312,
     tElliptic = 313,
     tPlane = 314,
     tRuled = 315,
     tTransfinite = 316,
     tComplex = 317,
     tPhysical = 318,
     tCompound = 319,
     tPeriodic = 320,
     tUsing = 321,
     tPlugin = 322,
     tDegenerated = 323,
     tOCCShape = 324,
     tRotate = 325,
     tTranslate = 326,
     tSymmetry = 327,
     tDilate = 328,
     tExtrude = 329,
     tLevelset = 330,
     tLoop = 331,
     tRecombine = 332,
     tSmoother = 333,
     tSplit = 334,
     tDelete = 335,
     tCoherence = 336,
     tIntersect = 337,
     tLayers = 338,
     tHole = 339,
     tAlias = 340,
     tAliasWithOptions = 341,
     tText2D = 342,
     tText3D = 343,
     tInterpolationScheme = 344,
     tTime = 345,
     tCombine = 346,
     tBSpline = 347,
     tBezier = 348,
     tNurbs = 349,
     tNurbsOrder = 350,
     tNurbsKnots = 351,
     tColor = 352,
     tColorTable = 353,
     tFor = 354,
     tIn = 355,
     tEndFor = 356,
     tIf = 357,
     tEndIf = 358,
     tExit = 359,
     tField = 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,
     tHomRank = 370,
     tHomGen = 371,
     tHomCut = 372,
     tHomSeq = 373,
     tAFFECTDIVIDE = 374,
     tAFFECTTIMES = 375,
     tAFFECTMINUS = 376,
     tAFFECTPLUS = 377,
     tOR = 378,
     tAND = 379,
     tNOTEQUAL = 380,
     tEQUAL = 381,
     tGREATEROREQUAL = 382,
     tLESSOREQUAL = 383,
     UNARYPREC = 384,
     tMINUSMINUS = 385,
     tPLUSPLUS = 386
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
   };
#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 tSyncModel 298
#define tCreateTopology 299
#define tDistanceFunction 300
#define tPoint 301
#define tCircle 302
#define tEllipse 303
#define tLine 304
#define tSphere 305
#define tPolarSphere 306
#define tSurface 307
#define tSpline 308
#define tVolume 309
#define tCharacteristic 310
#define tLength 311
#define tParametric 312
#define tElliptic 313
#define tPlane 314
#define tRuled 315
#define tTransfinite 316
#define tComplex 317
#define tPhysical 318
#define tCompound 319
#define tPeriodic 320
#define tUsing 321
#define tPlugin 322
#define tDegenerated 323
#define tOCCShape 324
#define tRotate 325
#define tTranslate 326
#define tSymmetry 327
#define tDilate 328
#define tExtrude 329
#define tLevelset 330
#define tLoop 331
#define tRecombine 332
#define tSmoother 333
#define tSplit 334
#define tDelete 335
#define tCoherence 336
#define tIntersect 337
#define tLayers 338
#define tHole 339
#define tAlias 340
#define tAliasWithOptions 341
#define tText2D 342
#define tText3D 343
#define tInterpolationScheme 344
#define tTime 345
#define tCombine 346
#define tBSpline 347
#define tBezier 348
#define tNurbs 349
#define tNurbsOrder 350
#define tNurbsKnots 351
#define tColor 352
#define tColorTable 353
#define tFor 354
#define tIn 355
#define tEndFor 356
#define tIf 357
#define tEndIf 358
#define tExit 359
#define tField 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 tHomRank 370
#define tHomGen 371
#define tHomCut 372
#define tHomSeq 373
#define tAFFECTDIVIDE 374
#define tAFFECTTIMES 375
#define tAFFECTMINUS 376
#define tAFFECTPLUS 377
#define tOR 378
#define tAND 379
#define tNOTEQUAL 380
#define tEQUAL 381
#define tGREATEROREQUAL 382
#define tLESSOREQUAL 383
#define UNARYPREC 384
#define tMINUSMINUS 385
#define tPLUSPLUS 386




/* Copy the first part of user declarations.  */
#line 1 "Gmsh.y"

// Gmsh - Copyright (C) 1997-2010 C. Geuzaine, J.-F. Remacle
//
// See the LICENSE.txt file for license information. Please report all
// bugs and problems to <gmsh@geuz.org>.

#include <string.h>
#include <stdarg.h>
#include <time.h>
#include "GmshConfig.h"
#include "GmshMessage.h"
#include "fullMatrix.h"
#include "MallocUtils.h"
#include "ListUtils.h"
#include "TreeUtils.h"
#include "StringUtils.h"
#include "Numeric.h"
#include "Context.h"
#include "GModel.h"
#include "Geo.h"
#include "GeoInterpolation.h"
#include "Options.h"
#include "Colors.h"
#include "Parser.h"
#include "OpenFile.h"
#include "CommandLine.h"
#include "FunctionManager.h"
#include "ColorTable.h"
#include "OS.h"
#include "CreateFile.h"
#include "gmshSurface.h"
#include "gmshLevelset.h"

#if defined(HAVE_MESH)
#include "Generator.h"
#include "Field.h"
#include "BackgroundMesh.h"
#endif

#if defined(HAVE_POST)
#include "PView.h"
#include "PViewDataList.h"
#include "PluginManager.h"
#endif

#if defined(HAVE_OPENGL)
#include "drawContext.h"
#endif

#if defined(HAVE_KBIPACK)
#include "Homology.h"
#endif

// Global parser variables
std::string gmsh_yyname;
int gmsh_yyerrorstate = 0;
int gmsh_yyviewindex = 0;
std::map<std::string, std::vector<double> > gmsh_yysymbols;

// Static parser variables (accessible only in this file)
static std::map<std::string, std::string > gmsh_yystringsymbols;
#if defined(HAVE_POST)
static PViewDataList *ViewData;
#endif
static std::vector<double> ViewCoord;
static std::vector<double> *ViewValueList = 0;
static int *ViewNumList = 0;
static ExtrudeParams extr;
static int curPhysDim = 0;
static gmshSurface *myGmshSurface = 0;
#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 const char *LoopControlVariablesNameTab[MAX_RECUR_LOOPS];

void yyerror(const char *s);
void yymsg(int level, const char *fmt, ...);
void skip_until(const char *skip, const char *until);
int PrintListOfDouble(char *format, List_T *list, char *buffer);
fullMatrix<double> ListOfListOfDouble2Matrix(List_T *list);


/* 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
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed

/* Enabling the token table.  */
#ifndef YYTOKEN_TABLE
# define YYTOKEN_TABLE 0
#endif
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed

#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE
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;
#line 460 "Gmsh.tab.cpp"
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
# define YYSTYPE_IS_TRIVIAL 1
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#endif

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


#line 473 "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
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#  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
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#else
static int
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#endif
{
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
}
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)))
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#   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)))
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed

/* A type that is properly aligned for any stack member.  */
union yyalloc
{
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed

/* 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];		\
	}					\
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
      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);				\
      }									\
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    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   6760
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed

/* YYNTOKENS -- Number of terminals.  */
#define YYNTOKENS  152
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
/* YYNNTS -- Number of nonterminals.  */
#define YYNNTS  82
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
/* YYNRULES -- Number of rules.  */
#define YYNRULES  387
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
/* YYNRULES -- Number of states.  */
#define YYNSTATES  1385
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed

/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX.  */
#define YYUNDEFTOK  2
#define YYMAXUTOK   386
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed

#define YYTRANSLATE(YYX)						\
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
  ((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,   137,     2,   147,     2,   136,     2,     2,
     142,   143,   134,   132,   148,   133,   146,   135,     2,     2,
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     128,     2,   129,   123,     2,     2,     2,     2,     2,     2,
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,   144,     2,   145,   141,     2,     2,     2,     2,     2,
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,   149,     2,   150,   151,     2,     2,     2,
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
       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,   124,   125,
     126,   127,   130,   131,   138,   139,   140
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,    44,    46,    48,    51,    57,    65,    73,    83,
      90,    97,   104,   105,   108,   111,   114,   117,   120,   122,
     126,   128,   132,   133,   134,   145,   147,   151,   152,   166,
     168,   172,   173,   189,   198,   213,   214,   221,   223,   225,
     227,   229,   231,   233,   235,   240,   248,   258,   265,   272,
     276,   283,   288,   295,   305,   312,   322,   328,   337,   346,
     358,   365,   375,   381,   389,   399,   409,   421,   431,   441,
     443,   445,   446,   452,   453,   456,   464,   465,   475,   482,
     490,   495,   503,   512,   521,   529,   537,   549,   558,   567,
     568,   578,   587,   597,   601,   606,   617,   625,   633,   642,
     652,   666,   667,   677,   686,   694,   704,   713,   714,   724,
     730,   742,   748,   758,   763,   773,   783,   785,   787,   788,
     791,   798,   805,   812,   819,   828,   843,   860,   873,   882,
     891,   898,   913,   918,   925,   932,   936,   941,   947,   951,
     955,   960,   965,   969,   977,   985,   989,   997,  1001,  1004,
    1007,  1010,  1026,  1029,  1032,  1039,  1048,  1057,  1068,  1070,
    1073,  1075,  1079,  1084,  1086,  1092,  1104,  1118,  1119,  1127,
    1128,  1142,  1143,  1159,  1160,  1167,  1176,  1185,  1194,  1207,
    1220,  1233,  1248,  1263,  1278,  1279,  1292,  1293,  1306,  1307,
    1320,  1321,  1338,  1339,  1356,  1357,  1374,  1375,  1394,  1395,
    1414,  1415,  1434,  1436,  1439,  1445,  1453,  1463,  1466,  1476,
    1477,  1479,  1480,  1484,  1485,  1487,  1488,  1491,  1492,  1495,
    1503,  1510,  1519,  1525,  1531,  1538,  1545,  1552,  1563,  1574,
    1585,  1596,  1599,  1603,  1615,  1627,  1639,  1651,  1653,  1657,
    1660,  1663,  1666,  1670,  1674,  1678,  1682,  1686,  1690,  1694,
    1698,  1702,  1706,  1710,  1714,  1718,  1722,  1728,  1733,  1738,
    1743,  1748,  1753,  1758,  1763,  1768,  1773,  1778,  1785,  1790,
    1795,  1800,  1805,  1810,  1815,  1822,  1829,  1836,  1841,  1846,
    1851,  1856,  1861,  1866,  1871,  1876,  1881,  1886,  1891,  1898,
    1903,  1908,  1913,  1918,  1923,  1928,  1935,  1942,  1949,  1954,
    1956,  1958,  1960,  1962,  1964,  1966,  1968,  1970,  1976,  1981,
    1986,  1989,  1995,  1999,  2006,  2011,  2019,  2026,  2028,  2031,
    2034,  2038,  2042,  2054,  2064,  2072,  2080,  2082,  2086,  2088,
    2090,  2093,  2097,  2102,  2108,  2110,  2112,  2115,  2119,  2123,
    2129,  2134,  2136,  2138,  2142,  2149,  2151,  2153,  2157,  2161,
    2171,  2179,  2181,  2187,  2191,  2198,  2200,  2204,  2206,  2208,
    2212,  2219,  2221,  2223,  2230,  2235,  2240,  2245
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[] =
{
     153,     0,    -1,   154,    -1,     1,     6,    -1,    -1,   154,
     155,    -1,   158,    -1,   157,    -1,   176,    -1,   180,    -1,
     185,    -1,   189,    -1,   190,    -1,   191,    -1,   194,    -1,
     215,    -1,   216,    -1,   217,    -1,   218,    -1,   193,    -1,
     192,    -1,   188,    -1,   219,    -1,   129,    -1,   129,   129,
      -1,    35,   142,     5,   143,     6,    -1,    35,   142,     5,
     143,   156,   232,     6,    -1,    35,   142,     5,   148,   228,
     143,     6,    -1,    35,   142,     5,   148,   228,   143,   156,
     232,     6,    -1,     4,     5,   149,   159,   150,     6,    -1,
      85,     4,   144,   220,   145,     6,    -1,    86,     4,   144,
     220,   145,     6,    -1,    -1,   159,   162,    -1,   159,   166,
      -1,   159,   169,    -1,   159,   171,    -1,   159,   172,    -1,
     220,    -1,   160,   148,   220,    -1,   220,    -1,   161,   148,
     220,    -1,    -1,    -1,     4,   163,   142,   160,   143,   164,
     149,   161,   150,     6,    -1,   232,    -1,   165,   148,   232,
      -1,    -1,    87,   142,   220,   148,   220,   148,   220,   143,
     167,   149,   165,   150,     6,    -1,   232,    -1,   168,   148,
     232,    -1,    -1,    88,   142,   220,   148,   220,   148,   220,
     148,   220,   143,   170,   149,   168,   150,     6,    -1,    89,
     149,   224,   150,   149,   224,   150,     6,    -1,    89,   149,
     224,   150,   149,   224,   150,   149,   224,   150,   149,   224,
     150,     6,    -1,    -1,    90,   173,   149,   161,   150,     6,
      -1,     7,    -1,   122,    -1,   121,    -1,   120,    -1,   119,
      -1,   140,    -1,   139,    -1,     4,   174,   220,     6,    -1,
       4,   144,   220,   145,   174,   220,     6,    -1,     4,   144,
     149,   228,   150,   145,   174,   225,     6,    -1,     4,   144,
     145,     7,   225,     6,    -1,     4,   144,   145,   122,   225,
       6,    -1,     4,   175,     6,    -1,     4,   144,   220,   145,
     175,     6,    -1,     4,     7,   233,     6,    -1,     4,   146,
       4,     7,   233,     6,    -1,     4,   144,   220,   145,   146,
       4,     7,   233,     6,    -1,     4,   146,     4,   174,   220,
       6,    -1,     4,   144,   220,   145,   146,     4,   174,   220,
       6,    -1,     4,   146,     4,   175,     6,    -1,     4,   144,
     220,   145,   146,     4,   175,     6,    -1,     4,   146,    97,
     146,     4,     7,   229,     6,    -1,     4,   144,   220,   145,
     146,    97,   146,     4,     7,   229,     6,    -1,     4,   146,
      98,     7,   230,     6,    -1,     4,   144,   220,   145,   146,
      98,     7,   230,     6,    -1,     4,   105,     7,   220,     6,
      -1,   105,   144,   220,   145,     7,     4,     6,    -1,   105,
     144,   220,   145,   146,     4,     7,   220,     6,    -1,   105,
     144,   220,   145,   146,     4,     7,   233,     6,    -1,   105,
     144,   220,   145,   146,     4,     7,   149,   228,   150,     6,
      -1,    67,   142,     4,   143,   146,     4,     7,   220,     6,
      -1,    67,   142,     4,   143,   146,     4,     7,   233,     6,
      -1,   220,    -1,   233,    -1,    -1,   100,    50,   149,   220,
     150,    -1,    -1,    59,   222,    -1,    46,   142,   220,   143,
       7,   222,     6,    -1,    -1,    63,    46,   181,   142,   177,
     143,     7,   225,     6,    -1,    55,    56,   225,     7,   220,
       6,    -1,    49,   142,   220,   143,     7,   225,     6,    -1,
      68,    49,   225,     6,    -1,    53,   142,   220,   143,     7,
     225,     6,    -1,    47,   142,   220,   143,     7,   225,   179,
       6,    -1,    48,   142,   220,   143,     7,   225,   179,     6,
      -1,    92,   142,   220,   143,     7,   225,     6,    -1,    93,
     142,   220,   143,     7,   225,     6,    -1,    94,   142,   220,
     143,     7,   225,    96,   225,    95,   220,     6,    -1,    49,
      76,   142,   220,   143,     7,   225,     6,    -1,    64,    49,
     142,   220,   143,     7,   225,     6,    -1,    -1,    63,    49,
     182,   142,   177,   143,     7,   225,     6,    -1,    59,    52,
     142,   220,   143,     7,   225,     6,    -1,    60,    52,   142,
     220,   143,     7,   225,   178,     6,    -1,    12,    13,     6,
      -1,    13,    52,   220,     6,    -1,    57,    52,   142,   220,
     143,     7,     5,     5,     5,     6,    -1,    50,   142,   220,
     143,     7,   225,     6,    -1,    51,   142,   220,   143,     7,
     225,     6,    -1,    52,    76,   142,   220,   143,     7,   225,
       6,    -1,    64,    52,   142,   220,   143,     7,   225,   210,
       6,    -1,    64,    52,   142,   220,   143,     7,   225,     4,
     149,   224,   150,   210,     6,    -1,    -1,    63,    52,   183,
     142,   177,   143,     7,   225,     6,    -1,    62,    54,   142,
     220,   143,     7,   225,     6,    -1,    54,   142,   220,   143,
       7,   225,     6,    -1,    69,   142,     5,   148,   225,   148,
       5,   143,     6,    -1,    64,    54,   142,   220,   143,     7,
     225,     6,    -1,    -1,    63,    54,   184,   142,   177,   143,
       7,   225,     6,    -1,    71,   222,   149,   186,   150,    -1,
      70,   149,   222,   148,   222,   148,   220,   150,   149,   186,
     150,    -1,    72,   222,   149,   186,   150,    -1,    73,   149,
     222,   148,   220,   150,   149,   186,   150,    -1,     4,   149,
     186,   150,    -1,    82,    49,   149,   228,   150,    52,   149,
     220,   150,    -1,    79,    49,   142,   220,   143,   149,   228,
     150,     6,    -1,   187,    -1,   185,    -1,    -1,   187,   180,
      -1,   187,    46,   149,   228,   150,     6,    -1,   187,    49,
     149,   228,   150,     6,    -1,   187,    52,   149,   228,   150,
       6,    -1,   187,    54,   149,   228,   150,     6,    -1,    75,
      59,   142,   220,   143,     7,   225,     6,    -1,    75,    59,
     142,   220,   143,     7,   149,   222,   148,   222,   148,   228,
     150,     6,    -1,    75,    59,   142,   220,   143,     7,   149,
     222,   148,   222,   148,   222,   148,   228,   150,     6,    -1,
      75,    50,   142,   220,   143,     7,   149,   222,   148,   228,
     150,     6,    -1,    75,     4,   142,   220,   143,     7,   225,
       6,    -1,    75,     4,   142,   220,   143,     7,     5,     6,
      -1,    75,     4,   149,   220,   150,     6,    -1,    75,     4,
     142,   220,   143,     7,   149,   222,   148,   222,   148,   228,
     150,     6,    -1,    80,   149,   187,   150,    -1,    80,   105,
     144,   220,   145,     6,    -1,    80,     4,   144,   220,   145,
       6,    -1,    80,     4,     6,    -1,    80,     4,     4,     6,
      -1,    97,   229,   149,   187,   150,    -1,   109,     5,     6,
      -1,   110,     5,     6,    -1,   109,   149,   187,   150,    -1,
     110,   149,   187,   150,    -1,     4,   233,     6,    -1,     4,
       4,   144,   220,   145,   232,     6,    -1,     4,     4,     4,
     144,   220,   145,     6,    -1,     4,   220,     6,    -1,    67,
     142,     4,   143,   146,     4,     6,    -1,    91,     4,     6,
      -1,   104,     6,    -1,    43,     6,    -1,    40,     6,    -1,
      40,   149,   220,   148,   220,   148,   220,   148,   220,   148,
     220,   148,   220,   150,     6,    -1,    41,     6,    -1,    44,
       6,    -1,    99,   142,   220,     8,   220,   143,    -1,    99,
     142,   220,     8,   220,     8,   220,   143,    -1,    99,     4,
     100,   149,   220,     8,   220,   150,    -1,    99,     4,   100,
     149,   220,     8,   220,     8,   220,   150,    -1,   101,    -1,
     108,     4,    -1,   106,    -1,   107,     4,     6,    -1,   102,
     142,   220,   143,    -1,   103,    -1,    74,   222,   149,   187,
     150,    -1,    74,   149,   222,   148,   222,   148,   220,   150,
     149,   187,   150,    -1,    74,   149,   222,   148,   222,   148,
     222,   148,   220,   150,   149,   187,   150,    -1,    -1,    74,
     222,   149,   187,   195,   208,   150,    -1,    -1,    74,   149,
     222,   148,   222,   148,   220,   150,   149,   187,   196,   208,
     150,    -1,    -1,    74,   149,   222,   148,   222,   148,   222,
     148,   220,   150,   149,   187,   197,   208,   150,    -1,    -1,
      74,   149,   187,   198,   208,   150,    -1,    74,    46,   149,
     220,   148,   222,   150,     6,    -1,    74,    49,   149,   220,
     148,   222,   150,     6,    -1,    74,    52,   149,   220,   148,
     222,   150,     6,    -1,    74,    46,   149,   220,   148,   222,
     148,   222,   148,   220,   150,     6,    -1,    74,    49,   149,
     220,   148,   222,   148,   222,   148,   220,   150,     6,    -1,
      74,    52,   149,   220,   148,   222,   148,   222,   148,   220,
     150,     6,    -1,    74,    46,   149,   220,   148,   222,   148,
     222,   148,   222,   148,   220,   150,     6,    -1,    74,    49,
     149,   220,   148,   222,   148,   222,   148,   222,   148,   220,
     150,     6,    -1,    74,    52,   149,   220,   148,   222,   148,
     222,   148,   222,   148,   220,   150,     6,    -1,    -1,    74,
      46,   149,   220,   148,   222,   150,   199,   149,   208,   150,
       6,    -1,    -1,    74,    49,   149,   220,   148,   222,   150,
     200,   149,   208,   150,     6,    -1,    -1,    74,    52,   149,
     220,   148,   222,   150,   201,   149,   208,   150,     6,    -1,
      -1,    74,    46,   149,   220,   148,   222,   148,   222,   148,
     220,   150,   202,   149,   208,   150,     6,    -1,    -1,    74,
      49,   149,   220,   148,   222,   148,   222,   148,   220,   150,
     203,   149,   208,   150,     6,    -1,    -1,    74,    52,   149,
     220,   148,   222,   148,   222,   148,   220,   150,   204,   149,
     208,   150,     6,    -1,    -1,    74,    46,   149,   220,   148,
     222,   148,   222,   148,   222,   148,   220,   150,   205,   149,
     208,   150,     6,    -1,    -1,    74,    49,   149,   220,   148,
     222,   148,   222,   148,   222,   148,   220,   150,   206,   149,
     208,   150,     6,    -1,    -1,    74,    52,   149,   220,   148,
     222,   148,   222,   148,   222,   148,   220,   150,   207,   149,
     208,   150,     6,    -1,   209,    -1,   208,   209,    -1,    83,
     149,   220,   150,     6,    -1,    83,   149,   225,   148,   225,
     150,     6,    -1,    83,   149,   225,   148,   225,   148,   225,
     150,     6,    -1,    77,     6,    -1,    84,   142,   220,   143,
       7,   225,    66,   220,     6,    -1,    -1,     4,    -1,    -1,
      66,     4,   220,    -1,    -1,     4,    -1,    -1,     7,   225,
      -1,    -1,     7,   220,    -1,    61,    49,   226,     7,   220,
     211,     6,    -1,    61,    52,   226,   213,   212,     6,    -1,
      58,    52,   149,   220,   150,     7,   225,     6,    -1,    61,
      54,   226,   213,     6,    -1,    77,    52,   226,   214,     6,
      -1,    78,    52,   225,     7,   220,     6,    -1,    65,    49,
     225,     7,   225,     6,    -1,    65,    52,   225,     7,   225,
       6,    -1,    46,   149,   228,   150,   100,    52,   149,   220,
     150,     6,    -1,    49,   149,   228,   150,   100,    52,   149,
     220,   150,     6,    -1,    49,   149,   228,   150,   100,    54,
     149,   220,   150,     6,    -1,    52,   149,   228,   150,   100,
      54,   149,   220,   150,     6,    -1,    81,     6,    -1,    81,
       4,     6,    -1,   115,   142,   232,   143,     7,   149,   225,
     148,   225,   150,     6,    -1,   116,   142,   232,   143,     7,
     149,   225,   148,   225,   150,     6,    -1,   117,   142,   232,
     143,     7,   149,   225,   148,   225,   150,     6,    -1,   118,
     142,   232,   143,     7,   149,   225,   148,   225,   150,     6,
      -1,   221,    -1,   142,   220,   143,    -1,   133,   220,    -1,
     132,   220,    -1,   137,   220,    -1,   220,   133,   220,    -1,
     220,   132,   220,    -1,   220,   134,   220,    -1,   220,   135,
     220,    -1,   220,   136,   220,    -1,   220,   141,   220,    -1,
     220,   128,   220,    -1,   220,   129,   220,    -1,   220,   131,
     220,    -1,   220,   130,   220,    -1,   220,   127,   220,    -1,
     220,   126,   220,    -1,   220,   125,   220,    -1,   220,   124,
     220,    -1,   220,   123,   220,     8,   220,    -1,    14,   142,
     220,   143,    -1,    15,   142,   220,   143,    -1,    16,   142,
     220,   143,    -1,    17,   142,   220,   143,    -1,    18,   142,
     220,   143,    -1,    19,   142,   220,   143,    -1,    20,   142,
     220,   143,    -1,    21,   142,   220,   143,    -1,    22,   142,
     220,   143,    -1,    24,   142,   220,   143,    -1,    25,   142,
     220,   148,   220,   143,    -1,    26,   142,   220,   143,    -1,
      27,   142,   220,   143,    -1,    28,   142,   220,   143,    -1,
      29,   142,   220,   143,    -1,    30,   142,   220,   143,    -1,
      31,   142,   220,   143,    -1,    32,   142,   220,   148,   220,
     143,    -1,    33,   142,   220,   148,   220,   143,    -1,    34,
     142,   220,   148,   220,   143,    -1,    23,   142,   220,   143,
      -1,    14,   144,   220,   145,    -1,    15,   144,   220,   145,
      -1,    16,   144,   220,   145,    -1,    17,   144,   220,   145,
      -1,    18,   144,   220,   145,    -1,    19,   144,   220,   145,
      -1,    20,   144,   220,   145,    -1,    21,   144,   220,   145,
      -1,    22,   144,   220,   145,    -1,    24,   144,   220,   145,
      -1,    25,   144,   220,   148,   220,   145,    -1,    26,   144,
     220,   145,    -1,    27,   144,   220,   145,    -1,    28,   144,
     220,   145,    -1,    29,   144,   220,   145,    -1,    30,   144,
     220,   145,    -1,    31,   144,   220,   145,    -1,    32,   144,
     220,   148,   220,   145,    -1,    33,   144,   220,   148,   220,
     145,    -1,    34,   144,   220,   148,   220,   145,    -1,    23,
     144,   220,   145,    -1,     3,    -1,     9,    -1,    10,    -1,
      11,    -1,   112,    -1,   113,    -1,   114,    -1,     4,    -1,
       4,   151,   149,   220,   150,    -1,     4,   144,   220,   145,
      -1,   147,     4,   144,   145,    -1,     4,   175,    -1,     4,
     144,   220,   145,   175,    -1,     4,   146,     4,    -1,     4,
     144,   220,   145,   146,     4,    -1,     4,   146,     4,   175,
      -1,     4,   144,   220,   145,   146,     4,   175,    -1,   111,
     142,     5,   148,   220,   143,    -1,   223,    -1,   133,   222,