Newer
Older
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
/* A Bison parser, made from Gmsh.y
by GNU Bison version 1.28 */
#define YYBISON 1 /* Identify Bison output. */
#define tDOUBLE 257
#define tSTRING 258
#define tBIGSTR 259
#define tEND 260
#define tAFFECT 261
#define tDOTS 262
#define tPi 263
#define tMPI_Rank 264
#define tMPI_Size 265
#define tExp 266
#define tLog 267
#define tLog10 268
#define tSqrt 269
#define tSin 270
#define tAsin 271
#define tCos 272
#define tAcos 273
#define tTan 274
#define tRand 275
#define tAtan 276
#define tAtan2 277
#define tSinh 278
#define tCosh 279
#define tTanh 280
#define tFabs 281
#define tFloor 282
#define tCeil 283
#define tFmod 284
#define tModulo 285
#define tHypot 286
#define tPrintf 287
#define tSprintf 288
#define tStrCat 289
#define tStrPrefix 290
#define tStrRelative 291
#define tBoundingBox 292
#define tDraw 293
#define tToday 294
#define tPoint 295
#define tCircle 296
#define tEllipse 297
#define tLine 298
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
#define tSphere 299
#define tSurface 300
#define tSpline 301
#define tVolume 302
#define tCharacteristic 303
#define tLength 304
#define tParametric 305
#define tElliptic 306
#define tPlane 307
#define tRuled 308
#define tTransfinite 309
#define tComplex 310
#define tPhysical 311
#define tUsing 312
#define tBump 313
#define tProgression 314
#define tPlugin 315
#define tRotate 316
#define tTranslate 317
#define tSymmetry 318
#define tDilate 319
#define tExtrude 320
#define tDuplicata 321
#define tLoop 322
#define tRecombine 323
#define tDelete 324
#define tCoherence 325
#define tAttractor 326
#define tLayers 327
#define tAlias 328
#define tAliasWithOptions 329
#define tText2D 330
#define tText3D 331
#define tInterpolationScheme 332
#define tTime 333
#define tGrain 334
#define tCombine 335
#define tBSpline 336
#define tBezier 337
#define tNurbs 338
#define tOrder 339
#define tKnots 340
#define tColor 341
#define tColorTable 342
#define tFor 343
#define tIn 344
#define tEndFor 345
#define tIf 346
#define tEndIf 347
#define tExit 348
#define tReturn 349
#define tCall 350
#define tFunction 351
#define tShow 352
#define tHide 353
#define tGetValue 354
#define tGMSH_MAJOR_VERSION 355
#define tGMSH_MINOR_VERSION 356
#define tGMSH_PATCH_VERSION 357
#define tAFFECTPLUS 358
#define tAFFECTMINUS 359
#define tAFFECTTIMES 360
#define tAFFECTDIVIDE 361
#define tOR 362
#define tAND 363
#define tEQUAL 364
#define tNOTEQUAL 365
#define tLESSOREQUAL 366
#define tGREATEROREQUAL 367
#define tPLUSPLUS 368
#define tMINUSMINUS 369
#define UNARYPREC 370
#line 1 "Gmsh.y"

Christophe Geuzaine
committed
// $Id: Gmsh.tab.cpp,v 1.304 2007-02-12 08:36:11 geuzaine Exp $
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software

Christophe Geuzaine
committed
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
// USA.
//
#include <stdarg.h>
#include "Gmsh.h"
#include "Numeric.h"
#include "Context.h"
#include "Geo.h"

Christophe Geuzaine
committed
#include "Draw.h"
#include "Views.h"
#include "Colors.h"
#include "Parser.h"
static List_T *ViewValueList;
static double ViewCoord[100];
static int *ViewNumList, ViewNumNodes, ViewNumComp, ViewNumListTmp;
static int ViewCoordIdx, ViewElementIdx;
#define MAX_RECUR_LOOPS 100
static int ImbricatedLoop = 0;
static fpos_t yyposImbricatedLoopsTab[MAX_RECUR_LOOPS];
static int yylinenoImbricatedLoopsTab[MAX_RECUR_LOOPS];
static double LoopControlVariablesTab[MAX_RECUR_LOOPS][3];
static char *LoopControlVariablesNameTab[MAX_RECUR_LOOPS];
void yyerror(char *s);
void yymsg(int type, char *fmt, ...);
void skip_until(char *skip, char *until);
int PrintListOfDouble(char *format, List_T *list, char *buffer);
int CheckViewErrorFlags(Post_View *v);

Christophe Geuzaine
committed
#line 77 "Gmsh.y"
Loading
Loading full blame...