Newer
Older

Christophe Geuzaine
committed
/* A Bison parser, made by GNU Bison 2.7.12-4996. */

Christophe Geuzaine
committed
/* Bison implementation for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2013 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

Christophe Geuzaine
committed
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

Christophe Geuzaine
committed

Christophe Geuzaine
committed
along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
under terms of your choice, so long as that work isn't itself a
parser generator using the skeleton or a modified version thereof
as a parser skeleton. Alternatively, if you modify or redistribute
the parser skeleton itself, you may (at your option) remove this
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.

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

Christophe Geuzaine
committed
#define YYBISON_VERSION "2.7.12-4996"
/* Skeleton name. */
#define YYSKELETON_NAME "yacc.c"
/* Pure parsers. */
#define YYPURE 0

Christophe Geuzaine
committed
/* Push parsers. */
#define YYPUSH 0
/* Pull parsers. */
#define YYPULL 1

Christophe Geuzaine
committed
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
#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
/* Copy the first part of user declarations. */
/* Line 371 of yacc.c */
#line 1 "Gmsh.y"
// Gmsh - Copyright (C) 1997-2015 C. Geuzaine, J.-F. Remacle
//
// See the LICENSE.txt file for license information. Please report all
// bugs and problems to the public mailing list <gmsh@geuz.org>.
#include <sstream>
#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 "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"
#include "fullMatrix.h"
#if defined(HAVE_MESH)
#include "Generator.h"
#include "Field.h"
#include "BackgroundMesh.h"
#include "HighOrder.h"
#endif
#if defined(HAVE_POST)
#include "PView.h"
#include "PViewDataList.h"
#endif
#if defined(HAVE_PLUGINS)
#include "PluginManager.h"
#endif
#if defined(HAVE_OPENGL)
#include "drawContext.h"
#endif
// Global parser variables
std::string gmsh_yyname;
int gmsh_yyerrorstate = 0;
int gmsh_yyviewindex = 0;
std::map<std::string, gmsh_yysymbol> gmsh_yysymbols;
std::map<std::string, std::string> gmsh_yystringsymbols;
// Static parser variables (accessible only in this file)
#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 gmshSurface *myGmshSurface = 0;
#define MAX_RECUR_LOOPS 100
static int ImbricatedLoop = 0;
static gmshfpos_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];
static std::map<std::string, std::vector<double> > floatOptions;
static std::map<std::string, std::vector<std::string> > charOptions;
void yyerror(const char *s);
void yymsg(int level, const char *fmt, ...);
void skip_until(const char *skip, const char *until);
void assignVariable(const std::string &name, int index, int assignType,
double value);
void assignVariables(const std::string &name, List_T *indices, int assignType,
List_T *values);
void incrementVariable(const std::string &name, int index, double value);
int PrintListOfDouble(char *format, List_T *list, char *buffer);
void PrintParserSymbols(std::vector<std::string> &vec);
fullMatrix<double> ListOfListOfDouble2Matrix(List_T *list);
struct doubleXstring{
double d;
char *s;
};
/* Line 371 of yacc.c */
#line 173 "Gmsh.tab.cpp"
# ifndef YY_NULL
# if defined __cplusplus && 201103L <= __cplusplus
# define YY_NULL nullptr
# else
# define YY_NULL 0
# endif
# endif
/* Enabling verbose error messages. */
#ifdef YYERROR_VERBOSE
# undef YYERROR_VERBOSE
# define YYERROR_VERBOSE 1
#else
# define YYERROR_VERBOSE 0
#endif

Christophe Geuzaine
committed

Christophe Geuzaine
committed
/* In a future release of Bison, this section will be replaced
by #include "Gmsh.tab.hpp". */
#ifndef YY_GMSH_YY_GMSH_TAB_HPP_INCLUDED
# define YY_GMSH_YY_GMSH_TAB_HPP_INCLUDED
/* Enabling traces. */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
#if YYDEBUG
extern int gmsh_yydebug;
#endif
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
/* 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,
tRound = 287,
tFmod = 288,
tModulo = 289,
tHypot = 290,
tList = 291,
tPrintf = 292,
tError = 293,
tStr = 294,
tSprintf = 295,
tStrCat = 296,
tStrPrefix = 297,
tStrRelative = 298,
tStrReplace = 299,
tStrFind = 300,
tStrCmp = 301,
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
tStrChoice = 302,
tTextAttributes = 303,
tBoundingBox = 304,
tDraw = 305,
tSetChanged = 306,
tToday = 307,
tFixRelativePath = 308,
tSyncModel = 309,
tOnelabAction = 310,
tOnelabRun = 311,
tCpu = 312,
tMemory = 313,
tTotalMemory = 314,
tCreateTopology = 315,
tCreateTopologyNoHoles = 316,
tDistanceFunction = 317,
tDefineConstant = 318,
tUndefineConstant = 319,
tDefineNumber = 320,
tDefineString = 321,
tPoint = 322,
tCircle = 323,
tEllipse = 324,
tLine = 325,
tSphere = 326,
tPolarSphere = 327,
tSurface = 328,
tSpline = 329,
tVolume = 330,
tCharacteristic = 331,
tLength = 332,
tParametric = 333,
tElliptic = 334,
tRefineMesh = 335,
tAdaptMesh = 336,
tRelocateMesh = 337,
tPlane = 338,
tRuled = 339,
tTransfinite = 340,
tComplex = 341,
tPhysical = 342,
tCompound = 343,
tPeriodic = 344,
tUsing = 345,
tPlugin = 346,
tDegenerated = 347,
tRecursive = 348,
tRotate = 349,
tTranslate = 350,
tSymmetry = 351,
tDilate = 352,
tExtrude = 353,
tLevelset = 354,
tRecombine = 355,
tSmoother = 356,
tSplit = 357,
tDelete = 358,
tCoherence = 359,
tIntersect = 360,
tMeshAlgorithm = 361,
tReverse = 362,
tLayers = 363,
tScaleLast = 364,
tHole = 365,
tAlias = 366,
tAliasWithOptions = 367,
tCopyOptions = 368,
tQuadTriAddVerts = 369,
tQuadTriNoNewVerts = 370,
tQuadTriSngl = 371,
tQuadTriDbl = 372,
tRecombLaterals = 373,
tTransfQuadTri = 374,
tText2D = 375,
tText3D = 376,
tInterpolationScheme = 377,
tTime = 378,
tCombine = 379,
tBSpline = 380,
tBezier = 381,
tNurbs = 382,
tNurbsOrder = 383,
tNurbsKnots = 384,
tColor = 385,
tColorTable = 386,
tFor = 387,
tIn = 388,
tEndFor = 389,
tIf = 390,
tEndIf = 391,
tExit = 392,
tAbort = 393,
tField = 394,
tReturn = 395,
tCall = 396,
tFunction = 397,
tShow = 398,
tHide = 399,
tGetValue = 400,
tGetEnv = 401,
tGetString = 402,
tHomology = 403,
tCohomology = 404,
tBetti = 405,
tSetOrder = 406,
tExists = 407,
tFileExists = 408,
tGMSH_MAJOR_VERSION = 409,
tGMSH_MINOR_VERSION = 410,
tGMSH_PATCH_VERSION = 411,
tAFFECTDIVIDE = 412,
tAFFECTTIMES = 413,
tAFFECTMINUS = 414,
tAFFECTPLUS = 415,
tOR = 416,
tAND = 417,
tNOTEQUAL = 418,
tEQUAL = 419,
tGREATEROREQUAL = 420,
tLESSOREQUAL = 421,
UNARYPREC = 422,
tMINUSMINUS = 423,
tPLUSPLUS = 424

Christophe Geuzaine
committed
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE
{
/* Line 387 of yacc.c */
#line 99 "Gmsh.y"

Christophe Geuzaine
committed
char *c;
int i;
unsigned int u;
double d;
double v[5];
Shape s;
List_T *l;

Christophe Geuzaine
committed
/* Line 387 of yacc.c */

Christophe Geuzaine
committed
} YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
#endif

Christophe Geuzaine
committed
extern YYSTYPE gmsh_yylval;

Christophe Geuzaine
committed
#ifdef YYPARSE_PARAM
#if defined __STDC__ || defined __cplusplus
int gmsh_yyparse (void *YYPARSE_PARAM);
#else
int gmsh_yyparse ();
#endif

Christophe Geuzaine
committed
#else /* ! YYPARSE_PARAM */
#if defined __STDC__ || defined __cplusplus
int gmsh_yyparse (void);
#else
int gmsh_yyparse ();
#endif

Christophe Geuzaine
committed
#endif /* ! YYPARSE_PARAM */

Christophe Geuzaine
committed
#endif /* !YY_GMSH_YY_GMSH_TAB_HPP_INCLUDED */

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

Christophe Geuzaine
committed
/* Line 390 of yacc.c */

Christophe Geuzaine
committed
#ifdef short
# undef short
#endif

Christophe Geuzaine
committed
#ifdef YYTYPE_UINT8
typedef YYTYPE_UINT8 yytype_uint8;
#else

Christophe Geuzaine
committed
typedef unsigned char yytype_uint8;
#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
#ifdef YYTYPE_UINT16
typedef YYTYPE_UINT16 yytype_uint16;
#else
typedef unsigned short int yytype_uint16;
#endif
#ifdef YYTYPE_INT16
typedef YYTYPE_INT16 yytype_int16;
#else
typedef short int yytype_int16;
#endif
#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
committed
# if defined YYENABLE_NLS && YYENABLE_NLS
# if ENABLE_NLS
# include <libintl.h> /* INFRINGES ON USER NAME SPACE */

Christophe Geuzaine
committed
# define YY_(Msgid) dgettext ("bison-runtime", Msgid)

Christophe Geuzaine
committed
# define YY_(Msgid) Msgid
# endif
#endif
#ifndef __attribute__
/* This feature is available in gcc versions 2.5 and later. */
# if (! defined __GNUC__ || __GNUC__ < 2 \
|| (__GNUC__ == 2 && __GNUC_MINOR__ < 5))
# define __attribute__(Spec) /* empty */
/* Suppress unused-variable warnings by "using" E. */
#if ! defined lint || defined __GNUC__

Christophe Geuzaine
committed
# define YYUSE(E) ((void) (E))

Christophe Geuzaine
committed
# define YYUSE(E) /* empty */

Christophe Geuzaine
committed
/* Identity function, used to suppress warnings about constant conditions. */
#ifndef lint

Christophe Geuzaine
committed
# define YYID(N) (N)
#else
#if (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
static int

Christophe Geuzaine
committed
YYID (int yyi)

Christophe Geuzaine
committed
YYID (yyi)
int yyi;

Christophe Geuzaine
committed
return yyi;
#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

Christophe Geuzaine
committed
# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */

Christophe Geuzaine
committed
/* Use EXIT_SUCCESS as a witness for stdlib.h. */
# ifndef EXIT_SUCCESS
# define EXIT_SUCCESS 0
# 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

Christophe Geuzaine
committed
# if (defined __cplusplus && ! defined EXIT_SUCCESS \
&& (defined YYFREE || defined free)))

Christophe Geuzaine
committed
# ifndef EXIT_SUCCESS
# define EXIT_SUCCESS 0
# endif
# endif
# ifndef YYMALLOC
# define YYMALLOC malloc

Christophe Geuzaine
committed
# if ! defined malloc && ! defined EXIT_SUCCESS && (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

Christophe Geuzaine
committed
# if ! defined free && ! defined EXIT_SUCCESS && (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
{

Christophe Geuzaine
committed
yytype_int16 yyss_alloc;
YYSTYPE yyvs_alloc;
};
/* 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)

Christophe Geuzaine
committed
# define YYCOPY_NEEDED 1
/* 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. */

Christophe Geuzaine
committed
# define YYSTACK_RELOCATE(Stack_alloc, Stack) \
do \
{ \
YYSIZE_T yynewbytes; \

Christophe Geuzaine
committed
YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
Stack = &yyptr->Stack_alloc; \
yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
yyptr += yynewbytes / sizeof (*yyptr); \
} \

Christophe Geuzaine
committed
#if defined YYCOPY_NEEDED && YYCOPY_NEEDED
/* Copy COUNT objects from SRC to DST. The source and destination do
not overlap. */
# ifndef YYCOPY
# if defined __GNUC__ && 1 < __GNUC__
# define YYCOPY(Dst, Src, Count) \
__builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src)))
# else
# define YYCOPY(Dst, Src, Count) \
do \
{ \
YYSIZE_T yyi; \
for (yyi = 0; yyi < (Count); yyi++) \
(Dst)[yyi] = (Src)[yyi]; \
} \
while (YYID (0))
# endif
# endif
#endif /* !YYCOPY_NEEDED */
/* YYFINAL -- State number of the termination state. */
#define YYFINAL 5
/* YYLAST -- Last index in YYTABLE. */
#define YYNNTS 97
/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
#define YYUNDEFTOK 2
#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, 175, 2, 185, 2, 174, 2, 2,
180, 181, 172, 170, 186, 171, 184, 173, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 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,
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, 162, 163, 164, 165,
168, 169, 176, 177, 178
#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,

Christophe Geuzaine
committed
40, 42, 44, 47, 53, 59, 67, 75, 83, 93,
100, 107, 114, 123, 124, 127, 130, 133, 136, 139,
141, 145, 147, 151, 152, 153, 164, 166, 170, 171,
185, 187, 191, 192, 208, 217, 232, 233, 240, 242,

Christophe Geuzaine
committed
244, 246, 248, 250, 252, 254, 256, 258, 260, 262,
268, 274, 279, 286, 293, 301, 309, 317, 327, 337,
341, 348, 355, 360, 367, 377, 384, 394, 400, 409,
418, 430, 437, 447, 453, 461, 471, 481, 493, 501,
511, 521, 522, 524, 525, 529, 535, 536, 546, 552,
553, 563, 564, 568, 572, 578, 579, 582, 586, 592,
596, 597, 600, 604, 608, 614, 616, 618, 620, 622,
624, 626, 628, 630, 631, 637, 638, 641, 649, 658,

Christophe Geuzaine
committed
665, 673, 678, 686, 695, 704, 712, 720, 732, 741,
750, 759, 768, 778, 782, 787, 798, 806, 814, 823,
832, 845, 854, 863, 871, 880, 889, 895, 907, 913,
923, 933, 938, 948, 958, 960, 962, 963, 966, 973,
980, 987, 994, 1003, 1014, 1029, 1046, 1059, 1068, 1077,
1084, 1099, 1104, 1111, 1118, 1122, 1127, 1133, 1140, 1144,
1148, 1153, 1159, 1164, 1170, 1174, 1180, 1188, 1196, 1200,
1208, 1212, 1215, 1218, 1221, 1224, 1240, 1243, 1246, 1249,
1252, 1255, 1272, 1276, 1283, 1292, 1301, 1312, 1314, 1317,
1319, 1323, 1328, 1330, 1336, 1348, 1362, 1363, 1371, 1372,
1386, 1387, 1403, 1404, 1411, 1420, 1429, 1438, 1451, 1464,
1477, 1492, 1507, 1522, 1523, 1536, 1537, 1550, 1551, 1564,
1565, 1582, 1583, 1600, 1601, 1618, 1619, 1638, 1639, 1658,
1659, 1678, 1680, 1683, 1689, 1697, 1707, 1710, 1713, 1716,
1720, 1723, 1727, 1730, 1734, 1737, 1741, 1751, 1758, 1759,
1763, 1764, 1766, 1767, 1770, 1771, 1774, 1775, 1778, 1786,
1793, 1802, 1808, 1812, 1820, 1826, 1831, 1838, 1845, 1859,
1870, 1881, 1892, 1903, 1914, 1919, 1924, 1929, 1934, 1939,
1942, 1946, 1953, 1955, 1957, 1959, 1962, 1968, 1976, 1987,
1989, 1993, 1996, 1999, 2002, 2006, 2010, 2014, 2018, 2022,
2026, 2030, 2034, 2038, 2042, 2046, 2050, 2054, 2058, 2064,
2069, 2074, 2079, 2084, 2089, 2094, 2099, 2104, 2109, 2114,
2121, 2126, 2131, 2136, 2141, 2146, 2151, 2156, 2163, 2170,
2177, 2182, 2184, 2186, 2188, 2190, 2192, 2194, 2196, 2198,
2200, 2202, 2203, 2210, 2212, 2217, 2222, 2227, 2232, 2237,
2240, 2246, 2252, 2256, 2263, 2268, 2276, 2283, 2290, 2297,
2302, 2304, 2307, 2310, 2314, 2318, 2330, 2340, 2348, 2356,
2358, 2362, 2364, 2366, 2369, 2373, 2378, 2384, 2386, 2388,

Christophe Geuzaine
committed
2391, 2395, 2399, 2405, 2410, 2413, 2416, 2419, 2422, 2426,
2430, 2434, 2438, 2444, 2450, 2456, 2462, 2479, 2496, 2513,
2530, 2532, 2534, 2538, 2542, 2547, 2554, 2561, 2563, 2565,
2569, 2573, 2583, 2591, 2593, 2599, 2603, 2610, 2612, 2616,
2618, 2620, 2624, 2631, 2633, 2635, 2637, 2642, 2649, 2654,
2659, 2664, 2673, 2678, 2687, 2692, 2699, 2704, 2705, 2712,
2714, 2718, 2724, 2730, 2732
/* YYRHS -- A `-1'-separated list of the rules' RHS. */
static const yytype_int16 yyrhs[] =
{
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
191, 0, -1, 192, -1, 1, 6, -1, -1, 192,
193, -1, 196, -1, 195, -1, 216, -1, 233, -1,
234, -1, 238, -1, 239, -1, 240, -1, 243, -1,
264, -1, 265, -1, 242, -1, 241, -1, 237, -1,
267, -1, 167, -1, 167, 167, -1, 37, 180, 281,
181, 6, -1, 38, 180, 281, 181, 6, -1, 37,
180, 281, 181, 194, 281, 6, -1, 37, 180, 281,
186, 277, 181, 6, -1, 38, 180, 281, 186, 277,
181, 6, -1, 37, 180, 281, 186, 277, 181, 194,
281, 6, -1, 4, 281, 187, 197, 188, 6, -1,
111, 4, 182, 268, 183, 6, -1, 112, 4, 182,
268, 183, 6, -1, 113, 4, 182, 268, 186, 268,
183, 6, -1, -1, 197, 200, -1, 197, 204, -1,
197, 207, -1, 197, 209, -1, 197, 210, -1, 268,
-1, 198, 186, 268, -1, 268, -1, 199, 186, 268,
-1, -1, -1, 4, 201, 180, 198, 181, 202, 187,
199, 188, 6, -1, 281, -1, 203, 186, 281, -1,
-1, 120, 180, 268, 186, 268, 186, 268, 181, 205,
187, 203, 188, 6, -1, 281, -1, 206, 186, 281,
-1, -1, 121, 180, 268, 186, 268, 186, 268, 186,
268, 181, 208, 187, 206, 188, 6, -1, 122, 187,
273, 188, 187, 273, 188, 6, -1, 122, 187, 273,
188, 187, 273, 188, 187, 273, 188, 187, 273, 188,
6, -1, -1, 123, 211, 187, 199, 188, 6, -1,
7, -1, 160, -1, 159, -1, 158, -1, 157, -1,
178, -1, 177, -1, 180, -1, 182, -1, 181, -1,
183, -1, 63, 182, 218, 183, 6, -1, 64, 182,
221, 183, 6, -1, 286, 212, 274, 6, -1, 4,
182, 183, 212, 274, 6, -1, 285, 182, 183, 212,
274, 6, -1, 4, 182, 268, 183, 212, 268, 6,
-1, 4, 180, 268, 181, 212, 268, 6, -1, 285,
182, 268, 183, 212, 268, 6, -1, 4, 214, 187,
277, 188, 215, 212, 274, 6, -1, 285, 214, 187,
277, 188, 215, 212, 274, 6, -1, 286, 213, 6,
-1, 4, 182, 268, 183, 213, 6, -1, 285, 182,
268, 183, 213, 6, -1, 286, 7, 282, 6, -1,
4, 184, 4, 7, 282, 6, -1, 4, 182, 268,
183, 184, 4, 7, 282, 6, -1, 4, 184, 4,
212, 268, 6, -1, 4, 182, 268, 183, 184, 4,
212, 268, 6, -1, 4, 184, 4, 213, 6, -1,
4, 182, 268, 183, 184, 4, 213, 6, -1, 4,
184, 130, 184, 4, 7, 278, 6, -1, 4, 182,
268, 183, 184, 130, 184, 4, 7, 278, 6, -1,
4, 184, 131, 7, 279, 6, -1, 4, 182, 268,
183, 184, 131, 7, 279, 6, -1, 4, 139, 7,
268, 6, -1, 139, 182, 268, 183, 7, 4, 6,
-1, 139, 182, 268, 183, 184, 4, 7, 268, 6,
-1, 139, 182, 268, 183, 184, 4, 7, 282, 6,
-1, 139, 182, 268, 183, 184, 4, 7, 187, 277,
188, 6, -1, 139, 182, 268, 183, 184, 4, 6,
-1, 91, 180, 4, 181, 184, 4, 7, 268, 6,
-1, 91, 180, 4, 181, 184, 4, 7, 282, 6,
-1, -1, 186, -1, -1, 218, 217, 286, -1, 218,
217, 286, 7, 268, -1, -1, 218, 217, 286, 7,
187, 268, 219, 223, 188, -1, 218, 217, 286, 7,
282, -1, -1, 218, 217, 286, 7, 187, 282, 220,
225, 188, -1, -1, 221, 217, 281, -1, 268, 7,
282, -1, 222, 186, 268, 7, 282, -1, -1, 223,
224, -1, 186, 4, 274, -1, 186, 4, 187, 222,
188, -1, 186, 4, 282, -1, -1, 225, 226, -1,
186, 4, 268, -1, 186, 4, 282, -1, 186, 4,
187, 284, 188, -1, 268, -1, 282, -1, 268, -1,
282, -1, 268, -1, 282, -1, 268, -1, 282, -1,
-1, 133, 71, 187, 268, 188, -1, -1, 83, 271,
-1, 67, 180, 268, 181, 7, 271, 6, -1, 87,
67, 180, 227, 181, 7, 274, 6, -1, 76, 77,
274, 7, 268, 6, -1, 70, 180, 268, 181, 7,
274, 6, -1, 92, 70, 274, 6, -1, 74, 180,
268, 181, 7, 274, 6, -1, 68, 180, 268, 181,
7, 274, 232, 6, -1, 69, 180, 268, 181, 7,
274, 232, 6, -1, 125, 180, 268, 181, 7, 274,
6, -1, 126, 180, 268, 181, 7, 274, 6, -1,
127, 180, 268, 181, 7, 274, 129, 274, 128, 268,
6, -1, 70, 4, 180, 268, 181, 7, 274, 6,
-1, 88, 70, 180, 268, 181, 7, 274, 6, -1,
87, 70, 180, 228, 181, 7, 274, 6, -1, 83,
73, 180, 268, 181, 7, 274, 6, -1, 84, 73,
180, 268, 181, 7, 274, 231, 6, -1, 12, 13,
6, -1, 13, 73, 268, 6, -1, 78, 73, 180,
268, 181, 7, 5, 5, 5, 6, -1, 71, 180,
268, 181, 7, 274, 6, -1, 72, 180, 268, 181,
7, 274, 6, -1, 73, 4, 180, 268, 181, 7,
274, 6, -1, 88, 73, 180, 268, 181, 7, 274,
6, -1, 88, 73, 180, 268, 181, 7, 274, 4,
187, 273, 188, 6, -1, 87, 73, 180, 229, 181,
7, 274, 6, -1, 86, 75, 180, 268, 181, 7,
274, 6, -1, 75, 180, 268, 181, 7, 274, 6,
-1, 88, 75, 180, 268, 181, 7, 274, 6, -1,
87, 75, 180, 230, 181, 7, 274, 6, -1, 95,
271, 187, 235, 188, -1, 94, 187, 271, 186, 271,
186, 268, 188, 187, 235, 188, -1, 96, 271, 187,
235, 188, -1, 97, 187, 271, 186, 268, 188, 187,
235, 188, -1, 97, 187, 271, 186, 271, 188, 187,
235, 188, -1, 4, 187, 235, 188, -1, 105, 70,
187, 277, 188, 73, 187, 268, 188, -1, 102, 70,
180, 268, 181, 187, 277, 188, 6, -1, 236, -1,
234, -1, -1, 236, 233, -1, 236, 67, 187, 277,
188, 6, -1, 236, 70, 187, 277, 188, 6, -1,
236, 73, 187, 277, 188, 6, -1, 236, 75, 187,
277, 188, 6, -1, 99, 83, 180, 268, 181, 7,
274, 6, -1, 99, 67, 180, 268, 181, 7, 187,
273, 188, 6, -1, 99, 83, 180, 268, 181, 7,
187, 271, 186, 271, 186, 277, 188, 6, -1, 99,
83, 180, 268, 181, 7, 187, 271, 186, 271, 186,
271, 186, 277, 188, 6, -1, 99, 71, 180, 268,
181, 7, 187, 271, 186, 277, 188, 6, -1, 99,
4, 180, 268, 181, 7, 274, 6, -1, 99, 4,
180, 268, 181, 7, 5, 6, -1, 99, 4, 187,
268, 188, 6, -1, 99, 4, 180, 268, 181, 7,
187, 271, 186, 271, 186, 277, 188, 6, -1, 103,
187, 236, 188, -1, 103, 139, 182, 268, 183, 6,
-1, 103, 4, 182, 268, 183, 6, -1, 103, 4,
6, -1, 103, 4, 4, 6, -1, 130, 278, 187,
236, 188, -1, 93, 130, 278, 187, 236, 188, -1,
143, 5, 6, -1, 144, 5, 6, -1, 143, 187,
236, 188, -1, 93, 143, 187, 236, 188, -1, 144,
187, 236, 188, -1, 93, 144, 187, 236, 188, -1,
4, 282, 6, -1, 56, 180, 284, 181, 6, -1,
4, 4, 182, 268, 183, 281, 6, -1, 4, 4,
4, 182, 268, 183, 6, -1, 4, 268, 6, -1,
91, 180, 4, 181, 184, 4, 6, -1, 124, 4,
6, -1, 137, 6, -1, 138, 6, -1, 54, 6,
-1, 49, 6, -1, 49, 187, 268, 186, 268, 186,
268, 186, 268, 186, 268, 186, 268, 188, 6, -1,
50, 6, -1, 51, 6, -1, 60, 6, -1, 61,
6, -1, 80, 6, -1, 81, 187, 277, 188, 187,
277, 188, 187, 273, 188, 187, 268, 186, 268, 188,
6, -1, 151, 268, 6, -1, 132, 180, 268, 8,
268, 181, -1, 132, 180, 268, 8, 268, 8, 268,
181, -1, 132, 4, 133, 187, 268, 8, 268, 188,
-1, 132, 4, 133, 187, 268, 8, 268, 8, 268,
188, -1, 134, -1, 142, 4, -1, 140, -1, 141,
286, 6, -1, 135, 180, 268, 181, -1, 136, -1,
98, 271, 187, 236, 188, -1, 98, 187, 271, 186,
271, 186, 268, 188, 187, 236, 188, -1, 98, 187,
271, 186, 271, 186, 271, 186, 268, 188, 187, 236,
188, -1, -1, 98, 271, 187, 236, 244, 257, 188,
-1, -1, 98, 187, 271, 186, 271, 186, 268, 188,
187, 236, 245, 257, 188, -1, -1, 98, 187, 271,
186, 271, 186, 271, 186, 268, 188, 187, 236, 246,
257, 188, -1, -1, 98, 187, 236, 247, 257, 188,
-1, 98, 67, 187, 268, 186, 271, 188, 6, -1,
98, 70, 187, 268, 186, 271, 188, 6, -1, 98,
73, 187, 268, 186, 271, 188, 6, -1, 98, 67,
187, 268, 186, 271, 186, 271, 186, 268, 188, 6,
-1, 98, 70, 187, 268, 186, 271, 186, 271, 186,
268, 188, 6, -1, 98, 73, 187, 268, 186, 271,
186, 271, 186, 268, 188, 6, -1, 98, 67, 187,
268, 186, 271, 186, 271, 186, 271, 186, 268, 188,
6, -1, 98, 70, 187, 268, 186, 271, 186, 271,
186, 271, 186, 268, 188, 6, -1, 98, 73, 187,
268, 186, 271, 186, 271, 186, 271, 186, 268, 188,
6, -1, -1, 98, 67, 187, 268, 186, 271, 188,
248, 187, 257, 188, 6, -1, -1, 98, 70, 187,
268, 186, 271, 188, 249, 187, 257, 188, 6, -1,
-1, 98, 73, 187, 268, 186, 271, 188, 250, 187,
257, 188, 6, -1, -1, 98, 67, 187, 268, 186,
271, 186, 271, 186, 268, 188, 251, 187, 257, 188,
6, -1, -1, 98, 70, 187, 268, 186, 271, 186,
271, 186, 268, 188, 252, 187, 257, 188, 6, -1,
-1, 98, 73, 187, 268, 186, 271, 186, 271, 186,
268, 188, 253, 187, 257, 188, 6, -1, -1, 98,
67, 187, 268, 186, 271, 186, 271, 186, 271, 186,
268, 188, 254, 187, 257, 188, 6, -1, -1, 98,
70, 187, 268, 186, 271, 186, 271, 186, 271, 186,
268, 188, 255, 187, 257, 188, 6, -1, -1, 98,
73, 187, 268, 186, 271, 186, 271, 186, 271, 186,
268, 188, 256, 187, 257, 188, 6, -1, 258, -1,
257, 258, -1, 108, 187, 268, 188, 6, -1, 108,
187, 274, 186, 274, 188, 6, -1, 108, 187, 274,
186, 274, 186, 274, 188, 6, -1, 109, 6, -1,
100, 6, -1, 116, 6, -1, 116, 118, 6, -1,
117, 6, -1, 117, 118, 6, -1, 114, 6, -1,
114, 118, 6, -1, 115, 6, -1, 115, 118, 6,
-1, 110, 180, 268, 181, 7, 274, 90, 268, 6,
-1, 90, 4, 182, 268, 183, 6, -1, -1, 90,
4, 268, -1, -1, 4, -1, -1, 7, 274, -1,
-1, 7, 268, -1, -1, 90, 274, -1, 85, 70,
275, 7, 268, 259, 6, -1, 85, 73, 275, 261,
260, 6, -1, 79, 73, 187, 268, 188, 7, 274,
6, -1, 85, 75, 275, 261, 6, -1, 119, 275,
6, -1, 106, 73, 187, 277, 188, 268, 6, -1,
100, 73, 275, 262, 6, -1, 100, 75, 275, 6,
-1, 101, 73, 274, 7, 268, 6, -1, 89, 70,
274, 7, 274, 6, -1, 89, 73, 268, 187, 277,
188, 7, 268, 187, 277, 188, 263, 6, -1, 67,
187, 277, 188, 133, 73, 187, 268, 188, 6, -1,
70, 187, 277, 188, 133, 73, 187, 268, 188, 6,
-1, 67, 187, 277, 188, 133, 75, 187, 268, 188,
6, -1, 70, 187, 277, 188, 133, 75, 187, 268,
188, 6, -1, 73, 187, 277, 188, 133, 75, 187,
268, 188, 6, -1, 107, 73, 275, 6, -1, 107,
70, 275, 6, -1, 82, 67, 275, 6, -1, 82,
70, 275, 6, -1, 82, 73, 275, 6, -1, 104,
6, -1, 104, 4, 6, -1, 104, 67, 187, 277,
188, 6, -1, 148, -1, 149, -1, 150, -1, 266,
6, -1, 266, 187, 274, 188, 6, -1, 266, 187,
274, 186, 274, 188, 6, -1, 266, 180, 274, 181,
187, 274, 186, 274, 188, 6, -1, 269, -1, 180,
268, 181, -1, 171, 268, -1, 170, 268, -1, 175,
268, -1, 268, 171, 268, -1, 268, 170, 268, -1,
268, 172, 268, -1, 268, 173, 268, -1, 268, 174,
268, -1, 268, 179, 268, -1, 268, 166, 268, -1,
268, 167, 268, -1, 268, 169, 268, -1, 268, 168,
268, -1, 268, 165, 268, -1, 268, 164, 268, -1,
268, 163, 268, -1, 268, 162, 268, -1, 268, 161,
268, 8, 268, -1, 14, 214, 268, 215, -1, 15,
214, 268, 215, -1, 16, 214, 268, 215, -1, 17,
214, 268, 215, -1, 18, 214, 268, 215, -1, 19,
214, 268, 215, -1, 20, 214, 268, 215, -1, 21,
214, 268, 215, -1, 22, 214, 268, 215, -1, 24,
214, 268, 215, -1, 25, 214, 268, 186, 268, 215,
-1, 26, 214, 268, 215, -1, 27, 214, 268, 215,
-1, 28, 214, 268, 215, -1, 29, 214, 268, 215,
-1, 30, 214, 268, 215, -1, 31, 214, 268, 215,
-1, 32, 214, 268, 215, -1, 33, 214, 268, 186,
268, 215, -1, 34, 214, 268, 186, 268, 215, -1,
35, 214, 268, 186, 268, 215, -1, 23, 214, 268,
215, -1, 3, -1, 9, -1, 10, -1, 11, -1,
154, -1, 155, -1, 156, -1, 57, -1, 58, -1,
59, -1, -1, 65, 214, 268, 270, 223, 215, -1,
286, -1, 4, 182, 268, 183, -1, 285, 182, 268,
183, -1, 152, 180, 286, 181, -1, 153, 180, 282,
181, -1, 185, 286, 182, 183, -1, 286, 213, -1,