Skip to content
Snippets Groups Projects
Gmsh.tab.cpp 251 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	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
#define	tSurface	299
#define	tSpline	300
#define	tVolume	301
#define	tCharacteristic	302
#define	tLength	303
#define	tParametric	304
#define	tElliptic	305
#define	tPlane	306
#define	tRuled	307
#define	tTransfinite	308
#define	tComplex	309
#define	tPhysical	310
#define	tUsing	311
#define	tBump	312
#define	tProgression	313
#define	tPlugin	314
#define	tRotate	315
#define	tTranslate	316
#define	tSymmetry	317
#define	tDilate	318
#define	tExtrude	319
#define	tDuplicata	320
#define	tLoop	321
#define	tRecombine	322
#define	tDelete	323
#define	tCoherence	324
#define	tIntersect	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	tWith	340
#define	tBounds	341
#define	tKnots	342
#define	tColor	343
#define	tColorTable	344
#define	tFor	345
#define	tIn	346
#define	tEndFor	347
#define	tIf	348
#define	tEndIf	349
#define	tExit	350
#define	tReturn	351
#define	tCall	352
#define	tFunction	353
#define	tTrimmed	354
#define	tShow	355
#define	tHide	356
#define	tGetValue	357
#define	tGMSH_MAJOR_VERSION	358
#define	tGMSH_MINOR_VERSION	359
#define	tGMSH_PATCH_VERSION	360
#define	tAFFECTPLUS	361
#define	tAFFECTMINUS	362
#define	tAFFECTTIMES	363
#define	tAFFECTDIVIDE	364
#define	tOR	365
#define	tAND	366
#define	tEQUAL	367
#define	tNOTEQUAL	368
#define	tAPPROXEQUAL	369
#define	tLESSOREQUAL	370
#define	tGREATEROREQUAL	371
#define	tCROSSPRODUCT	372
#define	tPLUSPLUS	373
#define	tMINUSMINUS	374
#define	UNARYPREC	375
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed

Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
// $Id: Gmsh.tab.cpp,v 1.266 2006-05-17 01:19:06 geuzaine Exp $
Christophe Geuzaine's avatar
Christophe Geuzaine committed
// Copyright (C) 1997-2006 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 "GeoUtils.h"
#include "Nurbs.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"
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#include "Visibility.h"
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
Tree_T *Symbol_T = NULL;
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed

extern Context_T CTX;
extern Mesh *THEM;

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

Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
static Post_View *View;
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
static List_T *ViewValueList;
static double ViewCoord[100];
static int *ViewNumList, ViewNumNodes, ViewNumComp, ViewNumListTmp;
static int ViewCoordIdx, ViewElementIdx;
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
static int ViewErrorFlags[VIEW_NB_ELEMENT_TYPES];
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];
static char *LoopControlVariablesNameTab[MAX_RECUR_LOOPS];

Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
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);
Loading
Loading full blame...