Newer
Older

Christophe Geuzaine
committed
/* A Bison parser, made from Gmsh.y, by GNU bison 1.75. */

Christophe Geuzaine
committed
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
/* Skeleton parser for Yacc-like parsing with Bison,
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 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., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
/* As a special exception, when this file is copied by Bison into a
Bison output file, you may use that output file without restriction.
This special exception was added by the Free Software Foundation
in version 1.24 of Bison. */
/* Written by Richard Stallman by simplifying the original so called
``semantic'' parser. */
/* All symbols defined below should begin with yy or YY, to avoid
infringing on user name space. This should be done even for local
variables, as they might otherwise be expanded by user macros.
There are some unavoidable exceptions within include files to
define necessary library symbols; they are noted "INFRINGES ON
USER NAME SPACE" below. */
/* Identify Bison output. */
#define YYBISON 1
/* Pure parsers. */
#define YYPURE 0
/* Using locations. */
#define YYLSP_NEEDED 0
/* Tokens. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
/* Put the tokens into the symbol table, so that GDB and other debuggers
know about them. */
enum yytokentype {
tDOUBLE = 258,
tSTRING = 259,
tBIGSTR = 260,
tEND = 261,
tAFFECT = 262,
tDOTS = 263,
tPi = 264,
tMPI_Rank = 265,
tMPI_Size = 266,
tExp = 267,
tLog = 268,
tLog10 = 269,
tSqrt = 270,
tSin = 271,
tAsin = 272,
tCos = 273,
tAcos = 274,
tTan = 275,
tRand = 276,
tAtan = 277,
tAtan2 = 278,
tSinh = 279,
tCosh = 280,
tTanh = 281,
tFabs = 282,
tFloor = 283,
tCeil = 284,
tFmod = 285,
tModulo = 286,
tHypot = 287,
tPrintf = 288,
tSprintf = 289,
tStrCat = 290,
tStrPrefix = 291,
tDraw = 292,
tPoint = 293,
tCircle = 294,
tEllipse = 295,
tLine = 296,
tSurface = 297,
tSpline = 298,
tVolume = 299,
tCharacteristic = 300,
tLength = 301,
tParametric = 302,
tElliptic = 303,
tPlane = 304,
tRuled = 305,
tTransfinite = 306,
tComplex = 307,
tPhysical = 308,
tUsing = 309,
tBump = 310,
tProgression = 311,
tPlugin = 312,
tRotate = 313,
tTranslate = 314,
tSymmetry = 315,
tDilate = 316,
tExtrude = 317,
tDuplicata = 318,
tLoop = 319,
tRecombine = 320,
tDelete = 321,
tCoherence = 322,
tIntersect = 323,
tAttractor = 324,
tLayers = 325,
tScalarPoint = 326,
tVectorPoint = 327,
tTensorPoint = 328,
tScalarLine = 329,
tVectorLine = 330,
tTensorLine = 331,
tScalarTriangle = 332,
tVectorTriangle = 333,
tTensorTriangle = 334,
tScalarQuadrangle = 335,
tVectorQuadrangle = 336,
tTensorQuadrangle = 337,
tScalarTetrahedron = 338,
tVectorTetrahedron = 339,
tTensorTetrahedron = 340,
tScalarHexahedron = 341,
tVectorHexahedron = 342,
tTensorHexahedron = 343,
tScalarPrism = 344,
tVectorPrism = 345,
tTensorPrism = 346,
tScalarPyramid = 347,
tVectorPyramid = 348,
tTensorPyramid = 349,
tText2D = 350,
tText3D = 351,
tBSpline = 352,
tBezier = 353,
tNurbs = 354,
tOrder = 355,
tWith = 356,
tBounds = 357,
tKnots = 358,
tColor = 359,
tColorTable = 360,
tFor = 361,
tIn = 362,
tEndFor = 363,
tIf = 364,
tEndIf = 365,
tExit = 366,
tReturn = 367,
tCall = 368,
tFunction = 369,
tMesh = 370,
tB_SPLINE_SURFACE_WITH_KNOTS = 371,
tB_SPLINE_CURVE_WITH_KNOTS = 372,
tCARTESIAN_POINT = 373,
tTRUE = 374,
tFALSE = 375,
tUNSPECIFIED = 376,
tU = 377,
tV = 378,
tEDGE_CURVE = 379,
tVERTEX_POINT = 380,
tORIENTED_EDGE = 381,
tPLANE = 382,
tFACE_OUTER_BOUND = 383,
tEDGE_LOOP = 384,
tADVANCED_FACE = 385,
tVECTOR = 386,
tDIRECTION = 387,
tAXIS2_PLACEMENT_3D = 388,
tISO = 389,
tENDISO = 390,
tENDSEC = 391,
tDATA = 392,
tHEADER = 393,
tFILE_DESCRIPTION = 394,
tFILE_SCHEMA = 395,
tFILE_NAME = 396,
tMANIFOLD_SOLID_BREP = 397,
tCLOSED_SHELL = 398,
tADVANCED_BREP_SHAPE_REPRESENTATION = 399,
tFACE_BOUND = 400,
tCYLINDRICAL_SURFACE = 401,
tCONICAL_SURFACE = 402,
tCIRCLE = 403,
tTRIMMED_CURVE = 404,
tGEOMETRIC_SET = 405,
tCOMPOSITE_CURVE_SEGMENT = 406,
tCONTINUOUS = 407,
tCOMPOSITE_CURVE = 408,
tTOROIDAL_SURFACE = 409,
tPRODUCT_DEFINITION = 410,
tPRODUCT_DEFINITION_SHAPE = 411,
tSHAPE_DEFINITION_REPRESENTATION = 412,
tELLIPSE = 413,
tTrimmed = 414,
tSolid = 415,
tEndSolid = 416,
tVertex = 417,
tFacet = 418,
tNormal = 419,
tOuter = 420,
tLoopSTL = 421,
tEndLoop = 422,
tEndFacet = 423,
tAFFECTDIVIDE = 424,
tAFFECTTIMES = 425,
tAFFECTMINUS = 426,
tAFFECTPLUS = 427,
tOR = 428,
tAND = 429,
tAPPROXEQUAL = 430,
tNOTEQUAL = 431,
tEQUAL = 432,
tGREATEROREQUAL = 433,
tLESSOREQUAL = 434,
tCROSSPRODUCT = 435,
UNARYPREC = 436,
tMINUSMINUS = 437,
tPLUSPLUS = 438
};
#endif
#define tDOUBLE 258
#define tSTRING 259
#define tBIGSTR 260
#define tEND 261
#define tAFFECT 262
#define tDOTS 263
#define tPi 264
#define tMPI_Rank 265
#define tMPI_Size 266
#define tExp 267
#define tLog 268
#define tLog10 269
#define tSqrt 270
#define tSin 271
#define tAsin 272
#define tCos 273
#define tAcos 274
#define tTan 275
#define tRand 276
#define tAtan 277
#define tAtan2 278
#define tSinh 279
#define tCosh 280
#define tTanh 281
#define tFabs 282
#define tFloor 283
#define tCeil 284
#define tFmod 285
#define tModulo 286
#define tHypot 287
#define tPrintf 288
#define tSprintf 289
#define tStrCat 290
#define tStrPrefix 291
#define tDraw 292
#define tPoint 293
#define tCircle 294
#define tEllipse 295
#define tLine 296
#define tSurface 297
#define tSpline 298
#define tVolume 299
#define tCharacteristic 300
#define tLength 301
#define tParametric 302
#define tElliptic 303
#define tPlane 304
#define tRuled 305
#define tTransfinite 306
#define tComplex 307
#define tPhysical 308
#define tUsing 309
#define tBump 310
#define tProgression 311
#define tPlugin 312
#define tRotate 313
#define tTranslate 314
#define tSymmetry 315
#define tDilate 316
#define tExtrude 317
#define tDuplicata 318
#define tLoop 319
#define tRecombine 320
#define tDelete 321
#define tCoherence 322
#define tIntersect 323
#define tAttractor 324
#define tLayers 325
#define tScalarPoint 326
#define tVectorPoint 327
#define tTensorPoint 328
#define tScalarLine 329
#define tVectorLine 330
#define tTensorLine 331
#define tScalarTriangle 332
#define tVectorTriangle 333
#define tTensorTriangle 334
#define tScalarQuadrangle 335
#define tVectorQuadrangle 336
#define tTensorQuadrangle 337
#define tScalarTetrahedron 338
#define tVectorTetrahedron 339
#define tTensorTetrahedron 340
#define tScalarHexahedron 341
#define tVectorHexahedron 342
#define tTensorHexahedron 343
#define tScalarPrism 344
#define tVectorPrism 345
#define tTensorPrism 346
#define tScalarPyramid 347
#define tVectorPyramid 348
#define tTensorPyramid 349
#define tText2D 350
#define tText3D 351
#define tBSpline 352
#define tBezier 353
#define tNurbs 354
#define tOrder 355
#define tWith 356
#define tBounds 357
#define tKnots 358
#define tColor 359
#define tColorTable 360
#define tFor 361
#define tIn 362
#define tEndFor 363
#define tIf 364
#define tEndIf 365
#define tExit 366
#define tReturn 367
#define tCall 368
#define tFunction 369
#define tMesh 370
#define tB_SPLINE_SURFACE_WITH_KNOTS 371
#define tB_SPLINE_CURVE_WITH_KNOTS 372
#define tCARTESIAN_POINT 373
#define tTRUE 374
#define tFALSE 375
#define tUNSPECIFIED 376
#define tU 377
#define tV 378
#define tEDGE_CURVE 379
#define tVERTEX_POINT 380
#define tORIENTED_EDGE 381
#define tPLANE 382
#define tFACE_OUTER_BOUND 383
#define tEDGE_LOOP 384
#define tADVANCED_FACE 385
#define tVECTOR 386
#define tDIRECTION 387
#define tAXIS2_PLACEMENT_3D 388
#define tISO 389
#define tENDISO 390
#define tENDSEC 391
#define tDATA 392
#define tHEADER 393
#define tFILE_DESCRIPTION 394
#define tFILE_SCHEMA 395
#define tFILE_NAME 396
#define tMANIFOLD_SOLID_BREP 397
#define tCLOSED_SHELL 398
#define tADVANCED_BREP_SHAPE_REPRESENTATION 399
#define tFACE_BOUND 400
#define tCYLINDRICAL_SURFACE 401
#define tCONICAL_SURFACE 402
#define tCIRCLE 403
#define tTRIMMED_CURVE 404
#define tGEOMETRIC_SET 405
#define tCOMPOSITE_CURVE_SEGMENT 406
#define tCONTINUOUS 407
#define tCOMPOSITE_CURVE 408
#define tTOROIDAL_SURFACE 409
#define tPRODUCT_DEFINITION 410
#define tPRODUCT_DEFINITION_SHAPE 411
#define tSHAPE_DEFINITION_REPRESENTATION 412
#define tELLIPSE 413
#define tTrimmed 414
#define tSolid 415
#define tEndSolid 416
#define tVertex 417
#define tFacet 418
#define tNormal 419
#define tOuter 420
#define tLoopSTL 421
#define tEndLoop 422
#define tEndFacet 423
#define tAFFECTDIVIDE 424
#define tAFFECTTIMES 425
#define tAFFECTMINUS 426
#define tAFFECTPLUS 427
#define tOR 428
#define tAND 429
#define tAPPROXEQUAL 430
#define tNOTEQUAL 431
#define tEQUAL 432
#define tGREATEROREQUAL 433
#define tLESSOREQUAL 434
#define tCROSSPRODUCT 435
#define UNARYPREC 436
#define tMINUSMINUS 437
#define tPLUSPLUS 438
/* Copy the first part of user declarations. */
#line 1 "Gmsh.y"

Christophe Geuzaine
committed
// $Id: Gmsh.tab.cpp,v 1.148 2003-01-24 23:13:35 geuzaine Exp $
//
// 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

Christophe Geuzaine
committed
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
// USA.
//
// Please report all bugs and problems to "gmsh@geuz.org".
#include <stdarg.h>
#ifndef _NOPLUGIN
#include "PluginManager.h"
#endif
#include "Gmsh.h"
#include "Numeric.h"
#include "Context.h"
#include "Geo.h"
#include "CAD.h"
#include "DataBase.h"
#include "Mesh.h"

Christophe Geuzaine
committed
#include "Draw.h"
#include "Create.h"
#include "Views.h"
#include "StepGeomDatabase.h"
#include "Colors.h"
#include "Parser.h"

Christophe Geuzaine
committed
extern Context_T CTX;
static FILE *yyinTab[MAX_OPEN_FILES];
static int yylinenoTab[MAX_OPEN_FILES];
static fpos_t yyposImbricatedLoopsTab[MAX_OPEN_FILES];
static int yylinenoImbricatedLoopsTab[MAX_OPEN_FILES];
static double LoopControlVariablesTab[MAX_OPEN_FILES][3];
static char* LoopControlVariablesNameTab[MAX_OPEN_FILES];
static char yynameTab[MAX_OPEN_FILES][256];
static Symbol TheSymbol, *pSymbol;
static Surface *STL_Surf;
static Shape TheShape;
static int i,j,k,flag,RecursionLevel=0,ImbricatedLoop = 0;
static StringXString *pStrCat;
static StringXNumber *pNumCat;
static StringXColor *pColCat;

Christophe Geuzaine
committed
static double (*pNumOpt)(int num, int action, double value);
static char* (*pStrOpt)(int num, int action, char *value);
static unsigned int (*pColOpt)(int num, int action, unsigned int value);
char *strsave(char *ptr);
void yyerror (char *s);

Christophe Geuzaine
committed
void yymsg (int type, char *fmt, ...);
int PrintListOfDouble(char *format, List_T *list, char *buffer);

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

Christophe Geuzaine
committed
#line 90 "Gmsh.y"
typedef union {
char *c;
int i;
double d;
double v[5];
Shape s;
List_T *l;

Christophe Geuzaine
committed
/* Line 193 of /usr/share/bison/yacc.c. */
#line 538 "Gmsh.tab.cpp"
# define YYSTYPE yystype
# define YYSTYPE_IS_TRIVIAL 1
#endif

Christophe Geuzaine
committed
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
#ifndef YYLTYPE
typedef struct yyltype
{
int first_line;
int first_column;
int last_line;
int last_column;
} yyltype;
# define YYLTYPE yyltype
# define YYLTYPE_IS_TRIVIAL 1
#endif
/* Copy the second part of user declarations. */
/* Line 213 of /usr/share/bison/yacc.c. */
#line 559 "Gmsh.tab.cpp"
#if ! defined (yyoverflow) || YYERROR_VERBOSE
/* The parser invokes alloca or malloc; define the necessary symbols. */
# if YYSTACK_USE_ALLOCA
# define YYSTACK_ALLOC alloca
# else
# ifndef YYSTACK_USE_ALLOCA
# if defined (alloca) || defined (_ALLOCA_H)
# define YYSTACK_ALLOC alloca
# else
# ifdef __GNUC__
# define YYSTACK_ALLOC __builtin_alloca
# endif
# endif
# endif
# endif
# ifdef YYSTACK_ALLOC
/* Pacify GCC's `empty if-body' warning. */
# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
# else
# if defined (__STDC__) || defined (__cplusplus)
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
# define YYSIZE_T size_t
# endif
# define YYSTACK_ALLOC malloc
# define YYSTACK_FREE free
# endif
#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */
#if (! defined (yyoverflow) \
&& (! defined (__cplusplus) \
|| (YYLTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
/* A type that is properly aligned for any stack member. */
union yyalloc
{
short yyss;
YYSTYPE yyvs;
};
/* The size of the maximum gap between one aligned stack and the next. */
# define YYSTACK_GAP_MAX (sizeof (union yyalloc) - 1)
/* The size of an array large to enough to hold all stacks, each with
N elements. */
# define YYSTACK_BYTES(N) \
((N) * (sizeof (short) + sizeof (YYSTYPE)) \
+ YYSTACK_GAP_MAX)
/* Copy COUNT objects from FROM to TO. The source and destination do
not overlap. */
# ifndef YYCOPY
# if 1 < __GNUC__
# define YYCOPY(To, From, Count) \
__builtin_memcpy (To, From, (Count) * sizeof (*(From)))
# else
# define YYCOPY(To, From, Count) \
do \
{ \
register YYSIZE_T yyi; \
for (yyi = 0; yyi < (Count); yyi++) \
(To)[yyi] = (From)[yyi]; \
} \
while (0)
# endif
# endif
/* Relocate STACK from its old location to the new one. The
local variables YYSIZE and YYSTACKSIZE give the old and new number of
elements in the stack, and YYPTR gives the new location of the
stack. Advance YYPTR to a properly aligned location for the next
stack. */
# define YYSTACK_RELOCATE(Stack) \
do \
{ \
YYSIZE_T yynewbytes; \
YYCOPY (&yyptr->Stack, Stack, yysize); \
Stack = &yyptr->Stack; \
yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAX; \
yyptr += yynewbytes / sizeof (*yyptr); \
} \
while (0)
#endif
#if defined (__STDC__) || defined (__cplusplus)
typedef signed char yysigned_char;
#else
typedef short yysigned_char;
#endif

Christophe Geuzaine
committed
/* YYFINAL -- State number of the termination state. */
#define YYFINAL 11
#define YYLAST 13072

Christophe Geuzaine
committed
/* YYNTOKENS -- Number of terminals. */
#define YYNTOKENS 202
/* YYNNTS -- Number of nonterminals. */
#define YYNNTS 131
/* YYNRULES -- Number of rules. */
#define YYNRULES 449
/* YYNRULES -- Number of states. */
#define YYNSTATES 2257

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

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

Christophe Geuzaine
committed
/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
static const unsigned char yytranslate[] =
{
0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 189, 2, 2, 2, 187, 2, 2,
194, 195, 185, 183, 199, 184, 198, 186, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,

Christophe Geuzaine
committed
179, 2, 180, 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, 196, 2, 197, 193, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 200, 2, 201, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,

Christophe Geuzaine
committed
2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
85, 86, 87, 88, 89, 90, 91, 92, 93, 94,
95, 96, 97, 98, 99, 100, 101, 102, 103, 104,
105, 106, 107, 108, 109, 110, 111, 112, 113, 114,
115, 116, 117, 118, 119, 120, 121, 122, 123, 124,
125, 126, 127, 128, 129, 130, 131, 132, 133, 134,
135, 136, 137, 138, 139, 140, 141, 142, 143, 144,
145, 146, 147, 148, 149, 150, 151, 152, 153, 154,
155, 156, 157, 158, 159, 160, 161, 162, 163, 164,
165, 166, 167, 168, 169, 170, 171, 172, 174, 175,
176, 177, 178, 181, 182, 188, 190, 191, 192
};

Christophe Geuzaine
committed
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
YYRHS. */
static const unsigned short yyprhs[] =
{
0, 0, 3, 5, 7, 9, 12, 14, 17, 19,
41, 43, 44, 47, 49, 51, 53, 56, 59, 62,
65, 68, 76, 82, 100, 110, 134, 166, 182, 194,
206, 222, 232, 246, 256, 268, 282, 292, 302, 314,
324, 336, 346, 358, 372, 386, 398, 412, 430, 440,
452, 464, 478, 490, 500, 501, 504, 506, 508, 510,
512, 514, 516, 518, 520, 522, 524, 526, 528, 530,
536, 544, 551, 560, 561, 564, 567, 570, 573, 576,
579, 582, 585, 588, 591, 594, 597, 600, 603, 606,
609, 612, 615, 618, 621, 624, 627, 630, 633, 636,

Christophe Geuzaine
committed
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
639, 641, 645, 646, 660, 662, 666, 667, 681, 683,
687, 688, 702, 704, 708, 709, 729, 731, 735, 736,
756, 758, 762, 763, 783, 785, 789, 790, 816, 818,
822, 823, 849, 851, 855, 856, 882, 884, 888, 889,
921, 923, 927, 928, 960, 962, 966, 967, 999, 1001,
1005, 1006, 1038, 1040, 1044, 1045, 1077, 1079, 1083, 1084,
1116, 1118, 1122, 1123, 1179, 1181, 1185, 1186, 1242, 1244,
1248, 1249, 1305, 1307, 1311, 1312, 1356, 1358, 1362, 1363,
1407, 1409, 1413, 1414, 1458, 1460, 1464, 1465, 1503, 1505,
1509, 1510, 1548, 1550, 1554, 1555, 1593, 1595, 1599, 1600,
1614, 1616, 1620, 1621, 1637, 1639, 1641, 1643, 1645, 1647,
1649, 1651, 1656, 1664, 1674, 1681, 1685, 1692, 1699, 1709,
1716, 1726, 1732, 1741, 1750, 1762, 1769, 1779, 1789, 1799,
1807, 1816, 1829, 1836, 1844, 1852, 1865, 1873, 1881, 1891,
1909, 1918, 1927, 1935, 1943, 1955, 1964, 1977, 1986, 2009,
2030, 2039, 2048, 2057, 2065, 2074, 2080, 2092, 2098, 2108,
2110, 2112, 2114, 2115, 2118, 2125, 2132, 2139, 2144, 2151,
2156, 2163, 2167, 2173, 2177, 2181, 2189, 2192, 2195, 2202,
2211, 2220, 2231, 2233, 2236, 2238, 2242, 2247, 2249, 2258,
2271, 2286, 2295, 2308, 2323, 2324, 2337, 2338, 2355, 2356,
2375, 2384, 2397, 2412, 2413, 2426, 2427, 2444, 2445, 2464,
2466, 2469, 2479, 2487, 2490, 2497, 2507, 2517, 2526, 2535,
2544, 2551, 2556, 2559, 2562, 2564, 2566, 2568, 2570, 2572,
2574, 2578, 2581, 2584, 2587, 2591, 2595, 2599, 2603, 2607,
2611, 2615, 2619, 2623, 2627, 2631, 2635, 2639, 2643, 2649,
2654, 2659, 2664, 2669, 2674, 2679, 2684, 2689, 2694, 2699,
2706, 2711, 2716, 2721, 2726, 2731, 2736, 2743, 2750, 2757,
2762, 2767, 2772, 2777, 2782, 2787, 2792, 2797, 2802, 2807,
2812, 2819, 2824, 2829, 2834, 2839, 2844, 2849, 2856, 2863,
2870, 2875, 2877, 2879, 2881, 2883, 2885, 2890, 2893, 2899,
2903, 2910, 2915, 2923, 2925, 2928, 2931, 2935, 2939, 2951,
2961, 2969, 2977, 2978, 2982, 2984, 2988, 2989, 2993, 2997,
2999, 3003, 3005, 3007, 3011, 3016, 3020, 3026, 3030, 3035,
3042, 3050, 3052, 3054, 3058, 3062, 3072, 3080, 3082, 3088,
3092, 3099, 3101, 3105, 3107, 3114, 3119, 3124, 3131, 3138
};

Christophe Geuzaine
committed
/* YYRHS -- A `-1'-separated list of the rules' RHS. */
static const short yyrhs[] =
{

Christophe Geuzaine
committed
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
203, 0, -1, 206, -1, 205, -1, 211, -1, 1,
6, -1, 3, -1, 184, 3, -1, 160, -1, 163,
164, 204, 204, 204, 165, 166, 162, 204, 204, 204,
162, 204, 204, 204, 162, 204, 204, 204, 167, 168,
-1, 161, -1, -1, 206, 207, -1, 208, -1, 210,
-1, 209, -1, 134, 6, -1, 135, 6, -1, 137,
6, -1, 136, 6, -1, 138, 6, -1, 139, 194,
322, 199, 5, 195, 6, -1, 140, 194, 322, 195,
6, -1, 141, 194, 5, 199, 5, 199, 322, 199,
322, 199, 5, 199, 5, 199, 5, 195, 6, -1,
3, 7, 118, 194, 5, 199, 320, 195, 6, -1,
3, 7, 117, 194, 5, 199, 318, 199, 326, 199,
317, 199, 317, 199, 317, 199, 326, 199, 326, 199,
317, 195, 6, -1, 3, 7, 116, 194, 5, 199,
318, 199, 318, 199, 324, 199, 317, 199, 317, 199,
317, 199, 317, 199, 326, 199, 326, 199, 326, 199,
326, 199, 317, 195, 6, -1, 3, 7, 124, 194,
5, 199, 3, 199, 3, 199, 3, 199, 317, 195,
6, -1, 3, 7, 128, 194, 5, 199, 3, 199,
317, 195, 6, -1, 3, 7, 145, 194, 5, 199,
3, 199, 317, 195, 6, -1, 3, 7, 126, 194,
5, 199, 185, 199, 185, 199, 318, 199, 317, 195,
6, -1, 3, 7, 129, 194, 5, 199, 326, 195,
6, -1, 3, 7, 130, 194, 5, 199, 326, 199,
3, 199, 317, 195, 6, -1, 3, 7, 125, 194,
5, 199, 3, 195, 6, -1, 3, 7, 131, 194,
5, 199, 3, 199, 318, 195, 6, -1, 3, 7,
133, 194, 5, 199, 3, 199, 3, 199, 3, 195,
6, -1, 3, 7, 132, 194, 5, 199, 320, 195,
6, -1, 3, 7, 127, 194, 5, 199, 3, 195,
6, -1, 3, 7, 41, 194, 5, 199, 3, 199,
3, 195, 6, -1, 3, 7, 143, 194, 5, 199,
326, 195, 6, -1, 3, 7, 144, 194, 5, 199,
326, 199, 3, 195, 6, -1, 3, 7, 142, 194,
5, 199, 3, 195, 6, -1, 3, 7, 146, 194,
5, 199, 3, 199, 318, 195, 6, -1, 3, 7,
147, 194, 5, 199, 3, 199, 318, 199, 318, 195,
6, -1, 3, 7, 154, 194, 5, 199, 3, 199,
318, 199, 318, 195, 6, -1, 3, 7, 148, 194,
5, 199, 3, 199, 318, 195, 6, -1, 3, 7,
158, 194, 5, 199, 3, 199, 318, 199, 318, 195,
6, -1, 3, 7, 149, 194, 5, 199, 3, 199,
326, 199, 326, 199, 317, 199, 317, 195, 6, -1,
3, 7, 150, 194, 5, 199, 326, 195, 6, -1,
3, 7, 151, 194, 152, 199, 317, 199, 3, 195,
6, -1, 3, 7, 153, 194, 5, 199, 326, 199,
317, 195, 6, -1, 3, 7, 155, 194, 5, 199,
5, 199, 3, 199, 3, 195, 6, -1, 3, 7,
156, 194, 5, 199, 5, 199, 3, 195, 6, -1,
3, 7, 157, 194, 3, 199, 3, 195, 6, -1,
-1, 211, 212, -1, 214, -1, 213, -1, 296, -1,
297, -1, 298, -1, 301, -1, 302, -1, 303, -1,
306, -1, 315, -1, 316, -1, 305, -1, 304, -1,
33, 194, 5, 195, 6, -1, 33, 194, 5, 199,
328, 195, 6, -1, 4, 5, 200, 215, 201, 6,
-1, 4, 5, 4, 320, 200, 215, 201, 6, -1,
-1, 215, 217, -1, 215, 220, -1, 215, 223, -1,
215, 226, -1, 215, 229, -1, 215, 232, -1, 215,
235, -1, 215, 238, -1, 215, 241, -1, 215, 244,
-1, 215, 247, -1, 215, 250, -1, 215, 253, -1,
215, 256, -1, 215, 259, -1, 215, 262, -1, 215,
265, -1, 215, 268, -1, 215, 271, -1, 215, 274,
-1, 215, 277, -1, 215, 280, -1, 215, 283, -1,
215, 286, -1, 215, 289, -1, 215, 292, -1, 318,
-1, 216, 199, 318, -1, -1, 71, 194, 318, 199,
318, 199, 318, 195, 218, 200, 216, 201, 6, -1,
318, -1, 219, 199, 318, -1, -1, 72, 194, 318,
199, 318, 199, 318, 195, 221, 200, 219, 201, 6,
-1, 318, -1, 222, 199, 318, -1, -1, 73, 194,
318, 199, 318, 199, 318, 195, 224, 200, 222, 201,
6, -1, 318, -1, 225, 199, 318, -1, -1, 74,
194, 318, 199, 318, 199, 318, 199, 318, 199, 318,
199, 318, 195, 227, 200, 225, 201, 6, -1, 318,
-1, 228, 199, 318, -1, -1, 75, 194, 318, 199,
318, 199, 318, 199, 318, 199, 318, 199, 318, 195,
230, 200, 228, 201, 6, -1, 318, -1, 231, 199,
318, -1, -1, 76, 194, 318, 199, 318, 199, 318,
199, 318, 199, 318, 199, 318, 195, 233, 200, 231,
201, 6, -1, 318, -1, 234, 199, 318, -1, -1,
77, 194, 318, 199, 318, 199, 318, 199, 318, 199,
318, 199, 318, 199, 318, 199, 318, 199, 318, 195,
236, 200, 234, 201, 6, -1, 318, -1, 237, 199,
318, -1, -1, 78, 194, 318, 199, 318, 199, 318,
199, 318, 199, 318, 199, 318, 199, 318, 199, 318,
199, 318, 195, 239, 200, 237, 201, 6, -1, 318,
-1, 240, 199, 318, -1, -1, 79, 194, 318, 199,
318, 199, 318, 199, 318, 199, 318, 199, 318, 199,
318, 199, 318, 199, 318, 195, 242, 200, 240, 201,
6, -1, 318, -1, 243, 199, 318, -1, -1, 80,
194, 318, 199, 318, 199, 318, 199, 318, 199, 318,
199, 318, 199, 318, 199, 318, 199, 318, 199, 318,
199, 318, 199, 318, 195, 245, 200, 243, 201, 6,
-1, 318, -1, 246, 199, 318, -1, -1, 81, 194,
318, 199, 318, 199, 318, 199, 318, 199, 318, 199,
318, 199, 318, 199, 318, 199, 318, 199, 318, 199,
318, 199, 318, 195, 248, 200, 246, 201, 6, -1,
318, -1, 249, 199, 318, -1, -1, 82, 194, 318,
199, 318, 199, 318, 199, 318, 199, 318, 199, 318,
199, 318, 199, 318, 199, 318, 199, 318, 199, 318,
199, 318, 195, 251, 200, 249, 201, 6, -1, 318,
-1, 252, 199, 318, -1, -1, 83, 194, 318, 199,
318, 199, 318, 199, 318, 199, 318, 199, 318, 199,
318, 199, 318, 199, 318, 199, 318, 199, 318, 199,
318, 195, 254, 200, 252, 201, 6, -1, 318, -1,
255, 199, 318, -1, -1, 84, 194, 318, 199, 318,
199, 318, 199, 318, 199, 318, 199, 318, 199, 318,
199, 318, 199, 318, 199, 318, 199, 318, 199, 318,
195, 257, 200, 255, 201, 6, -1, 318, -1, 258,
199, 318, -1, -1, 85, 194, 318, 199, 318, 199,
318, 199, 318, 199, 318, 199, 318, 199, 318, 199,
318, 199, 318, 199, 318, 199, 318, 199, 318, 195,
260, 200, 258, 201, 6, -1, 318, -1, 261, 199,
318, -1, -1, 86, 194, 318, 199, 318, 199, 318,
199, 318, 199, 318, 199, 318, 199, 318, 199, 318,
199, 318, 199, 318, 199, 318, 199, 318, 199, 318,
199, 318, 199, 318, 199, 318, 199, 318, 199, 318,
199, 318, 199, 318, 199, 318, 199, 318, 199, 318,
199, 318, 195, 263, 200, 261, 201, 6, -1, 318,
-1, 264, 199, 318, -1, -1, 87, 194, 318, 199,
318, 199, 318, 199, 318, 199, 318, 199, 318, 199,
318, 199, 318, 199, 318, 199, 318, 199, 318, 199,
318, 199, 318, 199, 318, 199, 318, 199, 318, 199,
318, 199, 318, 199, 318, 199, 318, 199, 318, 199,
318, 199, 318, 199, 318, 195, 266, 200, 264, 201,
6, -1, 318, -1, 267, 199, 318, -1, -1, 88,
194, 318, 199, 318, 199, 318, 199, 318, 199, 318,
199, 318, 199, 318, 199, 318, 199, 318, 199, 318,
199, 318, 199, 318, 199, 318, 199, 318, 199, 318,
199, 318, 199, 318, 199, 318, 199, 318, 199, 318,
199, 318, 199, 318, 199, 318, 199, 318, 195, 269,
200, 267, 201, 6, -1, 318, -1, 270, 199, 318,
-1, -1, 89, 194, 318, 199, 318, 199, 318, 199,
318, 199, 318, 199, 318, 199, 318, 199, 318, 199,
318, 199, 318, 199, 318, 199, 318, 199, 318, 199,
318, 199, 318, 199, 318, 199, 318, 199, 318, 195,
272, 200, 270, 201, 6, -1, 318, -1, 273, 199,
318, -1, -1, 90, 194, 318, 199, 318, 199, 318,
199, 318, 199, 318, 199, 318, 199, 318, 199, 318,
199, 318, 199, 318, 199, 318, 199, 318, 199, 318,
199, 318, 199, 318, 199, 318, 199, 318, 199, 318,
195, 275, 200, 273, 201, 6, -1, 318, -1, 276,
199, 318, -1, -1, 91, 194, 318, 199, 318, 199,
318, 199, 318, 199, 318, 199, 318, 199, 318, 199,
318, 199, 318, 199, 318, 199, 318, 199, 318, 199,
318, 199, 318, 199, 318, 199, 318, 199, 318, 199,
318, 195, 278, 200, 276, 201, 6, -1, 318, -1,
279, 199, 318, -1, -1, 92, 194, 318, 199, 318,
199, 318, 199, 318, 199, 318, 199, 318, 199, 318,
199, 318, 199, 318, 199, 318, 199, 318, 199, 318,
199, 318, 199, 318, 199, 318, 195, 281, 200, 279,
201, 6, -1, 318, -1, 282, 199, 318, -1, -1,
93, 194, 318, 199, 318, 199, 318, 199, 318, 199,
318, 199, 318, 199, 318, 199, 318, 199, 318, 199,
318, 199, 318, 199, 318, 199, 318, 199, 318, 199,
318, 195, 284, 200, 282, 201, 6, -1, 318, -1,
285, 199, 318, -1, -1, 94, 194, 318, 199, 318,
199, 318, 199, 318, 199, 318, 199, 318, 199, 318,
199, 318, 199, 318, 199, 318, 199, 318, 199, 318,
199, 318, 199, 318, 199, 318, 195, 287, 200, 285,
201, 6, -1, 332, -1, 288, 199, 332, -1, -1,
95, 194, 318, 199, 318, 199, 318, 195, 290, 200,
288, 201, 6, -1, 332, -1, 291, 199, 332, -1,
-1, 96, 194, 318, 199, 318, 199, 318, 199, 318,
195, 293, 200, 291, 201, 6, -1, 7, -1, 172,
-1, 171, -1, 170, -1, 169, -1, 192, -1, 191,
-1, 4, 294, 318, 6, -1, 4, 196, 318, 197,
294, 318, 6, -1, 4, 196, 200, 328, 201, 197,
294, 326, 6, -1, 4, 196, 197, 7, 326, 6,
-1, 4, 295, 6, -1, 4, 196, 318, 197, 295,
6, -1, 4, 198, 4, 7, 332, 6, -1, 4,
196, 318, 197, 198, 4, 7, 332, 6, -1, 4,
198, 4, 294, 318, 6, -1, 4, 196, 318, 197,
198, 4, 294, 318, 6, -1, 4, 198, 4, 295,
6, -1, 4, 196, 318, 197, 198, 4, 295, 6,
-1, 4, 198, 104, 198, 4, 7, 329, 6, -1,
4, 196, 318, 197, 198, 104, 198, 4, 7, 329,
6, -1, 4, 198, 105, 7, 330, 6, -1, 4,
196, 318, 197, 198, 105, 7, 330, 6, -1, 57,
194, 4, 195, 198, 4, 7, 318, 6, -1, 57,
194, 4, 195, 198, 4, 7, 332, 6, -1, 38,
194, 318, 195, 7, 320, 6, -1, 53, 38, 194,
318, 195, 7, 326, 6, -1, 69, 38, 326, 7,
200, 318, 199, 318, 199, 318, 201, 6, -1, 45,
46, 326, 7, 318, 6, -1, 41, 194, 318, 195,
7, 326, 6, -1, 43, 194, 318, 195, 7, 326,
6, -1, 69, 41, 326, 7, 200, 318, 199, 318,
199, 318, 201, 6, -1, 39, 194, 318, 195, 7,
326, 6, -1, 40, 194, 318, 195, 7, 326, 6,
-1, 39, 194, 318, 195, 7, 326, 49, 320, 6,
-1, 47, 194, 318, 195, 7, 200, 318, 199, 318,
199, 5, 199, 5, 199, 5, 201, 6, -1, 53,
41, 194, 318, 195, 7, 326, 6, -1, 41, 64,
194, 318, 195, 7, 326, 6, -1, 97, 194, 318,
195, 7, 326, 6, -1, 98, 194, 318, 195, 7,
326, 6, -1, 99, 194, 318, 195, 7, 326, 103,
326, 100, 318, 6, -1, 49, 42, 194, 318, 195,
7, 326, 6, -1, 159, 42, 194, 318, 195, 7,
200, 318, 199, 326, 201, 6, -1, 50, 42, 194,
318, 195, 7, 326, 6, -1, 99, 42, 101, 102,
194, 318, 195, 7, 324, 103, 200, 326, 199, 326,
201, 100, 200, 318, 199, 318, 201, 6, -1, 99,
42, 194, 318, 195, 7, 324, 103, 200, 326, 199,
326, 201, 100, 200, 318, 199, 318, 201, 6, -1,
53, 42, 194, 318, 195, 7, 326, 6, -1, 42,
64, 194, 318, 195, 7, 326, 6, -1, 52, 44,
194, 318, 195, 7, 326, 6, -1, 44, 194, 318,
195, 7, 326, 6, -1, 53, 44, 194, 318, 195,
7, 326, 6, -1, 59, 320, 200, 299, 201, -1,
58, 200, 320, 199, 320, 199, 318, 201, 200, 299,
201, -1, 60, 320, 200, 299, 201, -1, 61, 200,
320, 199, 318, 201, 200, 299, 201, -1, 301, -1,
300, -1, 298, -1, -1, 300, 297, -1, 300, 38,
200, 328, 201, 6, -1, 300, 41, 200, 328, 201,
6, -1, 300, 42, 200, 328, 201, 6, -1, 63,
200, 300, 201, -1, 63, 4, 196, 318, 197, 6,
-1, 66, 200, 300, 201, -1, 66, 4, 196, 318,
197, 6, -1, 66, 115, 6, -1, 104, 329, 200,
300, 201, -1, 4, 332, 6, -1, 4, 318, 6,
-1, 57, 194, 4, 195, 198, 4, 6, -1, 111,
6, -1, 37, 6, -1, 106, 194, 318, 8, 318,
195, -1, 106, 194, 318, 8, 318, 8, 318, 195,
-1, 106, 4, 107, 200, 318, 8, 318, 201, -1,
106, 4, 107, 200, 318, 8, 318, 8, 318, 201,