Skip to content
Snippets Groups Projects
Gmsh.tab.cpp 265 KiB
Newer Older
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed

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

Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
// $Id: Gmsh.tab.cpp,v 1.336 2007-11-08 19:30:30 geuzaine Exp $
Christophe Geuzaine's avatar
Christophe Geuzaine committed
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
// USA.
// 
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
// Please report all bugs and problems to <gmsh@geuz.org>.
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#include <time.h>
#include "PluginManager.h"
#include "ParUtil.h"
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#include "GModel.h"
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#include "GeoInterpolation.h"
#include "Generator.h"
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#include "PView.h"
#include "PViewDataList.h"
Christophe Geuzaine's avatar
Christophe Geuzaine committed
#include "Options.h"
#include "OpenFile.h"
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#include "CommandLine.h"
#include "FunctionManager.h"
#include "ColorTable.h"
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#include "OS.h"
#include "CreateFile.h"
#include "gmshSurface.h"
#include "Field.h"
#include "BackgroundMesh.h"
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
Tree_T *Symbol_T = NULL;
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed

extern Context_T CTX;

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

static gmshSurface *myGmshSurface = 0;

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

Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#define MAX_RECUR_LOOPS 100
static int ImbricatedLoop = 0;
static fpos_t yyposImbricatedLoopsTab[MAX_RECUR_LOOPS];
static int yylinenoImbricatedLoopsTab[MAX_RECUR_LOOPS];
static double LoopControlVariablesTab[MAX_RECUR_LOOPS][3];
Loading
Loading full blame...