From 2173414d32b34029bff2ba23576e2414f0c26272 Mon Sep 17 00:00:00 2001 From: Jean-Francois Remacle <jean-francois.remacle@uclouvain.be> Date: Wed, 8 Jun 2016 16:24:09 +0000 Subject: [PATCH] embedded lines in volumes are now available (SHOULD BE TESTED) --- Geo/GModelIO_GEO.cpp | 37 +- Geo/GRegion.h | 4 + Geo/Geo.cpp | 18 + Geo/Geo.h | 2 + Mesh/meshGRegion.cpp | 30 + Mesh/meshGRegionDelaunayInsertion.cpp | 89 +- Parser/Gmsh.tab.cpp | 9395 +++++++++++++------------ Parser/Gmsh.tab.hpp | 621 +- Parser/Gmsh.y | 27 +- Parser/Gmsh.yy.cpp | 29 +- 10 files changed, 5368 insertions(+), 4884 deletions(-) diff --git a/Geo/GModelIO_GEO.cpp b/Geo/GModelIO_GEO.cpp index b293e6103e..1dff55d475 100644 --- a/Geo/GModelIO_GEO.cpp +++ b/Geo/GModelIO_GEO.cpp @@ -336,18 +336,7 @@ int GModel::importGEOInternals() if(gr) comp.push_back(gr); } r = new GRegionCompound(this, v->Num, comp); - if(v->EmbeddedSurfaces){ - for(int i = 0; i < List_Nbr(v->EmbeddedSurfaces); i++){ - Surface *s; - List_Read(v->EmbeddedSurfaces, i, &s); - GFace *gf = getFaceByTag(abs(s->Num)); - if(gf) - r->addEmbeddedFace(gf); - else - Msg::Error("Unknown surface %d", s->Num); - } - } - add(r); + add(r); } else if(!r){ r = new gmshRegion(this, v); @@ -356,6 +345,30 @@ int GModel::importGEOInternals() else{ r->resetMeshAttributes(); } + + if(v->EmbeddedSurfaces){ + for(int i = 0; i < List_Nbr(v->EmbeddedSurfaces); i++){ + Surface *s; + List_Read(v->EmbeddedSurfaces, i, &s); + GFace *gf = getFaceByTag(abs(s->Num)); + if(gf) + r->addEmbeddedFace(gf); + else + Msg::Error("Unknown surface %d", s->Num); + } + } + if(v->EmbeddedCurves){ + for(int i = 0; i < List_Nbr(v->EmbeddedCurves); i++){ + Curve *c; + List_Read(v->EmbeddedCurves, i, &c); + GEdge *ge = getEdgeByTag(abs(c->Num)); + // printf("ADDING EMBBEDED EDGE --------------> %d\n",c->Num); + if(ge) + r->addEmbeddedEdge(ge); + else + Msg::Error("Unknown curve %d", c->Num); + } + } if(!v->Visible) r->setVisibility(0); if(v->Color.type) r->setColor(v->Color.mesh); } diff --git a/Geo/GRegion.h b/Geo/GRegion.h index 67d69e4db7..e492edacf6 100644 --- a/Geo/GRegion.h +++ b/Geo/GRegion.h @@ -29,6 +29,7 @@ class GRegion : public GEntity { protected: std::list<GFace*> l_faces; std::list<GFace *> embedded_faces; + std::list<GEdge *> embedded_edges; std::list<int> l_dirs; GRegionCompound *compound; // this model ede belongs to a compound @@ -52,6 +53,7 @@ class GRegion : public GEntity { // add embedded vertices/edges void addEmbeddedFace(GFace *f){ embedded_faces.push_back(f); } + void addEmbeddedEdge(GEdge *e){ embedded_edges.push_back(e); } // get/set faces that bound the region virtual std::list<GFace*> faces() const{ return l_faces; } @@ -60,6 +62,8 @@ class GRegion : public GEntity { // faces that are embedded in the region virtual std::list<GFace*> embeddedFaces() const { return embedded_faces; } + // edges that are embedded in the region + virtual std::list<GEdge*> embeddedEdges() const { return embedded_edges; } // edges that bound the region virtual std::list<GEdge*> edges() const; diff --git a/Geo/Geo.cpp b/Geo/Geo.cpp index 7af03725ab..83d29b6388 100644 --- a/Geo/Geo.cpp +++ b/Geo/Geo.cpp @@ -693,6 +693,7 @@ Volume *Create_Volume(int Num, int Typ) pV->SurfacesByTag = List_Create(1, 2, sizeof(int)); pV->Extrude = NULL; pV->EmbeddedSurfaces = NULL; + pV->EmbeddedCurves = NULL; return pV; } @@ -4639,6 +4640,23 @@ void setVolumeEmbeddedSurfaces(Volume *v, List_T *surfaces) } } +void setVolumeEmbeddedCurves(Volume *v, List_T *curves) +{ + if (!v->EmbeddedCurves) + v->EmbeddedCurves = List_Create(4, 4, sizeof(Curve *)); + int nb = List_Nbr(curves); + for(int i = 0; i < nb; i++) { + double iCurve; + List_Read(curves, i, &iCurve); + Curve *c = FindCurve((int)iCurve); + if(c) + List_Add(v->EmbeddedCurves, &c); + else + Msg::Error("Unknown curve %d", (int)iCurve); + } +} + + void setSurfaceGeneratrices(Surface *s, List_T *loops) { int nbLoop = List_Nbr(loops); diff --git a/Geo/Geo.h b/Geo/Geo.h index 574a5c87c9..82ceec6dee 100644 --- a/Geo/Geo.h +++ b/Geo/Geo.h @@ -248,6 +248,7 @@ class Volume { List_T *SurfacesOrientations; List_T *SurfacesByTag; List_T *EmbeddedSurfaces; + List_T *EmbeddedCurves; DrawingColor Color; std::vector<int> compound; void SetVisible(int value, bool recursive) @@ -451,6 +452,7 @@ void setVolumeSurfaces(Volume *v, List_T *loops); void setSurfaceEmbeddedPoints(Surface *s, List_T *points); void setSurfaceEmbeddedCurves(Surface *s, List_T *curves); void setVolumeEmbeddedSurfaces(Volume *v, List_T *surfaces); +void setVolumeEmbeddedCurves(Volume *v, List_T *curves); int select_contour(int type, int num, List_T * List); #endif diff --git a/Mesh/meshGRegion.cpp b/Mesh/meshGRegion.cpp index 7e913150f8..86a7ec9997 100644 --- a/Mesh/meshGRegion.cpp +++ b/Mesh/meshGRegion.cpp @@ -196,6 +196,21 @@ void buildTetgenStructure(GRegion *gr, tetgenio &in, std::vector<MVertex*> &numb { std::set<MVertex*> allBoundingVertices; std::map<MFace,GEntity*,Less_Face> allBoundingFaces; + std::map<MEdge,GEntity*,Less_Edge> allBoundingEdges; + + // embedded edges + { + std::list<GEdge*> embe = gr->embeddedEdges(); + for (std::list<GEdge*>::iterator it = embe.begin(); it != embe.end(); ++it){ + for (unsigned int i=0;i<(*it)->lines.size();i++){ + MEdge me ((*it)->lines[i]->getVertex(0),(*it)->lines[i]->getVertex(1)); + allBoundingEdges[me] = *it; + allBoundingVertices.insert((*it)->lines[i]->getVertex(0)); + allBoundingVertices.insert((*it)->lines[i]->getVertex(1)); + } + } + } + getBoundingInfoAndSplitQuads(gr, allBoundingFaces, allBoundingVertices, sqr); //// TEST @@ -249,6 +264,21 @@ void buildTetgenStructure(GRegion *gr, tetgenio &in, std::vector<MVertex*> &numb I++; } + + in.numberofedges = allBoundingEdges.size(); + in.edgelist = new int[2*in.numberofedges]; + in.edgemarkerlist = new int[in.numberofedges]; + + I = 0; + std::map<MEdge,GEntity*,Less_Edge>::iterator ite = allBoundingEdges.begin(); + for (; ite != allBoundingEdges.end();++ite){ + const MEdge &ed = ite->first; + in.edgelist[2*I] = ed.getVertex(0)->getIndex(); + in.edgelist[2*I+1] = ed.getVertex(1)->getIndex(); + in.edgemarkerlist[I] = ite->second->tag(); + ++I; + } + in.numberoffacets = allBoundingFaces.size(); in.facetlist = new tetgenio::facet[in.numberoffacets]; in.facetmarkerlist = new int[in.numberoffacets]; diff --git a/Mesh/meshGRegionDelaunayInsertion.cpp b/Mesh/meshGRegionDelaunayInsertion.cpp index caf7cf5973..b392f301b3 100644 --- a/Mesh/meshGRegionDelaunayInsertion.cpp +++ b/Mesh/meshGRegionDelaunayInsertion.cpp @@ -18,10 +18,23 @@ #include "Numeric.h" #include "Context.h" #include "delaunay3d.h" +#include "MEdge.h" +#include "MLine.h" int MTet4::radiusNorm = 2; static double LIMIT_ = 1; +static void createAllEmbeddedEdges (GRegion *gr, std::set<MEdge, Less_Edge> &allEmbeddedEdges) +{ + std::list<GEdge*> e = gr->embeddedEdges(); + // printf("=================> %d embedded GEdges\n",e.size()); + for (std::list<GEdge*>::iterator it = e.begin() ; it != e.end(); ++it){ + for (unsigned int i = 0; i < (*it)->lines.size(); i++){ + allEmbeddedEdges.insert (MEdge((*it)->lines[i]->getVertex(0),(*it)->lines[i]->getVertex(1))); + } + } +} + static void createAllEmbeddedFaces (GRegion *gr, std::set<MFace, Less_Face> &allEmbeddedFaces) { std::list<GFace*> f = gr->embeddedFaces(); @@ -644,6 +657,8 @@ void adaptMeshGRegion::operator () (GRegion *gr) std::set<MFace, Less_Face> allEmbeddedFaces; createAllEmbeddedFaces (gr, allEmbeddedFaces); + std::set<MEdge, Less_Edge> allEmbeddedEdges; + createAllEmbeddedEdges (gr, allEmbeddedEdges); connectTets(allTets.begin(),allTets.end(),&allEmbeddedFaces); double t1 = Cpu(); @@ -724,10 +739,13 @@ void adaptMeshGRegion::operator () (GRegion *gr) double qq = (*it)->getQuality(); if (qq < qMin) for (int i = 0; i < 6; i++){ - if (edgeSwap(newTets, *it, i, qm)) { - nbESwap++; - break; - } + MEdge ed = (*it)->tet()->getEdge(i); + if (allEmbeddedEdges.find(ed) == allEmbeddedEdges.end()){ + if (edgeSwap(newTets, *it, i, qm)) { + nbESwap++; + break; + } + } } if (!(*it)->isDeleted()){ if (qq < sliverLimit) illegals.push_back(*it); @@ -836,6 +854,8 @@ void optimizeMesh(GRegion *gr, const qmTetrahedron::Measures &qm) std::set<MFace, Less_Face> allEmbeddedFaces; createAllEmbeddedFaces (gr, allEmbeddedFaces); connectTets(allTets.begin(),allTets.end(),&allEmbeddedFaces); + std::set<MEdge, Less_Edge> allEmbeddedEdges; + createAllEmbeddedEdges (gr, allEmbeddedEdges); double t1 = Cpu(); std::vector<MTet4*> illegals; @@ -903,11 +923,14 @@ void optimizeMesh(GRegion *gr, const qmTetrahedron::Measures &qm) if (!(*it)->isDeleted()){ double qq = (*it)->getQuality(); if (qq < qMin){ - for (int i = 0; i < 6; i++){ - if (edgeSwap(newTets, *it, i, qm)) { - nbESwap++; - break; - } + for (int i = 0; i < 6; i++){ + MEdge ed = (*it)->tet()->getEdge(i); + if (allEmbeddedEdges.find(ed) == allEmbeddedEdges.end()){ + if (edgeSwap(newTets, *it, i, qm)) { + nbESwap++; + break; + } + } } } if (!(*it)->isDeleted()){ @@ -1093,6 +1116,28 @@ static void memoryCleanup(MTet4Factory &myFactory, std::set<MTet4*, compareTet4P // Msg::Info("cleaning up the memory %d -> %d", n1, allTets.size()); } +int isCavityCompatibleWithEmbeddedEdges(std::list<MTet4*> &cavity, + std::list<faceXtet> &shell, + std::set<MEdge, Less_Edge> &allEmbeddedEdges){ + + // printf("coucou\n"); + std::set<MEdge,Less_Edge> ed; + for (std::list<faceXtet>::iterator it = shell.begin(); it != shell.end();it++){ + ed.insert(MEdge(it->v[0],it->v[1])); + ed.insert(MEdge(it->v[1],it->v[2])); + ed.insert(MEdge(it->v[2],it->v[0])); + } + + for (std::list<MTet4*>::iterator itc = cavity.begin(); itc != cavity.end(); ++itc){ + for (int j=0;j<6;j++){ + MEdge e = (*itc)->tet()->getEdge(j); + if (ed.find(e) == ed.end() && allEmbeddedEdges.find(e) != allEmbeddedEdges.end()){ + return 0; + } + } + } + return 1; +} void insertVerticesInRegion (GRegion *gr, int maxVert, bool _classify) { @@ -1108,10 +1153,29 @@ void insertVerticesInRegion (GRegion *gr, int maxVert, bool _classify) int NUM = 0; // printTets ("before.pos", cavity, true); + std::set<MEdge, Less_Edge> allEmbeddedEdges; + createAllEmbeddedEdges (gr, allEmbeddedEdges); { // leave this in a block so the map gets deallocated directly std::map<MVertex*, double> vSizesMap; std::set<MVertex*> bndVertices; + + std::set<MEdge, Less_Edge>::iterator it = allEmbeddedEdges.begin(); + while (it != allEmbeddedEdges.end()){ + MVertex *vi = it->getVertex(0); + MVertex *vj = it->getVertex(1); + double dx = vi->x()-vj->x(); + double dy = vi->y()-vj->y(); + double dz = vi->z()-vj->z(); + double l = sqrt(dx * dx + dy * dy + dz * dz); + std::map<MVertex*,double>::iterator iti = vSizesMap.find(vi); + std::map<MVertex*,double>::iterator itj = vSizesMap.find(vj); + // smallest tet edge + if (iti == vSizesMap.end() || iti->second > l) vSizesMap[vi] = l; + if (itj == vSizesMap.end() || itj->second > l) vSizesMap[vj] = l; + ++it; + } + for(GModel::fiter it = gr->model()->firstFace(); it != gr->model()->lastFace(); ++it){ GFace *gf = *it; for(unsigned int i = 0; i < gf->triangles.size(); i++){ @@ -1189,6 +1253,8 @@ void insertVerticesInRegion (GRegion *gr, int maxVert, bool _classify) connectTets(allTets.begin(), allTets.end(),&allEmbeddedFaces); Msg::Debug("All %d tets were connected", allTets.size()); + // printf("===========================> %d embedded edges \n",allEmbeddedEdges.size()); + // here the classification should be done int ITER = 0, REALCOUNT = 0; @@ -1197,6 +1263,7 @@ void insertVerticesInRegion (GRegion *gr, int maxVert, bool _classify) int COUNT_MISS_2 = 0; double t1 = Cpu(); + // MAIN LOOP IN DELAUNAY INSERTION STARTS HERE while(1){ if (COUNT_MISS_2 > 100000)break; if (ITER >= maxVert)break; @@ -1254,6 +1321,10 @@ void insertVerticesInRegion (GRegion *gr, int maxVert, bool _classify) } /// END TETS + if (FOUND && !allEmbeddedEdges.empty()){ + FOUND = isCavityCompatibleWithEmbeddedEdges(cavity, shell, allEmbeddedEdges); + } + if(FOUND){ MVertex *v = new MVertex(center[0], center[1], center[2], worst->onWhat()); v->setIndex(NUM++); diff --git a/Parser/Gmsh.tab.cpp b/Parser/Gmsh.tab.cpp index afb491ba80..78c395101b 100644 --- a/Parser/Gmsh.tab.cpp +++ b/Parser/Gmsh.tab.cpp @@ -1,13 +1,14 @@ -/* A Bison parser, made by GNU Bison 3.0.4. */ +/* A Bison parser, made by GNU Bison 2.3. */ -/* Bison implementation for Yacc-like parsers in C +/* Skeleton implementation for Bison's Yacc-like parsers in C - Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc. + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 + Free Software Foundation, Inc. - This program is free software: you can redistribute it and/or modify + 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 3 of the License, or - (at your option) any later version. + 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 @@ -15,7 +16,9 @@ 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, see <http://www.gnu.org/licenses/>. */ + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. */ /* As a special exception, you may create a larger work that contains part or all of the Bison parser skeleton and distribute that work @@ -44,7 +47,7 @@ #define YYBISON 1 /* Bison version. */ -#define YYBISON_VERSION "3.0.4" +#define YYBISON_VERSION "2.3" /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" @@ -52,25 +55,406 @@ /* Pure parsers. */ #define YYPURE 0 -/* Push parsers. */ -#define YYPUSH 0 +/* Using locations. */ +#define YYLSP_NEEDED 0 -/* Pull parsers. */ -#define YYPULL 1 +/* Substitute the variable and function names. */ +#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 + + +/* 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, + tTestLevel = 269, + tExp = 270, + tLog = 271, + tLog10 = 272, + tSqrt = 273, + tSin = 274, + tAsin = 275, + tCos = 276, + tAcos = 277, + tTan = 278, + tRand = 279, + tAtan = 280, + tAtan2 = 281, + tSinh = 282, + tCosh = 283, + tTanh = 284, + tFabs = 285, + tFloor = 286, + tCeil = 287, + tRound = 288, + tFmod = 289, + tModulo = 290, + tHypot = 291, + tList = 292, + tPrintf = 293, + tError = 294, + tStr = 295, + tSprintf = 296, + tStrCat = 297, + tStrPrefix = 298, + tStrRelative = 299, + tStrReplace = 300, + tAbsolutePath = 301, + tDirName = 302, + tFind = 303, + tStrFind = 304, + tStrCmp = 305, + tStrChoice = 306, + tUpperCase = 307, + tLowerCase = 308, + tLowerCaseIn = 309, + tTextAttributes = 310, + tBoundingBox = 311, + tDraw = 312, + tSetChanged = 313, + tToday = 314, + tFixRelativePath = 315, + tCurrentDirectory = 316, + tSyncModel = 317, + tNewModel = 318, + tOnelabAction = 319, + tOnelabRun = 320, + tCpu = 321, + tMemory = 322, + tTotalMemory = 323, + tCreateTopology = 324, + tCreateTopologyNoHoles = 325, + tDistanceFunction = 326, + tDefineConstant = 327, + tUndefineConstant = 328, + tDefineNumber = 329, + tDefineString = 330, + tSetNumber = 331, + tSetString = 332, + tPoint = 333, + tCircle = 334, + tEllipse = 335, + tLine = 336, + tSphere = 337, + tPolarSphere = 338, + tSurface = 339, + tSpline = 340, + tVolume = 341, + tCharacteristic = 342, + tLength = 343, + tParametric = 344, + tElliptic = 345, + tRefineMesh = 346, + tAdaptMesh = 347, + tRelocateMesh = 348, + tPlane = 349, + tRuled = 350, + tTransfinite = 351, + tComplex = 352, + tPhysical = 353, + tCompound = 354, + tPeriodic = 355, + tUsing = 356, + tPlugin = 357, + tDegenerated = 358, + tRecursive = 359, + tRotate = 360, + tTranslate = 361, + tSymmetry = 362, + tDilate = 363, + tExtrude = 364, + tLevelset = 365, + tAffine = 366, + tRecombine = 367, + tSmoother = 368, + tSplit = 369, + tDelete = 370, + tCoherence = 371, + tIntersect = 372, + tMeshAlgorithm = 373, + tReverse = 374, + tLayers = 375, + tScaleLast = 376, + tHole = 377, + tAlias = 378, + tAliasWithOptions = 379, + tCopyOptions = 380, + tQuadTriAddVerts = 381, + tQuadTriNoNewVerts = 382, + tQuadTriSngl = 383, + tQuadTriDbl = 384, + tRecombLaterals = 385, + tTransfQuadTri = 386, + tText2D = 387, + tText3D = 388, + tInterpolationScheme = 389, + tTime = 390, + tCombine = 391, + tBSpline = 392, + tBezier = 393, + tNurbs = 394, + tNurbsOrder = 395, + tNurbsKnots = 396, + tColor = 397, + tColorTable = 398, + tFor = 399, + tIn = 400, + tEndFor = 401, + tIf = 402, + tElseIf = 403, + tElse = 404, + tEndIf = 405, + tExit = 406, + tAbort = 407, + tField = 408, + tReturn = 409, + tCall = 410, + tMacro = 411, + tShow = 412, + tHide = 413, + tGetValue = 414, + tGetStringValue = 415, + tGetEnv = 416, + tGetString = 417, + tGetNumber = 418, + tHomology = 419, + tCohomology = 420, + tBetti = 421, + tExists = 422, + tFileExists = 423, + tGMSH_MAJOR_VERSION = 424, + tGMSH_MINOR_VERSION = 425, + tGMSH_PATCH_VERSION = 426, + tGmshExecutableName = 427, + tSetPartition = 428, + tNameToString = 429, + tStringToName = 430, + tAFFECTDIVIDE = 431, + tAFFECTTIMES = 432, + tAFFECTMINUS = 433, + tAFFECTPLUS = 434, + tOR = 435, + tAND = 436, + tNOTEQUAL = 437, + tEQUAL = 438, + tGREATEROREQUAL = 439, + tLESSOREQUAL = 440, + UNARYPREC = 441, + tMINUSMINUS = 442, + tPLUSPLUS = 443 + }; +#endif +/* Tokens. */ +#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 tEuclidian 267 +#define tCoordinates 268 +#define tTestLevel 269 +#define tExp 270 +#define tLog 271 +#define tLog10 272 +#define tSqrt 273 +#define tSin 274 +#define tAsin 275 +#define tCos 276 +#define tAcos 277 +#define tTan 278 +#define tRand 279 +#define tAtan 280 +#define tAtan2 281 +#define tSinh 282 +#define tCosh 283 +#define tTanh 284 +#define tFabs 285 +#define tFloor 286 +#define tCeil 287 +#define tRound 288 +#define tFmod 289 +#define tModulo 290 +#define tHypot 291 +#define tList 292 +#define tPrintf 293 +#define tError 294 +#define tStr 295 +#define tSprintf 296 +#define tStrCat 297 +#define tStrPrefix 298 +#define tStrRelative 299 +#define tStrReplace 300 +#define tAbsolutePath 301 +#define tDirName 302 +#define tFind 303 +#define tStrFind 304 +#define tStrCmp 305 +#define tStrChoice 306 +#define tUpperCase 307 +#define tLowerCase 308 +#define tLowerCaseIn 309 +#define tTextAttributes 310 +#define tBoundingBox 311 +#define tDraw 312 +#define tSetChanged 313 +#define tToday 314 +#define tFixRelativePath 315 +#define tCurrentDirectory 316 +#define tSyncModel 317 +#define tNewModel 318 +#define tOnelabAction 319 +#define tOnelabRun 320 +#define tCpu 321 +#define tMemory 322 +#define tTotalMemory 323 +#define tCreateTopology 324 +#define tCreateTopologyNoHoles 325 +#define tDistanceFunction 326 +#define tDefineConstant 327 +#define tUndefineConstant 328 +#define tDefineNumber 329 +#define tDefineString 330 +#define tSetNumber 331 +#define tSetString 332 +#define tPoint 333 +#define tCircle 334 +#define tEllipse 335 +#define tLine 336 +#define tSphere 337 +#define tPolarSphere 338 +#define tSurface 339 +#define tSpline 340 +#define tVolume 341 +#define tCharacteristic 342 +#define tLength 343 +#define tParametric 344 +#define tElliptic 345 +#define tRefineMesh 346 +#define tAdaptMesh 347 +#define tRelocateMesh 348 +#define tPlane 349 +#define tRuled 350 +#define tTransfinite 351 +#define tComplex 352 +#define tPhysical 353 +#define tCompound 354 +#define tPeriodic 355 +#define tUsing 356 +#define tPlugin 357 +#define tDegenerated 358 +#define tRecursive 359 +#define tRotate 360 +#define tTranslate 361 +#define tSymmetry 362 +#define tDilate 363 +#define tExtrude 364 +#define tLevelset 365 +#define tAffine 366 +#define tRecombine 367 +#define tSmoother 368 +#define tSplit 369 +#define tDelete 370 +#define tCoherence 371 +#define tIntersect 372 +#define tMeshAlgorithm 373 +#define tReverse 374 +#define tLayers 375 +#define tScaleLast 376 +#define tHole 377 +#define tAlias 378 +#define tAliasWithOptions 379 +#define tCopyOptions 380 +#define tQuadTriAddVerts 381 +#define tQuadTriNoNewVerts 382 +#define tQuadTriSngl 383 +#define tQuadTriDbl 384 +#define tRecombLaterals 385 +#define tTransfQuadTri 386 +#define tText2D 387 +#define tText3D 388 +#define tInterpolationScheme 389 +#define tTime 390 +#define tCombine 391 +#define tBSpline 392 +#define tBezier 393 +#define tNurbs 394 +#define tNurbsOrder 395 +#define tNurbsKnots 396 +#define tColor 397 +#define tColorTable 398 +#define tFor 399 +#define tIn 400 +#define tEndFor 401 +#define tIf 402 +#define tElseIf 403 +#define tElse 404 +#define tEndIf 405 +#define tExit 406 +#define tAbort 407 +#define tField 408 +#define tReturn 409 +#define tCall 410 +#define tMacro 411 +#define tShow 412 +#define tHide 413 +#define tGetValue 414 +#define tGetStringValue 415 +#define tGetEnv 416 +#define tGetString 417 +#define tGetNumber 418 +#define tHomology 419 +#define tCohomology 420 +#define tBetti 421 +#define tExists 422 +#define tFileExists 423 +#define tGMSH_MAJOR_VERSION 424 +#define tGMSH_MINOR_VERSION 425 +#define tGMSH_PATCH_VERSION 426 +#define tGmshExecutableName 427 +#define tSetPartition 428 +#define tNameToString 429 +#define tStringToName 430 +#define tAFFECTDIVIDE 431 +#define tAFFECTTIMES 432 +#define tAFFECTMINUS 433 +#define tAFFECTPLUS 434 +#define tOR 435 +#define tAND 436 +#define tNOTEQUAL 437 +#define tEQUAL 438 +#define tGREATEROREQUAL 439 +#define tLESSOREQUAL 440 +#define UNARYPREC 441 +#define tMINUSMINUS 442 +#define tPLUSPLUS 443 -/* Substitute the variable and function names. */ -#define yyparse gmsh_yyparse -#define yylex gmsh_yylex -#define yyerror gmsh_yyerror -#define yydebug gmsh_yydebug -#define yynerrs gmsh_yynerrs -#define yylval gmsh_yylval -#define yychar gmsh_yychar /* Copy the first part of user declarations. */ -#line 1 "Gmsh.y" /* yacc.c:339 */ +#line 1 "Gmsh.y" // Gmsh - Copyright (C) 1997-2016 C. Geuzaine, J.-F. Remacle // @@ -179,15 +563,11 @@ struct doubleXstring{ }; -#line 183 "Gmsh.tab.cpp" /* yacc.c:339 */ -# ifndef YY_NULLPTR -# if defined __cplusplus && 201103L <= __cplusplus -# define YY_NULLPTR nullptr -# else -# define YY_NULLPTR 0 -# endif -# endif +/* Enabling traces. */ +#ifndef YYDEBUG +# define YYDEBUG 0 +#endif /* Enabling verbose error messages. */ #ifdef YYERROR_VERBOSE @@ -197,219 +577,15 @@ struct doubleXstring{ # define YYERROR_VERBOSE 0 #endif -/* 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 -/* Debug traces. */ -#ifndef YYDEBUG -# define YYDEBUG 0 -#endif -#if YYDEBUG -extern int gmsh_yydebug; -#endif - -/* Token type. */ -#ifndef YYTOKENTYPE -# define YYTOKENTYPE - 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, - tTestLevel = 269, - tExp = 270, - tLog = 271, - tLog10 = 272, - tSqrt = 273, - tSin = 274, - tAsin = 275, - tCos = 276, - tAcos = 277, - tTan = 278, - tRand = 279, - tAtan = 280, - tAtan2 = 281, - tSinh = 282, - tCosh = 283, - tTanh = 284, - tFabs = 285, - tFloor = 286, - tCeil = 287, - tRound = 288, - tFmod = 289, - tModulo = 290, - tHypot = 291, - tList = 292, - tPrintf = 293, - tError = 294, - tStr = 295, - tSprintf = 296, - tStrCat = 297, - tStrPrefix = 298, - tStrRelative = 299, - tStrReplace = 300, - tAbsolutePath = 301, - tDirName = 302, - tFind = 303, - tStrFind = 304, - tStrCmp = 305, - tStrChoice = 306, - tUpperCase = 307, - tLowerCase = 308, - tLowerCaseIn = 309, - tTextAttributes = 310, - tBoundingBox = 311, - tDraw = 312, - tSetChanged = 313, - tToday = 314, - tFixRelativePath = 315, - tCurrentDirectory = 316, - tSyncModel = 317, - tNewModel = 318, - tOnelabAction = 319, - tOnelabRun = 320, - tCpu = 321, - tMemory = 322, - tTotalMemory = 323, - tCreateTopology = 324, - tCreateTopologyNoHoles = 325, - tDistanceFunction = 326, - tDefineConstant = 327, - tUndefineConstant = 328, - tDefineNumber = 329, - tDefineString = 330, - tSetNumber = 331, - tSetString = 332, - tPoint = 333, - tCircle = 334, - tEllipse = 335, - tLine = 336, - tSphere = 337, - tPolarSphere = 338, - tSurface = 339, - tSpline = 340, - tVolume = 341, - tCharacteristic = 342, - tLength = 343, - tParametric = 344, - tElliptic = 345, - tRefineMesh = 346, - tAdaptMesh = 347, - tRelocateMesh = 348, - tPlane = 349, - tRuled = 350, - tTransfinite = 351, - tComplex = 352, - tPhysical = 353, - tCompound = 354, - tPeriodic = 355, - tUsing = 356, - tPlugin = 357, - tDegenerated = 358, - tRecursive = 359, - tRotate = 360, - tTranslate = 361, - tSymmetry = 362, - tDilate = 363, - tExtrude = 364, - tLevelset = 365, - tAffine = 366, - tRecombine = 367, - tSmoother = 368, - tSplit = 369, - tDelete = 370, - tCoherence = 371, - tIntersect = 372, - tMeshAlgorithm = 373, - tReverse = 374, - tLayers = 375, - tScaleLast = 376, - tHole = 377, - tAlias = 378, - tAliasWithOptions = 379, - tCopyOptions = 380, - tQuadTriAddVerts = 381, - tQuadTriNoNewVerts = 382, - tQuadTriSngl = 383, - tQuadTriDbl = 384, - tRecombLaterals = 385, - tTransfQuadTri = 386, - tText2D = 387, - tText3D = 388, - tInterpolationScheme = 389, - tTime = 390, - tCombine = 391, - tBSpline = 392, - tBezier = 393, - tNurbs = 394, - tNurbsOrder = 395, - tNurbsKnots = 396, - tColor = 397, - tColorTable = 398, - tFor = 399, - tIn = 400, - tEndFor = 401, - tIf = 402, - tElseIf = 403, - tElse = 404, - tEndIf = 405, - tExit = 406, - tAbort = 407, - tField = 408, - tReturn = 409, - tCall = 410, - tMacro = 411, - tShow = 412, - tHide = 413, - tGetValue = 414, - tGetStringValue = 415, - tGetEnv = 416, - tGetString = 417, - tGetNumber = 418, - tHomology = 419, - tCohomology = 420, - tBetti = 421, - tExists = 422, - tFileExists = 423, - tGMSH_MAJOR_VERSION = 424, - tGMSH_MINOR_VERSION = 425, - tGMSH_PATCH_VERSION = 426, - tGmshExecutableName = 427, - tSetPartition = 428, - tNameToString = 429, - tStringToName = 430, - tAFFECTPLUS = 431, - tAFFECTMINUS = 432, - tAFFECTTIMES = 433, - tAFFECTDIVIDE = 434, - tOR = 435, - tAND = 436, - tEQUAL = 437, - tNOTEQUAL = 438, - tLESSOREQUAL = 439, - tGREATEROREQUAL = 440, - tPLUSPLUS = 441, - tMINUSMINUS = 442, - UNARYPREC = 443 - }; +/* Enabling the token table. */ +#ifndef YYTOKEN_TABLE +# define YYTOKEN_TABLE 0 #endif -/* Value type. */ #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED - -union YYSTYPE +typedef union YYSTYPE +#line 110 "Gmsh.y" { -#line 110 "Gmsh.y" /* yacc.c:355 */ - char *c; int i; unsigned int u; @@ -417,25 +593,22 @@ union YYSTYPE double v[5]; Shape s; List_T *l; - -#line 422 "Gmsh.tab.cpp" /* yacc.c:355 */ -}; - -typedef union YYSTYPE YYSTYPE; -# define YYSTYPE_IS_TRIVIAL 1 +} +/* Line 193 of yacc.c. */ +#line 599 "Gmsh.tab.cpp" + YYSTYPE; +# define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 +# define YYSTYPE_IS_TRIVIAL 1 #endif -extern YYSTYPE gmsh_yylval; - -int gmsh_yyparse (void); - -#endif /* !YY_GMSH_YY_GMSH_TAB_HPP_INCLUDED */ /* Copy the second part of user declarations. */ -#line 439 "Gmsh.tab.cpp" /* yacc.c:358 */ + +/* Line 216 of yacc.c. */ +#line 612 "Gmsh.tab.cpp" #ifdef short # undef short @@ -449,8 +622,11 @@ typedef unsigned char yytype_uint8; #ifdef YYTYPE_INT8 typedef YYTYPE_INT8 yytype_int8; -#else +#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 @@ -470,7 +646,8 @@ typedef short int yytype_int16; # define YYSIZE_T __SIZE_TYPE__ # elif defined size_t # define YYSIZE_T size_t -# elif ! defined YYSIZE_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 @@ -484,68 +661,39 @@ typedef short int yytype_int16; # if defined YYENABLE_NLS && YYENABLE_NLS # if ENABLE_NLS # include <libintl.h> /* INFRINGES ON USER NAME SPACE */ -# define YY_(Msgid) dgettext ("bison-runtime", Msgid) +# define YY_(msgid) dgettext ("bison-runtime", msgid) # endif # endif # ifndef YY_ -# define YY_(Msgid) Msgid -# endif -#endif - -#ifndef YY_ATTRIBUTE -# if (defined __GNUC__ \ - && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \ - || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C -# define YY_ATTRIBUTE(Spec) __attribute__(Spec) -# else -# define YY_ATTRIBUTE(Spec) /* empty */ -# endif -#endif - -#ifndef YY_ATTRIBUTE_PURE -# define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__)) -#endif - -#ifndef YY_ATTRIBUTE_UNUSED -# define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__)) -#endif - -#if !defined _Noreturn \ - && (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112) -# if defined _MSC_VER && 1200 <= _MSC_VER -# define _Noreturn __declspec (noreturn) -# else -# define _Noreturn YY_ATTRIBUTE ((__noreturn__)) +# define YY_(msgid) msgid # endif #endif /* Suppress unused-variable warnings by "using" E. */ #if ! defined lint || defined __GNUC__ -# define YYUSE(E) ((void) (E)) +# define YYUSE(e) ((void) (e)) #else -# define YYUSE(E) /* empty */ +# define YYUSE(e) /* empty */ #endif -#if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__ -/* Suppress an incorrect diagnostic about yylval being uninitialized. */ -# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ - _Pragma ("GCC diagnostic push") \ - _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\ - _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") -# define YY_IGNORE_MAYBE_UNINITIALIZED_END \ - _Pragma ("GCC diagnostic pop") +/* Identity function, used to suppress warnings about constant conditions. */ +#ifndef lint +# define YYID(n) (n) #else -# define YY_INITIAL_VALUE(Value) Value -#endif -#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN -# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN -# define YY_IGNORE_MAYBE_UNINITIALIZED_END +#if (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) +static int +YYID (int i) +#else +static int +YYID (i) + int i; #endif -#ifndef YY_INITIAL_VALUE -# define YY_INITIAL_VALUE(Value) /* Nothing. */ +{ + return i; +} #endif - #if ! defined yyoverflow || YYERROR_VERBOSE /* The parser invokes alloca or malloc; define the necessary symbols. */ @@ -563,11 +711,11 @@ typedef short int yytype_int16; # define alloca _alloca # else # define YYSTACK_ALLOC alloca -# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS +# if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ - /* Use EXIT_SUCCESS as a witness for stdlib.h. */ -# ifndef EXIT_SUCCESS -# define EXIT_SUCCESS 0 +# ifndef _STDLIB_H +# define _STDLIB_H 1 # endif # endif # endif @@ -575,8 +723,8 @@ typedef short int yytype_int16; # endif # ifdef YYSTACK_ALLOC - /* Pacify GCC's 'empty if-body' warning. */ -# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0) + /* 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 @@ -590,23 +738,25 @@ typedef short int yytype_int16; # ifndef YYSTACK_ALLOC_MAXIMUM # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM # endif -# if (defined __cplusplus && ! defined EXIT_SUCCESS \ +# if (defined __cplusplus && ! defined _STDLIB_H \ && ! ((defined YYMALLOC || defined malloc) \ - && (defined YYFREE || defined free))) + && (defined YYFREE || defined free))) # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ -# ifndef EXIT_SUCCESS -# define EXIT_SUCCESS 0 +# ifndef _STDLIB_H +# define _STDLIB_H 1 # endif # endif # ifndef YYMALLOC # define YYMALLOC malloc -# if ! defined malloc && ! defined EXIT_SUCCESS +# if ! defined malloc && ! defined _STDLIB_H && (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 -# if ! defined free && ! defined EXIT_SUCCESS +# if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) void free (void *); /* INFRINGES ON USER NAME SPACE */ # endif # endif @@ -616,14 +766,14 @@ void free (void *); /* INFRINGES ON USER NAME SPACE */ #if (! defined yyoverflow \ && (! defined __cplusplus \ - || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) + || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) /* A type that is properly aligned for any stack member. */ union yyalloc { - yytype_int16 yyss_alloc; - YYSTYPE yyvs_alloc; -}; + yytype_int16 yyss; + YYSTYPE yyvs; + }; /* The size of the maximum gap between one aligned stack and the next. */ # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) @@ -634,46 +784,42 @@ union yyalloc ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ + YYSTACK_GAP_MAXIMUM) -# define YYCOPY_NEEDED 1 +/* Copy COUNT objects from FROM to TO. The source and destination do + not overlap. */ +# ifndef YYCOPY +# if defined __GNUC__ && 1 < __GNUC__ +# define YYCOPY(To, From, Count) \ + __builtin_memcpy (To, From, (Count) * sizeof (*(From))) +# else +# define YYCOPY(To, From, Count) \ + do \ + { \ + YYSIZE_T yyi; \ + for (yyi = 0; yyi < (Count); yyi++) \ + (To)[yyi] = (From)[yyi]; \ + } \ + while (YYID (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_alloc, Stack) \ - do \ - { \ - YYSIZE_T yynewbytes; \ - YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ - Stack = &yyptr->Stack_alloc; \ - yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ - yyptr += yynewbytes / sizeof (*yyptr); \ - } \ - while (0) +# define YYSTACK_RELOCATE(Stack) \ + do \ + { \ + YYSIZE_T yynewbytes; \ + YYCOPY (&yyptr->Stack, Stack, yysize); \ + Stack = &yyptr->Stack; \ + yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ + yyptr += yynewbytes / sizeof (*yyptr); \ + } \ + while (YYID (0)) #endif -#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 (0) -# endif -# endif -#endif /* !YYCOPY_NEEDED */ - /* YYFINAL -- State number of the termination state. */ #define YYFINAL 5 /* YYLAST -- Last index in YYTABLE. */ @@ -685,19 +831,17 @@ union yyalloc #define YYNNTS 100 /* YYNRULES -- Number of rules. */ #define YYNRULES 555 -/* YYNSTATES -- Number of states. */ +/* YYNRULES -- Number of states. */ #define YYNSTATES 1984 -/* YYTRANSLATE[YYX] -- Symbol number corresponding to YYX as returned - by yylex, with out-of-bounds checking. */ +/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ #define YYUNDEFTOK 2 #define YYMAXUTOK 443 -#define YYTRANSLATE(YYX) \ +#define YYTRANSLATE(YYX) \ ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) -/* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM - as returned by yylex, without out-of-bounds checking. */ +/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */ static const yytype_uint8 yytranslate[] = { 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, @@ -706,7 +850,7 @@ static const yytype_uint8 yytranslate[] = 2, 2, 2, 194, 2, 204, 2, 193, 2, 2, 199, 200, 191, 189, 205, 190, 203, 192, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 185, 2, 187, 180, 2, 2, 2, 2, 2, 2, + 185, 2, 186, 180, 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, 201, 2, 202, 198, 2, 2, 2, 2, 2, @@ -743,12 +887,401 @@ static const yytype_uint8 yytranslate[] = 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, 181, 182, 183, 184, 186, + 175, 176, 177, 178, 179, 181, 182, 183, 184, 187, 188, 195, 196, 197 }; #if YYDEBUG - /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ +/* 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, + 40, 42, 44, 46, 49, 55, 61, 69, 77, 85, + 95, 102, 109, 116, 125, 126, 129, 132, 135, 138, + 141, 143, 147, 149, 153, 154, 155, 166, 168, 172, + 173, 187, 189, 193, 194, 210, 219, 234, 235, 242, + 244, 246, 248, 250, 252, 254, 256, 258, 260, 262, + 264, 270, 276, 284, 292, 297, 301, 308, 315, 323, + 331, 338, 345, 355, 365, 372, 379, 387, 395, 402, + 409, 414, 423, 432, 442, 452, 462, 472, 481, 490, + 500, 510, 520, 530, 537, 547, 554, 564, 570, 579, + 588, 600, 607, 617, 623, 631, 641, 651, 663, 671, + 681, 691, 692, 694, 695, 699, 705, 706, 716, 717, + 729, 730, 742, 748, 749, 759, 760, 764, 768, 774, + 780, 781, 784, 788, 794, 798, 799, 802, 806, 810, + 814, 820, 822, 824, 828, 830, 832, 836, 838, 840, + 844, 846, 848, 852, 853, 859, 860, 863, 871, 880, + 887, 895, 900, 908, 917, 926, 934, 942, 954, 963, + 968, 977, 986, 995, 1005, 1009, 1014, 1025, 1033, 1041, + 1050, 1055, 1064, 1077, 1086, 1095, 1103, 1108, 1117, 1126, + 1132, 1144, 1150, 1160, 1170, 1175, 1185, 1195, 1197, 1199, + 1200, 1203, 1210, 1217, 1224, 1231, 1240, 1251, 1266, 1283, + 1296, 1305, 1314, 1321, 1336, 1341, 1348, 1355, 1359, 1364, + 1370, 1377, 1383, 1387, 1391, 1396, 1402, 1407, 1413, 1417, + 1423, 1431, 1439, 1443, 1451, 1455, 1458, 1461, 1464, 1467, + 1470, 1486, 1489, 1492, 1495, 1498, 1501, 1518, 1525, 1534, + 1543, 1554, 1556, 1559, 1562, 1564, 1568, 1572, 1577, 1582, + 1584, 1586, 1592, 1604, 1618, 1619, 1627, 1628, 1642, 1643, + 1659, 1660, 1667, 1676, 1685, 1694, 1707, 1720, 1733, 1748, + 1763, 1778, 1779, 1792, 1793, 1806, 1807, 1820, 1821, 1838, + 1839, 1856, 1857, 1874, 1875, 1894, 1895, 1914, 1915, 1934, + 1936, 1939, 1945, 1953, 1963, 1966, 1969, 1973, 1976, 1980, + 1983, 1987, 1990, 1994, 1997, 2001, 2011, 2018, 2019, 2023, + 2024, 2026, 2027, 2030, 2031, 2034, 2035, 2038, 2046, 2053, + 2062, 2068, 2072, 2081, 2087, 2092, 2099, 2111, 2123, 2142, + 2161, 2174, 2187, 2200, 2211, 2222, 2233, 2244, 2255, 2260, + 2265, 2270, 2275, 2280, 2283, 2287, 2294, 2296, 2298, 2300, + 2303, 2309, 2317, 2328, 2330, 2334, 2337, 2340, 2343, 2347, + 2351, 2355, 2359, 2363, 2367, 2371, 2375, 2379, 2383, 2387, + 2391, 2395, 2399, 2405, 2410, 2415, 2420, 2425, 2430, 2435, + 2440, 2445, 2450, 2455, 2462, 2467, 2472, 2477, 2482, 2487, + 2492, 2497, 2504, 2511, 2518, 2523, 2525, 2527, 2529, 2531, + 2533, 2535, 2537, 2539, 2541, 2543, 2545, 2546, 2553, 2558, + 2565, 2567, 2572, 2577, 2582, 2587, 2592, 2597, 2602, 2605, + 2611, 2617, 2623, 2629, 2633, 2640, 2645, 2653, 2660, 2667, + 2674, 2681, 2686, 2688, 2691, 2694, 2698, 2702, 2714, 2724, + 2732, 2740, 2742, 2746, 2748, 2750, 2753, 2757, 2762, 2768, + 2770, 2772, 2775, 2779, 2783, 2789, 2794, 2797, 2800, 2803, + 2806, 2810, 2814, 2818, 2822, 2828, 2834, 2840, 2846, 2863, + 2880, 2897, 2914, 2916, 2918, 2922, 2926, 2931, 2936, 2941, + 2948, 2955, 2962, 2969, 2971, 2973, 2977, 2981, 2991, 2999, + 3001, 3007, 3011, 3018, 3020, 3024, 3026, 3028, 3033, 3038, + 3043, 3048, 3052, 3059, 3061, 3066, 3068, 3070, 3072, 3077, + 3084, 3089, 3096, 3101, 3106, 3111, 3120, 3125, 3130, 3135, + 3140, 3149, 3154, 3161, 3166, 3168, 3173, 3178, 3179, 3186, + 3188, 3192, 3198, 3204, 3206, 3208 +}; + +/* YYRHS -- A `-1'-separated list of the rules' RHS. */ +static const yytype_int16 yyrhs[] = +{ + 210, 0, -1, 211, -1, 1, 6, -1, -1, 211, + 212, -1, 215, -1, 214, -1, 235, -1, 254, -1, + 255, -1, 259, -1, 260, -1, 261, -1, 262, -1, + 265, -1, 286, -1, 287, -1, 264, -1, 263, -1, + 258, -1, 289, -1, 186, -1, 186, 186, -1, 38, + 199, 303, 200, 6, -1, 39, 199, 303, 200, 6, + -1, 38, 199, 303, 200, 213, 303, 6, -1, 38, + 199, 303, 205, 299, 200, 6, -1, 39, 199, 303, + 205, 299, 200, 6, -1, 38, 199, 303, 205, 299, + 200, 213, 303, 6, -1, 4, 303, 206, 216, 207, + 6, -1, 123, 4, 201, 290, 202, 6, -1, 124, + 4, 201, 290, 202, 6, -1, 125, 4, 201, 290, + 205, 290, 202, 6, -1, -1, 216, 219, -1, 216, + 223, -1, 216, 226, -1, 216, 228, -1, 216, 229, + -1, 290, -1, 217, 205, 290, -1, 290, -1, 218, + 205, 290, -1, -1, -1, 4, 220, 199, 217, 200, + 221, 206, 218, 207, 6, -1, 303, -1, 222, 205, + 303, -1, -1, 132, 199, 290, 205, 290, 205, 290, + 200, 224, 206, 222, 207, 6, -1, 303, -1, 225, + 205, 303, -1, -1, 133, 199, 290, 205, 290, 205, + 290, 205, 290, 200, 227, 206, 225, 207, 6, -1, + 134, 206, 295, 207, 206, 295, 207, 6, -1, 134, + 206, 295, 207, 206, 295, 207, 206, 295, 207, 206, + 295, 207, 6, -1, -1, 135, 230, 206, 218, 207, + 6, -1, 7, -1, 179, -1, 178, -1, 177, -1, + 176, -1, 197, -1, 196, -1, 199, -1, 201, -1, + 200, -1, 202, -1, 72, 201, 237, 202, 6, -1, + 73, 201, 242, 202, 6, -1, 76, 233, 304, 205, + 290, 234, 6, -1, 77, 233, 308, 205, 304, 234, + 6, -1, 308, 231, 296, 6, -1, 308, 232, 6, + -1, 4, 201, 202, 231, 296, 6, -1, 307, 201, + 202, 231, 296, 6, -1, 4, 201, 290, 202, 231, + 290, 6, -1, 307, 201, 290, 202, 231, 290, 6, + -1, 4, 201, 290, 202, 232, 6, -1, 307, 201, + 290, 202, 232, 6, -1, 4, 233, 206, 299, 207, + 234, 231, 296, 6, -1, 307, 233, 206, 299, 207, + 234, 231, 296, 6, -1, 4, 199, 200, 231, 296, + 6, -1, 307, 199, 200, 231, 296, 6, -1, 4, + 199, 290, 200, 231, 290, 6, -1, 307, 199, 290, + 200, 231, 290, 6, -1, 4, 199, 290, 200, 232, + 6, -1, 307, 199, 290, 200, 232, 6, -1, 308, + 7, 304, 6, -1, 4, 201, 202, 7, 40, 233, + 234, 6, -1, 307, 201, 202, 7, 40, 233, 234, + 6, -1, 4, 201, 202, 7, 40, 233, 306, 234, + 6, -1, 307, 201, 202, 7, 40, 233, 306, 234, + 6, -1, 4, 201, 202, 179, 40, 233, 306, 234, + 6, -1, 307, 201, 202, 179, 40, 233, 306, 234, + 6, -1, 4, 199, 200, 7, 40, 233, 234, 6, + -1, 307, 199, 200, 7, 40, 233, 234, 6, -1, + 4, 199, 200, 7, 40, 233, 306, 234, 6, -1, + 307, 199, 200, 7, 40, 233, 306, 234, 6, -1, + 4, 199, 200, 179, 40, 233, 306, 234, 6, -1, + 307, 199, 200, 179, 40, 233, 306, 234, 6, -1, + 4, 203, 4, 7, 304, 6, -1, 4, 201, 290, + 202, 203, 4, 7, 304, 6, -1, 4, 203, 4, + 231, 290, 6, -1, 4, 201, 290, 202, 203, 4, + 231, 290, 6, -1, 4, 203, 4, 232, 6, -1, + 4, 201, 290, 202, 203, 4, 232, 6, -1, 4, + 203, 142, 203, 4, 7, 300, 6, -1, 4, 201, + 290, 202, 203, 142, 203, 4, 7, 300, 6, -1, + 4, 203, 143, 7, 301, 6, -1, 4, 201, 290, + 202, 203, 143, 7, 301, 6, -1, 4, 153, 7, + 290, 6, -1, 153, 201, 290, 202, 7, 4, 6, + -1, 153, 201, 290, 202, 203, 4, 7, 290, 6, + -1, 153, 201, 290, 202, 203, 4, 7, 304, 6, + -1, 153, 201, 290, 202, 203, 4, 7, 206, 299, + 207, 6, -1, 153, 201, 290, 202, 203, 4, 6, + -1, 102, 199, 4, 200, 203, 4, 7, 290, 6, + -1, 102, 199, 4, 200, 203, 4, 7, 304, 6, + -1, -1, 205, -1, -1, 237, 236, 308, -1, 237, + 236, 308, 7, 290, -1, -1, 237, 236, 308, 7, + 206, 296, 238, 244, 207, -1, -1, 237, 236, 308, + 201, 202, 7, 206, 296, 239, 244, 207, -1, -1, + 237, 236, 308, 199, 200, 7, 206, 296, 240, 244, + 207, -1, 237, 236, 308, 7, 304, -1, -1, 237, + 236, 308, 7, 206, 304, 241, 246, 207, -1, -1, + 242, 236, 303, -1, 290, 7, 304, -1, 243, 205, + 290, 7, 304, -1, 298, 7, 308, 199, 200, -1, + -1, 244, 245, -1, 205, 4, 296, -1, 205, 4, + 206, 243, 207, -1, 205, 4, 304, -1, -1, 246, + 247, -1, 205, 4, 290, -1, 205, 4, 304, -1, + 205, 156, 304, -1, 205, 4, 206, 306, 207, -1, + 290, -1, 304, -1, 304, 205, 290, -1, 290, -1, + 304, -1, 304, 205, 290, -1, 290, -1, 304, -1, + 304, 205, 290, -1, 290, -1, 304, -1, 304, 205, + 290, -1, -1, 145, 82, 206, 290, 207, -1, -1, + 94, 293, -1, 78, 199, 290, 200, 7, 293, 6, + -1, 98, 78, 199, 248, 200, 231, 296, 6, -1, + 87, 88, 296, 7, 290, 6, -1, 81, 199, 290, + 200, 7, 296, 6, -1, 103, 81, 296, 6, -1, + 85, 199, 290, 200, 7, 296, 6, -1, 79, 199, + 290, 200, 7, 296, 253, 6, -1, 80, 199, 290, + 200, 7, 296, 253, 6, -1, 137, 199, 290, 200, + 7, 296, 6, -1, 138, 199, 290, 200, 7, 296, + 6, -1, 139, 199, 290, 200, 7, 296, 141, 296, + 140, 290, 6, -1, 81, 4, 199, 290, 200, 7, + 296, 6, -1, 99, 81, 296, 6, -1, 99, 81, + 199, 290, 200, 7, 296, 6, -1, 98, 81, 199, + 249, 200, 231, 296, 6, -1, 94, 84, 199, 290, + 200, 7, 296, 6, -1, 95, 84, 199, 290, 200, + 7, 296, 252, 6, -1, 12, 13, 6, -1, 13, + 84, 290, 6, -1, 89, 84, 199, 290, 200, 7, + 5, 5, 5, 6, -1, 82, 199, 290, 200, 7, + 296, 6, -1, 83, 199, 290, 200, 7, 296, 6, + -1, 84, 4, 199, 290, 200, 7, 296, 6, -1, + 99, 84, 296, 6, -1, 99, 84, 199, 290, 200, + 7, 296, 6, -1, 99, 84, 199, 290, 200, 7, + 296, 4, 206, 295, 207, 6, -1, 98, 84, 199, + 250, 200, 231, 296, 6, -1, 97, 86, 199, 290, + 200, 7, 296, 6, -1, 86, 199, 290, 200, 7, + 296, 6, -1, 99, 86, 296, 6, -1, 99, 86, + 199, 290, 200, 7, 296, 6, -1, 98, 86, 199, + 251, 200, 231, 296, 6, -1, 106, 293, 206, 256, + 207, -1, 105, 206, 293, 205, 293, 205, 290, 207, + 206, 256, 207, -1, 107, 293, 206, 256, 207, -1, + 108, 206, 293, 205, 290, 207, 206, 256, 207, -1, + 108, 206, 293, 205, 293, 207, 206, 256, 207, -1, + 4, 206, 256, 207, -1, 117, 81, 206, 299, 207, + 84, 206, 290, 207, -1, 114, 81, 199, 290, 200, + 206, 299, 207, 6, -1, 257, -1, 255, -1, -1, + 257, 254, -1, 257, 78, 206, 299, 207, 6, -1, + 257, 81, 206, 299, 207, 6, -1, 257, 84, 206, + 299, 207, 6, -1, 257, 86, 206, 299, 207, 6, + -1, 110, 94, 199, 290, 200, 7, 296, 6, -1, + 110, 78, 199, 290, 200, 7, 206, 295, 207, 6, + -1, 110, 94, 199, 290, 200, 7, 206, 293, 205, + 293, 205, 299, 207, 6, -1, 110, 94, 199, 290, + 200, 7, 206, 293, 205, 293, 205, 293, 205, 299, + 207, 6, -1, 110, 82, 199, 290, 200, 7, 206, + 293, 205, 299, 207, 6, -1, 110, 4, 199, 290, + 200, 7, 296, 6, -1, 110, 4, 199, 290, 200, + 7, 5, 6, -1, 110, 4, 206, 290, 207, 6, + -1, 110, 4, 199, 290, 200, 7, 206, 293, 205, + 293, 205, 299, 207, 6, -1, 115, 206, 257, 207, + -1, 115, 153, 201, 290, 202, 6, -1, 115, 4, + 201, 290, 202, 6, -1, 115, 308, 6, -1, 115, + 4, 4, 6, -1, 142, 300, 206, 257, 207, -1, + 104, 142, 300, 206, 257, 207, -1, 173, 290, 206, + 257, 207, -1, 157, 5, 6, -1, 158, 5, 6, + -1, 157, 206, 257, 207, -1, 104, 157, 206, 257, + 207, -1, 158, 206, 257, 207, -1, 104, 158, 206, + 257, 207, -1, 4, 304, 6, -1, 65, 199, 306, + 200, 6, -1, 4, 4, 201, 290, 202, 303, 6, + -1, 4, 4, 4, 201, 290, 202, 6, -1, 4, + 290, 6, -1, 102, 199, 4, 200, 203, 4, 6, + -1, 136, 4, 6, -1, 151, 6, -1, 152, 6, + -1, 62, 6, -1, 63, 6, -1, 56, 6, -1, + 56, 206, 290, 205, 290, 205, 290, 205, 290, 205, + 290, 205, 290, 207, 6, -1, 57, 6, -1, 58, + 6, -1, 69, 6, -1, 70, 6, -1, 91, 6, + -1, 92, 206, 299, 207, 206, 299, 207, 206, 295, + 207, 206, 290, 205, 290, 207, 6, -1, 144, 199, + 290, 8, 290, 200, -1, 144, 199, 290, 8, 290, + 8, 290, 200, -1, 144, 4, 145, 206, 290, 8, + 290, 207, -1, 144, 4, 145, 206, 290, 8, 290, + 8, 290, 207, -1, 146, -1, 156, 4, -1, 156, + 304, -1, 154, -1, 155, 308, 6, -1, 155, 304, + 6, -1, 147, 199, 290, 200, -1, 148, 199, 290, + 200, -1, 149, -1, 150, -1, 109, 293, 206, 257, + 207, -1, 109, 206, 293, 205, 293, 205, 290, 207, + 206, 257, 207, -1, 109, 206, 293, 205, 293, 205, + 293, 205, 290, 207, 206, 257, 207, -1, -1, 109, + 293, 206, 257, 266, 279, 207, -1, -1, 109, 206, + 293, 205, 293, 205, 290, 207, 206, 257, 267, 279, + 207, -1, -1, 109, 206, 293, 205, 293, 205, 293, + 205, 290, 207, 206, 257, 268, 279, 207, -1, -1, + 109, 206, 257, 269, 279, 207, -1, 109, 78, 206, + 290, 205, 293, 207, 6, -1, 109, 81, 206, 290, + 205, 293, 207, 6, -1, 109, 84, 206, 290, 205, + 293, 207, 6, -1, 109, 78, 206, 290, 205, 293, + 205, 293, 205, 290, 207, 6, -1, 109, 81, 206, + 290, 205, 293, 205, 293, 205, 290, 207, 6, -1, + 109, 84, 206, 290, 205, 293, 205, 293, 205, 290, + 207, 6, -1, 109, 78, 206, 290, 205, 293, 205, + 293, 205, 293, 205, 290, 207, 6, -1, 109, 81, + 206, 290, 205, 293, 205, 293, 205, 293, 205, 290, + 207, 6, -1, 109, 84, 206, 290, 205, 293, 205, + 293, 205, 293, 205, 290, 207, 6, -1, -1, 109, + 78, 206, 290, 205, 293, 207, 270, 206, 279, 207, + 6, -1, -1, 109, 81, 206, 290, 205, 293, 207, + 271, 206, 279, 207, 6, -1, -1, 109, 84, 206, + 290, 205, 293, 207, 272, 206, 279, 207, 6, -1, + -1, 109, 78, 206, 290, 205, 293, 205, 293, 205, + 290, 207, 273, 206, 279, 207, 6, -1, -1, 109, + 81, 206, 290, 205, 293, 205, 293, 205, 290, 207, + 274, 206, 279, 207, 6, -1, -1, 109, 84, 206, + 290, 205, 293, 205, 293, 205, 290, 207, 275, 206, + 279, 207, 6, -1, -1, 109, 78, 206, 290, 205, + 293, 205, 293, 205, 293, 205, 290, 207, 276, 206, + 279, 207, 6, -1, -1, 109, 81, 206, 290, 205, + 293, 205, 293, 205, 293, 205, 290, 207, 277, 206, + 279, 207, 6, -1, -1, 109, 84, 206, 290, 205, + 293, 205, 293, 205, 293, 205, 290, 207, 278, 206, + 279, 207, 6, -1, 280, -1, 279, 280, -1, 120, + 206, 290, 207, 6, -1, 120, 206, 296, 205, 296, + 207, 6, -1, 120, 206, 296, 205, 296, 205, 296, + 207, 6, -1, 121, 6, -1, 112, 6, -1, 112, + 290, 6, -1, 128, 6, -1, 128, 130, 6, -1, + 129, 6, -1, 129, 130, 6, -1, 126, 6, -1, + 126, 130, 6, -1, 127, 6, -1, 127, 130, 6, + -1, 122, 199, 290, 200, 7, 296, 101, 290, 6, + -1, 101, 4, 201, 290, 202, 6, -1, -1, 101, + 4, 290, -1, -1, 4, -1, -1, 7, 296, -1, + -1, 7, 290, -1, -1, 111, 296, -1, 96, 81, + 297, 7, 290, 281, 6, -1, 96, 84, 297, 283, + 282, 6, -1, 90, 84, 206, 290, 207, 7, 296, + 6, -1, 96, 86, 297, 283, 6, -1, 131, 297, + 6, -1, 118, 84, 206, 299, 207, 7, 290, 6, + -1, 112, 84, 297, 284, 6, -1, 112, 86, 297, + 6, -1, 113, 84, 296, 7, 290, 6, -1, 100, + 81, 206, 299, 207, 7, 206, 299, 207, 285, 6, + -1, 100, 84, 206, 299, 207, 7, 206, 299, 207, + 285, 6, -1, 100, 81, 206, 299, 207, 7, 206, + 299, 207, 105, 206, 293, 205, 293, 205, 290, 207, + 6, -1, 100, 84, 206, 299, 207, 7, 206, 299, + 207, 105, 206, 293, 205, 293, 205, 290, 207, 6, + -1, 100, 81, 206, 299, 207, 7, 206, 299, 207, + 106, 293, 6, -1, 100, 84, 206, 299, 207, 7, + 206, 299, 207, 106, 293, 6, -1, 100, 84, 290, + 206, 299, 207, 7, 290, 206, 299, 207, 6, -1, + 78, 206, 299, 207, 145, 84, 206, 290, 207, 6, + -1, 81, 206, 299, 207, 145, 84, 206, 290, 207, + 6, -1, 78, 206, 299, 207, 145, 86, 206, 290, + 207, 6, -1, 81, 206, 299, 207, 145, 86, 206, + 290, 207, 6, -1, 84, 206, 299, 207, 145, 86, + 206, 290, 207, 6, -1, 119, 84, 297, 6, -1, + 119, 81, 297, 6, -1, 93, 78, 297, 6, -1, + 93, 81, 297, 6, -1, 93, 84, 297, 6, -1, + 116, 6, -1, 116, 4, 6, -1, 116, 78, 206, + 299, 207, 6, -1, 164, -1, 165, -1, 166, -1, + 288, 6, -1, 288, 206, 296, 207, 6, -1, 288, + 206, 296, 205, 296, 207, 6, -1, 288, 199, 296, + 200, 206, 296, 205, 296, 207, 6, -1, 291, -1, + 199, 290, 200, -1, 190, 290, -1, 189, 290, -1, + 194, 290, -1, 290, 190, 290, -1, 290, 189, 290, + -1, 290, 191, 290, -1, 290, 192, 290, -1, 290, + 193, 290, -1, 290, 198, 290, -1, 290, 185, 290, + -1, 290, 186, 290, -1, 290, 188, 290, -1, 290, + 187, 290, -1, 290, 184, 290, -1, 290, 183, 290, + -1, 290, 182, 290, -1, 290, 181, 290, -1, 290, + 180, 290, 8, 290, -1, 15, 233, 290, 234, -1, + 16, 233, 290, 234, -1, 17, 233, 290, 234, -1, + 18, 233, 290, 234, -1, 19, 233, 290, 234, -1, + 20, 233, 290, 234, -1, 21, 233, 290, 234, -1, + 22, 233, 290, 234, -1, 23, 233, 290, 234, -1, + 25, 233, 290, 234, -1, 26, 233, 290, 205, 290, + 234, -1, 27, 233, 290, 234, -1, 28, 233, 290, + 234, -1, 29, 233, 290, 234, -1, 30, 233, 290, + 234, -1, 31, 233, 290, 234, -1, 32, 233, 290, + 234, -1, 33, 233, 290, 234, -1, 34, 233, 290, + 205, 290, 234, -1, 35, 233, 290, 205, 290, 234, + -1, 36, 233, 290, 205, 290, 234, -1, 24, 233, + 290, 234, -1, 3, -1, 9, -1, 14, -1, 10, + -1, 11, -1, 169, -1, 170, -1, 171, -1, 66, + -1, 67, -1, 68, -1, -1, 74, 233, 290, 292, + 244, 234, -1, 163, 233, 303, 234, -1, 163, 233, + 303, 205, 290, 234, -1, 308, -1, 4, 201, 290, + 202, -1, 4, 199, 290, 200, -1, 307, 201, 290, + 202, -1, 307, 199, 290, 200, -1, 167, 199, 308, + 200, -1, 168, 199, 304, 200, -1, 204, 308, 233, + 234, -1, 308, 232, -1, 4, 201, 290, 202, 232, + -1, 4, 199, 290, 200, 232, -1, 307, 201, 290, + 202, 232, -1, 307, 199, 290, 200, 232, -1, 4, + 203, 4, -1, 4, 201, 290, 202, 203, 4, -1, + 4, 203, 4, 232, -1, 4, 201, 290, 202, 203, + 4, 232, -1, 159, 199, 303, 205, 290, 200, -1, + 48, 199, 296, 205, 296, 200, -1, 49, 199, 303, + 205, 303, 200, -1, 50, 199, 303, 205, 303, 200, + -1, 55, 199, 306, 200, -1, 294, -1, 190, 293, + -1, 189, 293, -1, 293, 190, 293, -1, 293, 189, + 293, -1, 206, 290, 205, 290, 205, 290, 205, 290, + 205, 290, 207, -1, 206, 290, 205, 290, 205, 290, + 205, 290, 207, -1, 206, 290, 205, 290, 205, 290, + 207, -1, 199, 290, 205, 290, 205, 290, 200, -1, + 296, -1, 295, 205, 296, -1, 290, -1, 298, -1, + 206, 207, -1, 206, 299, 207, -1, 190, 206, 299, + 207, -1, 290, 191, 206, 299, 207, -1, 296, -1, + 5, -1, 190, 298, -1, 290, 191, 298, -1, 290, + 8, 290, -1, 290, 8, 290, 8, 290, -1, 78, + 206, 290, 207, -1, 78, 5, -1, 81, 5, -1, + 84, 5, -1, 86, 5, -1, 98, 78, 5, -1, + 98, 81, 5, -1, 98, 84, 5, -1, 98, 86, + 5, -1, 98, 78, 206, 299, 207, -1, 98, 81, + 206, 299, 207, -1, 98, 84, 206, 299, 207, -1, + 98, 86, 206, 299, 207, -1, 78, 145, 56, 206, + 290, 205, 290, 205, 290, 205, 290, 205, 290, 205, + 290, 207, -1, 81, 145, 56, 206, 290, 205, 290, + 205, 290, 205, 290, 205, 290, 205, 290, 207, -1, + 84, 145, 56, 206, 290, 205, 290, 205, 290, 205, + 290, 205, 290, 205, 290, 207, -1, 86, 145, 56, + 206, 290, 205, 290, 205, 290, 205, 290, 205, 290, + 205, 290, 207, -1, 255, -1, 265, -1, 4, 233, + 234, -1, 307, 233, 234, -1, 37, 201, 308, 202, + -1, 37, 201, 298, 202, -1, 37, 199, 298, 200, + -1, 37, 201, 206, 299, 207, 202, -1, 37, 199, + 206, 299, 207, 200, -1, 4, 233, 206, 299, 207, + 234, -1, 307, 233, 206, 299, 207, 234, -1, 290, + -1, 298, -1, 299, 205, 290, -1, 299, 205, 298, + -1, 206, 290, 205, 290, 205, 290, 205, 290, 207, + -1, 206, 290, 205, 290, 205, 290, 207, -1, 308, + -1, 4, 203, 142, 203, 4, -1, 206, 302, 207, + -1, 4, 201, 290, 202, 203, 143, -1, 300, -1, + 302, 205, 300, -1, 304, -1, 308, -1, 4, 201, + 290, 202, -1, 307, 201, 290, 202, -1, 4, 199, + 290, 200, -1, 307, 199, 290, 200, -1, 4, 203, + 4, -1, 4, 201, 290, 202, 203, 4, -1, 5, + -1, 174, 201, 308, 202, -1, 59, -1, 172, -1, + 64, -1, 161, 199, 303, 200, -1, 160, 199, 303, + 205, 303, 200, -1, 162, 233, 303, 234, -1, 162, + 233, 303, 205, 303, 234, -1, 42, 233, 306, 234, + -1, 43, 199, 303, 200, -1, 44, 199, 303, 200, + -1, 45, 199, 303, 205, 303, 205, 303, 200, -1, + 40, 233, 306, 234, -1, 52, 233, 303, 234, -1, + 53, 233, 303, 234, -1, 54, 233, 303, 234, -1, + 51, 233, 290, 205, 304, 205, 304, 234, -1, 41, + 233, 303, 234, -1, 41, 233, 303, 205, 299, 234, + -1, 60, 233, 303, 234, -1, 61, -1, 47, 233, + 303, 234, -1, 46, 233, 303, 234, -1, -1, 75, + 233, 304, 305, 246, 234, -1, 303, -1, 306, 205, + 303, -1, 4, 208, 206, 290, 207, -1, 307, 208, + 206, 290, 207, -1, 4, -1, 307, -1, 175, 201, + 303, 202, -1 +}; + +/* YYRLINE[YYN] -- source line where rule number YYN was defined. */ static const yytype_uint16 yyrline[] = { 0, 199, 199, 200, 205, 207, 211, 212, 213, 214, @@ -786,31 +1319,31 @@ static const yytype_uint16 yyrline[] = 3993, 3999, 4003, 4007, 4011, 4015, 4034, 4047, 4050, 4066, 4069, 4086, 4089, 4095, 4098, 4105, 4108, 4115, 4171, 4241, 4246, 4313, 4349, 4357, 4400, 4439, 4459, 4491, 4518, 4544, - 4570, 4596, 4622, 4644, 4672, 4700, 4704, 4708, 4736, 4775, - 4814, 4835, 4856, 4883, 4887, 4897, 4932, 4933, 4934, 4938, - 4944, 4956, 4974, 5002, 5003, 5004, 5005, 5006, 5007, 5008, - 5009, 5010, 5017, 5018, 5019, 5020, 5021, 5022, 5023, 5024, - 5025, 5026, 5027, 5028, 5029, 5030, 5031, 5032, 5033, 5034, - 5035, 5036, 5037, 5038, 5039, 5040, 5041, 5042, 5043, 5044, - 5045, 5046, 5047, 5048, 5049, 5058, 5059, 5060, 5061, 5062, - 5063, 5064, 5065, 5066, 5067, 5068, 5073, 5072, 5080, 5085, - 5090, 5107, 5125, 5143, 5161, 5179, 5184, 5190, 5205, 5222, - 5240, 5258, 5276, 5297, 5302, 5307, 5317, 5327, 5332, 5343, - 5352, 5357, 5384, 5388, 5392, 5396, 5400, 5407, 5411, 5415, - 5419, 5426, 5431, 5438, 5443, 5447, 5452, 5456, 5464, 5475, - 5479, 5491, 5499, 5507, 5514, 5524, 5553, 5557, 5561, 5565, - 5569, 5573, 5577, 5581, 5585, 5614, 5643, 5672, 5701, 5714, - 5727, 5740, 5753, 5763, 5773, 5785, 5798, 5810, 5814, 5818, - 5822, 5826, 5844, 5865, 5870, 5874, 5878, 5890, 5894, 5906, - 5923, 5933, 5937, 5952, 5957, 5964, 5968, 5981, 5995, 6009, - 6023, 6037, 6045, 6056, 6060, 6064, 6072, 6078, 6084, 6092, - 6100, 6107, 6115, 6130, 6144, 6158, 6170, 6186, 6195, 6204, - 6214, 6225, 6229, 6248, 6255, 6261, 6268, 6276, 6275, 6288, - 6293, 6299, 6308, 6321, 6324, 6328 + 4570, 4596, 4622, 4644, 4672, 4700, 4704, 4733, 4761, 4800, + 4839, 4860, 4881, 4908, 4912, 4922, 4957, 4958, 4959, 4963, + 4969, 4981, 4999, 5027, 5028, 5029, 5030, 5031, 5032, 5033, + 5034, 5035, 5042, 5043, 5044, 5045, 5046, 5047, 5048, 5049, + 5050, 5051, 5052, 5053, 5054, 5055, 5056, 5057, 5058, 5059, + 5060, 5061, 5062, 5063, 5064, 5065, 5066, 5067, 5068, 5069, + 5070, 5071, 5072, 5073, 5074, 5083, 5084, 5085, 5086, 5087, + 5088, 5089, 5090, 5091, 5092, 5093, 5098, 5097, 5105, 5110, + 5115, 5132, 5150, 5168, 5186, 5204, 5209, 5215, 5230, 5247, + 5265, 5283, 5301, 5322, 5327, 5332, 5342, 5352, 5357, 5368, + 5377, 5382, 5409, 5413, 5417, 5421, 5425, 5432, 5436, 5440, + 5444, 5451, 5456, 5463, 5468, 5472, 5477, 5481, 5489, 5500, + 5504, 5516, 5524, 5532, 5539, 5549, 5578, 5582, 5586, 5590, + 5594, 5598, 5602, 5606, 5610, 5639, 5668, 5697, 5726, 5739, + 5752, 5765, 5778, 5788, 5798, 5810, 5823, 5835, 5839, 5843, + 5847, 5851, 5869, 5890, 5895, 5899, 5903, 5915, 5919, 5931, + 5948, 5958, 5962, 5977, 5982, 5989, 5993, 6006, 6020, 6034, + 6048, 6062, 6070, 6081, 6085, 6089, 6097, 6103, 6109, 6117, + 6125, 6132, 6140, 6155, 6169, 6183, 6195, 6211, 6220, 6229, + 6239, 6250, 6254, 6273, 6280, 6286, 6293, 6301, 6300, 6313, + 6318, 6324, 6333, 6346, 6349, 6353 }; #endif -#if YYDEBUG || YYERROR_VERBOSE || 0 +#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. First, the terminals, then, starting at YYNTOKENS, nonterminals. */ static const char *const yytname[] = @@ -847,38 +1380,38 @@ static const char *const yytname[] = "tGetStringValue", "tGetEnv", "tGetString", "tGetNumber", "tHomology", "tCohomology", "tBetti", "tExists", "tFileExists", "tGMSH_MAJOR_VERSION", "tGMSH_MINOR_VERSION", "tGMSH_PATCH_VERSION", "tGmshExecutableName", - "tSetPartition", "tNameToString", "tStringToName", "tAFFECTPLUS", - "tAFFECTMINUS", "tAFFECTTIMES", "tAFFECTDIVIDE", "'?'", "tOR", "tAND", - "tEQUAL", "tNOTEQUAL", "'<'", "tLESSOREQUAL", "'>'", "tGREATEROREQUAL", - "'+'", "'-'", "'*'", "'/'", "'%'", "'!'", "tPLUSPLUS", "tMINUSMINUS", - "UNARYPREC", "'^'", "'('", "')'", "'['", "']'", "'.'", "'#'", "','", + "tSetPartition", "tNameToString", "tStringToName", "tAFFECTDIVIDE", + "tAFFECTTIMES", "tAFFECTMINUS", "tAFFECTPLUS", "'?'", "tOR", "tAND", + "tNOTEQUAL", "tEQUAL", "'<'", "'>'", "tGREATEROREQUAL", "tLESSOREQUAL", + "'+'", "'-'", "'*'", "'/'", "'%'", "'!'", "UNARYPREC", "tMINUSMINUS", + "tPLUSPLUS", "'^'", "'('", "')'", "'['", "']'", "'.'", "'#'", "','", "'{'", "'}'", "'~'", "$accept", "All", "GeoFormatItems", "GeoFormatItem", "SendToFile", "Printf", "View", "Views", "ElementCoords", - "ElementValues", "Element", "$@1", "$@2", "Text2DValues", "Text2D", - "$@3", "Text3DValues", "Text3D", "$@4", "InterpolationMatrix", "Time", - "$@5", "NumericAffectation", "NumericIncrement", "LP", "RP", - "Affectation", "Comma", "DefineConstants", "$@6", "$@7", "$@8", "$@9", - "UndefineConstants", "Enumeration", "FloatParameterOptions", - "FloatParameterOption", "CharParameterOptions", "CharParameterOption", - "PhysicalId0", "PhysicalId1", "PhysicalId2", "PhysicalId3", - "InSphereCenter", "CircleOptions", "Shape", "Transform", "MultipleShape", - "ListOfShapes", "LevelSet", "Delete", "Colorify", "SetPartition", - "Visibility", "Command", "Loop", "Extrude", "$@10", "$@11", "$@12", - "$@13", "$@14", "$@15", "$@16", "$@17", "$@18", "$@19", "$@20", "$@21", - "$@22", "ExtrudeParameters", "ExtrudeParameter", "TransfiniteType", - "TransfiniteArrangement", "TransfiniteCorners", "RecombineAngle", - "PeriodicTransform", "Constraints", "Coherence", "HomologyCommand", - "Homology", "FExpr", "FExpr_Single", "$@23", "VExpr", "VExpr_Single", + "ElementValues", "Element", "@1", "@2", "Text2DValues", "Text2D", "@3", + "Text3DValues", "Text3D", "@4", "InterpolationMatrix", "Time", "@5", + "NumericAffectation", "NumericIncrement", "LP", "RP", "Affectation", + "Comma", "DefineConstants", "@6", "@7", "@8", "@9", "UndefineConstants", + "Enumeration", "FloatParameterOptions", "FloatParameterOption", + "CharParameterOptions", "CharParameterOption", "PhysicalId0", + "PhysicalId1", "PhysicalId2", "PhysicalId3", "InSphereCenter", + "CircleOptions", "Shape", "Transform", "MultipleShape", "ListOfShapes", + "LevelSet", "Delete", "Colorify", "SetPartition", "Visibility", + "Command", "Loop", "Extrude", "@10", "@11", "@12", "@13", "@14", "@15", + "@16", "@17", "@18", "@19", "@20", "@21", "@22", "ExtrudeParameters", + "ExtrudeParameter", "TransfiniteType", "TransfiniteArrangement", + "TransfiniteCorners", "RecombineAngle", "PeriodicTransform", + "Constraints", "Coherence", "HomologyCommand", "Homology", "FExpr", + "FExpr_Single", "@23", "VExpr", "VExpr_Single", "RecursiveListOfListOfDouble", "ListOfDouble", "ListOfDoubleOrAll", "FExpr_Multi", "RecursiveListOfDouble", "ColorExpr", "ListOfColor", - "RecursiveListOfColor", "StringExprVar", "StringExpr", "$@24", - "RecursiveListOfStringExprVar", "StringIndex", "String__Index", YY_NULLPTR + "RecursiveListOfColor", "StringExprVar", "StringExpr", "@24", + "RecursiveListOfStringExprVar", "StringIndex", "String__Index", 0 }; #endif # ifdef YYPRINT -/* YYTOKNUM[NUM] -- (External) token number corresponding to the - (internal) symbol number NUM (which must be that of a token). */ +/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to + token YYLEX-NUM. */ static const yytype_uint16 yytoknum[] = { 0, 256, 257, 258, 259, 260, 261, 262, 263, 264, @@ -899,230 +1432,137 @@ static const yytype_uint16 yytoknum[] = 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, - 63, 435, 436, 437, 438, 60, 439, 62, 440, 43, + 63, 435, 436, 437, 438, 60, 62, 439, 440, 43, 45, 42, 47, 37, 33, 441, 442, 443, 94, 40, 41, 91, 93, 46, 35, 44, 123, 125, 126 }; # endif -#define YYPACT_NINF -1620 - -#define yypact_value_is_default(Yystate) \ - (!!((Yystate) == (-1620))) - -#define YYTABLE_NINF -523 - -#define yytable_value_is_error(Yytable_value) \ - 0 +/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ +static const yytype_uint16 yyr1[] = +{ + 0, 209, 210, 210, 211, 211, 212, 212, 212, 212, + 212, 212, 212, 212, 212, 212, 212, 212, 212, 212, + 212, 212, 213, 213, 214, 214, 214, 214, 214, 214, + 215, 215, 215, 215, 216, 216, 216, 216, 216, 216, + 217, 217, 218, 218, 220, 221, 219, 222, 222, 224, + 223, 225, 225, 227, 226, 228, 228, 230, 229, 231, + 231, 231, 231, 231, 232, 232, 233, 233, 234, 234, + 235, 235, 235, 235, 235, 235, 235, 235, 235, 235, + 235, 235, 235, 235, 235, 235, 235, 235, 235, 235, + 235, 235, 235, 235, 235, 235, 235, 235, 235, 235, + 235, 235, 235, 235, 235, 235, 235, 235, 235, 235, + 235, 235, 235, 235, 235, 235, 235, 235, 235, 235, + 235, 236, 236, 237, 237, 237, 238, 237, 239, 237, + 240, 237, 237, 241, 237, 242, 242, 243, 243, 243, + 244, 244, 245, 245, 245, 246, 246, 247, 247, 247, + 247, 248, 248, 248, 249, 249, 249, 250, 250, 250, + 251, 251, 251, 252, 252, 253, 253, 254, 254, 254, + 254, 254, 254, 254, 254, 254, 254, 254, 254, 254, + 254, 254, 254, 254, 254, 254, 254, 254, 254, 254, + 254, 254, 254, 254, 254, 254, 254, 254, 254, 255, + 255, 255, 255, 255, 255, 255, 255, 256, 256, 257, + 257, 257, 257, 257, 257, 258, 258, 258, 258, 258, + 258, 258, 258, 258, 259, 259, 259, 259, 259, 260, + 260, 261, 262, 262, 262, 262, 262, 262, 263, 263, + 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, + 263, 263, 263, 263, 263, 263, 263, 264, 264, 264, + 264, 264, 264, 264, 264, 264, 264, 264, 264, 264, + 264, 265, 265, 265, 266, 265, 267, 265, 268, 265, + 269, 265, 265, 265, 265, 265, 265, 265, 265, 265, + 265, 270, 265, 271, 265, 272, 265, 273, 265, 274, + 265, 275, 265, 276, 265, 277, 265, 278, 265, 279, + 279, 280, 280, 280, 280, 280, 280, 280, 280, 280, + 280, 280, 280, 280, 280, 280, 280, 281, 281, 282, + 282, 283, 283, 284, 284, 285, 285, 286, 286, 286, + 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, + 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, + 286, 286, 286, 287, 287, 287, 288, 288, 288, 289, + 289, 289, 289, 290, 290, 290, 290, 290, 290, 290, + 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, + 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, + 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, + 290, 290, 290, 290, 290, 291, 291, 291, 291, 291, + 291, 291, 291, 291, 291, 291, 292, 291, 291, 291, + 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, + 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, + 291, 291, 293, 293, 293, 293, 293, 294, 294, 294, + 294, 295, 295, 296, 296, 296, 296, 296, 296, 297, + 297, 298, 298, 298, 298, 298, 298, 298, 298, 298, + 298, 298, 298, 298, 298, 298, 298, 298, 298, 298, + 298, 298, 298, 298, 298, 298, 298, 298, 298, 298, + 298, 298, 298, 299, 299, 299, 299, 300, 300, 300, + 300, 301, 301, 302, 302, 303, 303, 303, 303, 303, + 303, 303, 303, 304, 304, 304, 304, 304, 304, 304, + 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, + 304, 304, 304, 304, 304, 304, 304, 305, 304, 306, + 306, 307, 307, 308, 308, 308 +}; - /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing - STATE-NUM. */ -static const yytype_int16 yypact[] = +/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ +static const yytype_uint8 yyr2[] = { - 9182, 34, 58, 9304, -1620, -1620, 3998, 56, -60, -124, - -84, 44, 120, 130, 297, 314, 68, 396, 400, -98, - 194, -113, -113, -153, 215, 226, 17, 236, 278, 24, - 292, 310, 359, 462, 465, 526, 382, 414, 513, 543, - 545, 544, 514, 688, 337, 468, 566, -40, 496, -92, - -92, 527, 381, 22, 449, 668, 686, 29, 53, 713, - 723, 422, 806, 820, 834, 5639, 843, 634, 635, 652, - 37, 2, -1620, 661, 670, -1620, -1620, 867, 875, 655, - -1620, 5518, 5915, -4, 12, -1620, -1620, -1620, 9042, 681, - -1620, -1620, -1620, -1620, -1620, -1620, -1620, -1620, -1620, -1620, - -1620, -1620, -1620, -1620, -1620, -1620, 45, -1620, 97, 98, - -1620, 6, -1620, -1620, -1620, -1620, -1620, -113, -113, -113, - -113, -113, -113, -113, -113, -113, -113, -113, -113, -113, - -113, -113, -113, -113, -113, -113, -113, -113, -113, -113, - -113, -113, 689, 694, 700, -113, -113, 707, 712, 716, - -113, -113, -113, -113, 720, -1620, -113, -1620, -1620, -1620, - -1620, -1620, -113, -113, 903, 724, 725, 732, -113, -113, - 738, 743, -1620, -1620, -1620, -1620, 750, 9042, 9042, 9042, - 8465, 8526, 27, 28, 305, 754, 755, 175, -1620, 773, - 951, 141, -130, 982, 9042, 5722, 5722, -1620, 9042, -1620, - -1620, -1620, -1620, 5722, -1620, -1620, -1620, -1620, -1620, -1620, - 6113, 28, 9042, 8273, 9042, 9042, 786, 9042, 8273, 9042, - 9042, 790, 8273, 9042, 9042, 6035, 805, 799, -1620, 8273, - 5639, 5639, 5639, 811, 814, 5639, 5639, 5639, 815, 832, - 851, 863, 892, 6233, 6431, 6629, 837, 1688, 1024, 6035, - 37, 886, 889, -92, -92, -92, 9042, 9042, -129, -1620, - -116, -92, 899, 914, 925, 8015, -69, -150, 942, 949, - 958, 5639, 5639, 6035, 962, 5, 959, -1620, 957, 1169, - 1173, -1620, 1006, 1007, 1018, 5639, 5639, 1020, 1045, 1049, - 144, -1620, 323, 31, 20, 33, 40, 698, 6827, 9042, - 4575, -1620, -1620, 1832, -1620, 1222, -1620, 538, 91, 1250, - 9042, 9042, 9042, 143, 9042, 1053, -1620, 1117, 9042, 9042, - 9042, -1620, -1620, 9042, 1055, 1259, 1262, -1620, -1620, 1264, - -1620, 1265, -1620, 463, 5203, 560, 5722, -1620, 6035, 6035, - 8723, 8784, 1063, 1068, 6113, -1620, -1620, -1620, -1620, -1620, - -1620, 6035, 1272, 1082, 9042, 9042, 1280, 9042, 9042, 9042, - 9042, 9042, 9042, 9042, 9042, 9042, 9042, 9042, 9042, 9042, - 9042, 9042, 9042, 9042, 9042, 9042, 9042, 9042, 9042, 5722, - 5722, 5722, 5722, 5722, 5722, 5722, 5722, 6035, 5722, 5722, - 9042, 5722, 5722, 5722, 5722, 5722, 9042, 6113, 9042, 5722, - 5722, 5722, 5722, 5722, 28, 6113, 28, 1087, 1087, 1087, - 272, 3763, 308, 8490, 112, 1088, 1283, -113, 1089, -1620, - 1086, 4389, 9042, 8273, -1620, 9042, 9042, 9042, 9042, 9042, - 9042, 9042, 9042, 9042, 9042, 9042, 9042, 9042, 9042, 9042, - -1620, -1620, 9042, 9042, -1620, -1620, 430, 504, 355, -1620, - 563, -1620, 363, 9802, -1620, 478, 129, 313, 1093, 1094, - 11343, 8273, 3934, -1620, 340, 11364, 11385, 9042, 11406, 448, - 11427, 11448, 9042, 479, 11469, 11490, 1290, 9042, 9042, 599, - 1294, 1295, 1296, 9042, 9042, 1297, 1298, 1298, 9042, 8081, - 8081, 8081, 8081, 9042, 1300, 9042, 1301, 9042, 1302, 8273, - 8273, 9748, 1110, 1306, 1107, -1620, -1620, 127, -1620, -1620, - 9828, 9854, -92, -92, 305, 305, 132, 9042, 9042, 9042, - 8015, 8015, 9042, 4389, 136, -1620, 9042, 9042, 9042, 9042, - 9042, 1307, 1311, 1312, 9042, 1317, 9042, 9042, 1263, -1620, - -1620, 8273, 8273, 8273, 1318, 1319, 9042, 9042, 9042, 9042, - 9042, 1314, 169, 7025, 7223, -1620, 1270, 9042, -1620, 1271, - -1620, 1273, -1620, 1279, 32, 39, 42, 43, 8273, 1087, - -1620, 11511, -1620, 639, 9042, 7421, -1620, 9042, 9042, 261, - -1620, 11532, 11553, 11574, 1186, 9880, -1620, 1127, 4027, 11595, - 11616, 8748, -1620, -1620, -1620, 1448, -1620, 2236, 9042, 9042, - -1620, 9042, 9042, 1138, 1153, 645, 365, 11637, 380, 10998, - 9042, 8273, 1348, 1349, -1620, 9042, 11658, 11021, -73, 7977, - 7977, 7977, 7977, 7977, 7977, 7977, 7977, 7977, 7977, 7977, - 9906, 7977, 7977, 7977, 7977, 7977, 7977, 7977, 9932, 9958, - 9984, 578, 640, 578, 1156, 1159, 1158, 615, 615, 1163, - 1166, 1167, 10010, 615, 615, 615, 517, 615, 12204, -1620, - 1017, 1168, 1170, 1165, 657, 672, 1174, 1176, 1175, 1339, - 1341, 6035, 123, 1342, 1345, 6035, 77, 6113, 9042, 1380, - 1383, 25, 615, -1620, -100, 18, 30, -74, -1620, 2670, - 658, 4046, 1790, 1740, 1369, 1369, 610, 610, 610, 610, - 638, 638, 1087, 1087, 1087, 1087, 64, 11679, 11044, -1620, - 9042, 9042, 1384, 7, 8273, 9042, 9042, 1385, 8273, 9042, - 1386, 5722, 1388, -1620, 28, 1389, 5722, 9042, 6113, 1400, - 8273, 8273, 1245, 1401, 1403, 11700, 1404, 1267, 1406, 1407, - 11721, 1281, 1408, 1409, 9042, 11742, 4718, 1219, -1620, -1620, - -1620, 11763, 11784, 9042, 6035, 1423, 1425, 11805, 1239, 12204, - 1235, 1241, 12204, 1237, 1246, 12204, 1240, 1248, 12204, 1244, - 11826, -1620, 11847, -1620, 11868, -1620, 673, 702, 8273, 1252, - -1620, -1620, 2372, 2534, -92, 9042, 9042, -1620, -1620, 1249, - 1255, 8015, 10036, 10062, 10088, 3806, 1375, -92, 2817, 11889, - 4916, 11910, 11931, 11952, 9042, 1445, -1620, 9042, 11973, -1620, - 11067, 11090, -1620, 711, 727, 736, -1620, -1620, 11113, 11136, - 10114, 11994, 11159, 91, -1620, -1620, 8273, -1620, 8273, 3934, - 1253, 8273, 1257, 235, 1251, 5344, 1258, 1274, 1275, -1620, - 8273, -1620, 8273, -1620, 8273, -1620, 8273, 751, -1620, -1620, - 4069, 8273, 1087, -1620, 12015, 11182, 8273, -1620, 1456, 1462, - 1470, 1276, 9042, 2932, 9042, 9042, -1620, -1620, 8, -1620, - -1620, 2959, -1620, 1285, 6035, 1476, 1443, 1446, 6035, 123, - 1453, 1454, 6035, 123, 6171, 763, -1620, -1620, 11205, 248, - 429, -1620, -1620, -1620, -1620, -1620, -1620, -1620, -1620, -1620, - -1620, -1620, -1620, 9042, -1620, -1620, -1620, -1620, -1620, -1620, - -1620, 9042, 9042, 9042, -1620, 8273, -1620, -1620, -1620, -1620, - 5722, -1620, -1620, 6035, 5722, 5722, 6113, -1620, -1620, -1620, - -1620, -1620, -1620, -1620, -1620, 9042, 5722, -1620, 5722, -1620, - 9042, -1620, -1620, -1620, -1620, -113, -113, 1479, -1620, 9042, - 1492, -113, -113, 1493, 187, 9042, 1494, 1502, 1607, -1620, - 1503, 1313, 37, 1506, -1620, 8273, 8273, 8273, 8273, -1620, - 615, 9042, -1620, 1310, 1320, 1315, -1620, 1507, -1620, -1620, - -1620, -1620, -1620, 260, 390, 12036, 11228, -1620, -1620, 1329, - 5722, 558, 12057, 11251, -1620, 621, 10140, -1620, -1620, -1620, - 63, -1620, -1620, 7977, 615, -92, 3934, -1620, 885, 6035, - 6035, 1513, 6035, 890, 6035, 6035, 1515, 1437, 6035, 6035, - 1646, 1517, 1518, 8273, 1529, 1531, 2089, -1620, -1620, 1533, - -1620, 1537, 397, 9042, 397, 9042, 397, 9042, 397, 9042, - 1541, 1542, 1543, 1545, 1556, 770, 1536, 3179, -1620, -1620, - 204, 10166, 10192, -1620, -1620, 6369, -94, -92, -92, -92, - 1561, 8981, 1360, 1562, 1374, 49, 162, 180, 275, 553, - -1620, 227, -1620, 1375, 1567, 1572, 1577, 1581, 1582, 12204, - -1620, 1906, 1373, 1584, 1589, 1590, 1520, 1594, 1596, 1599, - 9042, 91, -68, 775, 779, -1620, 822, -1620, -1620, 9042, - -1620, 9042, 9042, 9042, 829, 830, 844, 849, -1620, 9042, - 850, 91, 91, 853, 6035, 6035, 6035, 1602, 10218, -1620, - 4130, 1481, 1603, 1604, -1620, 6035, 1402, -1620, -113, -113, - 1605, 9042, 1606, -113, -113, 1608, 9042, 1609, -1620, 615, - 1611, -1620, 1614, -1620, 1615, 7977, 7977, 7977, 7977, 692, - 1405, 1420, 1426, 1427, 1418, 696, 703, 12078, 1428, 615, - 7977, 1092, 5722, -1620, 1951, -1620, 1092, 5722, -1620, 250, - 1422, 1623, 2160, -1620, -1620, -1620, 37, 9042, -1620, 854, - -1620, 858, 876, 879, 882, 397, 12204, 1432, 9042, 9042, - 6035, 1429, -1620, -1620, -1620, -1620, 1431, -1620, 1626, 74, - -1620, -1620, 1630, 9042, 5176, 1439, 1435, 1638, 1645, -2, - 1447, 1451, 1560, 1560, 6035, 1652, 1477, 1478, 1654, 1671, - 6035, 1480, 1676, 1679, -1620, 1682, 6035, 883, 6035, 6035, - 1684, 1683, -1620, 6035, 6035, 12204, 6035, 12204, 6035, 12204, - 6035, 12204, 6035, 6035, 6035, 1484, 1488, 1689, 306, -1620, - 9042, 9042, 9042, 1489, 1495, -126, -118, -96, 1499, -1620, - 2373, 6035, -1620, 9042, -1620, 1719, -1620, 1720, -1620, 1721, - -1620, 1724, -1620, -1620, 8015, 628, 5837, -1620, 1525, 1526, - 7619, -1620, 8273, -1620, -1620, -1620, 1527, 9042, -1620, -1620, - 11274, 1730, 615, 1535, 1538, 10244, 10270, 10296, 10322, -1620, - -1620, -1620, -1620, 12204, -1620, 615, 1733, 1735, 1601, -1620, - 9042, 9042, 9042, -1620, 1738, 737, 1540, 1741, 1092, 5722, - -1620, 2494, -1620, 1092, 5722, -1620, 2743, -1620, 397, -1620, - 438, -1620, -1620, -1620, -1620, -1620, -1620, 5722, -1620, -1620, - -1620, 6113, 1742, -1620, -1620, 19, -1620, -1620, -1620, -1620, - -1620, -1620, 1743, 578, 578, -1620, 1744, 578, 578, 6113, - 9042, 1745, 1748, 25, -1620, 1747, 11297, 37, -1620, 1751, - 1752, 1753, 1754, 6035, 9042, 10348, 10374, 893, -1620, 9042, - 1757, -1620, -1620, 5722, -1620, 10400, 4780, 12204, -1620, 1756, - 1758, -1620, -1620, -1620, 9042, 9042, -92, 1760, 1761, 1762, - -1620, 9042, 9042, -1620, -1620, 1764, 9042, -1620, -1620, 1759, - 1765, 1566, 1767, 1629, 9042, -1620, 1770, 1771, 1772, 1773, - 1774, 1776, 1100, 1777, 8273, 8273, 9042, -1620, 8081, 6567, - 12099, 4149, 305, 305, -92, 1778, -92, 1779, -92, 1795, - 9042, -1620, 810, 1597, 12120, -1620, -1620, -1620, -1620, 6765, - 234, -1620, 1797, 4348, 1798, 6035, -92, 4348, 1800, 909, - 9042, 3045, 1801, 91, -1620, -1620, -1620, 9042, 9042, 9042, - 9042, -1620, -1620, -1620, 6035, 4376, 887, 12141, -1620, -1620, - 5243, 6035, -1620, 1802, 578, 578, -1620, 1804, 578, 578, - -1620, 6035, -1620, 1612, 615, 4978, 5441, 6113, -1620, 1807, - 1808, -1620, 1809, 1810, 1811, 3261, -1620, 1812, 1814, -1620, - 1618, -1620, -1620, -1620, -1620, -1620, 1816, 627, 12204, 9042, - 9042, 6035, 1617, 910, 12204, -1620, 1818, 9042, -1620, -1620, - 1635, 1636, 6963, 7161, 596, -1620, -1620, -1620, 7359, 7557, - -1620, 7755, 1813, -1620, 6035, -1620, 1763, 1837, 12204, -1620, - -1620, -1620, -1620, -1620, -1620, 1640, -1620, -1620, 916, 919, - 9775, 3552, 1842, 1643, -1620, 9042, -1620, 1647, 1653, 252, - -1620, 1644, 289, -1620, 1655, 347, -1620, 1656, 11320, 1846, - 6035, 1862, 1664, 9042, -1620, 7817, 364, -1620, 922, 377, - 389, -1620, 1847, 8211, -1620, -1620, 10426, 10452, 10478, 10504, - 1731, 9042, -1620, 9042, -1620, -1620, 8273, 3646, 1866, 1666, - -1620, 1868, 1870, -1620, 1874, 1877, 1878, -1620, -1620, 4575, - -1620, -1620, 5722, 12204, -1620, -1620, -1620, -1620, -1620, -1620, - -1620, -1620, 37, -1620, 1750, -1620, -1620, 9042, 10530, 10556, - -1620, 6035, 9042, 1882, -1620, 10582, -1620, -1620, 6035, 6035, - 1884, 1885, 1890, 1891, 1892, 1897, 923, 1707, -1620, 6035, - 620, 636, 8273, -1620, -1620, 305, 4513, -1620, -1620, 8015, - 1375, 8015, 1375, 8015, 1375, 1908, -1620, 935, 6035, -1620, - 8422, -92, 1909, 8273, -92, -1620, -1620, 9042, 9042, 9042, - 9042, 9042, 8680, 8938, 961, -1620, -1620, 1911, -1620, -1620, - -1620, -1620, -1620, 964, 3340, 1912, 965, 1914, -1620, 1712, - 12204, 9042, 9042, 969, 12204, -1620, 9042, 973, 978, -1620, - -1620, -1620, -1620, -1620, -1620, -1620, -1620, 1715, 9042, 979, - 1729, -92, 6035, 1930, 1734, -92, 1931, 984, 1746, 9042, - -1620, 9300, 394, 669, 9328, 480, 826, 9356, 487, 918, - -1620, 6035, 1936, 1844, 3468, 1749, 499, -1620, 985, 501, - 10608, 10634, 10660, 10686, 3665, -1620, -1620, 1941, -1620, 9042, - -1620, 6113, 28, -1620, -1620, 9042, 12162, 10712, 46, 10738, - -1620, -1620, -1620, -1620, 9042, 9384, 1943, -92, 76, -1620, - -1620, -92, 95, -1620, 1945, -1620, 9412, 1948, 9042, 1950, - 1952, 9042, 1953, 1954, 9042, 1955, 1755, -1620, 9042, -1620, - 1375, -1620, 8273, 1957, 7817, 9042, 9042, 9042, 9042, -1620, - -1620, 3785, -1620, 1768, 989, -1620, 9042, -1620, 6035, 9042, - 1011, 1015, 10764, -1620, -1620, 505, -1620, 508, -1620, -1620, - -1620, -1620, 1783, 9440, -1620, -1620, 1784, 9468, -1620, -1620, - 1785, 9496, -1620, 1958, 3740, 981, 3505, 1022, -1620, 511, - 1027, 10790, 10816, 10842, 10868, 6113, 1766, 1964, 1786, 12183, - 1031, 9524, -1620, -1620, 9042, -92, -92, 1375, 1978, 1375, - 1987, 1375, 1988, -1620, -1620, -1620, -1620, 1375, 1989, 8273, - 1990, 9042, 9042, 9042, 9042, -1620, -1620, -1620, 5722, -1620, - 1794, 1996, 9552, 519, 530, 1160, -1620, 1803, 1210, -1620, - 1805, 1277, -1620, 1825, 1308, -1620, 1037, -1620, 10894, 10920, - 10946, 10972, 1038, -1620, 1826, 6035, -1620, 1997, 9042, 9042, - 1998, 1375, 2002, 1375, 2027, 1375, -1620, 2028, 9042, 9042, - 9042, 9042, 5722, 2029, 5722, 1044, -1620, 9580, 9608, -1620, - 1346, -1620, 1471, -1620, 1521, -1620, 9636, 9664, 9692, 9720, - -1620, -1620, 1050, -1620, 2030, 2031, 2032, 2033, 2034, 2037, - -1620, -1620, -1620, -1620, 5722, 2060, -1620, -1620, -1620, -1620, - -1620, -1620, -1620, -1620 + 0, 2, 1, 2, 0, 2, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 2, 5, 5, 7, 7, 7, 9, + 6, 6, 6, 8, 0, 2, 2, 2, 2, 2, + 1, 3, 1, 3, 0, 0, 10, 1, 3, 0, + 13, 1, 3, 0, 15, 8, 14, 0, 6, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 5, 5, 7, 7, 4, 3, 6, 6, 7, 7, + 6, 6, 9, 9, 6, 6, 7, 7, 6, 6, + 4, 8, 8, 9, 9, 9, 9, 8, 8, 9, + 9, 9, 9, 6, 9, 6, 9, 5, 8, 8, + 11, 6, 9, 5, 7, 9, 9, 11, 7, 9, + 9, 0, 1, 0, 3, 5, 0, 9, 0, 11, + 0, 11, 5, 0, 9, 0, 3, 3, 5, 5, + 0, 2, 3, 5, 3, 0, 2, 3, 3, 3, + 5, 1, 1, 3, 1, 1, 3, 1, 1, 3, + 1, 1, 3, 0, 5, 0, 2, 7, 8, 6, + 7, 4, 7, 8, 8, 7, 7, 11, 8, 4, + 8, 8, 8, 9, 3, 4, 10, 7, 7, 8, + 4, 8, 12, 8, 8, 7, 4, 8, 8, 5, + 11, 5, 9, 9, 4, 9, 9, 1, 1, 0, + 2, 6, 6, 6, 6, 8, 10, 14, 16, 12, + 8, 8, 6, 14, 4, 6, 6, 3, 4, 5, + 6, 5, 3, 3, 4, 5, 4, 5, 3, 5, + 7, 7, 3, 7, 3, 2, 2, 2, 2, 2, + 15, 2, 2, 2, 2, 2, 16, 6, 8, 8, + 10, 1, 2, 2, 1, 3, 3, 4, 4, 1, + 1, 5, 11, 13, 0, 7, 0, 13, 0, 15, + 0, 6, 8, 8, 8, 12, 12, 12, 14, 14, + 14, 0, 12, 0, 12, 0, 12, 0, 16, 0, + 16, 0, 16, 0, 18, 0, 18, 0, 18, 1, + 2, 5, 7, 9, 2, 2, 3, 2, 3, 2, + 3, 2, 3, 2, 3, 9, 6, 0, 3, 0, + 1, 0, 2, 0, 2, 0, 2, 7, 6, 8, + 5, 3, 8, 5, 4, 6, 11, 11, 18, 18, + 12, 12, 12, 10, 10, 10, 10, 10, 4, 4, + 4, 4, 4, 2, 3, 6, 1, 1, 1, 2, + 5, 7, 10, 1, 3, 2, 2, 2, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 3, 3, 5, 4, 4, 4, 4, 4, 4, 4, + 4, 4, 4, 6, 4, 4, 4, 4, 4, 4, + 4, 6, 6, 6, 4, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 0, 6, 4, 6, + 1, 4, 4, 4, 4, 4, 4, 4, 2, 5, + 5, 5, 5, 3, 6, 4, 7, 6, 6, 6, + 6, 4, 1, 2, 2, 3, 3, 11, 9, 7, + 7, 1, 3, 1, 1, 2, 3, 4, 5, 1, + 1, 2, 3, 3, 5, 4, 2, 2, 2, 2, + 3, 3, 3, 3, 5, 5, 5, 5, 16, 16, + 16, 16, 1, 1, 3, 3, 4, 4, 4, 6, + 6, 6, 6, 1, 1, 3, 3, 9, 7, 1, + 5, 3, 6, 1, 3, 1, 1, 4, 4, 4, + 4, 3, 6, 1, 4, 1, 1, 1, 4, 6, + 4, 6, 4, 4, 4, 8, 4, 4, 4, 4, + 8, 4, 6, 4, 1, 4, 4, 0, 6, 1, + 3, 5, 5, 1, 1, 4 }; - /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM. - Performed when YYTABLE does not specify something else to do. Zero - means the default is an error. */ +/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state + STATE-NUM when YYTABLE doesn't specify something else to do. Zero + means the default is an error. */ static const yytype_uint16 yydefact[] = { 0, 0, 0, 2, 3, 1, 553, 0, 0, 0, @@ -1159,8 +1599,8 @@ static const yytype_uint16 yydefact[] = 0, 0, 0, 553, 0, 0, 509, 0, 0, 0, 0, 245, 246, 0, 553, 0, 0, 262, 263, 0, 209, 0, 209, 553, 0, 554, 0, 369, 0, 0, - 66, 67, 0, 0, 59, 60, 61, 62, 63, 64, - 65, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 66, 67, 0, 0, 59, 63, 62, 61, 60, 65, + 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, @@ -1194,7 +1634,7 @@ static const yytype_uint16 yydefact[] = 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 60, 0, 374, 59, 60, 0, 0, 59, 0, 0, 0, 0, 0, 204, 0, 0, 0, 0, 210, 0, - 0, 0, 391, 390, 388, 389, 384, 386, 385, 387, + 0, 0, 391, 390, 389, 388, 384, 385, 387, 386, 379, 378, 380, 381, 382, 383, 0, 0, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 122, 0, 0, 0, 0, 0, 0, @@ -1326,22 +1766,7 @@ static const yytype_uint16 yydefact[] = 306, 308, 52, 54 }; - /* YYPGOTO[NTERM-NUM]. */ -static const yytype_int16 yypgoto[] = -{ - -1620, -1620, -1620, -1620, 868, -1620, -1620, -1620, -1620, 293, - -1620, -1620, -1620, -1620, -1620, -1620, -1620, -1620, -1620, -1620, - -1620, -1620, -302, -70, 21, 3143, -1620, 1616, -1620, -1620, - -1620, -1620, -1620, -1620, -1620, -1619, -1620, 424, -1620, -1620, - -1620, -1620, -1620, -1620, 856, 2071, 11, -503, -247, -1620, - -1620, -1620, -1620, -1620, -1620, -1620, 2072, -1620, -1620, -1620, - -1620, -1620, -1620, -1620, -1620, -1620, -1620, -1620, -1620, -1620, - -1065, -1050, -1620, -1620, 1591, -1620, 415, -1620, -1620, -1620, - -1620, 1687, -1620, -1620, 512, -1620, -1420, 2420, 654, 2274, - 2846, -248, 717, -1620, 128, 10, -1620, -374, -3, 257 -}; - - /* YYDEFGOTO[NTERM-NUM]. */ +/* YYDEFGOTO[NTERM-NUM]. */ static const yytype_int16 yydefgoto[] = { -1, 2, 3, 90, 990, 91, 92, 706, 1517, 1523, @@ -1356,220 +1781,443 @@ static const yytype_int16 yydefgoto[] = 573, 315, 963, 1179, 454, 449, 933, 455, 335, 308 }; - /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If - positive, shift that token. If negative, reduce the rule whose - number is the opposite. If YYTABLE_NINF, syntax error. */ +/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing + STATE-NUM. */ +#define YYPACT_NINF -1620 +static const yytype_int16 yypact[] = +{ + 9182, 34, 86, 9304, -1620, -1620, 3998, 90, 15, -86, + -82, 44, 162, 269, 303, 325, 85, 406, 439, 186, + 258, -64, -64, -143, 268, 292, 17, 310, 316, 24, + 319, 333, 389, 470, 476, 557, 386, 414, 543, 549, + -10, 524, 23, 698, -9, 445, 566, -93, 449, 224, + 224, 456, 475, 20, 320, 589, 596, 29, 53, 602, + 617, 52, 676, 740, 743, 5639, 756, 575, 587, 595, + 37, 2, -1620, 608, 611, -1620, -1620, 815, 824, 646, + -1620, 5518, 5915, -4, 12, -1620, -1620, -1620, 9042, 655, + -1620, -1620, -1620, -1620, -1620, -1620, -1620, -1620, -1620, -1620, + -1620, -1620, -1620, -1620, -1620, -1620, 45, -1620, 97, 111, + -1620, 6, -1620, -1620, -1620, -1620, -1620, -64, -64, -64, + -64, -64, -64, -64, -64, -64, -64, -64, -64, -64, + -64, -64, -64, -64, -64, -64, -64, -64, -64, -64, + -64, -64, 663, 670, 682, -64, -64, 700, 716, 720, + -64, -64, -64, -64, 752, -1620, -64, -1620, -1620, -1620, + -1620, -1620, -64, -64, 903, 758, 761, 762, -64, -64, + 780, 786, -1620, -1620, -1620, -1620, 730, 9042, 9042, 9042, + 8465, 8526, 27, 19, 461, 782, 783, 175, -1620, 798, + 936, 141, 349, 999, 9042, 5722, 5722, -1620, 9042, -1620, + -1620, -1620, -1620, 5722, -1620, -1620, -1620, -1620, -1620, -1620, + 6113, 19, 9042, 8273, 9042, 9042, 811, 9042, 8273, 9042, + 9042, 814, 8273, 9042, 9042, 6035, 832, 808, -1620, 8273, + 5639, 5639, 5639, 851, 863, 5639, 5639, 5639, 892, 906, + 921, 932, 942, 6233, 6431, 6629, 837, 1688, 1024, 6035, + 37, 886, 889, 224, 224, 224, 9042, 9042, -129, -1620, + -74, 224, 951, 954, 955, 8015, 229, -133, 949, 966, + 976, 5639, 5639, 6035, 980, 5, 1012, -1620, 1004, 1215, + 1218, -1620, 1040, 1053, 1056, 5639, 5639, 1049, 1055, 1073, + 577, -1620, 323, 31, 33, 40, 41, 779, 6827, 9042, + 4575, -1620, -1620, 1832, -1620, 1222, -1620, 538, 228, 1272, + 9042, 9042, 9042, -150, 9042, 1077, -1620, 1139, 9042, 9042, + 9042, -1620, -1620, 9042, 1082, 1279, 1285, -1620, -1620, 1287, + -1620, 1289, -1620, 630, 5203, 616, 5722, -1620, 6035, 6035, + 8723, 8784, 1091, 1093, 6113, -1620, -1620, -1620, -1620, -1620, + -1620, 6035, 1292, 1099, 9042, 9042, 1297, 9042, 9042, 9042, + 9042, 9042, 9042, 9042, 9042, 9042, 9042, 9042, 9042, 9042, + 9042, 9042, 9042, 9042, 9042, 9042, 9042, 9042, 9042, 5722, + 5722, 5722, 5722, 5722, 5722, 5722, 5722, 6035, 5722, 5722, + 9042, 5722, 5722, 5722, 5722, 5722, 9042, 6113, 9042, 5722, + 5722, 5722, 5722, 5722, 19, 6113, 19, 1104, 1104, 1104, + 115, 3763, 272, 8490, 123, 1101, 1298, -64, 1100, -1620, + 1103, 4389, 9042, 8273, -1620, 9042, 9042, 9042, 9042, 9042, + 9042, 9042, 9042, 9042, 9042, 9042, 9042, 9042, 9042, 9042, + -1620, -1620, 9042, 9042, -1620, -1620, 1017, 643, 231, -1620, + 651, -1620, 505, 9802, -1620, 567, 261, 301, 1102, 1107, + 11343, 8273, 3934, -1620, 328, 11364, 11385, 9042, 11406, 342, + 11427, 11448, 9042, 369, 11469, 11490, 1301, 9042, 9042, 526, + 1307, 1312, 1313, 9042, 9042, 1310, 1316, 1316, 9042, 8081, + 8081, 8081, 8081, 9042, 1318, 9042, 1319, 9042, 1320, 8273, + 8273, 9748, 1114, 1321, 1122, -1620, -1620, 132, -1620, -1620, + 9828, 9854, 224, 224, 461, 461, 227, 9042, 9042, 9042, + 8015, 8015, 9042, 4389, 232, -1620, 9042, 9042, 9042, 9042, + 9042, 1322, 1327, 1328, 9042, 1334, 9042, 9042, 1263, -1620, + -1620, 8273, 8273, 8273, 1347, 1348, 9042, 9042, 9042, 9042, + 9042, 1351, 169, 7025, 7223, -1620, 1300, 9042, -1620, 1303, + -1620, 1309, -1620, 1315, 32, 39, 42, 43, 8273, 1104, + -1620, 11511, -1620, 599, 9042, 7421, -1620, 9042, 9042, 428, + -1620, 11532, 11553, 11574, 1221, 9880, -1620, 1162, 4027, 11595, + 11616, 8748, -1620, -1620, -1620, 1448, -1620, 2236, 9042, 9042, + -1620, 9042, 9042, 1170, 1173, 629, 278, 11637, 308, 10998, + 9042, 8273, 1368, 1370, -1620, 9042, 11658, 11021, 391, 7977, + 7977, 7977, 7977, 7977, 7977, 7977, 7977, 7977, 7977, 7977, + 9906, 7977, 7977, 7977, 7977, 7977, 7977, 7977, 9932, 9958, + 9984, 394, 490, 394, 1175, 1177, 1174, 680, 680, 1176, + 1180, 1181, 10010, 680, 680, 680, 640, 680, 12204, -1620, + 1480, 1182, 1183, 1190, 672, 692, 1191, 1192, 1193, 1342, + 1354, 6035, 250, 1367, 1371, 6035, 77, 6113, 9042, 1402, + 1406, 25, 680, -1620, 104, 18, 30, 196, -1620, 2670, + 702, 4046, 1311, 1740, 1369, 1369, 610, 610, 610, 610, + 154, 154, 1104, 1104, 1104, 1104, 64, 11679, 11044, -1620, + 9042, 9042, 1408, 75, 8273, 9042, 9042, 1407, 8273, 9042, + 1409, 5722, 1410, -1620, 19, 1419, 5722, 9042, 6113, 1420, + 8273, 8273, 1269, 1424, 1432, 11700, 1433, 1281, 1434, 1435, + 11721, 1304, 1438, 1439, 9042, 11742, 4718, 1242, -1620, -1620, + -1620, 11763, 11784, 9042, 6035, 1447, 1449, 11805, 1253, 12204, + 1251, 1257, 12204, 1254, 1262, 12204, 1258, 1264, 12204, 1271, + 11826, -1620, 11847, -1620, 11868, -1620, 711, 736, 8273, 1266, + -1620, -1620, 2372, 2534, 224, 9042, 9042, -1620, -1620, 1270, + 1273, 8015, 10036, 10062, 10088, 3806, -1, 224, 2817, 11889, + 4916, 11910, 11931, 11952, 9042, 1473, -1620, 9042, 11973, -1620, + 11067, 11090, -1620, 751, 763, 764, -1620, -1620, 11113, 11136, + 10114, 11994, 11159, 228, -1620, -1620, 8273, -1620, 8273, 3934, + 1282, 8273, 1283, 116, 1275, 5344, 1302, 1306, 1314, -1620, + 8273, -1620, 8273, -1620, 8273, -1620, 8273, 769, -1620, -1620, + 4069, 8273, 1104, -1620, 12015, 11182, 8273, -1620, 1476, 1482, + 1484, 1284, 9042, 2932, 9042, 9042, -1620, -1620, 8, -1620, + -1620, 2959, -1620, 1317, 6035, 1504, 1474, 1479, 6035, 250, + 1481, 1485, 6035, 250, 6171, 770, -1620, -1620, 11205, 506, + 429, -1620, -1620, -1620, -1620, -1620, -1620, -1620, -1620, -1620, + -1620, -1620, -1620, 9042, -1620, -1620, -1620, -1620, -1620, -1620, + -1620, 9042, 9042, 9042, -1620, 8273, -1620, -1620, -1620, -1620, + 5722, -1620, -1620, 6035, 5722, 5722, 6113, -1620, -1620, -1620, + -1620, -1620, -1620, -1620, -1620, 9042, 5722, -1620, 5722, -1620, + 9042, -1620, -1620, -1620, -1620, -64, -64, 1507, -1620, 9042, + 1510, -64, -64, 1516, 187, 9042, 1518, 1530, 1607, -1620, + 1531, 1338, 37, 1534, -1620, 8273, 8273, 8273, 8273, -1620, + 680, 9042, -1620, 1345, 1349, 1343, -1620, 1544, -1620, -1620, + -1620, -1620, -1620, 546, 562, 12036, 11228, -1620, -1620, 1366, + 5722, 673, 12057, 11251, -1620, 688, 10140, -1620, -1620, -1620, + 63, -1620, -1620, 7977, 680, 224, 3934, -1620, 896, 6035, + 6035, 1556, 6035, 900, 6035, 6035, 1558, 1486, 6035, 6035, + 1646, 1559, 1561, 8273, 1566, 1567, 2089, -1620, -1620, 1572, + -1620, 1576, 365, 9042, 365, 9042, 365, 9042, 365, 9042, + 1577, 1581, 1582, 1584, 1585, 822, 1589, 3179, -1620, -1620, + 289, 10166, 10192, -1620, -1620, 6369, -84, 224, 224, 224, + 1591, 8981, 1390, 1595, 1398, 49, 73, 275, 280, -32, + -1620, 347, -1620, -1, 1601, 1596, 1602, 1603, 1604, 12204, + -1620, 1906, 1411, 1606, 1608, 1609, 1536, 1611, 1615, 1617, + 9042, 228, -171, 829, 830, -1620, 844, -1620, -1620, 9042, + -1620, 9042, 9042, 9042, 849, 850, 853, 854, -1620, 9042, + 858, 228, 228, 876, 6035, 6035, 6035, 1621, 10218, -1620, + 4130, 431, 1622, 1623, -1620, 6035, 1421, -1620, -64, -64, + 1624, 9042, 1625, -64, -64, 1626, 9042, 1628, -1620, 680, + 1629, -1620, 1632, -1620, 1631, 7977, 7977, 7977, 7977, 696, + 1446, 1444, 1453, 1454, 1452, 703, 732, 12078, 1458, 680, + 7977, 1092, 5722, -1620, 1951, -1620, 1092, 5722, -1620, 265, + 1436, 1667, 2160, -1620, -1620, -1620, 37, 9042, -1620, 879, + -1620, 882, 883, 893, 899, 365, 12204, 1483, 9042, 9042, + 6035, 1471, -1620, -1620, -1620, -1620, 1487, -1620, 1673, 81, + -1620, -1620, 1675, 9042, 5176, 1488, 1492, 1677, 1678, -2, + 1489, 1490, 1592, 1592, 6035, 1681, 1494, 1495, 1683, 1719, + 6035, 1520, 1721, 1724, -1620, 1726, 6035, 909, 6035, 6035, + 1728, 1727, -1620, 6035, 6035, 12204, 6035, 12204, 6035, 12204, + 6035, 12204, 6035, 6035, 6035, 1528, 1529, 1732, 344, -1620, + 9042, 9042, 9042, 1535, 1538, 127, 136, 204, 1539, -1620, + 2373, 6035, -1620, 9042, -1620, 1736, -1620, 1739, -1620, 1741, + -1620, 1743, -1620, -1620, 8015, 628, 5837, -1620, 1540, 1545, + 7619, -1620, 8273, -1620, -1620, -1620, 1546, 9042, -1620, -1620, + 11274, 1746, 680, 1553, 1555, 10244, 10270, 10296, 10322, -1620, + -1620, -1620, -1620, 12204, -1620, 680, 1752, 1753, 1619, -1620, + 9042, 9042, 9042, -1620, 1755, 710, 1560, 1757, 1092, 5722, + -1620, 2494, -1620, 1092, 5722, -1620, 2743, -1620, 365, -1620, + 565, -1620, -1620, -1620, -1620, -1620, -1620, 5722, -1620, -1620, + -1620, 6113, 1760, -1620, -1620, 9, -1620, -1620, -1620, -1620, + -1620, -1620, 1761, 394, 394, -1620, 1762, 394, 394, 6113, + 9042, 1764, 1767, 25, -1620, 1766, 11297, 37, -1620, 1768, + 1770, 1771, 1772, 6035, 9042, 10348, 10374, 910, -1620, 9042, + 1769, -1620, -1620, 5722, -1620, 10400, 4780, 12204, -1620, 1759, + 1773, -1620, -1620, -1620, 9042, 9042, 224, 1776, 1777, 1778, + -1620, 9042, 9042, -1620, -1620, 1779, 9042, -1620, -1620, 1774, + 1795, 1597, 1796, 1659, 9042, -1620, 1800, 1801, 1802, 1804, + 1806, 1807, 1117, 1808, 8273, 8273, 9042, -1620, 8081, 6567, + 12099, 4149, 461, 461, 224, 1809, 224, 1810, 224, 1811, + 9042, -1620, 810, 1613, 12120, -1620, -1620, -1620, -1620, 6765, + 368, -1620, 1813, 4348, 1814, 6035, 224, 4348, 1815, 919, + 9042, 3045, 1816, 228, -1620, -1620, -1620, 9042, 9042, 9042, + 9042, -1620, -1620, -1620, 6035, 4376, 887, 12141, -1620, -1620, + 5243, 6035, -1620, 1817, 394, 394, -1620, 1818, 394, 394, + -1620, 6035, -1620, 1641, 680, 4978, 5441, 6113, -1620, 1836, + 1837, -1620, 1839, 1840, 1842, 3261, -1620, 1843, 1846, -1620, + 1650, -1620, -1620, -1620, -1620, -1620, 1848, 706, 12204, 9042, + 9042, 6035, 1643, 922, 12204, -1620, 1854, 9042, -1620, -1620, + 1655, 1656, 6963, 7161, 734, -1620, -1620, -1620, 7359, 7557, + -1620, 7755, 1864, -1620, 6035, -1620, 1788, 1865, 12204, -1620, + -1620, -1620, -1620, -1620, -1620, 1666, -1620, -1620, 923, 935, + 9775, 3552, 1867, 1668, -1620, 9042, -1620, 1669, 1676, 381, + -1620, 1674, 390, -1620, 1682, 393, -1620, 1684, 11320, 1878, + 6035, 1884, 1690, 9042, -1620, 7817, 395, -1620, 961, 464, + 477, -1620, 1887, 8211, -1620, -1620, 10426, 10452, 10478, 10504, + 1758, 9042, -1620, 9042, -1620, -1620, 8273, 3646, 1891, 1696, + -1620, 1907, 1908, -1620, 1909, 1911, 1912, -1620, -1620, 4575, + -1620, -1620, 5722, 12204, -1620, -1620, -1620, -1620, -1620, -1620, + -1620, -1620, 37, -1620, 1792, -1620, -1620, 9042, 10530, 10556, + -1620, 6035, 9042, 1913, -1620, 10582, -1620, -1620, 6035, 6035, + 1914, 1915, 1930, 1931, 1934, 1936, 964, 1745, -1620, 6035, + 658, 721, 8273, -1620, -1620, 461, 4513, -1620, -1620, 8015, + -1, 8015, -1, 8015, -1, 1939, -1620, 965, 6035, -1620, + 8422, 224, 1941, 8273, 224, -1620, -1620, 9042, 9042, 9042, + 9042, 9042, 8680, 8938, 969, -1620, -1620, 1943, -1620, -1620, + -1620, -1620, -1620, 973, 3340, 1946, 978, 1948, -1620, 1749, + 12204, 9042, 9042, 979, 12204, -1620, 9042, 984, 985, -1620, + -1620, -1620, -1620, -1620, -1620, -1620, -1620, 1750, 9042, 989, + 1754, 224, 6035, 1952, 1756, 224, 1953, 1011, 1763, 9042, + -1620, 9300, 481, 669, 9328, 486, 826, 9356, 489, 918, + -1620, 6035, 1955, 1862, 3468, 1775, 495, -1620, 1015, 499, + 10608, 10634, 10660, 10686, 3665, -1620, -1620, 1958, -1620, 9042, + -1620, 6113, 19, -1620, -1620, 9042, 12162, 10712, 46, 10738, + -1620, -1620, -1620, -1620, 9042, 9384, 1960, 224, 76, -1620, + -1620, 224, 87, -1620, 1961, -1620, 9412, 1966, 9042, 1967, + 1968, 9042, 1969, 1970, 9042, 1971, 1781, -1620, 9042, -1620, + -1, -1620, 8273, 1972, 7817, 9042, 9042, 9042, 9042, -1620, + -1620, 3785, -1620, 1780, 1022, -1620, 9042, -1620, 6035, 9042, + 1027, 1031, 10764, -1620, -1620, 508, -1620, 517, -1620, -1620, + -1620, -1620, 1783, 9440, -1620, -1620, 1784, 9468, -1620, -1620, + 1785, 9496, -1620, 1974, 3740, 981, 3505, 1037, -1620, 519, + 1038, 10790, 10816, 10842, 10868, 6113, 1782, 1977, 1786, 12183, + 1044, 9524, -1620, -1620, 9042, 224, 224, -1, 1978, -1, + 1987, -1, 1988, -1620, -1620, -1620, -1620, -1, 1989, 8273, + 1990, 9042, 9042, 9042, 9042, -1620, -1620, -1620, 5722, -1620, + 1794, 1996, 9552, 530, 536, 1160, -1620, 1797, 1210, -1620, + 1798, 1277, -1620, 1803, 1308, -1620, 1050, -1620, 10894, 10920, + 10946, 10972, 1058, -1620, 1805, 6035, -1620, 2002, 9042, 9042, + 2025, -1, 2026, -1, 2027, -1, -1620, 2028, 9042, 9042, + 9042, 9042, 5722, 2029, 5722, 1063, -1620, 9580, 9608, -1620, + 1346, -1620, 1478, -1620, 1521, -1620, 9636, 9664, 9692, 9720, + -1620, -1620, 1064, -1620, 2030, 2031, 2032, 2033, 2034, 2037, + -1620, -1620, -1620, -1620, 5722, 2060, -1620, -1620, -1620, -1620, + -1620, -1620, -1620, -1620 +}; + +/* YYPGOTO[NTERM-NUM]. */ +static const yytype_int16 yypgoto[] = +{ + -1620, -1620, -1620, -1620, 868, -1620, -1620, -1620, -1620, 293, + -1620, -1620, -1620, -1620, -1620, -1620, -1620, -1620, -1620, -1620, + -1620, -1620, -302, -70, 21, 3143, -1620, 1612, -1620, -1620, + -1620, -1620, -1620, -1620, -1620, -1619, -1620, 424, -1620, -1620, + -1620, -1620, -1620, -1620, 860, 2071, 11, -503, -247, -1620, + -1620, -1620, -1620, -1620, -1620, -1620, 2072, -1620, -1620, -1620, + -1620, -1620, -1620, -1620, -1620, -1620, -1620, -1620, -1620, -1620, + -1065, -1050, -1620, -1620, 1593, -1620, 415, -1620, -1620, -1620, + -1620, 1687, -1620, -1620, 512, -1620, -1420, 2420, 654, 2274, + 2846, -248, 715, -1620, 128, 10, -1620, -374, -3, 257 +}; + +/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If + positive, shift that token. If negative, reduce the rule which + number is the opposite. If zero, do what YYDEFACT says. + If YYTABLE_NINF, syntax error. */ +#define YYTABLE_NINF -523 static const yytype_int16 yytable[] = { 108, 329, 504, 191, 1393, 641, 317, 643, 1275, 535, - 353, 789, 790, 988, 95, 1122, 190, 331, 523, 1273, - 656, 216, 216, 1496, 194, 558, 267, 1717, 221, 961, - 538, 414, 324, 275, 221, 1588, 555, 839, 560, 352, - 4, 313, 210, 211, 841, 562, 212, 843, 845, 526, - 197, 337, 1827, 213, 278, 1264, 527, 280, 5, 281, - 512, 513, 307, 512, 513, 349, 350, 278, 972, 193, - 1204, 512, 513, 512, 513, 195, -516, 514, 278, 1434, - 1382, 1435, 1836, 595, 948, 597, 208, 1436, 209, 1437, - 515, 325, 328, 512, 513, 512, 513, 254, 255, 212, - 268, 1838, 250, 206, 269, 344, 965, 256, 671, 1438, - 675, 1439, 678, 1254, 257, 196, 270, 251, 252, 677, - 512, 513, 349, 350, 1656, 224, 199, 349, 350, 343, - 948, 282, 968, -521, 189, 1291, 200, 525, 357, 358, + 353, 789, 790, 1496, 95, 1122, 190, 331, 523, 1273, + 656, 216, 216, 324, 267, 349, 350, 1717, 221, 961, + 538, 414, 1291, 275, 221, 1588, 555, 839, 558, 352, + 4, 313, 210, 211, 841, 560, 562, 843, 845, 250, + 197, 337, 1827, 584, 278, 1264, 212, 280, 185, 281, + 512, 513, 307, 213, 251, 252, 526, 278, 972, 1060, + 1204, 235, 246, 527, 236, 247, 237, 514, 278, 1266, + 1061, 988, 1836, 595, 948, 597, 5, 1382, 1062, 1063, + 1064, 325, 328, 1838, 1065, 1066, 1067, 1068, 268, 194, + 1060, 239, 269, 193, 240, 512, 513, 241, 671, 242, + 675, 1061, 678, 195, 270, 512, 513, 196, 344, 1062, + 1063, 1064, 669, 1254, 1656, 1065, 1066, 1067, 1068, 343, + 677, 282, 515, 285, 189, 208, 286, 209, 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, 1830, 1831, 559, 385, 386, 1266, 415, - 416, 390, 391, 392, 393, 1497, 556, 395, 561, 1265, - 278, 424, 276, 396, 397, 563, 1268, 512, 513, 402, - 403, 1169, 450, 450, 989, 419, 973, 974, 975, 976, - 450, 318, 330, 89, 89, 354, 536, 355, 278, 356, + 379, 380, 381, 1830, 1831, 1497, 385, 386, 199, 415, + 416, 390, 391, 392, 393, 1272, 556, 395, 559, 1265, + 278, 424, 276, 396, 397, 561, 563, 512, 513, 402, + 403, 1169, 450, 450, 89, 419, 973, 974, 975, 976, + 450, 318, 330, 1267, 89, 354, 536, 355, 278, 356, 307, 1123, 89, 185, 185, 307, 217, 217, 332, 307, 458, 1713, 307, 218, 966, 1273, 307, 307, 307, 307, 222, 962, 307, 307, 307, 277, 967, 557, 840, 1729, 307, 307, 307, 314, 338, 842, 307, 278, 844, 846, - 198, 339, 1828, 345, 346, 347, 348, 1359, 782, 783, - 109, 989, 1205, 192, 1206, 512, 513, 203, 307, 307, - 307, 977, 349, 350, 345, 346, 347, 348, 798, 669, - 954, 1270, 307, 307, 512, 513, 349, 350, 345, 346, - 347, 348, 1267, 349, 350, 307, 340, 307, 341, 345, - 346, 347, 348, 201, 878, 342, 882, 349, 350, 418, - 1269, 552, 1427, 1428, 279, 673, 512, 513, 349, 350, - 202, 512, 513, 448, 452, 512, 513, 316, 579, 1170, - 1171, 722, 784, 450, 723, 307, 307, 791, 326, 863, - 442, 797, 443, 549, 679, 550, 584, 551, 307, 342, - 184, 185, 185, 871, 612, 425, 426, 427, 428, 429, + 198, 339, 1828, 345, 346, 347, 348, 948, 782, 783, + 109, 989, 1205, 192, 1206, 512, 513, 989, 307, 307, + 307, 977, 1359, 349, 350, 200, 512, 513, 798, 673, + 954, 1268, 307, 307, 203, 876, 1270, 345, 346, 347, + 348, 345, 346, 347, 670, 307, 340, 307, 341, 345, + 346, 347, 348, 212, 878, 342, 882, 349, 350, 201, + 965, 552, 349, 350, 279, 880, 512, 513, 1098, 349, + 350, 512, 513, 448, 452, 512, 513, 316, 579, 1170, + 1171, 202, 1434, 450, 1435, 307, 307, 784, 326, 863, + 442, 1436, 443, 1437, 679, 436, 437, 438, 307, 342, + 1427, 1428, 439, 871, 612, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 824, - 949, 825, 876, 439, 955, 826, 450, 450, 450, 450, - 450, 450, 450, 450, 307, 450, 450, 880, 450, 450, - 450, 450, 450, 512, 513, 207, 450, 450, 450, 450, - 450, 278, 204, 278, 948, 1271, 205, 659, 1870, 1250, - 48, 49, 50, 51, 214, 667, 512, 513, 246, 56, - 307, 247, 59, 512, 513, 215, 345, 346, 347, 348, - 349, 350, 1274, 447, 112, 219, 709, 1098, 682, 1583, - 417, 512, 513, 349, 350, 349, 350, 225, 670, 346, - 347, 348, 451, 451, -519, 349, 350, 1669, 307, 262, - 451, 824, 263, 825, 603, 264, -520, 856, 459, 139, - 140, 141, 142, 143, 144, 145, 146, 220, 512, 513, - 150, 151, 152, 153, 674, 346, 347, 348, 155, 156, - 157, 223, 230, 158, 1671, 231, 307, 307, 232, 760, - 763, 766, 769, 285, 163, 1945, 286, 316, 642, 224, - 644, 645, 646, 647, 648, 725, 650, 651, 723, 653, + 949, 825, 948, 439, 955, 826, 450, 450, 450, 450, + 450, 450, 450, 450, 307, 450, 450, 206, 450, 450, + 450, 450, 450, 512, 513, 224, 450, 450, 450, 450, + 450, 278, 968, 278, 271, 1269, 272, 659, 1870, 1438, + 1271, 1439, 204, 254, 255, 667, 512, 513, 512, 513, + 307, 512, 513, 256, 349, 350, 345, 346, 347, 348, + 257, 713, 791, 447, 112, 525, 714, 797, 682, 1312, + 417, 345, 346, 347, 348, 205, 349, 350, 345, 346, + 347, 674, 451, 451, 345, 346, 347, 877, 307, 207, + 451, 349, 350, 722, 603, 418, 723, 214, 459, 139, + 140, 141, 142, 143, 144, 145, 146, 225, 512, 513, + 150, 151, 152, 153, 345, 346, 347, 881, 155, 156, + 157, 215, 230, 158, 1250, 231, 307, 307, 232, 760, + 763, 766, 769, 725, 163, 1945, 723, 316, 642, 219, + 644, 645, 646, 647, 648, 220, 650, 651, 223, 653, 654, 655, 553, 657, 554, 419, 419, 661, 662, 663, - 664, 665, 228, 271, 1047, 272, 512, 513, 307, 307, - 307, 877, 346, 347, 348, 731, 226, 732, 891, 227, - 307, 307, 1673, 512, 513, 713, 881, 346, 347, 348, - 714, 258, 260, 717, 266, 307, 512, 513, 718, 1681, - 254, 255, 307, 345, 346, 347, 348, 1131, 512, 513, - 256, 1136, 1683, 512, 513, 349, 350, 265, 229, 166, - 167, 168, 239, 451, 1684, 240, -518, 233, 241, 1798, - 242, 175, 950, 176, 89, 1743, 956, 1746, 307, 1749, + 664, 665, 224, 731, 1047, 732, 512, 513, 307, 307, + 307, 345, 346, 347, 348, 349, 350, 731, 891, 737, + 307, 307, 1274, 262, 226, -516, 263, 512, 513, 264, + 227, 258, 260, 228, 266, 307, 48, 49, 50, 51, + 512, 513, 307, 1583, 731, 56, 741, 1131, 59, 512, + 513, 1136, 512, 513, 512, 513, 1669, 349, 350, 166, + 167, 168, 229, 451, 824, 1671, 825, -521, 1673, 721, + 1681, 175, 950, 176, 89, 1743, 956, 1746, 307, 1749, + 238, 425, 426, 427, 428, 429, 430, 431, 432, 433, + 434, 435, 436, 437, 438, 349, 350, 233, 824, 439, + 825, 1313, 1142, 234, 856, -517, 451, 451, 451, 451, + 451, 451, 451, 451, 248, 451, 451, 249, 451, 451, + 451, 451, 451, 512, 513, 253, 451, 451, 451, 451, + 451, 666, 261, 668, 254, 255, 512, 513, 307, 1683, + 512, 513, 307, 273, 256, 512, 513, 274, 512, 513, + 287, 265, 1684, 283, 512, 513, 1798, 957, 512, 513, + 824, 1801, 825, 1273, 1804, 915, 1273, 512, 513, 1273, + 1812, 284, 349, 350, 1814, 717, 512, 513, 512, 513, + 718, 307, -519, 1875, 1178, 307, 1479, 1480, 450, 512, + 513, 278, 1876, 450, 1889, 512, 513, 307, 307, 1060, + 1234, 731, 1236, 747, 1238, 1928, 1240, 577, 1004, 578, + 1061, 1929, 349, 350, 288, 1855, 342, 289, 1062, 1063, + 1064, 307, -520, 891, 1065, 1066, 1067, 1068, 349, 350, + 309, 349, 350, 1730, 1731, 507, 508, 720, -518, 1732, + 1060, -522, 721, 516, 310, 307, 549, 524, 550, 243, + 551, 1061, 244, 184, 245, 185, 311, 1353, 1354, 1062, + 1063, 1064, 1357, 1358, 312, 1065, 1066, 1067, 1068, 434, + 435, 436, 437, 438, 731, 1273, 849, 319, 439, 1132, + 320, 833, 1905, 1137, 1908, 601, 1911, 602, 574, 1141, + 1143, 321, 1914, 307, 342, 307, 1734, 1735, 307, 598, + 322, 599, 1732, 551, 874, 1451, 875, 307, 185, 307, + 930, 307, 710, 307, 711, 721, 712, 323, 307, 998, + 715, 185, 716, 307, 1002, 1273, 336, 564, 1273, 342, + 565, 1273, 382, 566, 1273, 567, 1950, 1360, 1952, 383, + 1954, 307, 824, 1199, 825, 307, 1799, 938, 731, 307, + 824, 384, 825, 1373, 480, 481, 482, 450, 1202, 485, + 486, 487, 824, 731, 825, 1603, 824, 940, 825, 387, + 1273, 731, 1273, 824, 1273, 825, 1636, 731, 1342, 970, + 398, 1637, 307, 1193, 1194, 388, 731, 450, 1043, 389, + 307, 450, 450, 512, 513, 531, 532, 1060, 1365, 1567, + 1568, 406, 824, 450, 825, 450, 1154, 1345, 1061, 544, + 545, 731, 441, 1044, 1484, 1485, 1062, 1063, 1064, 1488, + 1489, 394, 1065, 1066, 1067, 1068, 731, 399, 1085, 278, + 400, 401, 307, 307, 307, 307, 1161, 1162, 731, 731, + 1086, 1087, 1166, 1167, 731, 731, 1108, 1139, 451, 404, + 1210, 1000, 1211, 451, 1216, 405, 1217, 450, 422, 423, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, - 435, 436, 437, 438, 349, 350, 235, 234, 439, 236, - 238, 237, 1142, 349, 350, -517, 451, 451, 451, 451, - 451, 451, 451, 451, -522, 451, 451, 249, 451, 451, - 451, 451, 451, 731, 1060, 737, 451, 451, 451, 451, - 451, 666, 598, 668, 599, 1061, 551, 248, 307, 512, - 513, 185, 307, 1062, 1063, 1064, 512, 513, 720, 1065, - 1066, 1067, 1068, 721, 731, 1801, 741, 957, 512, 513, - 512, 513, 1804, 1273, 512, 513, 1273, 512, 513, 1273, - 512, 513, 253, 710, 1812, 711, 1814, 712, 512, 513, - 1875, 307, 185, 1876, 1178, 307, 1889, 930, 450, 512, - 513, 278, 721, 450, 1928, 1730, 1731, 307, 307, 1060, - 1234, 1732, 1236, 261, 1238, 1929, 1240, 577, 1004, 578, - 1061, 1734, 1735, 1479, 1480, 1855, 342, 1732, 1062, 1063, - 1064, 307, 273, 891, 1065, 1066, 1067, 1068, 1199, 601, - 1272, 602, 715, 731, 716, 507, 508, 274, 342, 243, - 1060, 342, 244, 516, 245, 307, 564, 524, 824, 565, - 825, 1061, 566, 721, 567, 512, 513, 1353, 1354, 1062, - 1063, 1064, 1357, 1358, 283, 1065, 1066, 1067, 1068, 434, - 435, 436, 437, 438, 731, 1273, 747, 284, 439, 1132, - 287, 833, 1905, 1137, 1908, 824, 1911, 825, 574, 1141, - 1143, 1202, 1914, 307, 288, 307, 731, 1636, 307, 436, - 437, 438, 1637, 310, 311, 1451, 439, 307, 289, 307, - 824, 307, 825, 307, 731, 915, 849, 309, 307, 998, - 874, 312, 875, 307, 1002, 1273, 323, 824, 1273, 825, - 319, 1273, 938, 731, 1273, 970, 1950, 1360, 1952, 320, - 1954, 307, 824, 321, 825, 307, 1799, 940, 731, 307, - 1043, 322, 336, 1373, 480, 481, 482, 450, 382, 485, - 486, 487, 824, 383, 825, 1603, 824, 731, 825, 384, - 1273, 1342, 1273, 824, 1273, 825, 387, 731, 1345, 1044, - 398, 388, 307, 1193, 1194, 389, 731, 450, 1085, 394, - 307, 450, 450, 399, 400, 531, 532, 1060, 1365, 1567, - 1568, 401, 731, 450, 1086, 450, 1154, 404, 1061, 544, - 545, 731, 405, 1087, 1484, 1485, 1062, 1063, 1064, 1488, - 1489, 406, 1065, 1066, 1067, 1068, 731, 441, 1108, 278, - 422, 423, 307, 307, 307, 307, 1161, 1162, 731, 1210, - 1139, 1211, 1166, 1167, 1216, 731, 1217, 1247, 451, 440, - 731, 1000, 1292, 451, 731, 467, 1293, 450, 445, 472, - 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, - 435, 575, 437, 438, 477, 478, 307, 307, 439, 307, - 483, 307, 307, 484, 488, 307, 307, 1579, 1144, 1060, - 307, 1141, 1143, 934, 787, 788, 1491, 731, 502, 1294, - 1061, 489, 508, 1802, 731, 731, 1299, 1300, 1062, 1063, + 435, 575, 437, 438, 440, 445, 307, 307, 439, 307, + 467, 307, 307, 472, 478, 307, 307, 1579, 1144, 1060, + 307, 1141, 1143, 709, 787, 788, 1491, 731, 502, 1247, + 1061, 477, 508, 1802, 731, 731, 1292, 1293, 1062, 1063, 1064, 1193, 1194, 499, 1065, 1066, 1067, 1068, 1150, 731, - 490, 1301, 1152, 1153, 731, 731, 1302, 1304, 731, 1367, - 1305, 1368, 491, 731, 1158, 1369, 1159, 425, 426, 427, + 483, 1294, 1152, 1153, 731, 731, 1299, 1300, 731, 731, + 1301, 1302, 484, 731, 1158, 1304, 1159, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, - 438, 731, 1060, 1370, 731, 439, 1371, 731, 731, 1372, - 1411, 492, 505, 1061, 1604, 506, 447, 112, 1521, 1361, - 1522, 1062, 1063, 1064, 1555, 517, 1556, 1065, 1066, 1067, - 1068, 307, 307, 307, 731, 1642, 1592, 1643, 1198, 1511, - 518, 731, 307, 1660, 731, 1805, 1661, 1521, 1521, 1682, - 1727, 519, 139, 140, 141, 142, 143, 144, 145, 146, - 1751, 528, 1752, 150, 151, 152, 153, 451, 529, 1318, - 1319, 155, 156, 157, 1323, 1324, 158, 530, 450, 450, - 537, 534, 1738, 450, 450, 342, 731, 163, 1767, 1769, - 721, 1770, 1773, 278, 1521, 539, 1778, 451, 1342, 540, - 1780, 451, 451, 1345, 1521, 1781, 1786, 307, 1885, 731, - 731, 1794, 1813, 451, 1642, 451, 1867, 425, 426, 427, + 438, 731, 1060, 1305, 1367, 439, 1368, 731, 731, 1369, + 1370, 488, 505, 1061, 1604, 506, 447, 112, 731, 1361, + 1371, 1062, 1063, 1064, 731, 489, 1372, 1065, 1066, 1067, + 1068, 307, 307, 307, 731, 1521, 1411, 1522, 1198, 1511, + 490, 1555, 307, 1556, 731, 1805, 1592, 1642, 731, 1643, + 1660, 491, 139, 140, 141, 142, 143, 144, 145, 146, + 731, 492, 1661, 150, 151, 152, 153, 451, 528, 1318, + 1319, 155, 156, 157, 1323, 1324, 158, 517, 450, 450, + 518, 519, 1738, 450, 450, 529, 1521, 163, 1682, 1521, + 1751, 1727, 1752, 278, 731, 530, 1767, 451, 1769, 534, + 1770, 451, 451, 721, 1521, 1773, 1778, 307, 1885, 1342, + 1345, 1780, 1781, 451, 1521, 451, 1786, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, - 438, 307, 541, 542, 1388, 439, 1342, 307, 1872, 316, - 1342, 546, 1873, 307, 543, 307, 307, 731, 576, 1888, - 307, 307, 731, 307, 1890, 307, 1521, 307, 1900, 307, - 307, 307, 731, 1942, 1937, 1943, 547, 451, 1706, 1521, - 548, 1964, 166, 167, 168, 1974, 580, 1975, 307, 586, - 1492, 1060, 587, 185, 175, 592, 176, 89, 593, 610, - 594, 596, 1061, 307, 611, 7, 8, 307, 614, 307, - 1062, 1063, 1064, 615, 618, 439, 1065, 1066, 1067, 1068, - 681, 680, 824, 683, 825, 184, 1050, 744, 727, 728, - 748, 749, 750, 1056, 753, 754, 771, 773, 775, 1071, - 779, 1060, 780, 781, 804, 450, 450, 806, 823, 807, - 450, 450, 1061, 809, 816, 817, 834, 836, 861, 837, - 1062, 1063, 1064, 864, 450, 838, 1065, 1066, 1067, 1068, - 872, 684, 24, 25, 685, 27, 28, 686, 30, 687, - 32, 1494, 33, 873, 886, 887, 918, 38, 39, 919, - 41, 42, 43, 920, 278, 937, 46, 1930, 923, 1504, - 307, 924, 925, 935, 942, 936, 943, 944, 1060, 945, - 450, 946, 951, 307, 1707, 952, 959, 960, 987, 1061, - 1008, 994, 997, 1492, 999, 1001, 1529, 1062, 1063, 1064, - 67, 68, 69, 1065, 1066, 1067, 1068, 1005, 1009, 1060, - 1010, 1012, 1013, 1014, 1015, 1018, 1019, 1932, 451, 451, - 1061, 307, 307, 451, 451, 1023, 1017, 1028, 1062, 1063, - 1064, 1030, 1754, 316, 1065, 1066, 1067, 1068, 1562, 1032, - 1033, 1034, 1035, 419, 419, 1037, 1036, 1060, 1038, 1039, - 307, 1080, 307, 1095, 307, 1046, 1053, 1099, 1061, 1097, - 7, 8, 1054, 1114, 1101, 1493, 1062, 1063, 1064, 1115, - 812, 307, 1065, 1066, 1067, 1068, 1060, 1116, 307, 1117, - 1102, 1103, 1127, 1128, 1934, 1163, 1129, 1061, 307, 1312, - 1608, 1125, 307, 1133, 1134, 1062, 1063, 1064, 1165, 1168, - 1173, 1065, 1066, 1067, 1068, 1621, 1624, 1625, 1174, 1188, - 1176, 1526, 1180, 1192, 1177, 1936, 1197, 1209, 307, 1189, - 1214, 1190, 1220, 1221, 1225, 1226, 684, 24, 25, 685, - 27, 28, 686, 30, 687, 32, 1228, 33, 1229, 1232, - 1248, 307, 38, 39, 1233, 41, 42, 43, 1242, 1243, - 1244, 46, 1245, 1967, 430, 431, 432, 433, 434, 435, - 436, 437, 438, 1246, 1856, 1258, 1261, 439, 1262, 1255, - 1256, 1257, 1060, 1263, 1276, 451, 451, 307, 1277, 1282, - 451, 451, 307, 1061, 1278, 67, 68, 69, 1279, 1280, - 1283, 1062, 1063, 1064, 451, 1284, 1285, 1065, 1066, 1067, - 1068, 1287, 1288, 307, 1286, 1289, 1309, 1314, 1315, 1317, - 1337, 1320, 1322, 1175, 1325, 1327, 307, 1329, 1330, 450, - 1338, 1331, 1060, 1341, 316, 1362, 1339, 1340, 1349, 278, - 1363, 1374, 1381, 1061, 1380, 1379, 1384, 1390, 307, 1389, - 451, 1062, 1063, 1064, 1391, 307, 307, 1065, 1066, 1067, - 1068, 1392, 1224, 1394, 1396, 869, 307, 1395, 1400, 307, - 1403, 425, 426, 427, 428, 429, 430, 431, 432, 433, - 434, 435, 436, 437, 438, 307, 419, 1404, 1968, 439, - 307, 1313, 1407, 1401, 1402, 1408, 1406, 1409, 1414, 1415, - 1424, 110, 333, 187, 1425, 1432, 1426, 113, 114, 115, - 1440, 1433, 116, 117, 118, 119, 120, 121, 122, 123, + 438, 307, 342, 537, 1388, 439, 731, 307, 1794, 316, + 731, 539, 1813, 307, 540, 307, 307, 1642, 576, 1867, + 307, 307, 1342, 307, 1872, 307, 1342, 307, 1873, 307, + 307, 307, 731, 731, 1888, 1890, 541, 451, 1706, 1521, + 546, 1900, 166, 167, 168, 731, 547, 1937, 307, 542, + 1492, 1060, 543, 1942, 175, 1943, 176, 89, 1521, 1974, + 1964, 1975, 1061, 307, 548, 7, 8, 307, 580, 307, + 1062, 1063, 1064, 586, 587, 592, 1065, 1066, 1067, 1068, + 185, 593, 824, 594, 825, 596, 1050, 610, 614, 611, + 615, 618, 439, 1056, 680, 681, 184, 727, 744, 1071, + 683, 1060, 728, 748, 779, 450, 450, 753, 749, 750, + 450, 450, 1061, 754, 771, 773, 775, 780, 781, 804, + 1062, 1063, 1064, 806, 450, 807, 1065, 1066, 1067, 1068, + 809, 684, 24, 25, 685, 27, 28, 686, 30, 687, + 32, 1494, 33, 816, 817, 823, 834, 38, 39, 836, + 41, 42, 43, 861, 278, 837, 46, 1930, 864, 1504, + 307, 838, 872, 873, 886, 918, 887, 919, 1060, 920, + 450, 923, 945, 307, 1707, 924, 925, 935, 936, 1061, + 937, 942, 943, 1492, 946, 944, 1529, 1062, 1063, 1064, + 67, 68, 69, 1065, 1066, 1067, 1068, 951, 959, 1060, + 960, 952, 987, 994, 1008, 997, 999, 1932, 451, 451, + 1061, 307, 307, 451, 451, 1001, 1013, 1005, 1062, 1063, + 1064, 1009, 1754, 316, 1065, 1066, 1067, 1068, 1562, 1010, + 1012, 1014, 1015, 419, 419, 1018, 1019, 1060, 1023, 1017, + 307, 1028, 307, 1032, 307, 1030, 1033, 1034, 1061, 1035, + 7, 8, 1036, 1037, 1038, 1493, 1062, 1063, 1064, 1046, + 812, 307, 1065, 1066, 1067, 1068, 1039, 1053, 307, 1080, + 1054, 1099, 1095, 1114, 1934, 1097, 934, 1117, 307, 1115, + 1608, 1116, 307, 427, 428, 429, 430, 431, 432, 433, + 434, 435, 436, 437, 438, 1621, 1624, 1625, 1101, 439, + 1127, 1526, 1102, 1163, 1128, 1936, 1165, 1209, 307, 1129, + 1103, 1133, 1168, 1125, 1173, 1134, 684, 24, 25, 685, + 27, 28, 686, 30, 687, 32, 1174, 33, 1176, 1177, + 1180, 307, 38, 39, 1188, 41, 42, 43, 1189, 1190, + 1192, 46, 1197, 1967, 430, 431, 432, 433, 434, 435, + 436, 437, 438, 1214, 1856, 1220, 1225, 439, 1226, 1255, + 1256, 1257, 1221, 1228, 1229, 451, 451, 307, 1232, 1060, + 451, 451, 307, 1233, 1242, 67, 68, 69, 1243, 1244, + 1061, 1245, 1246, 1248, 451, 1258, 1261, 1263, 1062, 1063, + 1064, 1262, 1277, 307, 1065, 1066, 1067, 1068, 1276, 1278, + 1279, 1280, 1283, 1175, 1284, 1285, 307, 1282, 1287, 450, + 1286, 1288, 1060, 1289, 316, 1309, 1314, 1315, 1317, 278, + 1320, 1322, 1325, 1061, 1327, 1329, 1330, 1331, 307, 1362, + 451, 1062, 1063, 1064, 1338, 307, 307, 1065, 1066, 1067, + 1068, 1337, 1224, 1339, 1340, 869, 307, 1341, 1349, 307, + 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, + 435, 436, 437, 438, 1363, 307, 419, 1379, 439, 1381, + 307, 1384, 1374, 1391, 1392, 1968, 1396, 1400, 1389, 1403, + 1380, 110, 333, 187, 1390, 1394, 1395, 113, 114, 115, + 1401, 1402, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, - 134, 135, 136, 137, 138, 1445, 1446, 1447, 1969, 307, - 1448, 1455, 1456, 1460, 1463, 1465, 147, 148, 149, 1472, - 1466, 1473, 1474, 154, 1478, 1481, 1495, 1482, 307, 1498, - 1501, 1506, 1507, 1509, 159, 160, 161, 1512, 1513, 1514, - 1515, 1525, 162, 1530, 1542, 1531, 1535, 1536, 1537, 278, - 1540, 1543, 1544, 1545, 1546, 334, 1549, 1550, 1551, 1552, - 1553, 1822, 1554, 1557, 1570, 1573, 1450, 425, 426, 427, + 134, 135, 136, 137, 138, 1404, 1406, 1407, 1969, 307, + 1408, 1409, 1414, 1415, 1424, 1425, 147, 148, 149, 1426, + 1440, 1432, 1445, 154, 1433, 1446, 1455, 1447, 307, 1448, + 1463, 1456, 1460, 1465, 159, 160, 161, 1466, 1472, 1473, + 1474, 1478, 162, 1482, 1495, 1481, 1530, 1498, 1501, 278, + 1506, 1507, 1509, 1525, 1512, 334, 1513, 1514, 1515, 1542, + 1531, 1822, 1535, 1536, 1537, 1540, 1450, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, - 438, 1576, 1580, 1584, 1587, 439, 1591, 1595, 1610, 307, - 1613, 307, 1617, 1626, 1627, 1628, 1629, 1630, 1655, 1632, - 1633, 1634, 1635, 1641, 1644, 307, 425, 426, 427, 428, + 438, 1543, 1545, 1544, 1546, 439, 1549, 1550, 1551, 307, + 1552, 307, 1553, 1554, 1557, 1570, 1573, 1576, 1580, 1584, + 1587, 1591, 1595, 1610, 1613, 307, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, - 574, 1648, 1649, 1658, 439, 1657, 1659, 165, 1664, 1665, - 1670, 169, 1676, 1685, 1667, 170, 171, 172, 173, 174, - 1668, 1672, 1674, 89, 407, 408, 409, 411, 413, 1678, - 1679, 1691, 1696, 1697, 1698, 1895, 1699, 177, 178, 451, - 1700, 446, 179, 1701, 1702, 453, 307, 299, 1715, 316, - 1721, 1722, 183, 1708, 500, 450, 1723, 1724, 1725, 460, - 462, 465, 466, 1726, 468, 462, 470, 471, 1534, 462, - 474, 475, 1281, 1728, 1750, 1757, 462, 1768, 1775, 1772, - 1774, 1784, 307, 428, 429, 430, 431, 432, 433, 434, - 435, 436, 437, 438, 501, 1787, 1790, 1793, 439, 450, - 1791, 450, 1807, 510, 511, 1808, 1569, 1820, 1572, 1834, - 1575, 1839, 511, 1795, 1841, 1811, 1844, 1355, 1845, 1848, - 1849, 1852, 1853, 1858, 1883, 1586, 1896, 1866, 1589, 1590, - 1897, 450, 427, 428, 429, 430, 431, 432, 433, 434, - 435, 436, 437, 438, 1906, 569, 571, 462, 439, 1877, + 574, 1617, 1626, 1627, 439, 1628, 1629, 165, 1630, 1641, + 1632, 169, 1633, 1634, 1635, 170, 171, 172, 173, 174, + 1644, 1648, 1649, 89, 407, 408, 409, 411, 413, 1655, + 1657, 1658, 1659, 1664, 1665, 1895, 1667, 177, 178, 451, + 1670, 446, 179, 1668, 1676, 453, 307, 299, 1672, 316, + 1674, 1678, 183, 1685, 500, 450, 1679, 1696, 1691, 460, + 462, 465, 466, 1697, 468, 462, 470, 471, 1534, 462, + 474, 475, 1281, 1698, 1699, 1700, 462, 1701, 1702, 1715, + 1721, 1722, 307, 428, 429, 430, 431, 432, 433, 434, + 435, 436, 437, 438, 501, 1708, 1723, 1724, 439, 450, + 1725, 450, 1726, 510, 511, 1750, 1569, 1757, 1572, 1768, + 1575, 1728, 511, 1772, 1774, 1775, 1784, 1355, 1790, 1793, + 1787, 1807, 1791, 1808, 1820, 1586, 1834, 1839, 1589, 1590, + 1795, 450, 1841, 1844, 1845, 1848, 1849, 1852, 1858, 1866, + 1883, 1811, 1896, 1897, 1906, 569, 571, 462, 1853, 1877, 1879, 1881, 1898, 1909, 1912, 1915, 1917, 581, 582, 583, - 1925, 585, 1926, 1946, 1949, 588, 589, 590, 1951, 1931, - 591, 1933, 425, 426, 427, 428, 429, 430, 431, 432, + 1925, 585, 1926, 1931, 1933, 588, 589, 590, 1946, 1935, + 591, 1944, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 575, 437, 438, 1923, 607, 609, 1823, - 439, 1935, 1944, 1953, 1955, 1961, 1976, 1977, 1978, 1979, + 439, 1949, 1951, 1953, 1955, 1961, 1976, 1977, 1978, 1979, 1980, 616, 617, 1981, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, - 635, 636, 637, 638, 639, 640, 1983, 1383, 1824, 1398, - 1960, 1718, 1963, 726, 94, 103, 1736, 652, 756, 0, - 1508, 0, 0, 658, 0, 660, 425, 426, 427, 428, + 635, 636, 637, 638, 639, 640, 1983, 1383, 1824, 726, + 1960, 1718, 1963, 1398, 94, 103, 1736, 652, 1508, 0, + 756, 0, 0, 658, 0, 660, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 0, 0, 1982, 0, 439, 0, 0, 0, 0, 689, 462, 0, 691, 692, 693, 694, 695, 696, 697, 698, @@ -2607,107 +3255,107 @@ static const yytype_int16 yytable[] = static const yytype_int16 yycheck[] = { 3, 5, 250, 6, 6, 379, 4, 381, 1073, 4, - 4, 514, 515, 6, 3, 7, 6, 5, 265, 1069, - 394, 4, 4, 4, 84, 5, 4, 1646, 4, 4, - 277, 4, 4, 4, 4, 1455, 5, 5, 5, 109, - 6, 4, 21, 22, 5, 5, 199, 5, 5, 199, - 6, 6, 6, 206, 57, 6, 206, 4, 0, 6, - 189, 190, 65, 189, 190, 195, 196, 70, 4, 13, - 7, 189, 190, 189, 190, 199, 206, 206, 81, 205, - 6, 207, 6, 330, 7, 332, 199, 205, 201, 207, - 206, 81, 82, 189, 190, 189, 190, 189, 190, 199, - 78, 6, 142, 201, 82, 7, 206, 199, 410, 205, - 412, 207, 414, 207, 206, 199, 94, 157, 158, 7, - 189, 190, 195, 196, 1544, 199, 6, 195, 196, 108, - 7, 78, 206, 206, 6, 203, 6, 206, 117, 118, + 4, 514, 515, 4, 3, 7, 6, 5, 265, 1069, + 394, 4, 4, 4, 4, 196, 197, 1646, 4, 4, + 277, 4, 203, 4, 4, 1455, 5, 5, 5, 109, + 6, 4, 21, 22, 5, 5, 5, 5, 5, 142, + 6, 6, 6, 203, 57, 6, 199, 4, 208, 6, + 189, 190, 65, 206, 157, 158, 199, 70, 4, 101, + 7, 81, 81, 206, 84, 84, 86, 206, 81, 6, + 112, 6, 6, 330, 7, 332, 0, 6, 120, 121, + 122, 81, 82, 6, 126, 127, 128, 129, 78, 84, + 101, 78, 82, 13, 81, 189, 190, 84, 410, 86, + 412, 112, 414, 199, 94, 189, 190, 199, 7, 120, + 121, 122, 7, 207, 1544, 126, 127, 128, 129, 108, + 7, 78, 206, 81, 6, 199, 84, 201, 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, 1782, 1783, 145, 145, 146, 6, 142, - 143, 150, 151, 152, 153, 156, 145, 156, 145, 130, - 183, 6, 153, 162, 163, 145, 6, 189, 190, 168, - 169, 4, 195, 196, 187, 184, 132, 133, 134, 135, - 203, 199, 206, 175, 175, 199, 201, 201, 211, 203, + 139, 140, 141, 1782, 1783, 156, 145, 146, 6, 142, + 143, 150, 151, 152, 153, 207, 145, 156, 145, 130, + 183, 6, 153, 162, 163, 145, 145, 189, 190, 168, + 169, 4, 195, 196, 175, 184, 132, 133, 134, 135, + 203, 199, 206, 130, 175, 199, 201, 201, 211, 203, 213, 203, 175, 208, 208, 218, 199, 199, 206, 222, 210, 1641, 225, 206, 206, 1275, 229, 230, 231, 232, 206, 206, 235, 236, 237, 206, 206, 206, 206, 1659, 243, 244, 245, 206, 199, 206, 249, 250, 206, 206, 206, 206, 206, 176, 177, 178, 179, 7, 505, 506, - 3, 187, 199, 6, 201, 189, 190, 199, 271, 272, - 273, 207, 195, 196, 176, 177, 178, 179, 525, 7, - 203, 6, 285, 286, 189, 190, 195, 196, 176, 177, - 178, 179, 130, 195, 196, 298, 199, 300, 201, 176, - 177, 178, 179, 6, 606, 208, 608, 195, 196, 4, - 130, 290, 6, 7, 57, 7, 189, 190, 195, 196, - 6, 189, 190, 195, 196, 189, 190, 70, 307, 142, - 143, 202, 205, 336, 205, 338, 339, 205, 81, 586, - 199, 205, 201, 199, 414, 201, 203, 203, 351, 208, - 206, 208, 208, 600, 344, 180, 181, 182, 183, 184, + 3, 186, 199, 6, 201, 189, 190, 186, 271, 272, + 273, 207, 7, 196, 197, 6, 189, 190, 525, 7, + 203, 6, 285, 286, 199, 7, 6, 176, 177, 178, + 179, 176, 177, 178, 179, 298, 199, 300, 201, 176, + 177, 178, 179, 199, 606, 208, 608, 196, 197, 6, + 206, 290, 196, 197, 57, 7, 189, 190, 202, 196, + 197, 189, 190, 195, 196, 189, 190, 70, 307, 142, + 143, 6, 205, 336, 207, 338, 339, 205, 81, 586, + 199, 205, 201, 207, 414, 191, 192, 193, 351, 208, + 6, 7, 198, 600, 344, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 200, 672, 202, 7, 198, 676, 206, 379, 380, 381, 382, - 383, 384, 385, 386, 387, 388, 389, 7, 391, 392, - 393, 394, 395, 189, 190, 201, 399, 400, 401, 402, - 403, 404, 6, 406, 7, 130, 6, 397, 1828, 205, - 105, 106, 107, 108, 199, 405, 189, 190, 81, 114, - 423, 84, 117, 189, 190, 199, 176, 177, 178, 179, - 195, 196, 205, 4, 5, 199, 6, 202, 417, 205, - 183, 189, 190, 195, 196, 195, 196, 88, 176, 177, - 178, 179, 195, 196, 206, 195, 196, 205, 461, 78, - 203, 200, 81, 202, 336, 84, 206, 206, 211, 40, - 41, 42, 43, 44, 45, 46, 47, 199, 189, 190, + 383, 384, 385, 386, 387, 388, 389, 201, 391, 392, + 393, 394, 395, 189, 190, 199, 399, 400, 401, 402, + 403, 404, 206, 406, 84, 130, 86, 397, 1828, 205, + 130, 207, 6, 189, 190, 405, 189, 190, 189, 190, + 423, 189, 190, 199, 196, 197, 176, 177, 178, 179, + 206, 200, 205, 4, 5, 206, 205, 205, 417, 8, + 183, 176, 177, 178, 179, 6, 196, 197, 176, 177, + 178, 179, 195, 196, 176, 177, 178, 179, 461, 201, + 203, 196, 197, 202, 336, 4, 205, 199, 211, 40, + 41, 42, 43, 44, 45, 46, 47, 88, 189, 190, 51, 52, 53, 54, 176, 177, 178, 179, 59, 60, 61, 199, 78, 64, 205, 81, 499, 500, 84, 489, - 490, 491, 492, 81, 75, 1925, 84, 250, 380, 199, - 382, 383, 384, 385, 386, 202, 388, 389, 205, 391, + 490, 491, 492, 202, 75, 1925, 205, 250, 380, 199, + 382, 383, 384, 385, 386, 199, 388, 389, 199, 391, 392, 393, 199, 395, 201, 514, 515, 399, 400, 401, - 402, 403, 6, 84, 781, 86, 189, 190, 541, 542, - 543, 176, 177, 178, 179, 205, 84, 207, 618, 84, - 553, 554, 205, 189, 190, 200, 176, 177, 178, 179, - 205, 49, 50, 200, 52, 568, 189, 190, 205, 205, - 189, 190, 575, 176, 177, 178, 179, 879, 189, 190, - 199, 883, 205, 189, 190, 195, 196, 206, 206, 160, - 161, 162, 78, 336, 205, 81, 206, 84, 84, 205, - 86, 172, 672, 174, 175, 1670, 676, 1672, 611, 1674, + 402, 403, 199, 205, 781, 207, 189, 190, 541, 542, + 543, 176, 177, 178, 179, 196, 197, 205, 618, 207, + 553, 554, 205, 78, 84, 206, 81, 189, 190, 84, + 84, 49, 50, 6, 52, 568, 105, 106, 107, 108, + 189, 190, 575, 205, 205, 114, 207, 879, 117, 189, + 190, 883, 189, 190, 189, 190, 205, 196, 197, 160, + 161, 162, 206, 336, 200, 205, 202, 206, 205, 205, + 205, 172, 672, 174, 175, 1670, 676, 1672, 611, 1674, + 86, 180, 181, 182, 183, 184, 185, 186, 187, 188, + 189, 190, 191, 192, 193, 196, 197, 84, 200, 198, + 202, 200, 203, 84, 206, 206, 379, 380, 381, 382, + 383, 384, 385, 386, 199, 388, 389, 81, 391, 392, + 393, 394, 395, 189, 190, 206, 399, 400, 401, 402, + 403, 404, 206, 406, 189, 190, 189, 190, 671, 205, + 189, 190, 675, 84, 199, 189, 190, 81, 189, 190, + 4, 206, 205, 81, 189, 190, 205, 677, 189, 190, + 200, 205, 202, 1743, 205, 205, 1746, 189, 190, 1749, + 205, 84, 196, 197, 205, 200, 189, 190, 189, 190, + 205, 714, 206, 205, 962, 718, 6, 7, 721, 189, + 190, 724, 205, 726, 205, 189, 190, 730, 731, 101, + 1032, 205, 1034, 207, 1036, 205, 1038, 199, 728, 201, + 112, 205, 196, 197, 4, 1810, 208, 4, 120, 121, + 122, 754, 206, 823, 126, 127, 128, 129, 196, 197, + 4, 196, 197, 105, 106, 253, 254, 200, 206, 111, + 101, 206, 205, 261, 199, 778, 199, 265, 201, 81, + 203, 112, 84, 206, 86, 208, 199, 1161, 1162, 120, + 121, 122, 1166, 1167, 199, 126, 127, 128, 129, 189, + 190, 191, 192, 193, 205, 1855, 207, 199, 198, 879, + 199, 554, 1877, 883, 1879, 199, 1881, 201, 8, 889, + 890, 6, 1887, 826, 208, 828, 105, 106, 831, 199, + 6, 201, 111, 203, 205, 207, 207, 840, 208, 842, + 200, 844, 199, 846, 201, 205, 203, 201, 851, 721, + 199, 208, 201, 856, 726, 1905, 201, 78, 1908, 208, + 81, 1911, 199, 84, 1914, 86, 1931, 1169, 1933, 199, + 1935, 874, 200, 200, 202, 878, 207, 205, 205, 882, + 200, 199, 202, 1185, 230, 231, 232, 890, 200, 235, + 236, 237, 200, 205, 202, 8, 200, 205, 202, 199, + 1950, 205, 1952, 200, 1954, 202, 200, 205, 205, 207, + 7, 205, 915, 983, 984, 199, 205, 920, 207, 199, + 923, 924, 925, 189, 190, 271, 272, 101, 1176, 1432, + 1433, 201, 200, 936, 202, 938, 926, 205, 112, 285, + 286, 205, 6, 207, 1318, 1319, 120, 121, 122, 1323, + 1324, 199, 126, 127, 128, 129, 205, 199, 207, 962, + 199, 199, 965, 966, 967, 968, 945, 946, 205, 205, + 207, 207, 951, 952, 205, 205, 207, 207, 721, 199, + 84, 724, 86, 726, 84, 199, 86, 990, 206, 206, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, - 190, 191, 192, 193, 195, 196, 81, 84, 198, 84, - 86, 86, 203, 195, 196, 206, 379, 380, 381, 382, - 383, 384, 385, 386, 206, 388, 389, 81, 391, 392, - 393, 394, 395, 205, 101, 207, 399, 400, 401, 402, - 403, 404, 199, 406, 201, 112, 203, 199, 671, 189, - 190, 208, 675, 120, 121, 122, 189, 190, 200, 126, - 127, 128, 129, 205, 205, 205, 207, 677, 189, 190, - 189, 190, 205, 1743, 189, 190, 1746, 189, 190, 1749, - 189, 190, 206, 199, 205, 201, 205, 203, 189, 190, - 205, 714, 208, 205, 962, 718, 205, 200, 721, 189, - 190, 724, 205, 726, 205, 105, 106, 730, 731, 101, - 1032, 111, 1034, 206, 1036, 205, 1038, 199, 728, 201, - 112, 105, 106, 6, 7, 1810, 208, 111, 120, 121, - 122, 754, 84, 823, 126, 127, 128, 129, 200, 199, - 207, 201, 199, 205, 201, 253, 254, 81, 208, 81, - 101, 208, 84, 261, 86, 778, 78, 265, 200, 81, - 202, 112, 84, 205, 86, 189, 190, 1161, 1162, 120, - 121, 122, 1166, 1167, 81, 126, 127, 128, 129, 189, - 190, 191, 192, 193, 205, 1855, 207, 84, 198, 879, - 4, 554, 1877, 883, 1879, 200, 1881, 202, 8, 889, - 890, 200, 1887, 826, 4, 828, 205, 200, 831, 191, - 192, 193, 205, 199, 199, 207, 198, 840, 4, 842, - 200, 844, 202, 846, 205, 205, 207, 4, 851, 721, - 205, 199, 207, 856, 726, 1905, 201, 200, 1908, 202, - 199, 1911, 205, 205, 1914, 207, 1931, 1169, 1933, 199, - 1935, 874, 200, 6, 202, 878, 207, 205, 205, 882, - 207, 6, 201, 1185, 230, 231, 232, 890, 199, 235, - 236, 237, 200, 199, 202, 8, 200, 205, 202, 199, - 1950, 205, 1952, 200, 1954, 202, 199, 205, 205, 207, - 7, 199, 915, 983, 984, 199, 205, 920, 207, 199, - 923, 924, 925, 199, 199, 271, 272, 101, 1176, 1432, - 1433, 199, 205, 936, 207, 938, 926, 199, 112, 285, - 286, 205, 199, 207, 1318, 1319, 120, 121, 122, 1323, - 1324, 201, 126, 127, 128, 129, 205, 6, 207, 962, - 206, 206, 965, 966, 967, 968, 945, 946, 205, 84, - 207, 86, 951, 952, 84, 205, 86, 207, 721, 206, - 205, 724, 207, 726, 205, 199, 207, 990, 6, 199, - 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, - 190, 191, 192, 193, 199, 206, 1009, 1010, 198, 1012, - 199, 1014, 1015, 199, 199, 1018, 1019, 207, 890, 101, + 190, 191, 192, 193, 206, 6, 1009, 1010, 198, 1012, + 199, 1014, 1015, 199, 206, 1018, 1019, 207, 890, 101, 1023, 1091, 1092, 6, 512, 513, 1328, 205, 4, 207, 112, 199, 520, 207, 205, 205, 207, 207, 120, 121, 122, 1111, 1112, 206, 126, 127, 128, 129, 920, 205, @@ -2716,105 +3364,105 @@ static const yytype_int16 yycheck[] = 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 205, 101, 207, 205, 198, 207, 205, 205, 207, 207, 199, 206, 112, 207, 206, 4, 5, 205, 1169, - 207, 120, 121, 122, 4, 206, 6, 126, 127, 128, + 207, 120, 121, 122, 205, 199, 207, 126, 127, 128, 129, 1114, 1115, 1116, 205, 205, 207, 207, 990, 1367, - 206, 205, 1125, 207, 205, 207, 207, 205, 205, 207, - 207, 206, 40, 41, 42, 43, 44, 45, 46, 47, + 199, 4, 1125, 6, 205, 207, 207, 205, 205, 207, + 207, 199, 40, 41, 42, 43, 44, 45, 46, 47, 205, 199, 207, 51, 52, 53, 54, 890, 199, 1128, - 1129, 59, 60, 61, 1133, 1134, 64, 199, 1161, 1162, - 201, 199, 1665, 1166, 1167, 208, 205, 75, 207, 205, - 205, 207, 207, 1176, 205, 6, 207, 920, 205, 6, + 1129, 59, 60, 61, 1133, 1134, 64, 206, 1161, 1162, + 206, 206, 1665, 1166, 1167, 199, 205, 75, 207, 205, + 205, 207, 207, 1176, 205, 199, 207, 920, 205, 199, 207, 924, 925, 205, 205, 207, 207, 1190, 207, 205, 205, 207, 207, 936, 205, 938, 207, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, - 193, 1214, 206, 206, 1204, 198, 205, 1220, 207, 962, - 205, 201, 207, 1226, 206, 1228, 1229, 205, 6, 207, + 193, 1214, 208, 201, 1204, 198, 205, 1220, 207, 962, + 205, 6, 207, 1226, 6, 1228, 1229, 205, 6, 207, 1233, 1234, 205, 1236, 207, 1238, 205, 1240, 207, 1242, - 1243, 1244, 205, 205, 207, 207, 201, 990, 1622, 205, - 201, 207, 160, 161, 162, 205, 6, 207, 1261, 206, - 1330, 101, 145, 208, 172, 6, 174, 175, 6, 206, - 6, 6, 112, 1276, 206, 12, 13, 1280, 6, 1282, - 120, 121, 122, 201, 4, 198, 126, 127, 128, 129, - 7, 203, 200, 207, 202, 206, 784, 7, 205, 205, - 6, 6, 6, 791, 7, 7, 6, 6, 6, 797, - 200, 101, 6, 206, 7, 1318, 1319, 6, 4, 7, - 1323, 1324, 112, 6, 6, 6, 56, 56, 142, 56, - 120, 121, 122, 206, 1337, 56, 126, 127, 128, 129, - 202, 78, 79, 80, 81, 82, 83, 84, 85, 86, - 87, 1341, 89, 200, 6, 6, 200, 94, 95, 200, - 97, 98, 99, 205, 1367, 200, 103, 207, 205, 1359, - 1373, 205, 205, 205, 200, 205, 200, 202, 101, 40, - 1383, 40, 40, 1386, 1632, 40, 6, 4, 4, 112, - 145, 6, 6, 1463, 6, 6, 1386, 120, 121, 122, - 137, 138, 139, 126, 127, 128, 129, 7, 7, 101, - 7, 7, 145, 7, 7, 7, 7, 207, 1161, 1162, - 112, 1424, 1425, 1166, 1167, 206, 145, 4, 120, 121, - 122, 6, 1679, 1176, 126, 127, 128, 129, 1428, 200, - 205, 200, 205, 1432, 1433, 205, 200, 101, 200, 205, - 1453, 6, 1455, 200, 1457, 203, 207, 206, 112, 202, - 12, 13, 207, 7, 206, 1337, 120, 121, 122, 7, - 207, 1474, 126, 127, 128, 129, 101, 7, 1481, 203, - 206, 206, 6, 40, 207, 6, 40, 112, 1491, 8, - 1480, 206, 1495, 40, 40, 120, 121, 122, 6, 6, - 6, 126, 127, 128, 129, 1495, 1496, 1497, 6, 199, - 7, 1383, 6, 6, 201, 207, 187, 1005, 1521, 199, - 7, 206, 7, 86, 7, 7, 78, 79, 80, 81, - 82, 83, 84, 85, 86, 87, 7, 89, 7, 6, - 4, 1544, 94, 95, 7, 97, 98, 99, 7, 7, - 7, 103, 7, 207, 185, 186, 187, 188, 189, 190, - 191, 192, 193, 7, 1811, 4, 206, 198, 6, 1057, - 1058, 1059, 101, 199, 7, 1318, 1319, 1580, 6, 206, - 1323, 1324, 1585, 112, 7, 137, 138, 139, 7, 7, - 6, 120, 121, 122, 1337, 6, 6, 126, 127, 128, - 129, 7, 6, 1606, 84, 6, 4, 4, 4, 207, - 205, 6, 6, 6, 6, 6, 1619, 6, 4, 1622, - 200, 6, 101, 205, 1367, 203, 200, 200, 200, 1632, - 7, 199, 6, 112, 203, 206, 6, 202, 1641, 200, - 1383, 120, 121, 122, 6, 1648, 1649, 126, 127, 128, - 129, 6, 6, 206, 94, 207, 1659, 206, 6, 1662, - 6, 180, 181, 182, 183, 184, 185, 186, 187, 188, - 189, 190, 191, 192, 193, 1678, 1665, 6, 207, 198, - 1683, 200, 6, 206, 206, 6, 206, 5, 4, 6, - 206, 3, 4, 6, 206, 206, 7, 9, 10, 11, - 201, 206, 14, 15, 16, 17, 18, 19, 20, 21, + 1243, 1244, 205, 205, 207, 207, 206, 990, 1622, 205, + 201, 207, 160, 161, 162, 205, 201, 207, 1261, 206, + 1330, 101, 206, 205, 172, 207, 174, 175, 205, 205, + 207, 207, 112, 1276, 201, 12, 13, 1280, 6, 1282, + 120, 121, 122, 206, 145, 6, 126, 127, 128, 129, + 208, 6, 200, 6, 202, 6, 784, 206, 6, 206, + 201, 4, 198, 791, 203, 7, 206, 205, 7, 797, + 207, 101, 205, 6, 200, 1318, 1319, 7, 6, 6, + 1323, 1324, 112, 7, 6, 6, 6, 6, 206, 7, + 120, 121, 122, 6, 1337, 7, 126, 127, 128, 129, + 6, 78, 79, 80, 81, 82, 83, 84, 85, 86, + 87, 1341, 89, 6, 6, 4, 56, 94, 95, 56, + 97, 98, 99, 142, 1367, 56, 103, 207, 206, 1359, + 1373, 56, 202, 200, 6, 200, 6, 200, 101, 205, + 1383, 205, 40, 1386, 1632, 205, 205, 205, 205, 112, + 200, 200, 200, 1463, 40, 202, 1386, 120, 121, 122, + 137, 138, 139, 126, 127, 128, 129, 40, 6, 101, + 4, 40, 4, 6, 145, 6, 6, 207, 1161, 1162, + 112, 1424, 1425, 1166, 1167, 6, 145, 7, 120, 121, + 122, 7, 1679, 1176, 126, 127, 128, 129, 1428, 7, + 7, 7, 7, 1432, 1433, 7, 7, 101, 206, 145, + 1453, 4, 1455, 200, 1457, 6, 205, 200, 112, 205, + 12, 13, 200, 205, 200, 1337, 120, 121, 122, 203, + 207, 1474, 126, 127, 128, 129, 205, 207, 1481, 6, + 207, 206, 200, 7, 207, 202, 6, 203, 1491, 7, + 1480, 7, 1495, 182, 183, 184, 185, 186, 187, 188, + 189, 190, 191, 192, 193, 1495, 1496, 1497, 206, 198, + 6, 1383, 206, 6, 40, 207, 6, 1005, 1521, 40, + 206, 40, 6, 206, 6, 40, 78, 79, 80, 81, + 82, 83, 84, 85, 86, 87, 6, 89, 7, 201, + 6, 1544, 94, 95, 199, 97, 98, 99, 199, 206, + 6, 103, 186, 207, 185, 186, 187, 188, 189, 190, + 191, 192, 193, 7, 1811, 7, 7, 198, 7, 1057, + 1058, 1059, 86, 7, 7, 1318, 1319, 1580, 6, 101, + 1323, 1324, 1585, 7, 7, 137, 138, 139, 7, 7, + 112, 7, 7, 4, 1337, 4, 206, 199, 120, 121, + 122, 6, 6, 1606, 126, 127, 128, 129, 7, 7, + 7, 7, 6, 6, 6, 6, 1619, 206, 7, 1622, + 84, 6, 101, 6, 1367, 4, 4, 4, 207, 1632, + 6, 6, 6, 112, 6, 6, 4, 6, 1641, 203, + 1383, 120, 121, 122, 200, 1648, 1649, 126, 127, 128, + 129, 205, 6, 200, 200, 207, 1659, 205, 200, 1662, + 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, + 190, 191, 192, 193, 7, 1678, 1665, 206, 198, 6, + 1683, 6, 199, 6, 6, 207, 94, 6, 200, 6, + 203, 3, 4, 6, 202, 206, 206, 9, 10, 11, + 206, 206, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, - 32, 33, 34, 35, 36, 6, 6, 6, 207, 1732, - 6, 206, 206, 206, 4, 200, 48, 49, 50, 6, - 202, 6, 141, 55, 6, 205, 4, 6, 1751, 6, - 6, 6, 4, 6, 66, 67, 68, 6, 6, 6, - 6, 4, 74, 7, 5, 7, 6, 6, 6, 1772, - 6, 6, 206, 6, 145, 88, 6, 6, 6, 6, - 6, 1771, 6, 6, 6, 6, 1274, 180, 181, 182, + 32, 33, 34, 35, 36, 6, 206, 6, 207, 1732, + 6, 5, 4, 6, 206, 206, 48, 49, 50, 7, + 201, 206, 6, 55, 206, 6, 206, 6, 1751, 6, + 4, 206, 206, 200, 66, 67, 68, 202, 6, 6, + 141, 6, 74, 6, 4, 205, 7, 6, 6, 1772, + 6, 4, 6, 4, 6, 88, 6, 6, 6, 5, + 7, 1771, 6, 6, 6, 6, 1274, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, - 193, 6, 205, 6, 6, 198, 6, 6, 6, 1812, - 6, 1814, 200, 6, 6, 6, 6, 6, 5, 7, - 6, 203, 6, 206, 6, 1828, 180, 181, 182, 183, + 193, 6, 6, 206, 145, 198, 6, 6, 6, 1812, + 6, 1814, 6, 6, 6, 6, 6, 6, 205, 6, + 6, 6, 6, 6, 6, 1828, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, - 8, 206, 206, 6, 198, 82, 206, 159, 6, 206, - 206, 163, 6, 6, 207, 167, 168, 169, 170, 171, - 207, 206, 206, 175, 177, 178, 179, 180, 181, 7, - 206, 140, 6, 207, 6, 1865, 6, 189, 190, 1622, - 6, 194, 194, 6, 6, 198, 1889, 199, 6, 1632, - 6, 6, 204, 143, 206, 1898, 6, 6, 6, 212, - 213, 214, 215, 6, 217, 218, 219, 220, 1396, 222, - 223, 224, 6, 206, 6, 6, 229, 6, 206, 7, - 6, 206, 1925, 183, 184, 185, 186, 187, 188, 189, - 190, 191, 192, 193, 247, 206, 6, 6, 198, 1942, - 206, 1944, 6, 256, 257, 101, 1434, 6, 1436, 6, - 1438, 6, 265, 207, 6, 206, 6, 6, 6, 6, - 6, 6, 207, 6, 6, 1453, 200, 199, 1456, 1457, - 6, 1974, 182, 183, 184, 185, 186, 187, 188, 189, - 190, 191, 192, 193, 6, 298, 299, 300, 198, 206, + 8, 200, 6, 6, 198, 6, 6, 159, 6, 206, + 7, 163, 6, 203, 6, 167, 168, 169, 170, 171, + 6, 206, 206, 175, 177, 178, 179, 180, 181, 5, + 82, 6, 206, 6, 206, 1865, 207, 189, 190, 1622, + 206, 194, 194, 207, 6, 198, 1889, 199, 206, 1632, + 206, 7, 204, 6, 206, 1898, 206, 6, 140, 212, + 213, 214, 215, 207, 217, 218, 219, 220, 1396, 222, + 223, 224, 6, 6, 6, 6, 229, 6, 6, 6, + 6, 6, 1925, 183, 184, 185, 186, 187, 188, 189, + 190, 191, 192, 193, 247, 143, 6, 6, 198, 1942, + 6, 1944, 6, 256, 257, 6, 1434, 6, 1436, 6, + 1438, 206, 265, 7, 6, 206, 206, 6, 6, 6, + 206, 6, 206, 101, 6, 1453, 6, 6, 1456, 1457, + 207, 1974, 6, 6, 6, 6, 6, 6, 6, 199, + 6, 206, 200, 6, 6, 298, 299, 300, 207, 206, 206, 206, 206, 6, 6, 6, 6, 310, 311, 312, - 206, 314, 6, 6, 6, 318, 319, 320, 6, 206, + 206, 314, 6, 206, 206, 318, 319, 320, 6, 206, 323, 206, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 1898, 340, 341, 1772, - 198, 206, 206, 6, 6, 6, 6, 6, 6, 6, + 198, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 354, 355, 6, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, - 373, 374, 375, 376, 377, 378, 6, 1199, 1775, 1213, - 1942, 1647, 1944, 457, 3, 3, 1661, 390, 487, -1, - 1363, -1, -1, 396, -1, 398, 180, 181, 182, 183, + 373, 374, 375, 376, 377, 378, 6, 1199, 1775, 457, + 1942, 1647, 1944, 1213, 3, 3, 1661, 390, 1363, -1, + 487, -1, -1, 396, -1, 398, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, -1, -1, 1974, -1, 198, -1, -1, -1, -1, 422, 423, -1, 425, 426, 427, 428, 429, 430, 431, 432, @@ -3849,8 +4497,8 @@ static const yytype_int16 yycheck[] = -1, -1, 198 }; - /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing - symbol of state STATE-NUM. */ +/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing + symbol of state STATE-NUM. */ static const yytype_uint16 yystos[] = { 0, 1, 210, 211, 6, 0, 4, 12, 13, 38, @@ -3887,8 +4535,8 @@ static const yytype_uint16 yystos[] = 199, 199, 199, 4, 206, 300, 308, 4, 199, 199, 199, 6, 6, 201, 4, 304, 308, 4, 304, 5, 206, 5, 206, 4, 290, 307, 201, 6, 199, 206, - 199, 201, 208, 233, 7, 176, 177, 178, 179, 195, - 196, 231, 232, 4, 199, 201, 203, 233, 233, 233, + 199, 201, 208, 233, 7, 176, 177, 178, 179, 196, + 197, 231, 232, 4, 199, 201, 203, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 199, 199, 199, 233, 233, 199, 199, 199, @@ -3920,7 +4568,7 @@ static const yytype_uint16 yystos[] = 290, 306, 303, 306, 303, 303, 303, 303, 303, 296, 303, 303, 290, 303, 303, 303, 306, 303, 290, 304, 290, 303, 303, 303, 303, 303, 308, 304, 308, 7, - 176, 231, 200, 7, 176, 231, 202, 7, 231, 232, + 179, 231, 200, 7, 179, 231, 202, 7, 231, 232, 203, 7, 233, 207, 78, 81, 84, 86, 254, 290, 299, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 216, 290, 290, 6, @@ -3940,8 +4588,8 @@ static const yytype_uint16 yystos[] = 206, 5, 206, 5, 206, 5, 206, 299, 200, 207, 290, 206, 290, 298, 290, 290, 206, 234, 200, 200, 200, 142, 205, 257, 206, 8, 200, 200, 202, 207, - 207, 257, 202, 200, 205, 207, 7, 176, 231, 200, - 7, 176, 231, 202, 290, 299, 6, 6, 290, 200, + 207, 257, 202, 200, 205, 207, 7, 179, 231, 200, + 7, 179, 231, 202, 290, 299, 6, 6, 290, 200, 202, 232, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 205, 234, 234, 234, 234, 234, 234, 234, 205, 205, 205, 234, 205, 234, 234, 200, 200, @@ -3951,7 +4599,7 @@ static const yytype_uint16 yystos[] = 232, 40, 40, 296, 203, 231, 232, 304, 290, 6, 4, 4, 206, 301, 234, 206, 206, 206, 206, 207, 207, 8, 4, 132, 133, 134, 135, 207, 219, 223, - 226, 228, 229, 200, 202, 290, 290, 4, 6, 187, + 226, 228, 229, 200, 202, 290, 290, 4, 6, 186, 213, 299, 290, 290, 6, 299, 290, 6, 303, 6, 308, 6, 303, 290, 304, 7, 290, 298, 145, 7, 7, 200, 7, 145, 7, 7, 200, 145, 7, 7, @@ -3972,7 +4620,7 @@ static const yytype_uint16 yystos[] = 290, 233, 233, 6, 290, 6, 233, 233, 6, 4, 142, 143, 290, 6, 6, 6, 7, 201, 300, 302, 6, 299, 299, 299, 299, 234, 290, 220, 199, 199, - 206, 230, 6, 232, 232, 200, 202, 187, 303, 200, + 206, 230, 6, 232, 232, 200, 202, 186, 303, 200, 200, 202, 200, 205, 7, 199, 201, 234, 234, 293, 84, 86, 296, 296, 7, 296, 84, 86, 296, 296, 7, 86, 296, 296, 6, 7, 7, 299, 7, 7, @@ -4054,163 +4702,95 @@ static const yytype_uint16 yystos[] = 6, 6, 303, 6 }; - /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ -static const yytype_uint16 yyr1[] = -{ - 0, 209, 210, 210, 211, 211, 212, 212, 212, 212, - 212, 212, 212, 212, 212, 212, 212, 212, 212, 212, - 212, 212, 213, 213, 214, 214, 214, 214, 214, 214, - 215, 215, 215, 215, 216, 216, 216, 216, 216, 216, - 217, 217, 218, 218, 220, 221, 219, 222, 222, 224, - 223, 225, 225, 227, 226, 228, 228, 230, 229, 231, - 231, 231, 231, 231, 232, 232, 233, 233, 234, 234, - 235, 235, 235, 235, 235, 235, 235, 235, 235, 235, - 235, 235, 235, 235, 235, 235, 235, 235, 235, 235, - 235, 235, 235, 235, 235, 235, 235, 235, 235, 235, - 235, 235, 235, 235, 235, 235, 235, 235, 235, 235, - 235, 235, 235, 235, 235, 235, 235, 235, 235, 235, - 235, 236, 236, 237, 237, 237, 238, 237, 239, 237, - 240, 237, 237, 241, 237, 242, 242, 243, 243, 243, - 244, 244, 245, 245, 245, 246, 246, 247, 247, 247, - 247, 248, 248, 248, 249, 249, 249, 250, 250, 250, - 251, 251, 251, 252, 252, 253, 253, 254, 254, 254, - 254, 254, 254, 254, 254, 254, 254, 254, 254, 254, - 254, 254, 254, 254, 254, 254, 254, 254, 254, 254, - 254, 254, 254, 254, 254, 254, 254, 254, 254, 255, - 255, 255, 255, 255, 255, 255, 255, 256, 256, 257, - 257, 257, 257, 257, 257, 258, 258, 258, 258, 258, - 258, 258, 258, 258, 259, 259, 259, 259, 259, 260, - 260, 261, 262, 262, 262, 262, 262, 262, 263, 263, - 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, - 263, 263, 263, 263, 263, 263, 263, 264, 264, 264, - 264, 264, 264, 264, 264, 264, 264, 264, 264, 264, - 264, 265, 265, 265, 266, 265, 267, 265, 268, 265, - 269, 265, 265, 265, 265, 265, 265, 265, 265, 265, - 265, 270, 265, 271, 265, 272, 265, 273, 265, 274, - 265, 275, 265, 276, 265, 277, 265, 278, 265, 279, - 279, 280, 280, 280, 280, 280, 280, 280, 280, 280, - 280, 280, 280, 280, 280, 280, 280, 281, 281, 282, - 282, 283, 283, 284, 284, 285, 285, 286, 286, 286, - 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, - 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, - 286, 286, 286, 287, 287, 287, 288, 288, 288, 289, - 289, 289, 289, 290, 290, 290, 290, 290, 290, 290, - 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, - 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, - 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, - 290, 290, 290, 290, 290, 291, 291, 291, 291, 291, - 291, 291, 291, 291, 291, 291, 292, 291, 291, 291, - 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, - 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, - 291, 291, 293, 293, 293, 293, 293, 294, 294, 294, - 294, 295, 295, 296, 296, 296, 296, 296, 296, 297, - 297, 298, 298, 298, 298, 298, 298, 298, 298, 298, - 298, 298, 298, 298, 298, 298, 298, 298, 298, 298, - 298, 298, 298, 298, 298, 298, 298, 298, 298, 298, - 298, 298, 298, 299, 299, 299, 299, 300, 300, 300, - 300, 301, 301, 302, 302, 303, 303, 303, 303, 303, - 303, 303, 303, 304, 304, 304, 304, 304, 304, 304, - 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, - 304, 304, 304, 304, 304, 304, 304, 305, 304, 306, - 306, 307, 307, 308, 308, 308 -}; - - /* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */ -static const yytype_uint8 yyr2[] = -{ - 0, 2, 1, 2, 0, 2, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 2, 5, 5, 7, 7, 7, 9, - 6, 6, 6, 8, 0, 2, 2, 2, 2, 2, - 1, 3, 1, 3, 0, 0, 10, 1, 3, 0, - 13, 1, 3, 0, 15, 8, 14, 0, 6, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 5, 5, 7, 7, 4, 3, 6, 6, 7, 7, - 6, 6, 9, 9, 6, 6, 7, 7, 6, 6, - 4, 8, 8, 9, 9, 9, 9, 8, 8, 9, - 9, 9, 9, 6, 9, 6, 9, 5, 8, 8, - 11, 6, 9, 5, 7, 9, 9, 11, 7, 9, - 9, 0, 1, 0, 3, 5, 0, 9, 0, 11, - 0, 11, 5, 0, 9, 0, 3, 3, 5, 5, - 0, 2, 3, 5, 3, 0, 2, 3, 3, 3, - 5, 1, 1, 3, 1, 1, 3, 1, 1, 3, - 1, 1, 3, 0, 5, 0, 2, 7, 8, 6, - 7, 4, 7, 8, 8, 7, 7, 11, 8, 4, - 8, 8, 8, 9, 3, 4, 10, 7, 7, 8, - 4, 8, 12, 8, 8, 7, 4, 8, 8, 5, - 11, 5, 9, 9, 4, 9, 9, 1, 1, 0, - 2, 6, 6, 6, 6, 8, 10, 14, 16, 12, - 8, 8, 6, 14, 4, 6, 6, 3, 4, 5, - 6, 5, 3, 3, 4, 5, 4, 5, 3, 5, - 7, 7, 3, 7, 3, 2, 2, 2, 2, 2, - 15, 2, 2, 2, 2, 2, 16, 6, 8, 8, - 10, 1, 2, 2, 1, 3, 3, 4, 4, 1, - 1, 5, 11, 13, 0, 7, 0, 13, 0, 15, - 0, 6, 8, 8, 8, 12, 12, 12, 14, 14, - 14, 0, 12, 0, 12, 0, 12, 0, 16, 0, - 16, 0, 16, 0, 18, 0, 18, 0, 18, 1, - 2, 5, 7, 9, 2, 2, 3, 2, 3, 2, - 3, 2, 3, 2, 3, 9, 6, 0, 3, 0, - 1, 0, 2, 0, 2, 0, 2, 7, 6, 8, - 5, 3, 8, 5, 4, 6, 11, 11, 18, 18, - 12, 12, 12, 10, 10, 10, 10, 10, 4, 4, - 4, 4, 4, 2, 3, 6, 1, 1, 1, 2, - 5, 7, 10, 1, 3, 2, 2, 2, 3, 3, - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 3, 3, 5, 4, 4, 4, 4, 4, 4, 4, - 4, 4, 4, 6, 4, 4, 4, 4, 4, 4, - 4, 6, 6, 6, 4, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 0, 6, 4, 6, - 1, 4, 4, 4, 4, 4, 4, 4, 2, 5, - 5, 5, 5, 3, 6, 4, 7, 6, 6, 6, - 6, 4, 1, 2, 2, 3, 3, 11, 9, 7, - 7, 1, 3, 1, 1, 2, 3, 4, 5, 1, - 1, 2, 3, 3, 5, 4, 2, 2, 2, 2, - 3, 3, 3, 3, 5, 5, 5, 5, 16, 16, - 16, 16, 1, 1, 3, 3, 4, 4, 4, 6, - 6, 6, 6, 1, 1, 3, 3, 9, 7, 1, - 5, 3, 6, 1, 3, 1, 1, 4, 4, 4, - 4, 3, 6, 1, 4, 1, 1, 1, 4, 6, - 4, 6, 4, 4, 4, 8, 4, 4, 4, 4, - 8, 4, 6, 4, 1, 4, 4, 0, 6, 1, - 3, 5, 5, 1, 1, 4 -}; +#define yyerrok (yyerrstatus = 0) +#define yyclearin (yychar = YYEMPTY) +#define YYEMPTY (-2) +#define YYEOF 0 +#define YYACCEPT goto yyacceptlab +#define YYABORT goto yyabortlab +#define YYERROR goto yyerrorlab -#define yyerrok (yyerrstatus = 0) -#define yyclearin (yychar = YYEMPTY) -#define YYEMPTY (-2) -#define YYEOF 0 -#define YYACCEPT goto yyacceptlab -#define YYABORT goto yyabortlab -#define YYERROR goto yyerrorlab +/* Like YYERROR except do call yyerror. This remains here temporarily + to ease the transition to the new meaning of YYERROR, for GCC. + Once GCC version 2 has supplanted version 1, this can go. */ +#define YYFAIL goto yyerrlab #define YYRECOVERING() (!!yyerrstatus) -#define YYBACKUP(Token, Value) \ -do \ - if (yychar == YYEMPTY) \ - { \ - yychar = (Token); \ - yylval = (Value); \ - YYPOPSTACK (yylen); \ - yystate = *yyssp; \ - goto yybackup; \ - } \ - else \ - { \ +#define YYBACKUP(Token, Value) \ +do \ + if (yychar == YYEMPTY && yylen == 1) \ + { \ + yychar = (Token); \ + yylval = (Value); \ + yytoken = YYTRANSLATE (yychar); \ + YYPOPSTACK (1); \ + goto yybackup; \ + } \ + else \ + { \ yyerror (YY_("syntax error: cannot back up")); \ - YYERROR; \ - } \ -while (0) + YYERROR; \ + } \ +while (YYID (0)) + + +#define YYTERROR 1 +#define YYERRCODE 256 + + +/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N]. + If N is 0, then set CURRENT to the empty location which ends + the previous symbol: RHS[0] (always defined). */ + +#define YYRHSLOC(Rhs, K) ((Rhs)[K]) +#ifndef YYLLOC_DEFAULT +# define YYLLOC_DEFAULT(Current, Rhs, N) \ + do \ + if (YYID (N)) \ + { \ + (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ + (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ + (Current).last_line = YYRHSLOC (Rhs, N).last_line; \ + (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ + } \ + else \ + { \ + (Current).first_line = (Current).last_line = \ + YYRHSLOC (Rhs, 0).last_line; \ + (Current).first_column = (Current).last_column = \ + YYRHSLOC (Rhs, 0).last_column; \ + } \ + while (YYID (0)) +#endif -/* Error token number */ -#define YYTERROR 1 -#define YYERRCODE 256 +/* YY_LOCATION_PRINT -- Print the location on the stream. + This macro was not mandated originally: define only if we know + we won't break user code: when these are the locations we know. */ +#ifndef YY_LOCATION_PRINT +# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL +# define YY_LOCATION_PRINT(File, Loc) \ + fprintf (File, "%d.%d-%d.%d", \ + (Loc).first_line, (Loc).first_column, \ + (Loc).last_line, (Loc).last_column) +# else +# define YY_LOCATION_PRINT(File, Loc) ((void) 0) +# endif +#endif + + +/* YYLEX -- calling `yylex' with the right arguments. */ + +#ifdef YYLEX_PARAM +# define YYLEX yylex (YYLEX_PARAM) +#else +# define YYLEX yylex () +#endif /* Enable debugging if requested. */ #if YYDEBUG @@ -4220,46 +4800,54 @@ while (0) # define YYFPRINTF fprintf # endif -# define YYDPRINTF(Args) \ -do { \ - if (yydebug) \ - YYFPRINTF Args; \ -} while (0) - -/* This macro is provided for backward compatibility. */ -#ifndef YY_LOCATION_PRINT -# define YY_LOCATION_PRINT(File, Loc) ((void) 0) -#endif +# define YYDPRINTF(Args) \ +do { \ + if (yydebug) \ + YYFPRINTF Args; \ +} while (YYID (0)) +# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ +do { \ + if (yydebug) \ + { \ + YYFPRINTF (stderr, "%s ", Title); \ + yy_symbol_print (stderr, \ + Type, Value); \ + YYFPRINTF (stderr, "\n"); \ + } \ +} while (YYID (0)) -# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ -do { \ - if (yydebug) \ - { \ - YYFPRINTF (stderr, "%s ", Title); \ - yy_symbol_print (stderr, \ - Type, Value); \ - YYFPRINTF (stderr, "\n"); \ - } \ -} while (0) +/*--------------------------------. +| Print this symbol on YYOUTPUT. | +`--------------------------------*/ -/*----------------------------------------. -| Print this symbol's value on YYOUTPUT. | -`----------------------------------------*/ - +/*ARGSUSED*/ +#if (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) static void yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) +#else +static void +yy_symbol_value_print (yyoutput, yytype, yyvaluep) + FILE *yyoutput; + int yytype; + YYSTYPE const * const yyvaluep; +#endif { - FILE *yyo = yyoutput; - YYUSE (yyo); if (!yyvaluep) return; # ifdef YYPRINT if (yytype < YYNTOKENS) YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep); +# else + YYUSE (yyoutput); # endif - YYUSE (yytype); + switch (yytype) + { + default: + break; + } } @@ -4267,11 +4855,22 @@ yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvalue | Print this symbol on YYOUTPUT. | `--------------------------------*/ +#if (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) static void yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) +#else +static void +yy_symbol_print (yyoutput, yytype, yyvaluep) + FILE *yyoutput; + int yytype; + YYSTYPE const * const yyvaluep; +#endif { - YYFPRINTF (yyoutput, "%s %s (", - yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]); + if (yytype < YYNTOKENS) + YYFPRINTF (yyoutput, "token %s (", yytname[yytype]); + else + YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]); yy_symbol_value_print (yyoutput, yytype, yyvaluep); YYFPRINTF (yyoutput, ")"); @@ -4282,54 +4881,66 @@ yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) | TOP (included). | `------------------------------------------------------------------*/ +#if (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) +static void +yy_stack_print (yytype_int16 *bottom, yytype_int16 *top) +#else static void -yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop) +yy_stack_print (bottom, top) + yytype_int16 *bottom; + yytype_int16 *top; +#endif { YYFPRINTF (stderr, "Stack now"); - for (; yybottom <= yytop; yybottom++) - { - int yybot = *yybottom; - YYFPRINTF (stderr, " %d", yybot); - } + for (; bottom <= top; ++bottom) + YYFPRINTF (stderr, " %d", *bottom); YYFPRINTF (stderr, "\n"); } -# define YY_STACK_PRINT(Bottom, Top) \ -do { \ - if (yydebug) \ - yy_stack_print ((Bottom), (Top)); \ -} while (0) +# define YY_STACK_PRINT(Bottom, Top) \ +do { \ + if (yydebug) \ + yy_stack_print ((Bottom), (Top)); \ +} while (YYID (0)) /*------------------------------------------------. | Report that the YYRULE is going to be reduced. | `------------------------------------------------*/ +#if (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) +static void +yy_reduce_print (YYSTYPE *yyvsp, int yyrule) +#else static void -yy_reduce_print (yytype_int16 *yyssp, YYSTYPE *yyvsp, int yyrule) +yy_reduce_print (yyvsp, yyrule) + YYSTYPE *yyvsp; + int yyrule; +#endif { - unsigned long int yylno = yyrline[yyrule]; int yynrhs = yyr2[yyrule]; int yyi; + unsigned long int yylno = yyrline[yyrule]; YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n", - yyrule - 1, yylno); + yyrule - 1, yylno); /* The symbols being reduced. */ for (yyi = 0; yyi < yynrhs; yyi++) { - YYFPRINTF (stderr, " $%d = ", yyi + 1); - yy_symbol_print (stderr, - yystos[yyssp[yyi + 1 - yynrhs]], - &(yyvsp[(yyi + 1) - (yynrhs)]) - ); - YYFPRINTF (stderr, "\n"); + fprintf (stderr, " $%d = ", yyi + 1); + yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi], + &(yyvsp[(yyi + 1) - (yynrhs)]) + ); + fprintf (stderr, "\n"); } } -# define YY_REDUCE_PRINT(Rule) \ -do { \ - if (yydebug) \ - yy_reduce_print (yyssp, yyvsp, Rule); \ -} while (0) +# define YY_REDUCE_PRINT(Rule) \ +do { \ + if (yydebug) \ + yy_reduce_print (yyvsp, Rule); \ +} while (YYID (0)) /* Nonzero means print parse trace. It is left uninitialized so that multiple parsers can coexist. */ @@ -4343,7 +4954,7 @@ int yydebug; /* YYINITDEPTH -- initial size of the parser's stacks. */ -#ifndef YYINITDEPTH +#ifndef YYINITDEPTH # define YYINITDEPTH 200 #endif @@ -4358,6 +4969,7 @@ int yydebug; # define YYMAXDEPTH 10000 #endif + #if YYERROR_VERBOSE @@ -4366,8 +4978,15 @@ int yydebug; # define yystrlen strlen # else /* Return the length of YYSTR. */ +#if (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) static YYSIZE_T yystrlen (const char *yystr) +#else +static YYSIZE_T +yystrlen (yystr) + const char *yystr; +#endif { YYSIZE_T yylen; for (yylen = 0; yystr[yylen]; yylen++) @@ -4383,8 +5002,16 @@ yystrlen (const char *yystr) # else /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in YYDEST. */ +#if (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) static char * yystpcpy (char *yydest, const char *yysrc) +#else +static char * +yystpcpy (yydest, yysrc) + char *yydest; + const char *yysrc; +#endif { char *yyd = yydest; const char *yys = yysrc; @@ -4414,27 +5041,27 @@ yytnamerr (char *yyres, const char *yystr) char const *yyp = yystr; for (;;) - switch (*++yyp) - { - case '\'': - case ',': - goto do_not_strip_quotes; - - case '\\': - if (*++yyp != '\\') - goto do_not_strip_quotes; - /* Fall through. */ - default: - if (yyres) - yyres[yyn] = *yyp; - yyn++; - break; - - case '"': - if (yyres) - yyres[yyn] = '\0'; - return yyn; - } + switch (*++yyp) + { + case '\'': + case ',': + goto do_not_strip_quotes; + + case '\\': + if (*++yyp != '\\') + goto do_not_strip_quotes; + /* Fall through. */ + default: + if (yyres) + yyres[yyn] = *yyp; + yyn++; + break; + + case '"': + if (yyres) + yyres[yyn] = '\0'; + return yyn; + } do_not_strip_quotes: ; } @@ -4445,232 +5072,266 @@ yytnamerr (char *yyres, const char *yystr) } # endif -/* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message - about the unexpected token YYTOKEN for the state stack whose top is - YYSSP. - - Return 0 if *YYMSG was successfully written. Return 1 if *YYMSG is - not large enough to hold the message. In that case, also set - *YYMSG_ALLOC to the required number of bytes. Return 2 if the - required number of bytes is too large to store. */ -static int -yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, - yytype_int16 *yyssp, int yytoken) +/* Copy into YYRESULT an error message about the unexpected token + YYCHAR while in state YYSTATE. Return the number of bytes copied, + including the terminating null byte. If YYRESULT is null, do not + copy anything; just return the number of bytes that would be + copied. As a special case, return 0 if an ordinary "syntax error" + message will do. Return YYSIZE_MAXIMUM if overflow occurs during + size calculation. */ +static YYSIZE_T +yysyntax_error (char *yyresult, int yystate, int yychar) { - YYSIZE_T yysize0 = yytnamerr (YY_NULLPTR, yytname[yytoken]); - YYSIZE_T yysize = yysize0; - enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; - /* Internationalized format string. */ - const char *yyformat = YY_NULLPTR; - /* Arguments of yyformat. */ - char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; - /* Number of reported tokens (one for the "unexpected", one per - "expected"). */ - int yycount = 0; - - /* There are many possibilities here to consider: - - If this state is a consistent state with a default action, then - the only way this function was invoked is if the default action - is an error action. In that case, don't check for expected - tokens because there are none. - - The only way there can be no lookahead present (in yychar) is if - this state is a consistent state with a default action. Thus, - detecting the absence of a lookahead is sufficient to determine - that there is no unexpected or expected token to report. In that - case, just report a simple "syntax error". - - Don't assume there isn't a lookahead just because this state is a - consistent state with a default action. There might have been a - previous inconsistent state, consistent state with a non-default - action, or user semantic action that manipulated yychar. - - Of course, the expected token list depends on states to have - correct lookahead information, and it depends on the parser not - to perform extra reductions after fetching a lookahead from the - scanner and before detecting a syntax error. Thus, state merging - (from LALR or IELR) and default reductions corrupt the expected - token list. However, the list is correct for canonical LR with - one exception: it will still contain any token that will not be - accepted due to an error action in a later state. - */ - if (yytoken != YYEMPTY) - { - int yyn = yypact[*yyssp]; - yyarg[yycount++] = yytname[yytoken]; - if (!yypact_value_is_default (yyn)) - { - /* Start YYX at -YYN if negative to avoid negative indexes in - YYCHECK. In other words, skip the first -YYN actions for - this state because they are default actions. */ - int yyxbegin = yyn < 0 ? -yyn : 0; - /* Stay within bounds of both yycheck and yytname. */ - int yychecklim = YYLAST - yyn + 1; - int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; - int yyx; - - for (yyx = yyxbegin; yyx < yyxend; ++yyx) - if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR - && !yytable_value_is_error (yytable[yyx + yyn])) - { - if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) - { - yycount = 1; - yysize = yysize0; - break; - } - yyarg[yycount++] = yytname[yyx]; - { - YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULLPTR, yytname[yyx]); - if (! (yysize <= yysize1 - && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) - return 2; - yysize = yysize1; - } - } - } - } - - switch (yycount) - { -# define YYCASE_(N, S) \ - case N: \ - yyformat = S; \ - break - YYCASE_(0, YY_("syntax error")); - YYCASE_(1, YY_("syntax error, unexpected %s")); - YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s")); - YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s")); - YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s")); - YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s")); -# undef YYCASE_ - } - - { - YYSIZE_T yysize1 = yysize + yystrlen (yyformat); - if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) - return 2; - yysize = yysize1; - } + int yyn = yypact[yystate]; - if (*yymsg_alloc < yysize) + if (! (YYPACT_NINF < yyn && yyn <= YYLAST)) + return 0; + else { - *yymsg_alloc = 2 * yysize; - if (! (yysize <= *yymsg_alloc - && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM)) - *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM; - return 1; - } + int yytype = YYTRANSLATE (yychar); + YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]); + YYSIZE_T yysize = yysize0; + YYSIZE_T yysize1; + int yysize_overflow = 0; + enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; + char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; + int yyx; + +# if 0 + /* This is so xgettext sees the translatable formats that are + constructed on the fly. */ + YY_("syntax error, unexpected %s"); + YY_("syntax error, unexpected %s, expecting %s"); + YY_("syntax error, unexpected %s, expecting %s or %s"); + YY_("syntax error, unexpected %s, expecting %s or %s or %s"); + YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"); +# endif + char *yyfmt; + char const *yyf; + static char const yyunexpected[] = "syntax error, unexpected %s"; + static char const yyexpecting[] = ", expecting %s"; + static char const yyor[] = " or %s"; + char yyformat[sizeof yyunexpected + + sizeof yyexpecting - 1 + + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2) + * (sizeof yyor - 1))]; + char const *yyprefix = yyexpecting; + + /* Start YYX at -YYN if negative to avoid negative indexes in + YYCHECK. */ + int yyxbegin = yyn < 0 ? -yyn : 0; + + /* Stay within bounds of both yycheck and yytname. */ + int yychecklim = YYLAST - yyn + 1; + int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; + int yycount = 1; + + yyarg[0] = yytname[yytype]; + yyfmt = yystpcpy (yyformat, yyunexpected); + + for (yyx = yyxbegin; yyx < yyxend; ++yyx) + if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) + { + if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) + { + yycount = 1; + yysize = yysize0; + yyformat[sizeof yyunexpected - 1] = '\0'; + break; + } + yyarg[yycount++] = yytname[yyx]; + yysize1 = yysize + yytnamerr (0, yytname[yyx]); + yysize_overflow |= (yysize1 < yysize); + yysize = yysize1; + yyfmt = yystpcpy (yyfmt, yyprefix); + yyprefix = yyor; + } - /* Avoid sprintf, as that infringes on the user's name space. - Don't have undefined behavior even if the translation - produced a string with the wrong number of "%s"s. */ - { - char *yyp = *yymsg; - int yyi = 0; - while ((*yyp = *yyformat) != '\0') - if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount) - { - yyp += yytnamerr (yyp, yyarg[yyi++]); - yyformat += 2; - } - else - { - yyp++; - yyformat++; - } - } - return 0; + yyf = YY_(yyformat); + yysize1 = yysize + yystrlen (yyf); + yysize_overflow |= (yysize1 < yysize); + yysize = yysize1; + + if (yysize_overflow) + return YYSIZE_MAXIMUM; + + if (yyresult) + { + /* Avoid sprintf, as that infringes on the user's name space. + Don't have undefined behavior even if the translation + produced a string with the wrong number of "%s"s. */ + char *yyp = yyresult; + int yyi = 0; + while ((*yyp = *yyf) != '\0') + { + if (*yyp == '%' && yyf[1] == 's' && yyi < yycount) + { + yyp += yytnamerr (yyp, yyarg[yyi++]); + yyf += 2; + } + else + { + yyp++; + yyf++; + } + } + } + return yysize; + } } #endif /* YYERROR_VERBOSE */ + /*-----------------------------------------------. | Release the memory associated to this symbol. | `-----------------------------------------------*/ +/*ARGSUSED*/ +#if (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) static void yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep) +#else +static void +yydestruct (yymsg, yytype, yyvaluep) + const char *yymsg; + int yytype; + YYSTYPE *yyvaluep; +#endif { YYUSE (yyvaluep); + if (!yymsg) yymsg = "Deleting"; YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp); - YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN - YYUSE (yytype); - YY_IGNORE_MAYBE_UNINITIALIZED_END + switch (yytype) + { + + default: + break; + } } + +/* Prevent warnings from -Wmissing-prototypes. */ + +#ifdef YYPARSE_PARAM +#if defined __STDC__ || defined __cplusplus +int yyparse (void *YYPARSE_PARAM); +#else +int yyparse (); +#endif +#else /* ! YYPARSE_PARAM */ +#if defined __STDC__ || defined __cplusplus +int yyparse (void); +#else +int yyparse (); +#endif +#endif /* ! YYPARSE_PARAM */ -/* The lookahead symbol. */ +/* The look-ahead symbol. */ int yychar; -/* The semantic value of the lookahead symbol. */ +/* The semantic value of the look-ahead symbol. */ YYSTYPE yylval; + /* Number of syntax errors so far. */ int yynerrs; -/*----------. -| yyparse. | -`----------*/ -int -yyparse (void) -{ - int yystate; - /* Number of tokens to shift before error messages enabled. */ - int yyerrstatus; +/*----------. +| yyparse. | +`----------*/ + +#ifdef YYPARSE_PARAM +#if (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) +int +yyparse (void *YYPARSE_PARAM) +#else +int +yyparse (YYPARSE_PARAM) + void *YYPARSE_PARAM; +#endif +#else /* ! YYPARSE_PARAM */ +#if (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) +int +yyparse (void) +#else +int +yyparse () + +#endif +#endif +{ + + int yystate; + int yyn; + int yyresult; + /* Number of tokens to shift before error messages enabled. */ + int yyerrstatus; + /* Look-ahead token as an internal (translated) token number. */ + int yytoken = 0; +#if YYERROR_VERBOSE + /* Buffer for error messages, and its allocated size. */ + char yymsgbuf[128]; + char *yymsg = yymsgbuf; + YYSIZE_T yymsg_alloc = sizeof yymsgbuf; +#endif + + /* Three stacks and their tools: + `yyss': related to states, + `yyvs': related to semantic values, + `yyls': related to locations. + + Refer to the stacks thru separate pointers, to allow yyoverflow + to reallocate them elsewhere. */ + + /* The state stack. */ + yytype_int16 yyssa[YYINITDEPTH]; + yytype_int16 *yyss = yyssa; + yytype_int16 *yyssp; - /* The stacks and their tools: - 'yyss': related to states. - 'yyvs': related to semantic values. + /* The semantic value stack. */ + YYSTYPE yyvsa[YYINITDEPTH]; + YYSTYPE *yyvs = yyvsa; + YYSTYPE *yyvsp; - Refer to the stacks through separate pointers, to allow yyoverflow - to reallocate them elsewhere. */ - /* The state stack. */ - yytype_int16 yyssa[YYINITDEPTH]; - yytype_int16 *yyss; - yytype_int16 *yyssp; - /* The semantic value stack. */ - YYSTYPE yyvsa[YYINITDEPTH]; - YYSTYPE *yyvs; - YYSTYPE *yyvsp; +#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) - YYSIZE_T yystacksize; + YYSIZE_T yystacksize = YYINITDEPTH; - int yyn; - int yyresult; - /* Lookahead token as an internal (translated) token number. */ - int yytoken = 0; /* The variables used to return semantic value and location from the action routines. */ YYSTYPE yyval; -#if YYERROR_VERBOSE - /* Buffer for error messages, and its allocated size. */ - char yymsgbuf[128]; - char *yymsg = yymsgbuf; - YYSIZE_T yymsg_alloc = sizeof yymsgbuf; -#endif - -#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) /* The number of symbols on the RHS of the reduced rule. Keep to zero when no symbol should be popped. */ int yylen = 0; - yyssp = yyss = yyssa; - yyvsp = yyvs = yyvsa; - yystacksize = YYINITDEPTH; - YYDPRINTF ((stderr, "Starting parse\n")); yystate = 0; yyerrstatus = 0; yynerrs = 0; - yychar = YYEMPTY; /* Cause a token to be read. */ + yychar = YYEMPTY; /* Cause a token to be read. */ + + /* Initialize stack pointers. + Waste one element of value and location stack + so that they stay on the same level as the state stack. + The wasted elements are never initialized. */ + + yyssp = yyss; + yyvsp = yyvs; + goto yysetstate; /*------------------------------------------------------------. @@ -4691,23 +5352,25 @@ yyparse (void) #ifdef yyoverflow { - /* Give user a chance to reallocate the stack. Use copies of - these so that the &'s don't force the real ones into - memory. */ - YYSTYPE *yyvs1 = yyvs; - yytype_int16 *yyss1 = yyss; - - /* Each stack pointer address is followed by the size of the - data in use in that stack, in bytes. This used to be a - conditional around just the two extra args, but that might - be undefined if yyoverflow is a macro. */ - yyoverflow (YY_("memory exhausted"), - &yyss1, yysize * sizeof (*yyssp), - &yyvs1, yysize * sizeof (*yyvsp), - &yystacksize); - - yyss = yyss1; - yyvs = yyvs1; + /* Give user a chance to reallocate the stack. Use copies of + these so that the &'s don't force the real ones into + memory. */ + YYSTYPE *yyvs1 = yyvs; + yytype_int16 *yyss1 = yyss; + + + /* Each stack pointer address is followed by the size of the + data in use in that stack, in bytes. This used to be a + conditional around just the two extra args, but that might + be undefined if yyoverflow is a macro. */ + yyoverflow (YY_("memory exhausted"), + &yyss1, yysize * sizeof (*yyssp), + &yyvs1, yysize * sizeof (*yyvsp), + + &yystacksize); + + yyss = yyss1; + yyvs = yyvs1; } #else /* no yyoverflow */ # ifndef YYSTACK_RELOCATE @@ -4715,22 +5378,23 @@ yyparse (void) # else /* Extend the stack our own way. */ if (YYMAXDEPTH <= yystacksize) - goto yyexhaustedlab; + goto yyexhaustedlab; yystacksize *= 2; if (YYMAXDEPTH < yystacksize) - yystacksize = YYMAXDEPTH; + yystacksize = YYMAXDEPTH; { - yytype_int16 *yyss1 = yyss; - union yyalloc *yyptr = - (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); - if (! yyptr) - goto yyexhaustedlab; - YYSTACK_RELOCATE (yyss_alloc, yyss); - YYSTACK_RELOCATE (yyvs_alloc, yyvs); + yytype_int16 *yyss1 = yyss; + union yyalloc *yyptr = + (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); + if (! yyptr) + goto yyexhaustedlab; + YYSTACK_RELOCATE (yyss); + YYSTACK_RELOCATE (yyvs); + # undef YYSTACK_RELOCATE - if (yyss1 != yyssa) - YYSTACK_FREE (yyss1); + if (yyss1 != yyssa) + YYSTACK_FREE (yyss1); } # endif #endif /* no yyoverflow */ @@ -4738,18 +5402,16 @@ yyparse (void) yyssp = yyss + yysize - 1; yyvsp = yyvs + yysize - 1; + YYDPRINTF ((stderr, "Stack size increased to %lu\n", - (unsigned long int) yystacksize)); + (unsigned long int) yystacksize)); if (yyss + yystacksize - 1 <= yyssp) - YYABORT; + YYABORT; } YYDPRINTF ((stderr, "Entering state %d\n", yystate)); - if (yystate == YYFINAL) - YYACCEPT; - goto yybackup; /*-----------. @@ -4758,20 +5420,20 @@ yyparse (void) yybackup: /* Do appropriate processing given the current state. Read a - lookahead token if we need one and don't already have one. */ + look-ahead token if we need one and don't already have one. */ - /* First try to decide what to do without reference to lookahead token. */ + /* First try to decide what to do without reference to look-ahead token. */ yyn = yypact[yystate]; - if (yypact_value_is_default (yyn)) + if (yyn == YYPACT_NINF) goto yydefault; - /* Not known => get a lookahead token if don't already have one. */ + /* Not known => get a look-ahead token if don't already have one. */ - /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */ + /* YYCHAR is either YYEMPTY or YYEOF or a valid look-ahead symbol. */ if (yychar == YYEMPTY) { YYDPRINTF ((stderr, "Reading a token: ")); - yychar = yylex (); + yychar = YYLEX; } if (yychar <= YYEOF) @@ -4793,27 +5455,29 @@ yybackup: yyn = yytable[yyn]; if (yyn <= 0) { - if (yytable_value_is_error (yyn)) - goto yyerrlab; + if (yyn == 0 || yyn == YYTABLE_NINF) + goto yyerrlab; yyn = -yyn; goto yyreduce; } + if (yyn == YYFINAL) + YYACCEPT; + /* Count tokens shifted since error; after three, turn off error status. */ if (yyerrstatus) yyerrstatus--; - /* Shift the lookahead token. */ + /* Shift the look-ahead token. */ YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); - /* Discard the shifted token. */ - yychar = YYEMPTY; + /* Discard the shifted token unless it is eof. */ + if (yychar != YYEOF) + yychar = YYEMPTY; yystate = yyn; - YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN *++yyvsp = yylval; - YY_IGNORE_MAYBE_UNINITIALIZED_END goto yynewstate; @@ -4836,7 +5500,7 @@ yyreduce: yylen = yyr2[yyn]; /* If YYLEN is nonzero, implement the default value of the action: - '$$ = $1'. + `$$ = $1'. Otherwise, the following line sets YYVAL to garbage. This behavior is undocumented and Bison @@ -4850,205 +5514,181 @@ yyreduce: switch (yyn) { case 3: -#line 200 "Gmsh.y" /* yacc.c:1646 */ - { yyerrok; return 1; } -#line 4856 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 200 "Gmsh.y" + { yyerrok; return 1; ;} break; case 6: -#line 211 "Gmsh.y" /* yacc.c:1646 */ - { return 1; } -#line 4862 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 211 "Gmsh.y" + { return 1; ;} break; case 7: -#line 212 "Gmsh.y" /* yacc.c:1646 */ - { return 1; } -#line 4868 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 212 "Gmsh.y" + { return 1; ;} break; case 8: -#line 213 "Gmsh.y" /* yacc.c:1646 */ - { return 1; } -#line 4874 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 213 "Gmsh.y" + { return 1; ;} break; case 9: -#line 214 "Gmsh.y" /* yacc.c:1646 */ - { return 1; } -#line 4880 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 214 "Gmsh.y" + { return 1; ;} break; case 10: -#line 215 "Gmsh.y" /* yacc.c:1646 */ - { List_Delete((yyvsp[0].l)); return 1; } -#line 4886 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 215 "Gmsh.y" + { List_Delete((yyvsp[(1) - (1)].l)); return 1; ;} break; case 11: -#line 216 "Gmsh.y" /* yacc.c:1646 */ - { return 1; } -#line 4892 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 216 "Gmsh.y" + { return 1; ;} break; case 12: -#line 217 "Gmsh.y" /* yacc.c:1646 */ - { return 1; } -#line 4898 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 217 "Gmsh.y" + { return 1; ;} break; case 13: -#line 218 "Gmsh.y" /* yacc.c:1646 */ - { return 1; } -#line 4904 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 218 "Gmsh.y" + { return 1; ;} break; case 14: -#line 219 "Gmsh.y" /* yacc.c:1646 */ - { return 1; } -#line 4910 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 219 "Gmsh.y" + { return 1; ;} break; case 15: -#line 220 "Gmsh.y" /* yacc.c:1646 */ - { List_Delete((yyvsp[0].l)); return 1; } -#line 4916 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 220 "Gmsh.y" + { List_Delete((yyvsp[(1) - (1)].l)); return 1; ;} break; case 16: -#line 221 "Gmsh.y" /* yacc.c:1646 */ - { return 1; } -#line 4922 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 221 "Gmsh.y" + { return 1; ;} break; case 17: -#line 222 "Gmsh.y" /* yacc.c:1646 */ - { return 1; } -#line 4928 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 222 "Gmsh.y" + { return 1; ;} break; case 18: -#line 223 "Gmsh.y" /* yacc.c:1646 */ - { return 1; } -#line 4934 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 223 "Gmsh.y" + { return 1; ;} break; case 19: -#line 224 "Gmsh.y" /* yacc.c:1646 */ - { return 1; } -#line 4940 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 224 "Gmsh.y" + { return 1; ;} break; case 20: -#line 225 "Gmsh.y" /* yacc.c:1646 */ - { return 1; } -#line 4946 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 225 "Gmsh.y" + { return 1; ;} break; case 21: -#line 226 "Gmsh.y" /* yacc.c:1646 */ - { return 1; } -#line 4952 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 226 "Gmsh.y" + { return 1; ;} break; case 22: -#line 231 "Gmsh.y" /* yacc.c:1646 */ +#line 231 "Gmsh.y" { (yyval.c) = (char*)"w"; - } -#line 4960 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 23: -#line 235 "Gmsh.y" /* yacc.c:1646 */ +#line 235 "Gmsh.y" { (yyval.c) = (char*)"a"; - } -#line 4968 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 24: -#line 242 "Gmsh.y" /* yacc.c:1646 */ +#line 242 "Gmsh.y" { - Msg::Direct((yyvsp[-2].c)); - Free((yyvsp[-2].c)); - } -#line 4977 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Msg::Direct((yyvsp[(3) - (5)].c)); + Free((yyvsp[(3) - (5)].c)); + ;} break; case 25: -#line 247 "Gmsh.y" /* yacc.c:1646 */ +#line 247 "Gmsh.y" { - Msg::Error((yyvsp[-2].c)); - Free((yyvsp[-2].c)); - } -#line 4986 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Msg::Error((yyvsp[(3) - (5)].c)); + Free((yyvsp[(3) - (5)].c)); + ;} break; case 26: -#line 252 "Gmsh.y" /* yacc.c:1646 */ +#line 252 "Gmsh.y" { - std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[-1].c)); - FILE *fp = Fopen(tmp.c_str(), (yyvsp[-2].c)); + std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[(6) - (7)].c)); + FILE *fp = Fopen(tmp.c_str(), (yyvsp[(5) - (7)].c)); if(!fp){ yymsg(0, "Unable to open file '%s'", tmp.c_str()); } else{ - fprintf(fp, "%s\n", (yyvsp[-4].c)); + fprintf(fp, "%s\n", (yyvsp[(3) - (7)].c)); fclose(fp); } - Free((yyvsp[-4].c)); - Free((yyvsp[-1].c)); - } -#line 5004 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(3) - (7)].c)); + Free((yyvsp[(6) - (7)].c)); + ;} break; case 27: -#line 266 "Gmsh.y" /* yacc.c:1646 */ +#line 266 "Gmsh.y" { char tmpstring[5000]; - int i = PrintListOfDouble((yyvsp[-4].c), (yyvsp[-2].l), tmpstring); + int i = PrintListOfDouble((yyvsp[(3) - (7)].c), (yyvsp[(5) - (7)].l), tmpstring); if(i < 0) yymsg(0, "Too few arguments in Printf"); else if(i > 0) yymsg(0, "%d extra argument%s in Printf", i, (i > 1) ? "s" : ""); else Msg::Direct(tmpstring); - Free((yyvsp[-4].c)); - List_Delete((yyvsp[-2].l)); - } -#line 5021 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(3) - (7)].c)); + List_Delete((yyvsp[(5) - (7)].l)); + ;} break; case 28: -#line 279 "Gmsh.y" /* yacc.c:1646 */ +#line 279 "Gmsh.y" { char tmpstring[5000]; - int i = PrintListOfDouble((yyvsp[-4].c), (yyvsp[-2].l), tmpstring); + int i = PrintListOfDouble((yyvsp[(3) - (7)].c), (yyvsp[(5) - (7)].l), tmpstring); if(i < 0) yymsg(0, "Too few arguments in Error"); else if(i > 0) yymsg(0, "%d extra argument%s in Error", i, (i > 1) ? "s" : ""); else Msg::Error(tmpstring); - Free((yyvsp[-4].c)); - List_Delete((yyvsp[-2].l)); - } -#line 5038 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(3) - (7)].c)); + List_Delete((yyvsp[(5) - (7)].l)); + ;} break; case 29: -#line 292 "Gmsh.y" /* yacc.c:1646 */ +#line 292 "Gmsh.y" { char tmpstring[5000]; - int i = PrintListOfDouble((yyvsp[-6].c), (yyvsp[-4].l), tmpstring); + int i = PrintListOfDouble((yyvsp[(3) - (9)].c), (yyvsp[(5) - (9)].l), tmpstring); if(i < 0) yymsg(0, "Too few arguments in Printf"); else if(i > 0) yymsg(0, "%d extra argument%s in Printf", i, (i > 1) ? "s" : ""); else{ - std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[-1].c)); - FILE *fp = Fopen(tmp.c_str(), (yyvsp[-2].c)); + std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[(8) - (9)].c)); + FILE *fp = Fopen(tmp.c_str(), (yyvsp[(7) - (9)].c)); if(!fp){ yymsg(0, "Unable to open file '%s'", tmp.c_str()); } @@ -5057,19 +5697,18 @@ yyreduce: fclose(fp); } } - Free((yyvsp[-6].c)); - Free((yyvsp[-1].c)); - List_Delete((yyvsp[-4].l)); - } -#line 5065 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(3) - (9)].c)); + Free((yyvsp[(8) - (9)].c)); + List_Delete((yyvsp[(5) - (9)].l)); + ;} break; case 30: -#line 320 "Gmsh.y" /* yacc.c:1646 */ +#line 320 "Gmsh.y" { #if defined(HAVE_POST) - if(!strcmp((yyvsp[-5].c), "View") && ViewData->finalize()){ - ViewData->setName((yyvsp[-4].c)); + if(!strcmp((yyvsp[(1) - (6)].c), "View") && ViewData->finalize()){ + ViewData->setName((yyvsp[(2) - (6)].c)); ViewData->setFileName(gmsh_yyname); ViewData->setFileIndex(gmsh_yyviewindex++); new PView(ViewData); @@ -5077,51 +5716,48 @@ yyreduce: else delete ViewData; #endif - Free((yyvsp[-5].c)); Free((yyvsp[-4].c)); - } -#line 5083 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (6)].c)); Free((yyvsp[(2) - (6)].c)); + ;} break; case 31: -#line 334 "Gmsh.y" /* yacc.c:1646 */ +#line 334 "Gmsh.y" { #if defined(HAVE_POST) - if(!strcmp((yyvsp[-4].c), "View")){ - int index = (int)(yyvsp[-2].d); + if(!strcmp((yyvsp[(2) - (6)].c), "View")){ + int index = (int)(yyvsp[(4) - (6)].d); if(index >= 0 && index < (int)PView::list.size()) new PView(PView::list[index], false); else yymsg(0, "Unknown view %d", index); } #endif - Free((yyvsp[-4].c)); - } -#line 5100 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(2) - (6)].c)); + ;} break; case 32: -#line 347 "Gmsh.y" /* yacc.c:1646 */ +#line 347 "Gmsh.y" { #if defined(HAVE_POST) - if(!strcmp((yyvsp[-4].c), "View")){ - int index = (int)(yyvsp[-2].d); + if(!strcmp((yyvsp[(2) - (6)].c), "View")){ + int index = (int)(yyvsp[(4) - (6)].d); if(index >= 0 && index < (int)PView::list.size()) new PView(PView::list[index], true); else yymsg(0, "Unknown view %d", index); } #endif - Free((yyvsp[-4].c)); - } -#line 5117 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(2) - (6)].c)); + ;} break; case 33: -#line 360 "Gmsh.y" /* yacc.c:1646 */ +#line 360 "Gmsh.y" { #if defined(HAVE_POST) - if(!strcmp((yyvsp[-6].c), "View")){ - int index = (int)(yyvsp[-4].d), index2 = (int)(yyvsp[-2].d); + if(!strcmp((yyvsp[(2) - (8)].c), "View")){ + int index = (int)(yyvsp[(4) - (8)].d), index2 = (int)(yyvsp[(6) - (8)].d); if(index >= 0 && index < (int)PView::list.size() && index2 >= 0 && index2 < (int)PView::list.size()){ PView::list[index2]->setOptions(PView::list[index]->getOptions()); @@ -5130,155 +5766,148 @@ yyreduce: yymsg(0, "Unknown view %d or %d", index, index2); } #endif - Free((yyvsp[-6].c)); - } -#line 5136 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(2) - (8)].c)); + ;} break; case 34: -#line 378 "Gmsh.y" /* yacc.c:1646 */ +#line 378 "Gmsh.y" { #if defined(HAVE_POST) ViewData = new PViewDataList(); #endif - } -#line 5146 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 40: -#line 392 "Gmsh.y" /* yacc.c:1646 */ - { ViewCoord.push_back((yyvsp[0].d)); } -#line 5152 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 392 "Gmsh.y" + { ViewCoord.push_back((yyvsp[(1) - (1)].d)); ;} break; case 41: -#line 394 "Gmsh.y" /* yacc.c:1646 */ - { ViewCoord.push_back((yyvsp[0].d)); } -#line 5158 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 394 "Gmsh.y" + { ViewCoord.push_back((yyvsp[(3) - (3)].d)); ;} break; case 42: -#line 399 "Gmsh.y" /* yacc.c:1646 */ - { if(ViewValueList) ViewValueList->push_back((yyvsp[0].d)); } -#line 5164 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 399 "Gmsh.y" + { if(ViewValueList) ViewValueList->push_back((yyvsp[(1) - (1)].d)); ;} break; case 43: -#line 401 "Gmsh.y" /* yacc.c:1646 */ - { if(ViewValueList) ViewValueList->push_back((yyvsp[0].d)); } -#line 5170 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 401 "Gmsh.y" + { if(ViewValueList) ViewValueList->push_back((yyvsp[(3) - (3)].d)); ;} break; case 44: -#line 406 "Gmsh.y" /* yacc.c:1646 */ +#line 406 "Gmsh.y" { #if defined(HAVE_POST) - if(!strncmp((yyvsp[0].c), "SP", 2)){ + if(!strncmp((yyvsp[(1) - (1)].c), "SP", 2)){ ViewValueList = &ViewData->SP; ViewNumList = &ViewData->NbSP; } - else if(!strncmp((yyvsp[0].c), "VP", 2)){ + else if(!strncmp((yyvsp[(1) - (1)].c), "VP", 2)){ ViewValueList = &ViewData->VP; ViewNumList = &ViewData->NbVP; } - else if(!strncmp((yyvsp[0].c), "TP", 2)){ + else if(!strncmp((yyvsp[(1) - (1)].c), "TP", 2)){ ViewValueList = &ViewData->TP; ViewNumList = &ViewData->NbTP; } - else if(!strncmp((yyvsp[0].c), "SL", 2)){ + else if(!strncmp((yyvsp[(1) - (1)].c), "SL", 2)){ ViewValueList = &ViewData->SL; ViewNumList = &ViewData->NbSL; - if(strlen((yyvsp[0].c)) > 2) ViewData->setOrder2(TYPE_LIN); + if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_LIN); } - else if(!strncmp((yyvsp[0].c), "VL", 2)){ + else if(!strncmp((yyvsp[(1) - (1)].c), "VL", 2)){ ViewValueList = &ViewData->VL; ViewNumList = &ViewData->NbVL; - if(strlen((yyvsp[0].c)) > 2) ViewData->setOrder2(TYPE_LIN); + if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_LIN); } - else if(!strncmp((yyvsp[0].c), "TL", 2)){ + else if(!strncmp((yyvsp[(1) - (1)].c), "TL", 2)){ ViewValueList = &ViewData->TL; ViewNumList = &ViewData->NbTL; - if(strlen((yyvsp[0].c)) > 2) ViewData->setOrder2(TYPE_LIN); + if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_LIN); } - else if(!strncmp((yyvsp[0].c), "ST", 2)){ + else if(!strncmp((yyvsp[(1) - (1)].c), "ST", 2)){ ViewValueList = &ViewData->ST; ViewNumList = &ViewData->NbST; - if(strlen((yyvsp[0].c)) > 2) ViewData->setOrder2(TYPE_TRI); + if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_TRI); } - else if(!strncmp((yyvsp[0].c), "VT", 2)){ + else if(!strncmp((yyvsp[(1) - (1)].c), "VT", 2)){ ViewValueList = &ViewData->VT; ViewNumList = &ViewData->NbVT; - if(strlen((yyvsp[0].c)) > 2) ViewData->setOrder2(TYPE_TRI); + if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_TRI); } - else if(!strncmp((yyvsp[0].c), "TT", 2)){ + else if(!strncmp((yyvsp[(1) - (1)].c), "TT", 2)){ ViewValueList = &ViewData->TT; ViewNumList = &ViewData->NbTT; - if(strlen((yyvsp[0].c)) > 2) ViewData->setOrder2(TYPE_TRI); + if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_TRI); } - else if(!strncmp((yyvsp[0].c), "SQ", 2)){ + else if(!strncmp((yyvsp[(1) - (1)].c), "SQ", 2)){ ViewValueList = &ViewData->SQ; ViewNumList = &ViewData->NbSQ; - if(strlen((yyvsp[0].c)) > 2) ViewData->setOrder2(TYPE_QUA); + if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_QUA); } - else if(!strncmp((yyvsp[0].c), "VQ", 2)){ + else if(!strncmp((yyvsp[(1) - (1)].c), "VQ", 2)){ ViewValueList = &ViewData->VQ; ViewNumList = &ViewData->NbVQ; - if(strlen((yyvsp[0].c)) > 2) ViewData->setOrder2(TYPE_QUA); + if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_QUA); } - else if(!strncmp((yyvsp[0].c), "TQ", 2)){ + else if(!strncmp((yyvsp[(1) - (1)].c), "TQ", 2)){ ViewValueList = &ViewData->TQ; ViewNumList = &ViewData->NbTQ; - if(strlen((yyvsp[0].c)) > 2) ViewData->setOrder2(TYPE_QUA); + if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_QUA); } - else if(!strncmp((yyvsp[0].c), "SS", 2)){ + else if(!strncmp((yyvsp[(1) - (1)].c), "SS", 2)){ ViewValueList = &ViewData->SS; ViewNumList = &ViewData->NbSS; - if(strlen((yyvsp[0].c)) > 2) ViewData->setOrder2(TYPE_TET); + if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_TET); } - else if(!strncmp((yyvsp[0].c), "VS", 2)){ + else if(!strncmp((yyvsp[(1) - (1)].c), "VS", 2)){ ViewValueList = &ViewData->VS; ViewNumList = &ViewData->NbVS; - if(strlen((yyvsp[0].c)) > 2) ViewData->setOrder2(TYPE_TET); + if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_TET); } - else if(!strncmp((yyvsp[0].c), "TS", 2)){ + else if(!strncmp((yyvsp[(1) - (1)].c), "TS", 2)){ ViewValueList = &ViewData->TS; ViewNumList = &ViewData->NbTS; - if(strlen((yyvsp[0].c)) > 2) ViewData->setOrder2(TYPE_TET); + if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_TET); } - else if(!strncmp((yyvsp[0].c), "SH", 2)){ + else if(!strncmp((yyvsp[(1) - (1)].c), "SH", 2)){ ViewValueList = &ViewData->SH; ViewNumList = &ViewData->NbSH; - if(strlen((yyvsp[0].c)) > 2) ViewData->setOrder2(TYPE_HEX); + if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_HEX); } - else if(!strncmp((yyvsp[0].c), "VH", 2)){ + else if(!strncmp((yyvsp[(1) - (1)].c), "VH", 2)){ ViewValueList = &ViewData->VH; ViewNumList = &ViewData->NbVH; - if(strlen((yyvsp[0].c)) > 2) ViewData->setOrder2(TYPE_HEX); + if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_HEX); } - else if(!strncmp((yyvsp[0].c), "TH", 2)){ + else if(!strncmp((yyvsp[(1) - (1)].c), "TH", 2)){ ViewValueList = &ViewData->TH; ViewNumList = &ViewData->NbTH; - if(strlen((yyvsp[0].c)) > 2) ViewData->setOrder2(TYPE_HEX); + if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_HEX); } - else if(!strncmp((yyvsp[0].c), "SI", 2)){ + else if(!strncmp((yyvsp[(1) - (1)].c), "SI", 2)){ ViewValueList = &ViewData->SI; ViewNumList = &ViewData->NbSI; - if(strlen((yyvsp[0].c)) > 2) ViewData->setOrder2(TYPE_PRI); + if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_PRI); } - else if(!strncmp((yyvsp[0].c), "VI", 2)){ + else if(!strncmp((yyvsp[(1) - (1)].c), "VI", 2)){ ViewValueList = &ViewData->VI; ViewNumList = &ViewData->NbVI; - if(strlen((yyvsp[0].c)) > 2) ViewData->setOrder2(TYPE_PRI); + if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_PRI); } - else if(!strncmp((yyvsp[0].c), "TI", 2)){ + else if(!strncmp((yyvsp[(1) - (1)].c), "TI", 2)){ ViewValueList = &ViewData->TI; ViewNumList = &ViewData->NbTI; - if(strlen((yyvsp[0].c)) > 2) ViewData->setOrder2(TYPE_PRI); + if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_PRI); } - else if(!strncmp((yyvsp[0].c), "SY", 2)){ + else if(!strncmp((yyvsp[(1) - (1)].c), "SY", 2)){ ViewValueList = &ViewData->SY; ViewNumList = &ViewData->NbSY; - if(strlen((yyvsp[0].c)) > 2) ViewData->setOrder2(TYPE_PYR); + if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_PYR); } - else if(!strncmp((yyvsp[0].c), "VY", 2)){ + else if(!strncmp((yyvsp[(1) - (1)].c), "VY", 2)){ ViewValueList = &ViewData->VY; ViewNumList = &ViewData->NbVY; - if(strlen((yyvsp[0].c)) > 2) ViewData->setOrder2(TYPE_PYR); + if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_PYR); } - else if(!strncmp((yyvsp[0].c), "TY", 2)){ + else if(!strncmp((yyvsp[(1) - (1)].c), "TY", 2)){ ViewValueList = &ViewData->TY; ViewNumList = &ViewData->NbTY; - if(strlen((yyvsp[0].c)) > 2) ViewData->setOrder2(TYPE_PYR); + if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_PYR); } else{ - yymsg(0, "Unknown element type '%s'", (yyvsp[0].c)); + yymsg(0, "Unknown element type '%s'", (yyvsp[(1) - (1)].c)); ViewValueList = 0; ViewNumList = 0; } #endif ViewCoord.clear(); - Free((yyvsp[0].c)); - } -#line 5278 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (1)].c)); + ;} break; case 45: -#line 510 "Gmsh.y" /* yacc.c:1646 */ +#line 510 "Gmsh.y" { #if defined(HAVE_POST) if(ViewValueList){ @@ -5287,111 +5916,101 @@ yyreduce: ViewValueList->push_back(ViewCoord[3 * j + i]); } #endif - } -#line 5292 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 46: -#line 520 "Gmsh.y" /* yacc.c:1646 */ +#line 520 "Gmsh.y" { #if defined(HAVE_POST) if(ViewValueList) (*ViewNumList)++; #endif - } -#line 5302 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 47: -#line 529 "Gmsh.y" /* yacc.c:1646 */ +#line 529 "Gmsh.y" { #if defined(HAVE_POST) - for(int i = 0; i < (int)strlen((yyvsp[0].c)) + 1; i++) ViewData->T2C.push_back((yyvsp[0].c)[i]); + for(int i = 0; i < (int)strlen((yyvsp[(1) - (1)].c)) + 1; i++) ViewData->T2C.push_back((yyvsp[(1) - (1)].c)[i]); #endif - Free((yyvsp[0].c)); - } -#line 5313 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (1)].c)); + ;} break; case 48: -#line 536 "Gmsh.y" /* yacc.c:1646 */ +#line 536 "Gmsh.y" { #if defined(HAVE_POST) - for(int i = 0; i < (int)strlen((yyvsp[0].c)) + 1; i++) ViewData->T2C.push_back((yyvsp[0].c)[i]); + for(int i = 0; i < (int)strlen((yyvsp[(3) - (3)].c)) + 1; i++) ViewData->T2C.push_back((yyvsp[(3) - (3)].c)[i]); #endif - Free((yyvsp[0].c)); - } -#line 5324 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(3) - (3)].c)); + ;} break; case 49: -#line 546 "Gmsh.y" /* yacc.c:1646 */ +#line 546 "Gmsh.y" { #if defined(HAVE_POST) - ViewData->T2D.push_back((yyvsp[-5].d)); - ViewData->T2D.push_back((yyvsp[-3].d)); - ViewData->T2D.push_back((yyvsp[-1].d)); + ViewData->T2D.push_back((yyvsp[(3) - (8)].d)); + ViewData->T2D.push_back((yyvsp[(5) - (8)].d)); + ViewData->T2D.push_back((yyvsp[(7) - (8)].d)); ViewData->T2D.push_back(ViewData->T2C.size()); #endif - } -#line 5337 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 50: -#line 555 "Gmsh.y" /* yacc.c:1646 */ +#line 555 "Gmsh.y" { #if defined(HAVE_POST) ViewData->NbT2++; #endif - } -#line 5347 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 51: -#line 564 "Gmsh.y" /* yacc.c:1646 */ +#line 564 "Gmsh.y" { #if defined(HAVE_POST) - for(int i = 0; i < (int)strlen((yyvsp[0].c)) + 1; i++) ViewData->T3C.push_back((yyvsp[0].c)[i]); + for(int i = 0; i < (int)strlen((yyvsp[(1) - (1)].c)) + 1; i++) ViewData->T3C.push_back((yyvsp[(1) - (1)].c)[i]); #endif - Free((yyvsp[0].c)); - } -#line 5358 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (1)].c)); + ;} break; case 52: -#line 571 "Gmsh.y" /* yacc.c:1646 */ +#line 571 "Gmsh.y" { #if defined(HAVE_POST) - for(int i = 0; i < (int)strlen((yyvsp[0].c)) + 1; i++) ViewData->T3C.push_back((yyvsp[0].c)[i]); + for(int i = 0; i < (int)strlen((yyvsp[(3) - (3)].c)) + 1; i++) ViewData->T3C.push_back((yyvsp[(3) - (3)].c)[i]); #endif - Free((yyvsp[0].c)); - } -#line 5369 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(3) - (3)].c)); + ;} break; case 53: -#line 581 "Gmsh.y" /* yacc.c:1646 */ +#line 581 "Gmsh.y" { #if defined(HAVE_POST) - ViewData->T3D.push_back((yyvsp[-7].d)); ViewData->T3D.push_back((yyvsp[-5].d)); - ViewData->T3D.push_back((yyvsp[-3].d)); ViewData->T3D.push_back((yyvsp[-1].d)); + ViewData->T3D.push_back((yyvsp[(3) - (10)].d)); ViewData->T3D.push_back((yyvsp[(5) - (10)].d)); + ViewData->T3D.push_back((yyvsp[(7) - (10)].d)); ViewData->T3D.push_back((yyvsp[(9) - (10)].d)); ViewData->T3D.push_back(ViewData->T3C.size()); #endif - } -#line 5381 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 54: -#line 589 "Gmsh.y" /* yacc.c:1646 */ +#line 589 "Gmsh.y" { #if defined(HAVE_POST) ViewData->NbT3++; #endif - } -#line 5391 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 55: -#line 599 "Gmsh.y" /* yacc.c:1646 */ +#line 599 "Gmsh.y" { #if defined(HAVE_POST) int type = @@ -5403,15 +6022,14 @@ yyreduce: (ViewData->NbSI || ViewData->NbVI) ? TYPE_PRI : (ViewData->NbSH || ViewData->NbVH) ? TYPE_HEX : 0; - ViewData->setInterpolationMatrices(type, ListOfListOfDouble2Matrix((yyvsp[-5].l)), - ListOfListOfDouble2Matrix((yyvsp[-2].l))); + ViewData->setInterpolationMatrices(type, ListOfListOfDouble2Matrix((yyvsp[(3) - (8)].l)), + ListOfListOfDouble2Matrix((yyvsp[(6) - (8)].l))); #endif - } -#line 5411 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 56: -#line 618 "Gmsh.y" /* yacc.c:1646 */ +#line 618 "Gmsh.y" { #if defined(HAVE_POST) int type = @@ -5421,145 +6039,129 @@ yyreduce: (ViewData->NbSS || ViewData->NbVS) ? TYPE_TET : (ViewData->NbSH || ViewData->NbVH) ? TYPE_HEX : 0; - ViewData->setInterpolationMatrices(type, ListOfListOfDouble2Matrix((yyvsp[-11].l)), - ListOfListOfDouble2Matrix((yyvsp[-8].l)), - ListOfListOfDouble2Matrix((yyvsp[-5].l)), - ListOfListOfDouble2Matrix((yyvsp[-2].l))); + ViewData->setInterpolationMatrices(type, ListOfListOfDouble2Matrix((yyvsp[(3) - (14)].l)), + ListOfListOfDouble2Matrix((yyvsp[(6) - (14)].l)), + ListOfListOfDouble2Matrix((yyvsp[(9) - (14)].l)), + ListOfListOfDouble2Matrix((yyvsp[(12) - (14)].l))); #endif - } -#line 5431 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 57: -#line 637 "Gmsh.y" /* yacc.c:1646 */ +#line 637 "Gmsh.y" { #if defined(HAVE_POST) ViewValueList = &ViewData->Time; #endif - } -#line 5441 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 58: -#line 643 "Gmsh.y" /* yacc.c:1646 */ +#line 643 "Gmsh.y" { - } -#line 5448 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 59: -#line 650 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.i) = 0; } -#line 5454 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 650 "Gmsh.y" + { (yyval.i) = 0; ;} break; case 60: -#line 651 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.i) = 1; } -#line 5460 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 651 "Gmsh.y" + { (yyval.i) = 1; ;} break; case 61: -#line 652 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.i) = 2; } -#line 5466 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 652 "Gmsh.y" + { (yyval.i) = 2; ;} break; case 62: -#line 653 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.i) = 3; } -#line 5472 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 653 "Gmsh.y" + { (yyval.i) = 3; ;} break; case 63: -#line 654 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.i) = 4; } -#line 5478 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 654 "Gmsh.y" + { (yyval.i) = 4; ;} break; case 64: -#line 658 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.i) = 1; } -#line 5484 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 658 "Gmsh.y" + { (yyval.i) = 1; ;} break; case 65: -#line 659 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.i) = -1; } -#line 5490 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 659 "Gmsh.y" + { (yyval.i) = -1; ;} break; case 66: -#line 665 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.c) = (char*)"("; } -#line 5496 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 665 "Gmsh.y" + { (yyval.c) = (char*)"("; ;} break; case 67: -#line 665 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.c) = (char*)"["; } -#line 5502 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 665 "Gmsh.y" + { (yyval.c) = (char*)"["; ;} break; case 68: -#line 666 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.c) = (char*)")"; } -#line 5508 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 666 "Gmsh.y" + { (yyval.c) = (char*)")"; ;} break; case 69: -#line 666 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.c) = (char*)"]"; } -#line 5514 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 666 "Gmsh.y" + { (yyval.c) = (char*)"]"; ;} break; case 72: -#line 675 "Gmsh.y" /* yacc.c:1646 */ +#line 675 "Gmsh.y" { - Msg::SetOnelabNumber((yyvsp[-4].c), (yyvsp[-2].d)); - Free((yyvsp[-4].c)); - } -#line 5523 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Msg::SetOnelabNumber((yyvsp[(3) - (7)].c), (yyvsp[(5) - (7)].d)); + Free((yyvsp[(3) - (7)].c)); + ;} break; case 73: -#line 680 "Gmsh.y" /* yacc.c:1646 */ +#line 680 "Gmsh.y" { - Msg::SetOnelabString((yyvsp[-4].c), (yyvsp[-2].c)); - Free((yyvsp[-4].c)); - Free((yyvsp[-2].c)); - } -#line 5533 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Msg::SetOnelabString((yyvsp[(3) - (7)].c), (yyvsp[(5) - (7)].c)); + Free((yyvsp[(3) - (7)].c)); + Free((yyvsp[(5) - (7)].c)); + ;} break; case 74: -#line 686 "Gmsh.y" /* yacc.c:1646 */ +#line 686 "Gmsh.y" { - if(!gmsh_yysymbols.count((yyvsp[-3].c)) && (yyvsp[-2].i) && List_Nbr((yyvsp[-1].l)) == 1){ - yymsg(0, "Unknown variable '%s'", (yyvsp[-3].c)); + if(!gmsh_yysymbols.count((yyvsp[(1) - (4)].c)) && (yyvsp[(2) - (4)].i) && List_Nbr((yyvsp[(3) - (4)].l)) == 1){ + yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (4)].c)); } else{ - gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[-3].c)]); - if(!(yyvsp[-2].i)) s.list = (List_Nbr((yyvsp[-1].l)) != 1); // list if 0 or > 1 elements + gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(1) - (4)].c)]); + if(!(yyvsp[(2) - (4)].i)) s.list = (List_Nbr((yyvsp[(3) - (4)].l)) != 1); // list if 0 or > 1 elements if(!s.list){ // single expression - if(List_Nbr((yyvsp[-1].l)) != 1){ - yymsg(0, "Cannot assign list to variable '%s'", (yyvsp[-3].c)); + if(List_Nbr((yyvsp[(3) - (4)].l)) != 1){ + yymsg(0, "Cannot assign list to variable '%s'", (yyvsp[(1) - (4)].c)); } else{ double d; - List_Read((yyvsp[-1].l), 0, &d); + List_Read((yyvsp[(3) - (4)].l), 0, &d); if(s.value.empty()){ - if((yyvsp[-2].i)) yymsg(1, "Uninitialized variable '%s'", (yyvsp[-3].c)); + if((yyvsp[(2) - (4)].i)) yymsg(1, "Uninitialized variable '%s'", (yyvsp[(1) - (4)].c)); s.value.resize(1, 0.); } - switch((yyvsp[-2].i)){ + switch((yyvsp[(2) - (4)].i)){ case 0 : s.value[0] = d; break; case 1 : s.value[0] += d; break; case 2 : s.value[0] -= d; break; case 3 : s.value[0] *= d; break; case 4 : if(d) s.value[0] /= d; - else yymsg(0, "Division by zero in '%s /= %g'", (yyvsp[-3].c), d); + else yymsg(0, "Division by zero in '%s /= %g'", (yyvsp[(1) - (4)].c), d); break; } } @@ -5567,20 +6169,20 @@ yyreduce: else{ // list of expressions; this is not recommended (should use [] or () // notation instead) - switch((yyvsp[-2].i)){ + switch((yyvsp[(2) - (4)].i)){ case 0: // affect s.value.clear(); // fall-through case 1: // append - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++){ double d; - List_Read((yyvsp[-1].l), i, &d); + List_Read((yyvsp[(3) - (4)].l), i, &d); s.value.push_back(d); } break; case 2: // remove - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++){ double d; - List_Read((yyvsp[-1].l), i, &d); + List_Read((yyvsp[(3) - (4)].l), i, &d); std::vector<double>::iterator it = std::find(s.value.begin(), s.value.end(), d); if(it != s.value.end()) s.value.erase(it); @@ -5592,49 +6194,47 @@ yyreduce: } } } - Free((yyvsp[-3].c)); - List_Delete((yyvsp[-1].l)); - } -#line 5599 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (4)].c)); + List_Delete((yyvsp[(3) - (4)].l)); + ;} break; case 75: -#line 748 "Gmsh.y" /* yacc.c:1646 */ +#line 748 "Gmsh.y" { - if(!gmsh_yysymbols.count((yyvsp[-2].c))) - yymsg(0, "Unknown variable '%s'", (yyvsp[-2].c)); + if(!gmsh_yysymbols.count((yyvsp[(1) - (3)].c))) + yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (3)].c)); else{ - gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[-2].c)]); + gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(1) - (3)].c)]); if(!s.list && s.value.empty()) - yymsg(0, "Uninitialized variable '%s'", (yyvsp[-2].c)); + yymsg(0, "Uninitialized variable '%s'", (yyvsp[(1) - (3)].c)); else if(!s.list) - s.value[0] += (yyvsp[-1].i); + s.value[0] += (yyvsp[(2) - (3)].i); else - yymsg(0, "Variable '%s' is a list", (yyvsp[-2].c)); + yymsg(0, "Variable '%s' is a list", (yyvsp[(1) - (3)].c)); } - Free((yyvsp[-2].c)); - } -#line 5618 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (3)].c)); + ;} break; case 76: -#line 765 "Gmsh.y" /* yacc.c:1646 */ +#line 765 "Gmsh.y" { - gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[-5].c)]); + gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(1) - (6)].c)]); s.list = true; double d; - switch((yyvsp[-2].i)){ + switch((yyvsp[(4) - (6)].i)){ case 0: // affect s.value.clear(); // fall-through case 1: // append - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ - List_Read((yyvsp[-1].l), i, &d); + for(int i = 0; i < List_Nbr((yyvsp[(5) - (6)].l)); i++){ + List_Read((yyvsp[(5) - (6)].l), i, &d); s.value.push_back(d); } break; case 2: // remove - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ - List_Read((yyvsp[-1].l), i, &d); + for(int i = 0; i < List_Nbr((yyvsp[(5) - (6)].l)); i++){ + List_Read((yyvsp[(5) - (6)].l), i, &d); std::vector<double>::iterator it = std::find(s.value.begin(), s.value.end(), d); if(it != s.value.end()) s.value.erase(it); @@ -5644,30 +6244,29 @@ yyreduce: yymsg(0, "Operators *= and /= not available for lists"); break; } - Free((yyvsp[-5].c)); - List_Delete((yyvsp[-1].l)); - } -#line 5651 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (6)].c)); + List_Delete((yyvsp[(5) - (6)].l)); + ;} break; case 77: -#line 794 "Gmsh.y" /* yacc.c:1646 */ +#line 794 "Gmsh.y" { - gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[-5].c)]); + gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(1) - (6)].c)]); s.list = true; double d; - switch((yyvsp[-2].i)){ + switch((yyvsp[(4) - (6)].i)){ case 0: // affect s.value.clear(); // fall-through case 1: // append - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ - List_Read((yyvsp[-1].l), i, &d); + for(int i = 0; i < List_Nbr((yyvsp[(5) - (6)].l)); i++){ + List_Read((yyvsp[(5) - (6)].l), i, &d); s.value.push_back(d); } break; case 2: // remove - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ - List_Read((yyvsp[-1].l), i, &d); + for(int i = 0; i < List_Nbr((yyvsp[(5) - (6)].l)); i++){ + List_Read((yyvsp[(5) - (6)].l), i, &d); std::vector<double>::iterator it = std::find(s.value.begin(), s.value.end(), d); if(it != s.value.end()) s.value.erase(it); @@ -5677,88 +6276,81 @@ yyreduce: yymsg(0, "Operators *= and /= not available for lists"); break; } - Free((yyvsp[-5].c)); - List_Delete((yyvsp[-1].l)); - } -#line 5684 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (6)].c)); + List_Delete((yyvsp[(5) - (6)].l)); + ;} break; case 78: -#line 823 "Gmsh.y" /* yacc.c:1646 */ +#line 823 "Gmsh.y" { - assignVariable((yyvsp[-6].c), (int)(yyvsp[-4].d), (yyvsp[-2].i), (yyvsp[-1].d)); - Free((yyvsp[-6].c)); - } -#line 5693 "Gmsh.tab.cpp" /* yacc.c:1646 */ + assignVariable((yyvsp[(1) - (7)].c), (int)(yyvsp[(3) - (7)].d), (yyvsp[(5) - (7)].i), (yyvsp[(6) - (7)].d)); + Free((yyvsp[(1) - (7)].c)); + ;} break; case 79: -#line 828 "Gmsh.y" /* yacc.c:1646 */ +#line 828 "Gmsh.y" { - assignVariable((yyvsp[-6].c), (int)(yyvsp[-4].d), (yyvsp[-2].i), (yyvsp[-1].d)); - Free((yyvsp[-6].c)); - } -#line 5702 "Gmsh.tab.cpp" /* yacc.c:1646 */ + assignVariable((yyvsp[(1) - (7)].c), (int)(yyvsp[(3) - (7)].d), (yyvsp[(5) - (7)].i), (yyvsp[(6) - (7)].d)); + Free((yyvsp[(1) - (7)].c)); + ;} break; case 80: -#line 833 "Gmsh.y" /* yacc.c:1646 */ +#line 833 "Gmsh.y" { - incrementVariable((yyvsp[-5].c), (yyvsp[-3].d), (yyvsp[-1].i)); - Free((yyvsp[-5].c)); - } -#line 5711 "Gmsh.tab.cpp" /* yacc.c:1646 */ + incrementVariable((yyvsp[(1) - (6)].c), (yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].i)); + Free((yyvsp[(1) - (6)].c)); + ;} break; case 81: -#line 838 "Gmsh.y" /* yacc.c:1646 */ +#line 838 "Gmsh.y" { - incrementVariable((yyvsp[-5].c), (yyvsp[-3].d), (yyvsp[-1].i)); - Free((yyvsp[-5].c)); - } -#line 5720 "Gmsh.tab.cpp" /* yacc.c:1646 */ + incrementVariable((yyvsp[(1) - (6)].c), (yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].i)); + Free((yyvsp[(1) - (6)].c)); + ;} break; case 82: -#line 843 "Gmsh.y" /* yacc.c:1646 */ +#line 843 "Gmsh.y" { - assignVariables((yyvsp[-8].c), (yyvsp[-5].l), (yyvsp[-2].i), (yyvsp[-1].l)); - Free((yyvsp[-8].c)); - List_Delete((yyvsp[-5].l)); - List_Delete((yyvsp[-1].l)); - } -#line 5731 "Gmsh.tab.cpp" /* yacc.c:1646 */ + assignVariables((yyvsp[(1) - (9)].c), (yyvsp[(4) - (9)].l), (yyvsp[(7) - (9)].i), (yyvsp[(8) - (9)].l)); + Free((yyvsp[(1) - (9)].c)); + List_Delete((yyvsp[(4) - (9)].l)); + List_Delete((yyvsp[(8) - (9)].l)); + ;} break; case 83: -#line 850 "Gmsh.y" /* yacc.c:1646 */ +#line 850 "Gmsh.y" { - assignVariables((yyvsp[-8].c), (yyvsp[-5].l), (yyvsp[-2].i), (yyvsp[-1].l)); - Free((yyvsp[-8].c)); - List_Delete((yyvsp[-5].l)); - List_Delete((yyvsp[-1].l)); - } -#line 5742 "Gmsh.tab.cpp" /* yacc.c:1646 */ + assignVariables((yyvsp[(1) - (9)].c), (yyvsp[(4) - (9)].l), (yyvsp[(7) - (9)].i), (yyvsp[(8) - (9)].l)); + Free((yyvsp[(1) - (9)].c)); + List_Delete((yyvsp[(4) - (9)].l)); + List_Delete((yyvsp[(8) - (9)].l)); + ;} break; case 84: -#line 860 "Gmsh.y" /* yacc.c:1646 */ +#line 860 "Gmsh.y" { - gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[-5].c)]); + gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(1) - (6)].c)]); s.list = true; double d; - switch((yyvsp[-2].i)){ + switch((yyvsp[(4) - (6)].i)){ case 0: // affect s.value.clear(); // fall-through case 1: // append - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ - List_Read((yyvsp[-1].l), i, &d); + for(int i = 0; i < List_Nbr((yyvsp[(5) - (6)].l)); i++){ + List_Read((yyvsp[(5) - (6)].l), i, &d); s.value.push_back(d); } break; case 2: // remove - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ - List_Read((yyvsp[-1].l), i, &d); + for(int i = 0; i < List_Nbr((yyvsp[(5) - (6)].l)); i++){ + List_Read((yyvsp[(5) - (6)].l), i, &d); std::vector<double>::iterator it = std::find(s.value.begin(), s.value.end(), d); if(it != s.value.end()) s.value.erase(it); @@ -5768,30 +6360,29 @@ yyreduce: yymsg(0, "Operators *= and /= not available for lists"); break; } - Free((yyvsp[-5].c)); - List_Delete((yyvsp[-1].l)); - } -#line 5775 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (6)].c)); + List_Delete((yyvsp[(5) - (6)].l)); + ;} break; case 85: -#line 889 "Gmsh.y" /* yacc.c:1646 */ +#line 889 "Gmsh.y" { - gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[-5].c)]); + gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(1) - (6)].c)]); s.list = true; double d; - switch((yyvsp[-2].i)){ + switch((yyvsp[(4) - (6)].i)){ case 0: // affect s.value.clear(); // fall-through case 1: // append - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ - List_Read((yyvsp[-1].l), i, &d); + for(int i = 0; i < List_Nbr((yyvsp[(5) - (6)].l)); i++){ + List_Read((yyvsp[(5) - (6)].l), i, &d); s.value.push_back(d); } break; case 2: // remove - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ - List_Read((yyvsp[-1].l), i, &d); + for(int i = 0; i < List_Nbr((yyvsp[(5) - (6)].l)); i++){ + List_Read((yyvsp[(5) - (6)].l), i, &d); std::vector<double>::iterator it = std::find(s.value.begin(), s.value.end(), d); if(it != s.value.end()) s.value.erase(it); @@ -5801,733 +6392,683 @@ yyreduce: yymsg(0, "Operators *= and /= not available for lists"); break; } - Free((yyvsp[-5].c)); - List_Delete((yyvsp[-1].l)); - } -#line 5808 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (6)].c)); + List_Delete((yyvsp[(5) - (6)].l)); + ;} break; case 86: -#line 918 "Gmsh.y" /* yacc.c:1646 */ +#line 918 "Gmsh.y" { - assignVariable((yyvsp[-6].c), (int)(yyvsp[-4].d), (yyvsp[-2].i), (yyvsp[-1].d)); - Free((yyvsp[-6].c)); - } -#line 5817 "Gmsh.tab.cpp" /* yacc.c:1646 */ + assignVariable((yyvsp[(1) - (7)].c), (int)(yyvsp[(3) - (7)].d), (yyvsp[(5) - (7)].i), (yyvsp[(6) - (7)].d)); + Free((yyvsp[(1) - (7)].c)); + ;} break; case 87: -#line 923 "Gmsh.y" /* yacc.c:1646 */ +#line 923 "Gmsh.y" { - assignVariable((yyvsp[-6].c), (int)(yyvsp[-4].d), (yyvsp[-2].i), (yyvsp[-1].d)); - Free((yyvsp[-6].c)); - } -#line 5826 "Gmsh.tab.cpp" /* yacc.c:1646 */ + assignVariable((yyvsp[(1) - (7)].c), (int)(yyvsp[(3) - (7)].d), (yyvsp[(5) - (7)].i), (yyvsp[(6) - (7)].d)); + Free((yyvsp[(1) - (7)].c)); + ;} break; case 88: -#line 928 "Gmsh.y" /* yacc.c:1646 */ +#line 928 "Gmsh.y" { - incrementVariable((yyvsp[-5].c), (yyvsp[-3].d), (yyvsp[-1].i)); - Free((yyvsp[-5].c)); - } -#line 5835 "Gmsh.tab.cpp" /* yacc.c:1646 */ + incrementVariable((yyvsp[(1) - (6)].c), (yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].i)); + Free((yyvsp[(1) - (6)].c)); + ;} break; case 89: -#line 933 "Gmsh.y" /* yacc.c:1646 */ +#line 933 "Gmsh.y" { - incrementVariable((yyvsp[-5].c), (yyvsp[-3].d), (yyvsp[-1].i)); - Free((yyvsp[-5].c)); - } -#line 5844 "Gmsh.tab.cpp" /* yacc.c:1646 */ + incrementVariable((yyvsp[(1) - (6)].c), (yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].i)); + Free((yyvsp[(1) - (6)].c)); + ;} break; case 90: -#line 941 "Gmsh.y" /* yacc.c:1646 */ +#line 941 "Gmsh.y" { - gmsh_yystringsymbols[(yyvsp[-3].c)] = std::vector<std::string>(1, (yyvsp[-1].c)); - Free((yyvsp[-3].c)); - Free((yyvsp[-1].c)); - } -#line 5854 "Gmsh.tab.cpp" /* yacc.c:1646 */ + gmsh_yystringsymbols[(yyvsp[(1) - (4)].c)] = std::vector<std::string>(1, (yyvsp[(3) - (4)].c)); + Free((yyvsp[(1) - (4)].c)); + Free((yyvsp[(3) - (4)].c)); + ;} break; case 91: -#line 950 "Gmsh.y" /* yacc.c:1646 */ +#line 950 "Gmsh.y" { - gmsh_yystringsymbols[(yyvsp[-7].c)] = std::vector<std::string>(); - Free((yyvsp[-7].c)); - } -#line 5863 "Gmsh.tab.cpp" /* yacc.c:1646 */ + gmsh_yystringsymbols[(yyvsp[(1) - (8)].c)] = std::vector<std::string>(); + Free((yyvsp[(1) - (8)].c)); + ;} break; case 92: -#line 956 "Gmsh.y" /* yacc.c:1646 */ +#line 956 "Gmsh.y" { - gmsh_yystringsymbols[(yyvsp[-7].c)] = std::vector<std::string>(); - Free((yyvsp[-7].c)); - } -#line 5872 "Gmsh.tab.cpp" /* yacc.c:1646 */ + gmsh_yystringsymbols[(yyvsp[(1) - (8)].c)] = std::vector<std::string>(); + Free((yyvsp[(1) - (8)].c)); + ;} break; case 93: -#line 962 "Gmsh.y" /* yacc.c:1646 */ +#line 962 "Gmsh.y" { std::vector<std::string> s; - for(int i = 0; i < List_Nbr((yyvsp[-2].l)); i++){ - char **c = (char**)List_Pointer((yyvsp[-2].l), i); + for(int i = 0; i < List_Nbr((yyvsp[(7) - (9)].l)); i++){ + char **c = (char**)List_Pointer((yyvsp[(7) - (9)].l), i); s.push_back(*c); Free(*c); } - gmsh_yystringsymbols[(yyvsp[-8].c)] = s; - Free((yyvsp[-8].c)); - List_Delete((yyvsp[-2].l)); - } -#line 5888 "Gmsh.tab.cpp" /* yacc.c:1646 */ + gmsh_yystringsymbols[(yyvsp[(1) - (9)].c)] = s; + Free((yyvsp[(1) - (9)].c)); + List_Delete((yyvsp[(7) - (9)].l)); + ;} break; case 94: -#line 975 "Gmsh.y" /* yacc.c:1646 */ +#line 975 "Gmsh.y" { std::vector<std::string> s; - for(int i = 0; i < List_Nbr((yyvsp[-2].l)); i++){ - char **c = (char**)List_Pointer((yyvsp[-2].l), i); + for(int i = 0; i < List_Nbr((yyvsp[(7) - (9)].l)); i++){ + char **c = (char**)List_Pointer((yyvsp[(7) - (9)].l), i); s.push_back(*c); Free(*c); } - gmsh_yystringsymbols[(yyvsp[-8].c)] = s; - Free((yyvsp[-8].c)); - List_Delete((yyvsp[-2].l)); - } -#line 5904 "Gmsh.tab.cpp" /* yacc.c:1646 */ + gmsh_yystringsymbols[(yyvsp[(1) - (9)].c)] = s; + Free((yyvsp[(1) - (9)].c)); + List_Delete((yyvsp[(7) - (9)].l)); + ;} break; case 95: -#line 988 "Gmsh.y" /* yacc.c:1646 */ +#line 988 "Gmsh.y" { - if(gmsh_yystringsymbols.count((yyvsp[-8].c))){ - for(int i = 0; i < List_Nbr((yyvsp[-2].l)); i++){ - char **c = (char**)List_Pointer((yyvsp[-2].l), i); - gmsh_yystringsymbols[(yyvsp[-8].c)].push_back(*c); + if(gmsh_yystringsymbols.count((yyvsp[(1) - (9)].c))){ + for(int i = 0; i < List_Nbr((yyvsp[(7) - (9)].l)); i++){ + char **c = (char**)List_Pointer((yyvsp[(7) - (9)].l), i); + gmsh_yystringsymbols[(yyvsp[(1) - (9)].c)].push_back(*c); Free(*c); } } else - yymsg(0, "Uninitialized variable '%s'", (yyvsp[-8].c)); - Free((yyvsp[-8].c)); - List_Delete((yyvsp[-2].l)); - } -#line 5922 "Gmsh.tab.cpp" /* yacc.c:1646 */ + yymsg(0, "Uninitialized variable '%s'", (yyvsp[(1) - (9)].c)); + Free((yyvsp[(1) - (9)].c)); + List_Delete((yyvsp[(7) - (9)].l)); + ;} break; case 96: -#line 1003 "Gmsh.y" /* yacc.c:1646 */ +#line 1003 "Gmsh.y" { - if(gmsh_yystringsymbols.count((yyvsp[-8].c))){ - for(int i = 0; i < List_Nbr((yyvsp[-2].l)); i++){ - char **c = (char**)List_Pointer((yyvsp[-2].l), i); - gmsh_yystringsymbols[(yyvsp[-8].c)].push_back(*c); + if(gmsh_yystringsymbols.count((yyvsp[(1) - (9)].c))){ + for(int i = 0; i < List_Nbr((yyvsp[(7) - (9)].l)); i++){ + char **c = (char**)List_Pointer((yyvsp[(7) - (9)].l), i); + gmsh_yystringsymbols[(yyvsp[(1) - (9)].c)].push_back(*c); Free(*c); } } else - yymsg(0, "Uninitialized variable '%s'", (yyvsp[-8].c)); - Free((yyvsp[-8].c)); - List_Delete((yyvsp[-2].l)); - } -#line 5940 "Gmsh.tab.cpp" /* yacc.c:1646 */ + yymsg(0, "Uninitialized variable '%s'", (yyvsp[(1) - (9)].c)); + Free((yyvsp[(1) - (9)].c)); + List_Delete((yyvsp[(7) - (9)].l)); + ;} break; case 97: -#line 1020 "Gmsh.y" /* yacc.c:1646 */ +#line 1020 "Gmsh.y" { - gmsh_yystringsymbols[(yyvsp[-7].c)] = std::vector<std::string>(); - Free((yyvsp[-7].c)); - } -#line 5949 "Gmsh.tab.cpp" /* yacc.c:1646 */ + gmsh_yystringsymbols[(yyvsp[(1) - (8)].c)] = std::vector<std::string>(); + Free((yyvsp[(1) - (8)].c)); + ;} break; case 98: -#line 1026 "Gmsh.y" /* yacc.c:1646 */ +#line 1026 "Gmsh.y" { - gmsh_yystringsymbols[(yyvsp[-7].c)] = std::vector<std::string>(); - Free((yyvsp[-7].c)); - } -#line 5958 "Gmsh.tab.cpp" /* yacc.c:1646 */ + gmsh_yystringsymbols[(yyvsp[(1) - (8)].c)] = std::vector<std::string>(); + Free((yyvsp[(1) - (8)].c)); + ;} break; case 99: -#line 1032 "Gmsh.y" /* yacc.c:1646 */ +#line 1032 "Gmsh.y" { std::vector<std::string> s; - for(int i = 0; i < List_Nbr((yyvsp[-2].l)); i++){ - char **c = (char**)List_Pointer((yyvsp[-2].l), i); + for(int i = 0; i < List_Nbr((yyvsp[(7) - (9)].l)); i++){ + char **c = (char**)List_Pointer((yyvsp[(7) - (9)].l), i); s.push_back(*c); Free(*c); } - gmsh_yystringsymbols[(yyvsp[-8].c)] = s; - Free((yyvsp[-8].c)); - List_Delete((yyvsp[-2].l)); - } -#line 5974 "Gmsh.tab.cpp" /* yacc.c:1646 */ + gmsh_yystringsymbols[(yyvsp[(1) - (9)].c)] = s; + Free((yyvsp[(1) - (9)].c)); + List_Delete((yyvsp[(7) - (9)].l)); + ;} break; case 100: -#line 1045 "Gmsh.y" /* yacc.c:1646 */ +#line 1045 "Gmsh.y" { std::vector<std::string> s; - for(int i = 0; i < List_Nbr((yyvsp[-2].l)); i++){ - char **c = (char**)List_Pointer((yyvsp[-2].l), i); + for(int i = 0; i < List_Nbr((yyvsp[(7) - (9)].l)); i++){ + char **c = (char**)List_Pointer((yyvsp[(7) - (9)].l), i); s.push_back(*c); Free(*c); } - gmsh_yystringsymbols[(yyvsp[-8].c)] = s; - Free((yyvsp[-8].c)); - List_Delete((yyvsp[-2].l)); - } -#line 5990 "Gmsh.tab.cpp" /* yacc.c:1646 */ + gmsh_yystringsymbols[(yyvsp[(1) - (9)].c)] = s; + Free((yyvsp[(1) - (9)].c)); + List_Delete((yyvsp[(7) - (9)].l)); + ;} break; case 101: -#line 1058 "Gmsh.y" /* yacc.c:1646 */ +#line 1058 "Gmsh.y" { - if(gmsh_yystringsymbols.count((yyvsp[-8].c))){ - for(int i = 0; i < List_Nbr((yyvsp[-2].l)); i++){ - char **c = (char**)List_Pointer((yyvsp[-2].l), i); - gmsh_yystringsymbols[(yyvsp[-8].c)].push_back(*c); + if(gmsh_yystringsymbols.count((yyvsp[(1) - (9)].c))){ + for(int i = 0; i < List_Nbr((yyvsp[(7) - (9)].l)); i++){ + char **c = (char**)List_Pointer((yyvsp[(7) - (9)].l), i); + gmsh_yystringsymbols[(yyvsp[(1) - (9)].c)].push_back(*c); Free(*c); } } else - yymsg(0, "Uninitialized variable '%s'", (yyvsp[-8].c)); - Free((yyvsp[-8].c)); - List_Delete((yyvsp[-2].l)); - } -#line 6008 "Gmsh.tab.cpp" /* yacc.c:1646 */ + yymsg(0, "Uninitialized variable '%s'", (yyvsp[(1) - (9)].c)); + Free((yyvsp[(1) - (9)].c)); + List_Delete((yyvsp[(7) - (9)].l)); + ;} break; case 102: -#line 1073 "Gmsh.y" /* yacc.c:1646 */ +#line 1073 "Gmsh.y" { - if(gmsh_yystringsymbols.count((yyvsp[-8].c))){ - for(int i = 0; i < List_Nbr((yyvsp[-2].l)); i++){ - char **c = (char**)List_Pointer((yyvsp[-2].l), i); - gmsh_yystringsymbols[(yyvsp[-8].c)].push_back(*c); + if(gmsh_yystringsymbols.count((yyvsp[(1) - (9)].c))){ + for(int i = 0; i < List_Nbr((yyvsp[(7) - (9)].l)); i++){ + char **c = (char**)List_Pointer((yyvsp[(7) - (9)].l), i); + gmsh_yystringsymbols[(yyvsp[(1) - (9)].c)].push_back(*c); Free(*c); } } else - yymsg(0, "Uninitialized variable '%s'", (yyvsp[-8].c)); - Free((yyvsp[-8].c)); - List_Delete((yyvsp[-2].l)); - } -#line 6026 "Gmsh.tab.cpp" /* yacc.c:1646 */ + yymsg(0, "Uninitialized variable '%s'", (yyvsp[(1) - (9)].c)); + Free((yyvsp[(1) - (9)].c)); + List_Delete((yyvsp[(7) - (9)].l)); + ;} break; case 103: -#line 1090 "Gmsh.y" /* yacc.c:1646 */ +#line 1090 "Gmsh.y" { - std::string tmp((yyvsp[-1].c)); - StringOption(GMSH_SET|GMSH_GUI, (yyvsp[-5].c), 0, (yyvsp[-3].c), tmp); - Free((yyvsp[-5].c)); Free((yyvsp[-3].c)); Free((yyvsp[-1].c)); - } -#line 6036 "Gmsh.tab.cpp" /* yacc.c:1646 */ + std::string tmp((yyvsp[(5) - (6)].c)); + StringOption(GMSH_SET|GMSH_GUI, (yyvsp[(1) - (6)].c), 0, (yyvsp[(3) - (6)].c), tmp); + Free((yyvsp[(1) - (6)].c)); Free((yyvsp[(3) - (6)].c)); Free((yyvsp[(5) - (6)].c)); + ;} break; case 104: -#line 1096 "Gmsh.y" /* yacc.c:1646 */ +#line 1096 "Gmsh.y" { - std::string tmp((yyvsp[-1].c)); - StringOption(GMSH_SET|GMSH_GUI, (yyvsp[-8].c), (int)(yyvsp[-6].d), (yyvsp[-3].c), tmp); - Free((yyvsp[-8].c)); Free((yyvsp[-3].c)); Free((yyvsp[-1].c)); - } -#line 6046 "Gmsh.tab.cpp" /* yacc.c:1646 */ + std::string tmp((yyvsp[(8) - (9)].c)); + StringOption(GMSH_SET|GMSH_GUI, (yyvsp[(1) - (9)].c), (int)(yyvsp[(3) - (9)].d), (yyvsp[(6) - (9)].c), tmp); + Free((yyvsp[(1) - (9)].c)); Free((yyvsp[(6) - (9)].c)); Free((yyvsp[(8) - (9)].c)); + ;} break; case 105: -#line 1105 "Gmsh.y" /* yacc.c:1646 */ +#line 1105 "Gmsh.y" { double d = 0.; - if(NumberOption(GMSH_GET, (yyvsp[-5].c), 0, (yyvsp[-3].c), d)){ - switch((yyvsp[-2].i)){ - case 0 : d = (yyvsp[-1].d); break; - case 1 : d += (yyvsp[-1].d); break; - case 2 : d -= (yyvsp[-1].d); break; - case 3 : d *= (yyvsp[-1].d); break; + if(NumberOption(GMSH_GET, (yyvsp[(1) - (6)].c), 0, (yyvsp[(3) - (6)].c), d)){ + switch((yyvsp[(4) - (6)].i)){ + case 0 : d = (yyvsp[(5) - (6)].d); break; + case 1 : d += (yyvsp[(5) - (6)].d); break; + case 2 : d -= (yyvsp[(5) - (6)].d); break; + case 3 : d *= (yyvsp[(5) - (6)].d); break; case 4 : - if((yyvsp[-1].d)) d /= (yyvsp[-1].d); - else yymsg(0, "Division by zero in '%s.%s /= %g'", (yyvsp[-5].c), (yyvsp[-3].c), (yyvsp[-1].d)); + if((yyvsp[(5) - (6)].d)) d /= (yyvsp[(5) - (6)].d); + else yymsg(0, "Division by zero in '%s.%s /= %g'", (yyvsp[(1) - (6)].c), (yyvsp[(3) - (6)].c), (yyvsp[(5) - (6)].d)); break; } - NumberOption(GMSH_SET|GMSH_GUI, (yyvsp[-5].c), 0, (yyvsp[-3].c), d); + NumberOption(GMSH_SET|GMSH_GUI, (yyvsp[(1) - (6)].c), 0, (yyvsp[(3) - (6)].c), d); } - Free((yyvsp[-5].c)); Free((yyvsp[-3].c)); - } -#line 6068 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (6)].c)); Free((yyvsp[(3) - (6)].c)); + ;} break; case 106: -#line 1123 "Gmsh.y" /* yacc.c:1646 */ +#line 1123 "Gmsh.y" { double d = 0.; - if(NumberOption(GMSH_GET, (yyvsp[-8].c), (int)(yyvsp[-6].d), (yyvsp[-3].c), d)){ - switch((yyvsp[-2].i)){ - case 0 : d = (yyvsp[-1].d); break; - case 1 : d += (yyvsp[-1].d); break; - case 2 : d -= (yyvsp[-1].d); break; - case 3 : d *= (yyvsp[-1].d); break; + if(NumberOption(GMSH_GET, (yyvsp[(1) - (9)].c), (int)(yyvsp[(3) - (9)].d), (yyvsp[(6) - (9)].c), d)){ + switch((yyvsp[(7) - (9)].i)){ + case 0 : d = (yyvsp[(8) - (9)].d); break; + case 1 : d += (yyvsp[(8) - (9)].d); break; + case 2 : d -= (yyvsp[(8) - (9)].d); break; + case 3 : d *= (yyvsp[(8) - (9)].d); break; case 4 : - if((yyvsp[-1].d)) d /= (yyvsp[-1].d); - else yymsg(0, "Division by zero in '%s[%d].%s /= %g'", (yyvsp[-8].c), (int)(yyvsp[-6].d), (yyvsp[-3].c), (yyvsp[-1].d)); + if((yyvsp[(8) - (9)].d)) d /= (yyvsp[(8) - (9)].d); + else yymsg(0, "Division by zero in '%s[%d].%s /= %g'", (yyvsp[(1) - (9)].c), (int)(yyvsp[(3) - (9)].d), (yyvsp[(6) - (9)].c), (yyvsp[(8) - (9)].d)); break; } - NumberOption(GMSH_SET|GMSH_GUI, (yyvsp[-8].c), (int)(yyvsp[-6].d), (yyvsp[-3].c), d); + NumberOption(GMSH_SET|GMSH_GUI, (yyvsp[(1) - (9)].c), (int)(yyvsp[(3) - (9)].d), (yyvsp[(6) - (9)].c), d); } - Free((yyvsp[-8].c)); Free((yyvsp[-3].c)); - } -#line 6090 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (9)].c)); Free((yyvsp[(6) - (9)].c)); + ;} break; case 107: -#line 1141 "Gmsh.y" /* yacc.c:1646 */ +#line 1141 "Gmsh.y" { double d = 0.; - if(NumberOption(GMSH_GET, (yyvsp[-4].c), 0, (yyvsp[-2].c), d)){ - d += (yyvsp[-1].i); - NumberOption(GMSH_SET|GMSH_GUI, (yyvsp[-4].c), 0, (yyvsp[-2].c), d); + if(NumberOption(GMSH_GET, (yyvsp[(1) - (5)].c), 0, (yyvsp[(3) - (5)].c), d)){ + d += (yyvsp[(4) - (5)].i); + NumberOption(GMSH_SET|GMSH_GUI, (yyvsp[(1) - (5)].c), 0, (yyvsp[(3) - (5)].c), d); } - Free((yyvsp[-4].c)); Free((yyvsp[-2].c)); - } -#line 6103 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (5)].c)); Free((yyvsp[(3) - (5)].c)); + ;} break; case 108: -#line 1150 "Gmsh.y" /* yacc.c:1646 */ +#line 1150 "Gmsh.y" { double d = 0.; - if(NumberOption(GMSH_GET, (yyvsp[-7].c), (int)(yyvsp[-5].d), (yyvsp[-2].c), d)){ - d += (yyvsp[-1].i); - NumberOption(GMSH_SET|GMSH_GUI, (yyvsp[-7].c), (int)(yyvsp[-5].d), (yyvsp[-2].c), d); + if(NumberOption(GMSH_GET, (yyvsp[(1) - (8)].c), (int)(yyvsp[(3) - (8)].d), (yyvsp[(6) - (8)].c), d)){ + d += (yyvsp[(7) - (8)].i); + NumberOption(GMSH_SET|GMSH_GUI, (yyvsp[(1) - (8)].c), (int)(yyvsp[(3) - (8)].d), (yyvsp[(6) - (8)].c), d); } - Free((yyvsp[-7].c)); Free((yyvsp[-2].c)); - } -#line 6116 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (8)].c)); Free((yyvsp[(6) - (8)].c)); + ;} break; case 109: -#line 1162 "Gmsh.y" /* yacc.c:1646 */ +#line 1162 "Gmsh.y" { - ColorOption(GMSH_SET|GMSH_GUI, (yyvsp[-7].c), 0, (yyvsp[-3].c), (yyvsp[-1].u)); - Free((yyvsp[-7].c)); Free((yyvsp[-3].c)); - } -#line 6125 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ColorOption(GMSH_SET|GMSH_GUI, (yyvsp[(1) - (8)].c), 0, (yyvsp[(5) - (8)].c), (yyvsp[(7) - (8)].u)); + Free((yyvsp[(1) - (8)].c)); Free((yyvsp[(5) - (8)].c)); + ;} break; case 110: -#line 1167 "Gmsh.y" /* yacc.c:1646 */ +#line 1167 "Gmsh.y" { - ColorOption(GMSH_SET|GMSH_GUI, (yyvsp[-10].c), (int)(yyvsp[-8].d), (yyvsp[-3].c), (yyvsp[-1].u)); - Free((yyvsp[-10].c)); Free((yyvsp[-3].c)); - } -#line 6134 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ColorOption(GMSH_SET|GMSH_GUI, (yyvsp[(1) - (11)].c), (int)(yyvsp[(3) - (11)].d), (yyvsp[(8) - (11)].c), (yyvsp[(10) - (11)].u)); + Free((yyvsp[(1) - (11)].c)); Free((yyvsp[(8) - (11)].c)); + ;} break; case 111: -#line 1175 "Gmsh.y" /* yacc.c:1646 */ +#line 1175 "Gmsh.y" { GmshColorTable *ct = GetColorTable(0); if(!ct) yymsg(0, "View[%d] does not exist", 0); else{ - ct->size = List_Nbr((yyvsp[-1].l)); + ct->size = List_Nbr((yyvsp[(5) - (6)].l)); if(ct->size > COLORTABLE_NBMAX_COLOR) yymsg(0, "Too many (%d>%d) colors in View[%d].ColorTable", ct->size, COLORTABLE_NBMAX_COLOR, 0); else - for(int i = 0; i < ct->size; i++) List_Read((yyvsp[-1].l), i, &ct->table[i]); + for(int i = 0; i < ct->size; i++) List_Read((yyvsp[(5) - (6)].l), i, &ct->table[i]); if(ct->size == 1){ ct->size = 2; ct->table[1] = ct->table[0]; } } - Free((yyvsp[-5].c)); - List_Delete((yyvsp[-1].l)); - } -#line 6158 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (6)].c)); + List_Delete((yyvsp[(5) - (6)].l)); + ;} break; case 112: -#line 1195 "Gmsh.y" /* yacc.c:1646 */ +#line 1195 "Gmsh.y" { - GmshColorTable *ct = GetColorTable((int)(yyvsp[-6].d)); + GmshColorTable *ct = GetColorTable((int)(yyvsp[(3) - (9)].d)); if(!ct) - yymsg(0, "View[%d] does not exist", (int)(yyvsp[-6].d)); + yymsg(0, "View[%d] does not exist", (int)(yyvsp[(3) - (9)].d)); else{ - ct->size = List_Nbr((yyvsp[-1].l)); + ct->size = List_Nbr((yyvsp[(8) - (9)].l)); if(ct->size > COLORTABLE_NBMAX_COLOR) yymsg(0, "Too many (%d>%d) colors in View[%d].ColorTable", - ct->size, COLORTABLE_NBMAX_COLOR, (int)(yyvsp[-6].d)); + ct->size, COLORTABLE_NBMAX_COLOR, (int)(yyvsp[(3) - (9)].d)); else - for(int i = 0; i < ct->size; i++) List_Read((yyvsp[-1].l), i, &ct->table[i]); + for(int i = 0; i < ct->size; i++) List_Read((yyvsp[(8) - (9)].l), i, &ct->table[i]); if(ct->size == 1){ ct->size = 2; ct->table[1] = ct->table[0]; } } - Free((yyvsp[-8].c)); - List_Delete((yyvsp[-1].l)); - } -#line 6182 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (9)].c)); + List_Delete((yyvsp[(8) - (9)].l)); + ;} break; case 113: -#line 1218 "Gmsh.y" /* yacc.c:1646 */ +#line 1218 "Gmsh.y" { #if defined(HAVE_MESH) - if(!strcmp((yyvsp[-4].c),"Background")) - GModel::current()->getFields()->setBackgroundFieldId((int)(yyvsp[-1].d)); - else if(!strcmp((yyvsp[-4].c),"BoundaryLayer")) - GModel::current()->getFields()->setBoundaryLayerFieldId((int)(yyvsp[-1].d)); + if(!strcmp((yyvsp[(1) - (5)].c),"Background")) + GModel::current()->getFields()->setBackgroundFieldId((int)(yyvsp[(4) - (5)].d)); + else if(!strcmp((yyvsp[(1) - (5)].c),"BoundaryLayer")) + GModel::current()->getFields()->setBoundaryLayerFieldId((int)(yyvsp[(4) - (5)].d)); else - yymsg(0, "Unknown command %s Field", (yyvsp[-4].c)); + yymsg(0, "Unknown command %s Field", (yyvsp[(1) - (5)].c)); #endif - } -#line 6197 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 114: -#line 1229 "Gmsh.y" /* yacc.c:1646 */ +#line 1229 "Gmsh.y" { #if defined(HAVE_MESH) - if(!GModel::current()->getFields()->newField((int)(yyvsp[-4].d), (yyvsp[-1].c))) - yymsg(0, "Cannot create field %i of type '%s'", (int)(yyvsp[-4].d), (yyvsp[-1].c)); + if(!GModel::current()->getFields()->newField((int)(yyvsp[(3) - (7)].d), (yyvsp[(6) - (7)].c))) + yymsg(0, "Cannot create field %i of type '%s'", (int)(yyvsp[(3) - (7)].d), (yyvsp[(6) - (7)].c)); #endif - Free((yyvsp[-1].c)); - } -#line 6209 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(6) - (7)].c)); + ;} break; case 115: -#line 1237 "Gmsh.y" /* yacc.c:1646 */ +#line 1237 "Gmsh.y" { #if defined(HAVE_MESH) - Field *field = GModel::current()->getFields()->get((int)(yyvsp[-6].d)); + Field *field = GModel::current()->getFields()->get((int)(yyvsp[(3) - (9)].d)); if(field){ - FieldOption *option = field->options[(yyvsp[-3].c)]; + FieldOption *option = field->options[(yyvsp[(6) - (9)].c)]; if(option){ - try { option->numericalValue((yyvsp[-1].d)); } + try { option->numericalValue((yyvsp[(8) - (9)].d)); } catch(...){ yymsg(0, "Cannot assign a numerical value to option '%s' " - "in field %i of type '%s'", (yyvsp[-3].c), (int)(yyvsp[-6].d), field->getName()); + "in field %i of type '%s'", (yyvsp[(6) - (9)].c), (int)(yyvsp[(3) - (9)].d), field->getName()); } } else yymsg(0, "Unknown option '%s' in field %i of type '%s'", - (yyvsp[-3].c), (int)(yyvsp[-6].d), field->getName()); + (yyvsp[(6) - (9)].c), (int)(yyvsp[(3) - (9)].d), field->getName()); } else - yymsg(0, "No field with id %i", (int)(yyvsp[-6].d)); + yymsg(0, "No field with id %i", (int)(yyvsp[(3) - (9)].d)); #endif - Free((yyvsp[-3].c)); - } -#line 6235 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(6) - (9)].c)); + ;} break; case 116: -#line 1259 "Gmsh.y" /* yacc.c:1646 */ +#line 1259 "Gmsh.y" { #if defined(HAVE_MESH) - Field *field = GModel::current()->getFields()->get((int)(yyvsp[-6].d)); + Field *field = GModel::current()->getFields()->get((int)(yyvsp[(3) - (9)].d)); if(field){ - FieldOption *option = field->options[(yyvsp[-3].c)]; + FieldOption *option = field->options[(yyvsp[(6) - (9)].c)]; if(option){ - try { option->string((yyvsp[-1].c)); } + try { option->string((yyvsp[(8) - (9)].c)); } catch (...){ yymsg(0, "Cannot assign a string value to option '%s' " - "in field %i of type '%s'", (yyvsp[-3].c), (int)(yyvsp[-6].d), field->getName()); + "in field %i of type '%s'", (yyvsp[(6) - (9)].c), (int)(yyvsp[(3) - (9)].d), field->getName()); } } else yymsg(0, "Unknown option '%s' in field %i of type '%s'", - (yyvsp[-3].c), (int)(yyvsp[-6].d), field->getName()); + (yyvsp[(6) - (9)].c), (int)(yyvsp[(3) - (9)].d), field->getName()); } else - yymsg(0, "No field with id %i", (int)(yyvsp[-6].d)); + yymsg(0, "No field with id %i", (int)(yyvsp[(3) - (9)].d)); #endif - Free((yyvsp[-3].c)); - Free((yyvsp[-1].c)); - } -#line 6262 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(6) - (9)].c)); + Free((yyvsp[(8) - (9)].c)); + ;} break; case 117: -#line 1282 "Gmsh.y" /* yacc.c:1646 */ +#line 1282 "Gmsh.y" { #if defined(HAVE_MESH) - Field *field = GModel::current()->getFields()->get((int)(yyvsp[-8].d)); + Field *field = GModel::current()->getFields()->get((int)(yyvsp[(3) - (11)].d)); if(field){ - FieldOption *option = field->options[(yyvsp[-5].c)]; + FieldOption *option = field->options[(yyvsp[(6) - (11)].c)]; if(option){ std::list<int> vl = option->list(); vl.clear(); - for(int i = 0; i < List_Nbr((yyvsp[-2].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(9) - (11)].l)); i++){ double id; - List_Read((yyvsp[-2].l), i, &id); + List_Read((yyvsp[(9) - (11)].l), i, &id); vl.push_back((int)id); } option->list(vl); } else yymsg(0, "Unknown option '%s' in field %i of type '%s'", - (yyvsp[-5].c), (int)(yyvsp[-8].d), field->getName()); + (yyvsp[(6) - (11)].c), (int)(yyvsp[(3) - (11)].d), field->getName()); } else - yymsg(0, "No field with id %i", (int)(yyvsp[-8].d)); + yymsg(0, "No field with id %i", (int)(yyvsp[(3) - (11)].d)); #endif - Free((yyvsp[-5].c)); - List_Delete((yyvsp[-2].l)); - } -#line 6292 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(6) - (11)].c)); + List_Delete((yyvsp[(9) - (11)].l)); + ;} break; case 118: -#line 1308 "Gmsh.y" /* yacc.c:1646 */ +#line 1308 "Gmsh.y" { #if defined(HAVE_MESH) - Field *field = GModel::current()->getFields()->get((int)(yyvsp[-4].d)); + Field *field = GModel::current()->getFields()->get((int)(yyvsp[(3) - (7)].d)); if(field){ - FieldCallback *callback = field->callbacks[(yyvsp[-1].c)]; + FieldCallback *callback = field->callbacks[(yyvsp[(6) - (7)].c)]; if(callback) { callback->run(); } else yymsg(0, "Unknown callback '%s' in field %i of type '%s'", - (yyvsp[-1].c), (int)(yyvsp[-4].d), field->getName()); + (yyvsp[(6) - (7)].c), (int)(yyvsp[(3) - (7)].d), field->getName()); } else - yymsg(0, "No field with id %i", (int)(yyvsp[-4].d)); + yymsg(0, "No field with id %i", (int)(yyvsp[(3) - (7)].d)); #endif - Free((yyvsp[-1].c)); - } -#line 6314 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(6) - (7)].c)); + ;} break; case 119: -#line 1329 "Gmsh.y" /* yacc.c:1646 */ +#line 1329 "Gmsh.y" { #if defined(HAVE_PLUGINS) try { - PluginManager::instance()->setPluginOption((yyvsp[-6].c), (yyvsp[-3].c), (yyvsp[-1].d)); + PluginManager::instance()->setPluginOption((yyvsp[(3) - (9)].c), (yyvsp[(6) - (9)].c), (yyvsp[(8) - (9)].d)); } catch (...) { - yymsg(0, "Unknown option '%s' or plugin '%s'", (yyvsp[-3].c), (yyvsp[-6].c)); + yymsg(0, "Unknown option '%s' or plugin '%s'", (yyvsp[(6) - (9)].c), (yyvsp[(3) - (9)].c)); } #endif - Free((yyvsp[-6].c)); Free((yyvsp[-3].c)); - } -#line 6330 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(3) - (9)].c)); Free((yyvsp[(6) - (9)].c)); + ;} break; case 120: -#line 1341 "Gmsh.y" /* yacc.c:1646 */ +#line 1341 "Gmsh.y" { #if defined(HAVE_PLUGINS) try { - PluginManager::instance()->setPluginOption((yyvsp[-6].c), (yyvsp[-3].c), (yyvsp[-1].c)); + PluginManager::instance()->setPluginOption((yyvsp[(3) - (9)].c), (yyvsp[(6) - (9)].c), (yyvsp[(8) - (9)].c)); } catch (...) { - yymsg(0, "Unknown option '%s' or plugin '%s'", (yyvsp[-3].c), (yyvsp[-6].c)); + yymsg(0, "Unknown option '%s' or plugin '%s'", (yyvsp[(6) - (9)].c), (yyvsp[(3) - (9)].c)); } #endif - Free((yyvsp[-6].c)); Free((yyvsp[-3].c)); Free((yyvsp[-1].c)); - } -#line 6346 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(3) - (9)].c)); Free((yyvsp[(6) - (9)].c)); Free((yyvsp[(8) - (9)].c)); + ;} break; case 124: -#line 1359 "Gmsh.y" /* yacc.c:1646 */ +#line 1359 "Gmsh.y" { - std::string key((yyvsp[0].c)); + std::string key((yyvsp[(3) - (3)].c)); std::vector<double> val(1, 0.); if(!gmsh_yysymbols.count(key)){ gmsh_yysymbols[key].value = val; } - Free((yyvsp[0].c)); - } -#line 6359 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(3) - (3)].c)); + ;} break; case 125: -#line 1368 "Gmsh.y" /* yacc.c:1646 */ +#line 1368 "Gmsh.y" { - std::string key((yyvsp[-2].c)); - std::vector<double> val(1, (yyvsp[0].d)); + std::string key((yyvsp[(3) - (5)].c)); + std::vector<double> val(1, (yyvsp[(5) - (5)].d)); if(!gmsh_yysymbols.count(key)){ gmsh_yysymbols[key].value = val; } - Free((yyvsp[-2].c)); - } -#line 6372 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(3) - (5)].c)); + ;} break; case 126: -#line 1377 "Gmsh.y" /* yacc.c:1646 */ - { floatOptions.clear(); charOptions.clear(); } -#line 6378 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 1377 "Gmsh.y" + { floatOptions.clear(); charOptions.clear(); ;} break; case 127: -#line 1379 "Gmsh.y" /* yacc.c:1646 */ +#line 1379 "Gmsh.y" { - if(List_Nbr((yyvsp[-3].l)) != 1) - yymsg(1, "List notation should be used to define list '%s[]'", (yyvsp[-6].c)); - std::string key((yyvsp[-6].c)); + if(List_Nbr((yyvsp[(6) - (9)].l)) != 1) + yymsg(1, "List notation should be used to define list '%s[]'", (yyvsp[(3) - (9)].c)); + std::string key((yyvsp[(3) - (9)].c)); std::vector<double> val; - for(int i = 0; i < List_Nbr((yyvsp[-3].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(6) - (9)].l)); i++){ double d; - List_Read((yyvsp[-3].l), i, &d); + List_Read((yyvsp[(6) - (9)].l), i, &d); val.push_back(d); } if(!gmsh_yysymbols.count(key)){ Msg::ExchangeOnelabParameter(key, val, floatOptions, charOptions); gmsh_yysymbols[key].value = val; } - Free((yyvsp[-6].c)); - Free((yyvsp[-3].l)); - } -#line 6400 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(3) - (9)].c)); + Free((yyvsp[(6) - (9)].l)); + ;} break; case 128: -#line 1397 "Gmsh.y" /* yacc.c:1646 */ - { floatOptions.clear(); charOptions.clear(); } -#line 6406 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 1397 "Gmsh.y" + { floatOptions.clear(); charOptions.clear(); ;} break; case 129: -#line 1399 "Gmsh.y" /* yacc.c:1646 */ +#line 1399 "Gmsh.y" { - std::string key((yyvsp[-8].c)); + std::string key((yyvsp[(3) - (11)].c)); std::vector<double> val; - for(int i = 0; i < List_Nbr((yyvsp[-3].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(8) - (11)].l)); i++){ double d; - List_Read((yyvsp[-3].l), i, &d); + List_Read((yyvsp[(8) - (11)].l), i, &d); val.push_back(d); } if(!gmsh_yysymbols.count(key)){ Msg::ExchangeOnelabParameter(key, val, floatOptions, charOptions); gmsh_yysymbols[key].value = val; } - Free((yyvsp[-8].c)); - Free((yyvsp[-3].l)); - } -#line 6426 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(3) - (11)].c)); + Free((yyvsp[(8) - (11)].l)); + ;} break; case 130: -#line 1415 "Gmsh.y" /* yacc.c:1646 */ - { floatOptions.clear(); charOptions.clear(); } -#line 6432 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 1415 "Gmsh.y" + { floatOptions.clear(); charOptions.clear(); ;} break; case 131: -#line 1417 "Gmsh.y" /* yacc.c:1646 */ +#line 1417 "Gmsh.y" { - std::string key((yyvsp[-8].c)); + std::string key((yyvsp[(3) - (11)].c)); std::vector<double> val; - for(int i = 0; i < List_Nbr((yyvsp[-3].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(8) - (11)].l)); i++){ double d; - List_Read((yyvsp[-3].l), i, &d); + List_Read((yyvsp[(8) - (11)].l), i, &d); val.push_back(d); } if(!gmsh_yysymbols.count(key)){ Msg::ExchangeOnelabParameter(key, val, floatOptions, charOptions); gmsh_yysymbols[key].value = val; } - Free((yyvsp[-8].c)); - Free((yyvsp[-3].l)); - } -#line 6452 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(3) - (11)].c)); + Free((yyvsp[(8) - (11)].l)); + ;} break; case 132: -#line 1433 "Gmsh.y" /* yacc.c:1646 */ +#line 1433 "Gmsh.y" { - std::string key((yyvsp[-2].c)), val((yyvsp[0].c)); + std::string key((yyvsp[(3) - (5)].c)), val((yyvsp[(5) - (5)].c)); if(!gmsh_yystringsymbols.count(key)){ gmsh_yystringsymbols[key] = std::vector<std::string>(1, val); } - Free((yyvsp[-2].c)); - Free((yyvsp[0].c)); - } -#line 6465 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(3) - (5)].c)); + Free((yyvsp[(5) - (5)].c)); + ;} break; case 133: -#line 1442 "Gmsh.y" /* yacc.c:1646 */ - { floatOptions.clear(); charOptions.clear(); } -#line 6471 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 1442 "Gmsh.y" + { floatOptions.clear(); charOptions.clear(); ;} break; case 134: -#line 1444 "Gmsh.y" /* yacc.c:1646 */ +#line 1444 "Gmsh.y" { - std::string key((yyvsp[-6].c)), val((yyvsp[-3].c)); + std::string key((yyvsp[(3) - (9)].c)), val((yyvsp[(6) - (9)].c)); if(!gmsh_yysymbols.count(key)){ Msg::ExchangeOnelabParameter(key, val, floatOptions, charOptions); gmsh_yystringsymbols[key] = std::vector<std::string>(1, val); } - Free((yyvsp[-6].c)); - Free((yyvsp[-3].c)); - } -#line 6485 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(3) - (9)].c)); + Free((yyvsp[(6) - (9)].c)); + ;} break; case 136: -#line 1458 "Gmsh.y" /* yacc.c:1646 */ +#line 1458 "Gmsh.y" { - std::string name((yyvsp[0].c)); + std::string name((yyvsp[(3) - (3)].c)); Msg::UndefineOnelabParameter(name); - Free((yyvsp[0].c)); - } -#line 6495 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(3) - (3)].c)); + ;} break; case 137: -#line 1466 "Gmsh.y" /* yacc.c:1646 */ +#line 1466 "Gmsh.y" { (yyval.l) = List_Create(20,20,sizeof(doubleXstring)); - doubleXstring v = {(yyvsp[-2].d), (yyvsp[0].c)}; + doubleXstring v = {(yyvsp[(1) - (3)].d), (yyvsp[(3) - (3)].c)}; List_Add((yyval.l), &v); - } -#line 6505 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 138: -#line 1472 "Gmsh.y" /* yacc.c:1646 */ +#line 1472 "Gmsh.y" { - doubleXstring v = {(yyvsp[-2].d), (yyvsp[0].c)}; + doubleXstring v = {(yyvsp[(3) - (5)].d), (yyvsp[(5) - (5)].c)}; List_Add((yyval.l), &v); - } -#line 6514 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 139: -#line 1477 "Gmsh.y" /* yacc.c:1646 */ +#line 1477 "Gmsh.y" { (yyval.l) = List_Create(20,20,sizeof(doubleXstring)); - int n = List_Nbr((yyvsp[-4].l)); - if(!gmsh_yystringsymbols.count((yyvsp[-2].c))){ - yymsg(0, "Unknown string variable '%s'", (yyvsp[-2].c)); + int n = List_Nbr((yyvsp[(1) - (5)].l)); + if(!gmsh_yystringsymbols.count((yyvsp[(3) - (5)].c))){ + yymsg(0, "Unknown string variable '%s'", (yyvsp[(3) - (5)].c)); } else{ - std::vector<std::string> &s(gmsh_yystringsymbols[(yyvsp[-2].c)]); + std::vector<std::string> &s(gmsh_yystringsymbols[(yyvsp[(3) - (5)].c)]); int m = s.size(); if(n == m){ for(int i = 0; i < n; i++){ double d; - List_Read((yyvsp[-4].l), i, &d); + List_Read((yyvsp[(1) - (5)].l), i, &d); doubleXstring v = {d, strsave((char*)s[i].c_str())}; List_Add((yyval.l), &v); } @@ -6536,265 +7077,241 @@ yyreduce: yymsg(0, "Size mismatch in enumeration: %d != %d", n, m); } } - List_Delete((yyvsp[-4].l)); - } -#line 6542 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(1) - (5)].l)); + ;} break; case 142: -#line 1508 "Gmsh.y" /* yacc.c:1646 */ +#line 1508 "Gmsh.y" { - std::string key((yyvsp[-1].c)); - for(int i = 0; i < List_Nbr((yyvsp[0].l)); i++){ + std::string key((yyvsp[(2) - (3)].c)); + for(int i = 0; i < List_Nbr((yyvsp[(3) - (3)].l)); i++){ double v; - List_Read((yyvsp[0].l), i, &v); + List_Read((yyvsp[(3) - (3)].l), i, &v); floatOptions[key].push_back(v); } - Free((yyvsp[-1].c)); - List_Delete((yyvsp[0].l)); - } -#line 6557 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(2) - (3)].c)); + List_Delete((yyvsp[(3) - (3)].l)); + ;} break; case 143: -#line 1519 "Gmsh.y" /* yacc.c:1646 */ +#line 1519 "Gmsh.y" { - std::string key((yyvsp[-3].c)); - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ + std::string key((yyvsp[(2) - (5)].c)); + for(int i = 0; i < List_Nbr((yyvsp[(4) - (5)].l)); i++){ doubleXstring v; - List_Read((yyvsp[-1].l), i, &v); + List_Read((yyvsp[(4) - (5)].l), i, &v); floatOptions[key].push_back(v.d); charOptions[key].push_back(v.s); } - Free((yyvsp[-3].c)); - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++) - Free(((doubleXstring*)List_Pointer((yyvsp[-1].l), i))->s); - List_Delete((yyvsp[-1].l)); - } -#line 6575 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(2) - (5)].c)); + for(int i = 0; i < List_Nbr((yyvsp[(4) - (5)].l)); i++) + Free(((doubleXstring*)List_Pointer((yyvsp[(4) - (5)].l), i))->s); + List_Delete((yyvsp[(4) - (5)].l)); + ;} break; case 144: -#line 1534 "Gmsh.y" /* yacc.c:1646 */ +#line 1534 "Gmsh.y" { - std::string key((yyvsp[-1].c)); - std::string val((yyvsp[0].c)); + std::string key((yyvsp[(2) - (3)].c)); + std::string val((yyvsp[(3) - (3)].c)); charOptions[key].push_back(val); - Free((yyvsp[-1].c)); - Free((yyvsp[0].c)); - } -#line 6587 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(2) - (3)].c)); + Free((yyvsp[(3) - (3)].c)); + ;} break; case 147: -#line 1550 "Gmsh.y" /* yacc.c:1646 */ +#line 1550 "Gmsh.y" { - std::string key((yyvsp[-1].c)); - double val = (yyvsp[0].d); + std::string key((yyvsp[(2) - (3)].c)); + double val = (yyvsp[(3) - (3)].d); floatOptions[key].push_back(val); - Free((yyvsp[-1].c)); - } -#line 6598 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(2) - (3)].c)); + ;} break; case 148: -#line 1558 "Gmsh.y" /* yacc.c:1646 */ +#line 1558 "Gmsh.y" { - std::string key((yyvsp[-1].c)); - std::string val((yyvsp[0].c)); + std::string key((yyvsp[(2) - (3)].c)); + std::string val((yyvsp[(3) - (3)].c)); charOptions[key].push_back(val); - Free((yyvsp[-1].c)); - Free((yyvsp[0].c)); - } -#line 6610 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(2) - (3)].c)); + Free((yyvsp[(3) - (3)].c)); + ;} break; case 149: -#line 1567 "Gmsh.y" /* yacc.c:1646 */ +#line 1567 "Gmsh.y" { std::string key("Macro"); - std::string val((yyvsp[0].c)); + std::string val((yyvsp[(3) - (3)].c)); charOptions[key].push_back(val); - Free((yyvsp[0].c)); - } -#line 6621 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(3) - (3)].c)); + ;} break; case 150: -#line 1575 "Gmsh.y" /* yacc.c:1646 */ +#line 1575 "Gmsh.y" { - std::string key((yyvsp[-3].c)); - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ + std::string key((yyvsp[(2) - (5)].c)); + for(int i = 0; i < List_Nbr((yyvsp[(4) - (5)].l)); i++){ char *s; - List_Read((yyvsp[-1].l), i, &s); + List_Read((yyvsp[(4) - (5)].l), i, &s); std::string val(s); Free(s); charOptions[key].push_back(val); } - Free((yyvsp[-3].c)); - List_Delete((yyvsp[-1].l)); - } -#line 6638 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(2) - (5)].c)); + List_Delete((yyvsp[(4) - (5)].l)); + ;} break; case 151: -#line 1593 "Gmsh.y" /* yacc.c:1646 */ +#line 1593 "Gmsh.y" { - (yyval.i) = (int)(yyvsp[0].d); - } -#line 6646 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.i) = (int)(yyvsp[(1) - (1)].d); + ;} break; case 152: -#line 1597 "Gmsh.y" /* yacc.c:1646 */ +#line 1597 "Gmsh.y" { (yyval.i) = GModel::current()->setPhysicalName - (std::string((yyvsp[0].c)), 0, ++GModel::current()->getGEOInternals()->MaxPhysicalNum); - Free((yyvsp[0].c)); - } -#line 6656 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (std::string((yyvsp[(1) - (1)].c)), 0, ++GModel::current()->getGEOInternals()->MaxPhysicalNum); + Free((yyvsp[(1) - (1)].c)); + ;} break; case 153: -#line 1603 "Gmsh.y" /* yacc.c:1646 */ +#line 1603 "Gmsh.y" { - (yyval.i) = GModel::current()->setPhysicalName(std::string((yyvsp[-2].c)), 0, (yyvsp[0].d)); - Free((yyvsp[-2].c)); - } -#line 6665 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.i) = GModel::current()->setPhysicalName(std::string((yyvsp[(1) - (3)].c)), 0, (yyvsp[(3) - (3)].d)); + Free((yyvsp[(1) - (3)].c)); + ;} break; case 154: -#line 1611 "Gmsh.y" /* yacc.c:1646 */ +#line 1611 "Gmsh.y" { - (yyval.i) = (int)(yyvsp[0].d); - } -#line 6673 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.i) = (int)(yyvsp[(1) - (1)].d); + ;} break; case 155: -#line 1615 "Gmsh.y" /* yacc.c:1646 */ +#line 1615 "Gmsh.y" { (yyval.i) = GModel::current()->setPhysicalName - (std::string((yyvsp[0].c)), 1, ++GModel::current()->getGEOInternals()->MaxPhysicalNum); - Free((yyvsp[0].c)); - } -#line 6683 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (std::string((yyvsp[(1) - (1)].c)), 1, ++GModel::current()->getGEOInternals()->MaxPhysicalNum); + Free((yyvsp[(1) - (1)].c)); + ;} break; case 156: -#line 1621 "Gmsh.y" /* yacc.c:1646 */ +#line 1621 "Gmsh.y" { - (yyval.i) = GModel::current()->setPhysicalName(std::string((yyvsp[-2].c)), 1, (yyvsp[0].d)); - Free((yyvsp[-2].c)); - } -#line 6692 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.i) = GModel::current()->setPhysicalName(std::string((yyvsp[(1) - (3)].c)), 1, (yyvsp[(3) - (3)].d)); + Free((yyvsp[(1) - (3)].c)); + ;} break; case 157: -#line 1629 "Gmsh.y" /* yacc.c:1646 */ +#line 1629 "Gmsh.y" { - (yyval.i) = (int)(yyvsp[0].d); - } -#line 6700 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.i) = (int)(yyvsp[(1) - (1)].d); + ;} break; case 158: -#line 1633 "Gmsh.y" /* yacc.c:1646 */ +#line 1633 "Gmsh.y" { (yyval.i) = GModel::current()->setPhysicalName - (std::string((yyvsp[0].c)), 2, ++GModel::current()->getGEOInternals()->MaxPhysicalNum); - Free((yyvsp[0].c)); - } -#line 6710 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (std::string((yyvsp[(1) - (1)].c)), 2, ++GModel::current()->getGEOInternals()->MaxPhysicalNum); + Free((yyvsp[(1) - (1)].c)); + ;} break; case 159: -#line 1639 "Gmsh.y" /* yacc.c:1646 */ +#line 1639 "Gmsh.y" { - (yyval.i) = GModel::current()->setPhysicalName(std::string((yyvsp[-2].c)), 2, (yyvsp[0].d)); - Free((yyvsp[-2].c)); - } -#line 6719 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.i) = GModel::current()->setPhysicalName(std::string((yyvsp[(1) - (3)].c)), 2, (yyvsp[(3) - (3)].d)); + Free((yyvsp[(1) - (3)].c)); + ;} break; case 160: -#line 1647 "Gmsh.y" /* yacc.c:1646 */ +#line 1647 "Gmsh.y" { - (yyval.i) = (int)(yyvsp[0].d); - } -#line 6727 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.i) = (int)(yyvsp[(1) - (1)].d); + ;} break; case 161: -#line 1651 "Gmsh.y" /* yacc.c:1646 */ +#line 1651 "Gmsh.y" { (yyval.i) = GModel::current()->setPhysicalName - (std::string((yyvsp[0].c)), 3, ++GModel::current()->getGEOInternals()->MaxPhysicalNum); - Free((yyvsp[0].c)); - } -#line 6737 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (std::string((yyvsp[(1) - (1)].c)), 3, ++GModel::current()->getGEOInternals()->MaxPhysicalNum); + Free((yyvsp[(1) - (1)].c)); + ;} break; case 162: -#line 1657 "Gmsh.y" /* yacc.c:1646 */ +#line 1657 "Gmsh.y" { - (yyval.i) = GModel::current()->setPhysicalName(std::string((yyvsp[-2].c)), 3, (yyvsp[0].d)); - Free((yyvsp[-2].c)); - } -#line 6746 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.i) = GModel::current()->setPhysicalName(std::string((yyvsp[(1) - (3)].c)), 3, (yyvsp[(3) - (3)].d)); + Free((yyvsp[(1) - (3)].c)); + ;} break; case 163: -#line 1665 "Gmsh.y" /* yacc.c:1646 */ +#line 1665 "Gmsh.y" { (yyval.l) = 0; - } -#line 6754 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 164: -#line 1669 "Gmsh.y" /* yacc.c:1646 */ +#line 1669 "Gmsh.y" { (yyval.l) = List_Create(1, 1, sizeof(Vertex*)); - Vertex *v = FindPoint((int)(yyvsp[-1].d)); + Vertex *v = FindPoint((int)(yyvsp[(4) - (5)].d)); if(!v) - yymsg(0, "Unknown point %d", (int)(yyvsp[-1].d)); + yymsg(0, "Unknown point %d", (int)(yyvsp[(4) - (5)].d)); else{ List_Add((yyval.l), &v); } - } -#line 6768 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 165: -#line 1681 "Gmsh.y" /* yacc.c:1646 */ +#line 1681 "Gmsh.y" { for(int i = 0; i < 4; i++) (yyval.v)[i] = 0.; - } -#line 6776 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 166: -#line 1685 "Gmsh.y" /* yacc.c:1646 */ +#line 1685 "Gmsh.y" { - for(int i = 0; i < 4; i++) (yyval.v)[i] = (yyvsp[0].v)[i]; - } -#line 6784 "Gmsh.tab.cpp" /* yacc.c:1646 */ + for(int i = 0; i < 4; i++) (yyval.v)[i] = (yyvsp[(2) - (2)].v)[i]; + ;} break; case 167: -#line 1695 "Gmsh.y" /* yacc.c:1646 */ +#line 1695 "Gmsh.y" { - int num = (int)(yyvsp[-4].d); + int num = (int)(yyvsp[(3) - (7)].d); if(FindPoint(num)){ yymsg(0, "Point %d already exists", num); } else{ - double x = CTX::instance()->geom.scalingFactor * (yyvsp[-1].v)[0]; - double y = CTX::instance()->geom.scalingFactor * (yyvsp[-1].v)[1]; - double z = CTX::instance()->geom.scalingFactor * (yyvsp[-1].v)[2]; - double lc = CTX::instance()->geom.scalingFactor * (yyvsp[-1].v)[3]; + double x = CTX::instance()->geom.scalingFactor * (yyvsp[(6) - (7)].v)[0]; + double y = CTX::instance()->geom.scalingFactor * (yyvsp[(6) - (7)].v)[1]; + double z = CTX::instance()->geom.scalingFactor * (yyvsp[(6) - (7)].v)[2]; + double lc = CTX::instance()->geom.scalingFactor * (yyvsp[(6) - (7)].v)[3]; if(lc == 0.) lc = MAX_LC; // no mesh size given at the point Vertex *v; if(!myGmshSurface) @@ -6806,15 +7323,14 @@ yyreduce: } (yyval.s).Type = MSH_POINT; (yyval.s).Num = num; - } -#line 6811 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 168: -#line 1718 "Gmsh.y" /* yacc.c:1646 */ +#line 1718 "Gmsh.y" { - int num = (int)(yyvsp[-4].i); - int op = (yyvsp[-2].i); + int num = (int)(yyvsp[(4) - (8)].i); + int op = (yyvsp[(6) - (8)].i); PhysicalGroup *p = FindPhysicalGroup(num, MSH_PHYSICAL_POINT); if(p && op == 0){ yymsg(0, "Physical point %d already exists", num); @@ -6823,23 +7339,23 @@ yyreduce: yymsg(0, "Physical point %d does not exist", num); } else if(op == 0){ - List_T *temp = ListOfDouble2ListOfInt((yyvsp[-1].l)); + List_T *temp = ListOfDouble2ListOfInt((yyvsp[(7) - (8)].l)); p = Create_PhysicalGroup(num, MSH_PHYSICAL_POINT, temp); List_Delete(temp); List_Add(GModel::current()->getGEOInternals()->PhysicalGroups, &p); } else if(op == 1){ - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(7) - (8)].l)); i++){ double d; - List_Read((yyvsp[-1].l), i, &d); + List_Read((yyvsp[(7) - (8)].l), i, &d); int j = (int)d; List_Add(p->Entities, &j); } } else if(op == 2){ - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(7) - (8)].l)); i++){ double d; - List_Read((yyvsp[-1].l), i, &d); + List_Read((yyvsp[(7) - (8)].l), i, &d); int j = (int)d; List_Suppress(p->Entities, &j, fcmp_int); } @@ -6850,65 +7366,62 @@ yyreduce: else{ yymsg(0, "Unsupported operation on physical point %d", num); } - List_Delete((yyvsp[-1].l)); + List_Delete((yyvsp[(7) - (8)].l)); (yyval.s).Type = MSH_PHYSICAL_POINT; (yyval.s).Num = num; - } -#line 6858 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 169: -#line 1761 "Gmsh.y" /* yacc.c:1646 */ +#line 1761 "Gmsh.y" { - for(int i = 0; i < List_Nbr((yyvsp[-3].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(3) - (6)].l)); i++){ double d; - List_Read((yyvsp[-3].l), i, &d); + List_Read((yyvsp[(3) - (6)].l), i, &d); Vertex *v = FindPoint((int)d); if(v){ - v->lc = (yyvsp[-1].d); + v->lc = (yyvsp[(5) - (6)].d); } else{ GVertex *gv = GModel::current()->getVertexByTag((int)d); if(gv) - gv->setPrescribedMeshSizeAtVertex((yyvsp[-1].d)); + gv->setPrescribedMeshSizeAtVertex((yyvsp[(5) - (6)].d)); } } - List_Delete((yyvsp[-3].l)); + List_Delete((yyvsp[(3) - (6)].l)); // dummy values (yyval.s).Type = 0; (yyval.s).Num = 0; - } -#line 6882 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 170: -#line 1784 "Gmsh.y" /* yacc.c:1646 */ +#line 1784 "Gmsh.y" { - int num = (int)(yyvsp[-4].d); + int num = (int)(yyvsp[(3) - (7)].d); if(FindCurve(num)){ yymsg(0, "Curve %d already exists", num); } else{ - List_T *temp = ListOfDouble2ListOfInt((yyvsp[-1].l)); + List_T *temp = ListOfDouble2ListOfInt((yyvsp[(6) - (7)].l)); Curve *c = Create_Curve(num, MSH_SEGM_LINE, 1, temp, NULL, -1, -1, 0., 1.); Tree_Add(GModel::current()->getGEOInternals()->Curves, &c); CreateReversedCurve(c); List_Delete(temp); } - List_Delete((yyvsp[-1].l)); + List_Delete((yyvsp[(6) - (7)].l)); (yyval.s).Type = MSH_SEGM_LINE; (yyval.s).Num = num; - } -#line 6904 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 171: -#line 1802 "Gmsh.y" /* yacc.c:1646 */ +#line 1802 "Gmsh.y" { - for (int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ + for (int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++){ double dnum; - List_Read((yyvsp[-1].l), i, &dnum); + List_Read((yyvsp[(3) - (4)].l), i, &dnum); int num = (int) fabs(dnum); Curve *c = FindCurve(num); if (c){ @@ -6924,231 +7437,221 @@ yyreduce: } } } - } -#line 6929 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 172: -#line 1823 "Gmsh.y" /* yacc.c:1646 */ +#line 1823 "Gmsh.y" { - int num = (int)(yyvsp[-4].d); + int num = (int)(yyvsp[(3) - (7)].d); if(FindCurve(num)){ yymsg(0, "Curve %d already exists", num); } else{ - List_T *temp = ListOfDouble2ListOfInt((yyvsp[-1].l)); + List_T *temp = ListOfDouble2ListOfInt((yyvsp[(6) - (7)].l)); Curve *c = Create_Curve(num, MSH_SEGM_SPLN, 3, temp, NULL, -1, -1, 0., 1.); Tree_Add(GModel::current()->getGEOInternals()->Curves, &c); CreateReversedCurve(c); List_Delete(temp); } - List_Delete((yyvsp[-1].l)); + List_Delete((yyvsp[(6) - (7)].l)); (yyval.s).Type = MSH_SEGM_SPLN; (yyval.s).Num = num; - } -#line 6951 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 173: -#line 1841 "Gmsh.y" /* yacc.c:1646 */ +#line 1841 "Gmsh.y" { - int num = (int)(yyvsp[-5].d); + int num = (int)(yyvsp[(3) - (8)].d); if(FindCurve(num)){ yymsg(0, "Curve %d already exists", num); } else{ - List_T *temp = ListOfDouble2ListOfInt((yyvsp[-2].l)); + List_T *temp = ListOfDouble2ListOfInt((yyvsp[(6) - (8)].l)); Curve *c = Create_Curve(num, MSH_SEGM_CIRC, 2, temp, NULL, -1, -1, 0., 1.); - if((yyvsp[-1].v)[0] || (yyvsp[-1].v)[1] || (yyvsp[-1].v)[2]){ - c->Circle.n[0] = (yyvsp[-1].v)[0]; - c->Circle.n[1] = (yyvsp[-1].v)[1]; - c->Circle.n[2] = (yyvsp[-1].v)[2]; + if((yyvsp[(7) - (8)].v)[0] || (yyvsp[(7) - (8)].v)[1] || (yyvsp[(7) - (8)].v)[2]){ + c->Circle.n[0] = (yyvsp[(7) - (8)].v)[0]; + c->Circle.n[1] = (yyvsp[(7) - (8)].v)[1]; + c->Circle.n[2] = (yyvsp[(7) - (8)].v)[2]; End_Curve(c); } Tree_Add(GModel::current()->getGEOInternals()->Curves, &c); Curve *rc = CreateReversedCurve(c); - if((yyvsp[-1].v)[0] || (yyvsp[-1].v)[1] || (yyvsp[-1].v)[2]){ - rc->Circle.n[0] = (yyvsp[-1].v)[0]; - rc->Circle.n[1] = (yyvsp[-1].v)[1]; - rc->Circle.n[2] = (yyvsp[-1].v)[2]; + if((yyvsp[(7) - (8)].v)[0] || (yyvsp[(7) - (8)].v)[1] || (yyvsp[(7) - (8)].v)[2]){ + rc->Circle.n[0] = (yyvsp[(7) - (8)].v)[0]; + rc->Circle.n[1] = (yyvsp[(7) - (8)].v)[1]; + rc->Circle.n[2] = (yyvsp[(7) - (8)].v)[2]; End_Curve(rc); } List_Delete(temp); } - List_Delete((yyvsp[-2].l)); + List_Delete((yyvsp[(6) - (8)].l)); (yyval.s).Type = MSH_SEGM_CIRC; (yyval.s).Num = num; - } -#line 6985 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 174: -#line 1871 "Gmsh.y" /* yacc.c:1646 */ +#line 1871 "Gmsh.y" { - int num = (int)(yyvsp[-5].d); + int num = (int)(yyvsp[(3) - (8)].d); if(FindCurve(num)){ yymsg(0, "Curve %d already exists", num); } else{ - List_T *temp = ListOfDouble2ListOfInt((yyvsp[-2].l)); + List_T *temp = ListOfDouble2ListOfInt((yyvsp[(6) - (8)].l)); Curve *c = Create_Curve(num, MSH_SEGM_ELLI, 2, temp, NULL, -1, -1, 0., 1.); - if((yyvsp[-1].v)[0] || (yyvsp[-1].v)[1] || (yyvsp[-1].v)[2]){ - c->Circle.n[0] = (yyvsp[-1].v)[0]; - c->Circle.n[1] = (yyvsp[-1].v)[1]; - c->Circle.n[2] = (yyvsp[-1].v)[2]; + if((yyvsp[(7) - (8)].v)[0] || (yyvsp[(7) - (8)].v)[1] || (yyvsp[(7) - (8)].v)[2]){ + c->Circle.n[0] = (yyvsp[(7) - (8)].v)[0]; + c->Circle.n[1] = (yyvsp[(7) - (8)].v)[1]; + c->Circle.n[2] = (yyvsp[(7) - (8)].v)[2]; End_Curve(c); } Tree_Add(GModel::current()->getGEOInternals()->Curves, &c); Curve *rc = CreateReversedCurve(c); - if((yyvsp[-1].v)[0] || (yyvsp[-1].v)[1] || (yyvsp[-1].v)[2]){ - rc->Circle.n[0] = (yyvsp[-1].v)[0]; - rc->Circle.n[1] = (yyvsp[-1].v)[1]; - rc->Circle.n[2] = (yyvsp[-1].v)[2]; + if((yyvsp[(7) - (8)].v)[0] || (yyvsp[(7) - (8)].v)[1] || (yyvsp[(7) - (8)].v)[2]){ + rc->Circle.n[0] = (yyvsp[(7) - (8)].v)[0]; + rc->Circle.n[1] = (yyvsp[(7) - (8)].v)[1]; + rc->Circle.n[2] = (yyvsp[(7) - (8)].v)[2]; End_Curve(rc); } List_Delete(temp); } - List_Delete((yyvsp[-2].l)); + List_Delete((yyvsp[(6) - (8)].l)); (yyval.s).Type = MSH_SEGM_ELLI; (yyval.s).Num = num; - } -#line 7019 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 175: -#line 1901 "Gmsh.y" /* yacc.c:1646 */ +#line 1901 "Gmsh.y" { - int num = (int)(yyvsp[-4].d); + int num = (int)(yyvsp[(3) - (7)].d); if(FindCurve(num)){ yymsg(0, "Curve %d already exists", num); } else{ - List_T *temp = ListOfDouble2ListOfInt((yyvsp[-1].l)); + List_T *temp = ListOfDouble2ListOfInt((yyvsp[(6) - (7)].l)); Curve *c = Create_Curve(num, MSH_SEGM_BSPLN, 2, temp, NULL, -1, -1, 0., 1.); Tree_Add(GModel::current()->getGEOInternals()->Curves, &c); CreateReversedCurve(c); List_Delete(temp); } - List_Delete((yyvsp[-1].l)); + List_Delete((yyvsp[(6) - (7)].l)); (yyval.s).Type = MSH_SEGM_BSPLN; (yyval.s).Num = num; - } -#line 7041 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 176: -#line 1919 "Gmsh.y" /* yacc.c:1646 */ +#line 1919 "Gmsh.y" { - int num = (int)(yyvsp[-4].d); + int num = (int)(yyvsp[(3) - (7)].d); if(FindCurve(num)){ yymsg(0, "Curve %d already exists", num); } else{ - List_T *temp = ListOfDouble2ListOfInt((yyvsp[-1].l)); + List_T *temp = ListOfDouble2ListOfInt((yyvsp[(6) - (7)].l)); Curve *c = Create_Curve(num, MSH_SEGM_BEZIER, 2, temp, NULL, -1, -1, 0., 1.); Tree_Add(GModel::current()->getGEOInternals()->Curves, &c); CreateReversedCurve(c); List_Delete(temp); } - List_Delete((yyvsp[-1].l)); + List_Delete((yyvsp[(6) - (7)].l)); (yyval.s).Type = MSH_SEGM_BEZIER; (yyval.s).Num = num; - } -#line 7063 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 177: -#line 1938 "Gmsh.y" /* yacc.c:1646 */ +#line 1938 "Gmsh.y" { - int num = (int)(yyvsp[-8].d); - if(List_Nbr((yyvsp[-5].l)) + (int)(yyvsp[-1].d) + 1 != List_Nbr((yyvsp[-3].l))){ + int num = (int)(yyvsp[(3) - (11)].d); + if(List_Nbr((yyvsp[(6) - (11)].l)) + (int)(yyvsp[(10) - (11)].d) + 1 != List_Nbr((yyvsp[(8) - (11)].l))){ yymsg(0, "Wrong definition of Nurbs Curve %d: " "got %d knots, need N + D + 1 = %d + %d + 1 = %d", - (int)(yyvsp[-8].d), List_Nbr((yyvsp[-3].l)), List_Nbr((yyvsp[-5].l)), (int)(yyvsp[-1].d), List_Nbr((yyvsp[-5].l)) + (int)(yyvsp[-1].d) + 1); + (int)(yyvsp[(3) - (11)].d), List_Nbr((yyvsp[(8) - (11)].l)), List_Nbr((yyvsp[(6) - (11)].l)), (int)(yyvsp[(10) - (11)].d), List_Nbr((yyvsp[(6) - (11)].l)) + (int)(yyvsp[(10) - (11)].d) + 1); } else{ if(FindCurve(num)){ yymsg(0, "Curve %d already exists", num); } else{ - List_T *temp = ListOfDouble2ListOfInt((yyvsp[-5].l)); - Curve *c = Create_Curve(num, MSH_SEGM_NURBS, (int)(yyvsp[-1].d), temp, (yyvsp[-3].l), + List_T *temp = ListOfDouble2ListOfInt((yyvsp[(6) - (11)].l)); + Curve *c = Create_Curve(num, MSH_SEGM_NURBS, (int)(yyvsp[(10) - (11)].d), temp, (yyvsp[(8) - (11)].l), -1, -1, 0., 1.); Tree_Add(GModel::current()->getGEOInternals()->Curves, &c); CreateReversedCurve(c); List_Delete(temp); } } - List_Delete((yyvsp[-5].l)); - List_Delete((yyvsp[-3].l)); + List_Delete((yyvsp[(6) - (11)].l)); + List_Delete((yyvsp[(8) - (11)].l)); (yyval.s).Type = MSH_SEGM_NURBS; (yyval.s).Num = num; - } -#line 7093 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 178: -#line 1964 "Gmsh.y" /* yacc.c:1646 */ +#line 1964 "Gmsh.y" { - int num = (int)(yyvsp[-4].d); + int num = (int)(yyvsp[(4) - (8)].d); if(FindEdgeLoop(num)){ yymsg(0, "Line loop %d already exists", num); } else{ - List_T *temp = ListOfDouble2ListOfInt((yyvsp[-1].l)); + List_T *temp = ListOfDouble2ListOfInt((yyvsp[(7) - (8)].l)); sortEdgesInLoop(num, temp); EdgeLoop *l = Create_EdgeLoop(num, temp); Tree_Add(GModel::current()->getGEOInternals()->EdgeLoops, &l); List_Delete(temp); } - List_Delete((yyvsp[-1].l)); - Free((yyvsp[-6].c)); + List_Delete((yyvsp[(7) - (8)].l)); + Free((yyvsp[(2) - (8)].c)); (yyval.s).Type = MSH_SEGM_LOOP; (yyval.s).Num = num; - } -#line 7115 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 179: -#line 1983 "Gmsh.y" /* yacc.c:1646 */ +#line 1983 "Gmsh.y" { - GModel::current()->getGEOInternals()->addCompoundMesh ( 1 , (yyvsp[-1].l) ); - } -#line 7123 "Gmsh.tab.cpp" /* yacc.c:1646 */ + GModel::current()->getGEOInternals()->addCompoundMesh ( 1 , (yyvsp[(3) - (4)].l) ); + ;} break; case 180: -#line 1988 "Gmsh.y" /* yacc.c:1646 */ +#line 1988 "Gmsh.y" { - int num = (int)(yyvsp[-4].d); + int num = (int)(yyvsp[(4) - (8)].d); if(FindCurve(num)){ yymsg(0, "Curve %d already exists", num); } else{ Curve *c = Create_Curve(num, MSH_SEGM_COMPOUND, 1, NULL, NULL, -1, -1, 0., 1.); - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++) - c->compound.push_back((int)*(double*)List_Pointer((yyvsp[-1].l), i)); + for(int i = 0; i < List_Nbr((yyvsp[(7) - (8)].l)); i++) + c->compound.push_back((int)*(double*)List_Pointer((yyvsp[(7) - (8)].l), i)); End_Curve(c); Tree_Add(GModel::current()->getGEOInternals()->Curves, &c); CreateReversedCurve(c); } - List_Delete((yyvsp[-1].l)); + List_Delete((yyvsp[(7) - (8)].l)); (yyval.s).Type = MSH_SEGM_COMPOUND; (yyval.s).Num = num; - } -#line 7145 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 181: -#line 2006 "Gmsh.y" /* yacc.c:1646 */ +#line 2006 "Gmsh.y" { - int num = (int)(yyvsp[-4].i); - int op = (yyvsp[-2].i); + int num = (int)(yyvsp[(4) - (8)].i); + int op = (yyvsp[(6) - (8)].i); PhysicalGroup *p = FindPhysicalGroup(num, MSH_PHYSICAL_LINE); if(p && op == 0){ yymsg(0, "Physical line %d already exists", num); @@ -7157,23 +7660,23 @@ yyreduce: yymsg(0, "Physical line %d does not exist", num); } else if(op == 0){ - List_T *temp = ListOfDouble2ListOfInt((yyvsp[-1].l)); + List_T *temp = ListOfDouble2ListOfInt((yyvsp[(7) - (8)].l)); p = Create_PhysicalGroup(num, MSH_PHYSICAL_LINE, temp); List_Delete(temp); List_Add(GModel::current()->getGEOInternals()->PhysicalGroups, &p); } else if(op == 1){ - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(7) - (8)].l)); i++){ double d; - List_Read((yyvsp[-1].l), i, &d); + List_Read((yyvsp[(7) - (8)].l), i, &d); int j = (int)d; List_Add(p->Entities, &j); } } else if(op == 2){ - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(7) - (8)].l)); i++){ double d; - List_Read((yyvsp[-1].l), i, &d); + List_Read((yyvsp[(7) - (8)].l), i, &d); int j = (int)d; List_Suppress(p->Entities, &j, fcmp_int); } @@ -7184,45 +7687,43 @@ yyreduce: else{ yymsg(0, "Unsupported operation on physical line %d", num); } - List_Delete((yyvsp[-1].l)); + List_Delete((yyvsp[(7) - (8)].l)); (yyval.s).Type = MSH_PHYSICAL_LINE; (yyval.s).Num = num; - } -#line 7192 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 182: -#line 2052 "Gmsh.y" /* yacc.c:1646 */ +#line 2052 "Gmsh.y" { - int num = (int)(yyvsp[-4].d); + int num = (int)(yyvsp[(4) - (8)].d); if(FindSurface(num)){ yymsg(0, "Surface %d already exists", num); } else{ Surface *s = Create_Surface(num, MSH_SURF_PLAN); - List_T *temp = ListOfDouble2ListOfInt((yyvsp[-1].l)); + List_T *temp = ListOfDouble2ListOfInt((yyvsp[(7) - (8)].l)); setSurfaceGeneratrices(s, temp); List_Delete(temp); End_Surface(s); Tree_Add(GModel::current()->getGEOInternals()->Surfaces, &s); } - List_Delete((yyvsp[-1].l)); + List_Delete((yyvsp[(7) - (8)].l)); (yyval.s).Type = MSH_SURF_PLAN; (yyval.s).Num = num; - } -#line 7214 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 183: -#line 2070 "Gmsh.y" /* yacc.c:1646 */ +#line 2070 "Gmsh.y" { - int num = (int)(yyvsp[-5].d), type = 0; + int num = (int)(yyvsp[(4) - (9)].d), type = 0; if(FindSurface(num)){ yymsg(0, "Surface %d already exists", num); } else{ double d; - List_Read((yyvsp[-2].l), 0, &d); + List_Read((yyvsp[(7) - (9)].l), 0, &d); EdgeLoop *el = FindEdgeLoop((int)fabs(d)); if(!el){ yymsg(0, "Unknown line loop %d", (int)d); @@ -7241,64 +7742,60 @@ yyreduce: type = MSH_SURF_PLAN; } Surface *s = Create_Surface(num, type); - List_T *temp = ListOfDouble2ListOfInt((yyvsp[-2].l)); + List_T *temp = ListOfDouble2ListOfInt((yyvsp[(7) - (9)].l)); setSurfaceGeneratrices(s, temp); List_Delete(temp); End_Surface(s); - s->InSphereCenter = (yyvsp[-1].l); + s->InSphereCenter = (yyvsp[(8) - (9)].l); Tree_Add(GModel::current()->getGEOInternals()->Surfaces, &s); } } - List_Delete((yyvsp[-2].l)); + List_Delete((yyvsp[(7) - (9)].l)); (yyval.s).Type = type; (yyval.s).Num = num; - } -#line 7257 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 184: -#line 2109 "Gmsh.y" /* yacc.c:1646 */ +#line 2109 "Gmsh.y" { myGmshSurface = 0; (yyval.s).Type = 0; (yyval.s).Num = 0; - } -#line 7267 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 185: -#line 2115 "Gmsh.y" /* yacc.c:1646 */ +#line 2115 "Gmsh.y" { - myGmshSurface = gmshSurface::getSurface((int)(yyvsp[-1].d)); + myGmshSurface = gmshSurface::getSurface((int)(yyvsp[(3) - (4)].d)); (yyval.s).Type = 0; (yyval.s).Num = 0; - } -#line 7277 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 186: -#line 2121 "Gmsh.y" /* yacc.c:1646 */ +#line 2121 "Gmsh.y" { - int num = (int)(yyvsp[-6].d); - myGmshSurface = gmshParametricSurface::NewParametricSurface(num, (yyvsp[-3].c), (yyvsp[-2].c), (yyvsp[-1].c)); + int num = (int)(yyvsp[(4) - (10)].d); + myGmshSurface = gmshParametricSurface::NewParametricSurface(num, (yyvsp[(7) - (10)].c), (yyvsp[(8) - (10)].c), (yyvsp[(9) - (10)].c)); (yyval.s).Type = 0; (yyval.s).Num = num; - } -#line 7288 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 187: -#line 2128 "Gmsh.y" /* yacc.c:1646 */ +#line 2128 "Gmsh.y" { - int num = (int)(yyvsp[-4].d); - if (List_Nbr((yyvsp[-1].l)) != 2){ + int num = (int)(yyvsp[(3) - (7)].d); + if (List_Nbr((yyvsp[(6) - (7)].l)) != 2){ yymsg(0, "Sphere %d has to be defined using 2 points (center + " - "any point) and not %d", num, List_Nbr((yyvsp[-1].l))); + "any point) and not %d", num, List_Nbr((yyvsp[(6) - (7)].l))); } else{ double p1,p2; - List_Read((yyvsp[-1].l), 0, &p1); - List_Read((yyvsp[-1].l), 1, &p2); + List_Read((yyvsp[(6) - (7)].l), 0, &p1); + List_Read((yyvsp[(6) - (7)].l), 1, &p2); Vertex *v1 = FindPoint((int)p1); Vertex *v2 = FindPoint((int)p2); if(!v1) yymsg(0, "Sphere %d : unknown point %d", num, (int)p1); @@ -7312,22 +7809,21 @@ yyreduce: } (yyval.s).Type = 0; (yyval.s).Num = num; - } -#line 7317 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 188: -#line 2153 "Gmsh.y" /* yacc.c:1646 */ +#line 2153 "Gmsh.y" { - int num = (int)(yyvsp[-4].d); - if (List_Nbr((yyvsp[-1].l)) != 2){ + int num = (int)(yyvsp[(3) - (7)].d); + if (List_Nbr((yyvsp[(6) - (7)].l)) != 2){ yymsg(0, "PolarSphere %d has to be defined using 2 points (center + " - "any point) and not %d", num, List_Nbr((yyvsp[-1].l))); + "any point) and not %d", num, List_Nbr((yyvsp[(6) - (7)].l))); } else{ double p1,p2; - List_Read((yyvsp[-1].l), 0, &p1); - List_Read((yyvsp[-1].l), 1, &p2); + List_Read((yyvsp[(6) - (7)].l), 0, &p1); + List_Read((yyvsp[(6) - (7)].l), 1, &p2); Vertex *v1 = FindPoint((int)p1); Vertex *v2 = FindPoint((int)p2); if(!v1) yymsg(0, "PolarSphere %d : unknown point %d", num, (int)p1); @@ -7341,79 +7837,75 @@ yyreduce: } (yyval.s).Type = 0; (yyval.s).Num = num; - } -#line 7346 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 189: -#line 2178 "Gmsh.y" /* yacc.c:1646 */ +#line 2178 "Gmsh.y" { - int num = (int)(yyvsp[-4].d); + int num = (int)(yyvsp[(4) - (8)].d); if(FindSurfaceLoop(num)){ yymsg(0, "Surface loop %d already exists", num); } else{ - List_T *temp = ListOfDouble2ListOfInt((yyvsp[-1].l)); + List_T *temp = ListOfDouble2ListOfInt((yyvsp[(7) - (8)].l)); SurfaceLoop *l = Create_SurfaceLoop(num, temp); Tree_Add(GModel::current()->getGEOInternals()->SurfaceLoops, &l); List_Delete(temp); } - List_Delete((yyvsp[-1].l)); - Free((yyvsp[-6].c)); + List_Delete((yyvsp[(7) - (8)].l)); + Free((yyvsp[(2) - (8)].c)); (yyval.s).Type = MSH_SURF_LOOP; (yyval.s).Num = num; - } -#line 7367 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 190: -#line 2195 "Gmsh.y" /* yacc.c:1646 */ +#line 2195 "Gmsh.y" { - GModel::current()->getGEOInternals()->addCompoundMesh ( 2 , (yyvsp[-1].l) ); - } -#line 7375 "Gmsh.tab.cpp" /* yacc.c:1646 */ + GModel::current()->getGEOInternals()->addCompoundMesh ( 2 , (yyvsp[(3) - (4)].l) ); + ;} break; case 191: -#line 2199 "Gmsh.y" /* yacc.c:1646 */ +#line 2199 "Gmsh.y" { - int num = (int)(yyvsp[-4].d); + int num = (int)(yyvsp[(4) - (8)].d); if(FindSurface(num)){ yymsg(0, "Surface %d already exists", num); } else{ Surface *s = Create_Surface(num, MSH_SURF_COMPOUND); - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ - s->compound.push_back((int)*(double*)List_Pointer((yyvsp[-1].l), i)); + for(int i = 0; i < List_Nbr((yyvsp[(7) - (8)].l)); i++){ + s->compound.push_back((int)*(double*)List_Pointer((yyvsp[(7) - (8)].l), i)); } // Added by Trevor Strickler setSurfaceGeneratrices(s, (List_T*) 0 ); Tree_Add(GModel::current()->getGEOInternals()->Surfaces, &s); } - List_Delete((yyvsp[-1].l)); + List_Delete((yyvsp[(7) - (8)].l)); (yyval.s).Type = MSH_SURF_COMPOUND; (yyval.s).Num = num; - } -#line 7398 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 192: -#line 2219 "Gmsh.y" /* yacc.c:1646 */ +#line 2219 "Gmsh.y" { - int num = (int)(yyvsp[-8].d); + int num = (int)(yyvsp[(4) - (12)].d); if(FindSurface(num)){ yymsg(0, "Surface %d already exists", num); } else{ Surface *s = Create_Surface(num, MSH_SURF_COMPOUND); - for(int i = 0; i < List_Nbr((yyvsp[-5].l)); i++) - s->compound.push_back((int)*(double*)List_Pointer((yyvsp[-5].l), i)); - for (int i = 0; i < List_Nbr((yyvsp[-2].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(7) - (12)].l)); i++) + s->compound.push_back((int)*(double*)List_Pointer((yyvsp[(7) - (12)].l), i)); + for (int i = 0; i < List_Nbr((yyvsp[(10) - (12)].l)); i++){ if(i > 3){ yymsg(0, "Too many boundary specifiers in compound surface"); break; } - List_T *l = *(List_T**)List_Pointer((yyvsp[-2].l), i); + List_T *l = *(List_T**)List_Pointer((yyvsp[(10) - (12)].l), i); for (int j = 0; j < List_Nbr(l); j++){ s->compoundBoundary[i].push_back((int)*(double*)List_Pointer(l, j)); } @@ -7423,22 +7915,21 @@ yyreduce: Tree_Add(GModel::current()->getGEOInternals()->Surfaces, &s); } - List_Delete((yyvsp[-5].l)); - for (int i = 0; i < List_Nbr((yyvsp[-2].l)); i++) - List_Delete(*(List_T**)List_Pointer((yyvsp[-2].l), i)); - List_Delete((yyvsp[-2].l)); - Free((yyvsp[-4].c)); + List_Delete((yyvsp[(7) - (12)].l)); + for (int i = 0; i < List_Nbr((yyvsp[(10) - (12)].l)); i++) + List_Delete(*(List_T**)List_Pointer((yyvsp[(10) - (12)].l), i)); + List_Delete((yyvsp[(10) - (12)].l)); + Free((yyvsp[(8) - (12)].c)); (yyval.s).Type = MSH_SURF_COMPOUND; (yyval.s).Num = num; - } -#line 7435 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 193: -#line 2252 "Gmsh.y" /* yacc.c:1646 */ +#line 2252 "Gmsh.y" { - int num = (int)(yyvsp[-4].i); - int op = (yyvsp[-2].i); + int num = (int)(yyvsp[(4) - (8)].i); + int op = (yyvsp[(6) - (8)].i); PhysicalGroup *p = FindPhysicalGroup(num, MSH_PHYSICAL_SURFACE); if(p && op == 0){ yymsg(0, "Physical surface %d already exists", num); @@ -7447,23 +7938,23 @@ yyreduce: yymsg(0, "Physical surface %d does not exist", num); } else if(op == 0){ - List_T *temp = ListOfDouble2ListOfInt((yyvsp[-1].l)); + List_T *temp = ListOfDouble2ListOfInt((yyvsp[(7) - (8)].l)); p = Create_PhysicalGroup(num, MSH_PHYSICAL_SURFACE, temp); List_Delete(temp); List_Add(GModel::current()->getGEOInternals()->PhysicalGroups, &p); } else if(op == 1){ - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(7) - (8)].l)); i++){ double d; - List_Read((yyvsp[-1].l), i, &d); + List_Read((yyvsp[(7) - (8)].l), i, &d); int j = (int)d; List_Add(p->Entities, &j); } } else if(op == 2){ - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(7) - (8)].l)); i++){ double d; - List_Read((yyvsp[-1].l), i, &d); + List_Read((yyvsp[(7) - (8)].l), i, &d); int j = (int)d; List_Suppress(p->Entities, &j, fcmp_int); } @@ -7474,89 +7965,84 @@ yyreduce: else{ yymsg(0, "Unsupported operation on physical surface %d", num); } - List_Delete((yyvsp[-1].l)); + List_Delete((yyvsp[(7) - (8)].l)); (yyval.s).Type = MSH_PHYSICAL_SURFACE; (yyval.s).Num = num; - } -#line 7482 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 194: -#line 2299 "Gmsh.y" /* yacc.c:1646 */ +#line 2299 "Gmsh.y" { yymsg(0, "'Complex Volume' command is deprecated: use 'Volume' instead"); - int num = (int)(yyvsp[-4].d); + int num = (int)(yyvsp[(4) - (8)].d); if(FindVolume(num)){ yymsg(0, "Volume %d already exists", num); } else{ Volume *v = Create_Volume(num, MSH_VOLUME); - List_T *temp = ListOfDouble2ListOfInt((yyvsp[-1].l)); + List_T *temp = ListOfDouble2ListOfInt((yyvsp[(7) - (8)].l)); setVolumeSurfaces(v, temp); List_Delete(temp); Tree_Add(GModel::current()->getGEOInternals()->Volumes, &v); } - List_Delete((yyvsp[-1].l)); + List_Delete((yyvsp[(7) - (8)].l)); (yyval.s).Type = MSH_VOLUME; (yyval.s).Num = num; - } -#line 7504 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 195: -#line 2317 "Gmsh.y" /* yacc.c:1646 */ +#line 2317 "Gmsh.y" { - int num = (int)(yyvsp[-4].d); + int num = (int)(yyvsp[(3) - (7)].d); if(FindVolume(num)){ yymsg(0, "Volume %d already exists", num); } else{ Volume *v = Create_Volume(num, MSH_VOLUME); - List_T *temp = ListOfDouble2ListOfInt((yyvsp[-1].l)); + List_T *temp = ListOfDouble2ListOfInt((yyvsp[(6) - (7)].l)); setVolumeSurfaces(v, temp); List_Delete(temp); Tree_Add(GModel::current()->getGEOInternals()->Volumes, &v); } - List_Delete((yyvsp[-1].l)); + List_Delete((yyvsp[(6) - (7)].l)); (yyval.s).Type = MSH_VOLUME; (yyval.s).Num = num; - } -#line 7525 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 196: -#line 2334 "Gmsh.y" /* yacc.c:1646 */ +#line 2334 "Gmsh.y" { - GModel::current()->getGEOInternals()->addCompoundMesh ( 3 , (yyvsp[-1].l) ); - } -#line 7533 "Gmsh.tab.cpp" /* yacc.c:1646 */ + GModel::current()->getGEOInternals()->addCompoundMesh ( 3 , (yyvsp[(3) - (4)].l) ); + ;} break; case 197: -#line 2338 "Gmsh.y" /* yacc.c:1646 */ +#line 2338 "Gmsh.y" { - int num = (int)(yyvsp[-4].d); + int num = (int)(yyvsp[(4) - (8)].d); if(FindVolume(num)){ yymsg(0, "Volume %d already exists", num); } else{ Volume *v = Create_Volume(num, MSH_VOLUME_COMPOUND); - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++) - v->compound.push_back((int)*(double*)List_Pointer((yyvsp[-1].l), i)); + for(int i = 0; i < List_Nbr((yyvsp[(7) - (8)].l)); i++) + v->compound.push_back((int)*(double*)List_Pointer((yyvsp[(7) - (8)].l), i)); Tree_Add(GModel::current()->getGEOInternals()->Volumes, &v); } - List_Delete((yyvsp[-1].l)); + List_Delete((yyvsp[(7) - (8)].l)); (yyval.s).Type = MSH_VOLUME_COMPOUND; (yyval.s).Num = num; - } -#line 7553 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 198: -#line 2354 "Gmsh.y" /* yacc.c:1646 */ +#line 2354 "Gmsh.y" { - int num = (int)(yyvsp[-4].i); - int op = (yyvsp[-2].i); + int num = (int)(yyvsp[(4) - (8)].i); + int op = (yyvsp[(6) - (8)].i); PhysicalGroup *p = FindPhysicalGroup(num, MSH_PHYSICAL_VOLUME); if(p && op == 0){ yymsg(0, "Physical volume %d already exists", num); @@ -7565,23 +8051,23 @@ yyreduce: yymsg(0, "Physical volume %d does not exist", num); } else if(op == 0){ - List_T *temp = ListOfDouble2ListOfInt((yyvsp[-1].l)); + List_T *temp = ListOfDouble2ListOfInt((yyvsp[(7) - (8)].l)); p = Create_PhysicalGroup(num, MSH_PHYSICAL_VOLUME, temp); List_Delete(temp); List_Add(GModel::current()->getGEOInternals()->PhysicalGroups, &p); } else if(op == 1){ - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(7) - (8)].l)); i++){ double d; - List_Read((yyvsp[-1].l), i, &d); + List_Read((yyvsp[(7) - (8)].l), i, &d); int j = (int)d; List_Add(p->Entities, &j); } } else if(op == 2){ - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(7) - (8)].l)); i++){ double d; - List_Read((yyvsp[-1].l), i, &d); + List_Read((yyvsp[(7) - (8)].l), i, &d); int j = (int)d; List_Suppress(p->Entities, &j, fcmp_int); } @@ -7592,141 +8078,128 @@ yyreduce: else{ yymsg(0, "Unsupported operation on physical volume %d", num); } - List_Delete((yyvsp[-1].l)); + List_Delete((yyvsp[(7) - (8)].l)); (yyval.s).Type = MSH_PHYSICAL_VOLUME; (yyval.s).Num = num; - } -#line 7600 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 199: -#line 2402 "Gmsh.y" /* yacc.c:1646 */ +#line 2402 "Gmsh.y" { - TranslateShapes((yyvsp[-3].v)[0], (yyvsp[-3].v)[1], (yyvsp[-3].v)[2], (yyvsp[-1].l)); - (yyval.l) = (yyvsp[-1].l); - } -#line 7609 "Gmsh.tab.cpp" /* yacc.c:1646 */ + TranslateShapes((yyvsp[(2) - (5)].v)[0], (yyvsp[(2) - (5)].v)[1], (yyvsp[(2) - (5)].v)[2], (yyvsp[(4) - (5)].l)); + (yyval.l) = (yyvsp[(4) - (5)].l); + ;} break; case 200: -#line 2407 "Gmsh.y" /* yacc.c:1646 */ +#line 2407 "Gmsh.y" { - RotateShapes((yyvsp[-8].v)[0], (yyvsp[-8].v)[1], (yyvsp[-8].v)[2], (yyvsp[-6].v)[0], (yyvsp[-6].v)[1], (yyvsp[-6].v)[2], (yyvsp[-4].d), (yyvsp[-1].l)); - (yyval.l) = (yyvsp[-1].l); - } -#line 7618 "Gmsh.tab.cpp" /* yacc.c:1646 */ + RotateShapes((yyvsp[(3) - (11)].v)[0], (yyvsp[(3) - (11)].v)[1], (yyvsp[(3) - (11)].v)[2], (yyvsp[(5) - (11)].v)[0], (yyvsp[(5) - (11)].v)[1], (yyvsp[(5) - (11)].v)[2], (yyvsp[(7) - (11)].d), (yyvsp[(10) - (11)].l)); + (yyval.l) = (yyvsp[(10) - (11)].l); + ;} break; case 201: -#line 2412 "Gmsh.y" /* yacc.c:1646 */ +#line 2412 "Gmsh.y" { - SymmetryShapes((yyvsp[-3].v)[0], (yyvsp[-3].v)[1], (yyvsp[-3].v)[2], (yyvsp[-3].v)[3], (yyvsp[-1].l)); - (yyval.l) = (yyvsp[-1].l); - } -#line 7627 "Gmsh.tab.cpp" /* yacc.c:1646 */ + SymmetryShapes((yyvsp[(2) - (5)].v)[0], (yyvsp[(2) - (5)].v)[1], (yyvsp[(2) - (5)].v)[2], (yyvsp[(2) - (5)].v)[3], (yyvsp[(4) - (5)].l)); + (yyval.l) = (yyvsp[(4) - (5)].l); + ;} break; case 202: -#line 2417 "Gmsh.y" /* yacc.c:1646 */ +#line 2417 "Gmsh.y" { - DilatShapes((yyvsp[-6].v)[0], (yyvsp[-6].v)[1], (yyvsp[-6].v)[2], (yyvsp[-4].d), (yyvsp[-4].d), (yyvsp[-4].d), (yyvsp[-1].l)); - (yyval.l) = (yyvsp[-1].l); - } -#line 7636 "Gmsh.tab.cpp" /* yacc.c:1646 */ + DilatShapes((yyvsp[(3) - (9)].v)[0], (yyvsp[(3) - (9)].v)[1], (yyvsp[(3) - (9)].v)[2], (yyvsp[(5) - (9)].d), (yyvsp[(5) - (9)].d), (yyvsp[(5) - (9)].d), (yyvsp[(8) - (9)].l)); + (yyval.l) = (yyvsp[(8) - (9)].l); + ;} break; case 203: -#line 2422 "Gmsh.y" /* yacc.c:1646 */ +#line 2422 "Gmsh.y" { - DilatShapes((yyvsp[-6].v)[0], (yyvsp[-6].v)[1], (yyvsp[-6].v)[2], (yyvsp[-4].v)[0], (yyvsp[-4].v)[1], (yyvsp[-4].v)[2], (yyvsp[-1].l)); - (yyval.l) = (yyvsp[-1].l); - } -#line 7645 "Gmsh.tab.cpp" /* yacc.c:1646 */ + DilatShapes((yyvsp[(3) - (9)].v)[0], (yyvsp[(3) - (9)].v)[1], (yyvsp[(3) - (9)].v)[2], (yyvsp[(5) - (9)].v)[0], (yyvsp[(5) - (9)].v)[1], (yyvsp[(5) - (9)].v)[2], (yyvsp[(8) - (9)].l)); + (yyval.l) = (yyvsp[(8) - (9)].l); + ;} break; case 204: -#line 2427 "Gmsh.y" /* yacc.c:1646 */ +#line 2427 "Gmsh.y" { (yyval.l) = List_Create(3, 3, sizeof(Shape)); - if(!strcmp((yyvsp[-3].c), "Duplicata")){ - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ + if(!strcmp((yyvsp[(1) - (4)].c), "Duplicata")){ + for(int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++){ Shape TheShape; - List_Read((yyvsp[-1].l), i, &TheShape); + List_Read((yyvsp[(3) - (4)].l), i, &TheShape); CopyShape(TheShape.Type, TheShape.Num, &TheShape.Num); List_Add((yyval.l), &TheShape); } } - else if(!strcmp((yyvsp[-3].c), "Boundary")){ - BoundaryShapes((yyvsp[-1].l), (yyval.l), false); + else if(!strcmp((yyvsp[(1) - (4)].c), "Boundary")){ + BoundaryShapes((yyvsp[(3) - (4)].l), (yyval.l), false); } - else if(!strcmp((yyvsp[-3].c), "CombinedBoundary")){ - BoundaryShapes((yyvsp[-1].l), (yyval.l), true); + else if(!strcmp((yyvsp[(1) - (4)].c), "CombinedBoundary")){ + BoundaryShapes((yyvsp[(3) - (4)].l), (yyval.l), true); } else{ - yymsg(0, "Unknown command on multiple shapes: '%s'", (yyvsp[-3].c)); + yymsg(0, "Unknown command on multiple shapes: '%s'", (yyvsp[(1) - (4)].c)); } - Free((yyvsp[-3].c)); - List_Delete((yyvsp[-1].l)); - } -#line 7672 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (4)].c)); + List_Delete((yyvsp[(3) - (4)].l)); + ;} break; case 205: -#line 2450 "Gmsh.y" /* yacc.c:1646 */ +#line 2450 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); - IntersectCurvesWithSurface((yyvsp[-5].l), (int)(yyvsp[-1].d), (yyval.l)); - List_Delete((yyvsp[-5].l)); - } -#line 7682 "Gmsh.tab.cpp" /* yacc.c:1646 */ + IntersectCurvesWithSurface((yyvsp[(4) - (9)].l), (int)(yyvsp[(8) - (9)].d), (yyval.l)); + List_Delete((yyvsp[(4) - (9)].l)); + ;} break; case 206: -#line 2456 "Gmsh.y" /* yacc.c:1646 */ +#line 2456 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape*)); - List_T *tmp = ListOfDouble2ListOfInt((yyvsp[-2].l)); - List_Delete((yyvsp[-2].l)); - SplitCurve((int)(yyvsp[-5].d), tmp, (yyval.l)); + List_T *tmp = ListOfDouble2ListOfInt((yyvsp[(7) - (9)].l)); + List_Delete((yyvsp[(7) - (9)].l)); + SplitCurve((int)(yyvsp[(4) - (9)].d), tmp, (yyval.l)); List_Delete(tmp); - } -#line 7694 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 207: -#line 2466 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.l) = (yyvsp[0].l); } -#line 7700 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 2466 "Gmsh.y" + { (yyval.l) = (yyvsp[(1) - (1)].l); ;} break; case 208: -#line 2467 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.l) = (yyvsp[0].l); } -#line 7706 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 2467 "Gmsh.y" + { (yyval.l) = (yyvsp[(1) - (1)].l); ;} break; case 209: -#line 2472 "Gmsh.y" /* yacc.c:1646 */ +#line 2472 "Gmsh.y" { (yyval.l) = List_Create(3, 3, sizeof(Shape)); - } -#line 7714 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 210: -#line 2476 "Gmsh.y" /* yacc.c:1646 */ +#line 2476 "Gmsh.y" { - List_Add((yyval.l), &(yyvsp[0].s)); - } -#line 7722 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Add((yyval.l), &(yyvsp[(2) - (2)].s)); + ;} break; case 211: -#line 2480 "Gmsh.y" /* yacc.c:1646 */ +#line 2480 "Gmsh.y" { - for(int i = 0; i < List_Nbr((yyvsp[-2].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(4) - (6)].l)); i++){ double d; - List_Read((yyvsp[-2].l), i, &d); + List_Read((yyvsp[(4) - (6)].l), i, &d); Shape TheShape; TheShape.Num = (int)d; Vertex *v = FindPoint(std::abs(TheShape.Num)); @@ -7744,16 +8217,15 @@ yyreduce: yymsg(1, "Unknown point %d", TheShape.Num); } } - } -#line 7749 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 212: -#line 2503 "Gmsh.y" /* yacc.c:1646 */ +#line 2503 "Gmsh.y" { - for(int i = 0; i < List_Nbr((yyvsp[-2].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(4) - (6)].l)); i++){ double d; - List_Read((yyvsp[-2].l), i, &d); + List_Read((yyvsp[(4) - (6)].l), i, &d); Shape TheShape; TheShape.Num = (int)d; Curve *c = FindCurve(std::abs(TheShape.Num)); @@ -7771,16 +8243,15 @@ yyreduce: yymsg(1, "Unknown curve %d", TheShape.Num); } } - } -#line 7776 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 213: -#line 2526 "Gmsh.y" /* yacc.c:1646 */ +#line 2526 "Gmsh.y" { - for(int i = 0; i < List_Nbr((yyvsp[-2].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(4) - (6)].l)); i++){ double d; - List_Read((yyvsp[-2].l), i, &d); + List_Read((yyvsp[(4) - (6)].l), i, &d); Shape TheShape; TheShape.Num = (int)d; Surface *s = FindSurface(std::abs(TheShape.Num)); @@ -7798,16 +8269,15 @@ yyreduce: yymsg(1, "Unknown surface %d", TheShape.Num); } } - } -#line 7803 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 214: -#line 2549 "Gmsh.y" /* yacc.c:1646 */ +#line 2549 "Gmsh.y" { - for(int i = 0; i < List_Nbr((yyvsp[-2].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(4) - (6)].l)); i++){ double d; - List_Read((yyvsp[-2].l), i, &d); + List_Read((yyvsp[(4) - (6)].l), i, &d); Shape TheShape; TheShape.Num = (int)d; Volume *v = FindVolume(std::abs(TheShape.Num)); @@ -7825,48 +8295,46 @@ yyreduce: yymsg(1, "Unknown volume %d", TheShape.Num); } } - } -#line 7830 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 215: -#line 2577 "Gmsh.y" /* yacc.c:1646 */ +#line 2577 "Gmsh.y" { #if defined(HAVE_DINTEGRATION) - if(List_Nbr((yyvsp[-1].l)) == 4){ - int t = (int)(yyvsp[-4].d); + if(List_Nbr((yyvsp[(7) - (8)].l)) == 4){ + int t = (int)(yyvsp[(4) - (8)].d); if(FindLevelSet(t)){ yymsg(0, "Levelset %d already exists", t); } else { double d[4]; for(int i = 0; i < 4; i++) - List_Read((yyvsp[-1].l), i, &d[i]); + List_Read((yyvsp[(7) - (8)].l), i, &d[i]); gLevelset *ls = new gLevelsetPlane(d[0], d[1], d[2], d[3], t); LevelSet *l = Create_LevelSet(ls->getTag(), ls); Tree_Add(GModel::current()->getGEOInternals()->LevelSets, &l); } } else - yymsg(0, "Wrong levelset definition (%d)", (yyvsp[-4].d)); + yymsg(0, "Wrong levelset definition (%d)", (yyvsp[(4) - (8)].d)); #endif - } -#line 7855 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 216: -#line 2598 "Gmsh.y" /* yacc.c:1646 */ +#line 2598 "Gmsh.y" { #if defined(HAVE_DINTEGRATION) - int t = (int)(yyvsp[-6].d); + int t = (int)(yyvsp[(4) - (10)].d); if(FindLevelSet(t)){ yymsg(0, "Levelset %d already exists", t); } else { //Msg::Info("nb = %d \n",List_Nbr($8) ); - fullMatrix<double> centers(List_Nbr((yyvsp[-2].l)),3); - for (int i = 0; i < List_Nbr((yyvsp[-2].l)); i++){ - List_T *l = *(List_T**)List_Pointer((yyvsp[-2].l), i); + fullMatrix<double> centers(List_Nbr((yyvsp[(8) - (10)].l)),3); + for (int i = 0; i < List_Nbr((yyvsp[(8) - (10)].l)); i++){ + List_T *l = *(List_T**)List_Pointer((yyvsp[(8) - (10)].l), i); for (int j = 0; j < List_Nbr(l); j++){ //Msg::Info("nb j = %d \n",List_Nbr(l) ); centers(i,j) = (double)(*(double*)List_Pointer(l, j)); @@ -7876,100 +8344,96 @@ yyreduce: LevelSet *l = Create_LevelSet(ls->getTag(), ls); Tree_Add(GModel::current()->getGEOInternals()->LevelSets, &l); } - for(int i = 0; i < List_Nbr((yyvsp[-2].l)); i++) - List_Delete(*(List_T**)List_Pointer((yyvsp[-2].l), i)); - List_Delete((yyvsp[-2].l)); + for(int i = 0; i < List_Nbr((yyvsp[(8) - (10)].l)); i++) + List_Delete(*(List_T**)List_Pointer((yyvsp[(8) - (10)].l), i)); + List_Delete((yyvsp[(8) - (10)].l)); #endif - } -#line 7885 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 217: -#line 2625 "Gmsh.y" /* yacc.c:1646 */ +#line 2625 "Gmsh.y" { #if defined(HAVE_DINTEGRATION) - if(List_Nbr((yyvsp[-2].l)) == 0){ - int t = (int)(yyvsp[-10].d); + if(List_Nbr((yyvsp[(12) - (14)].l)) == 0){ + int t = (int)(yyvsp[(4) - (14)].d); if(FindLevelSet(t)){ yymsg(0, "Levelset %d already exists", t); } else { - double pt[3] = {(yyvsp[-6].v)[0], (yyvsp[-6].v)[1], (yyvsp[-6].v)[2]}; - double n[3] = {(yyvsp[-4].v)[0], (yyvsp[-4].v)[1], (yyvsp[-4].v)[2]}; + double pt[3] = {(yyvsp[(8) - (14)].v)[0], (yyvsp[(8) - (14)].v)[1], (yyvsp[(8) - (14)].v)[2]}; + double n[3] = {(yyvsp[(10) - (14)].v)[0], (yyvsp[(10) - (14)].v)[1], (yyvsp[(10) - (14)].v)[2]}; gLevelset *ls = new gLevelsetPlane(pt, n, t); LevelSet *l = Create_LevelSet(ls->getTag(), ls); Tree_Add(GModel::current()->getGEOInternals()->LevelSets, &l); } } else - yymsg(0, "Wrong levelset definition (%d)", (yyvsp[-10].d)); + yymsg(0, "Wrong levelset definition (%d)", (yyvsp[(4) - (14)].d)); #endif - } -#line 7909 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 218: -#line 2646 "Gmsh.y" /* yacc.c:1646 */ +#line 2646 "Gmsh.y" { #if defined(HAVE_DINTEGRATION) - if(List_Nbr((yyvsp[-2].l)) == 0){ - int t = (int)(yyvsp[-12].d); + if(List_Nbr((yyvsp[(14) - (16)].l)) == 0){ + int t = (int)(yyvsp[(4) - (16)].d); if(FindLevelSet(t)){ yymsg(0, "Levelset %d already exists", t); } else { - double pt1[3] = {(yyvsp[-8].v)[0], (yyvsp[-8].v)[1], (yyvsp[-8].v)[2]}; - double pt2[3] = {(yyvsp[-6].v)[0], (yyvsp[-6].v)[1], (yyvsp[-6].v)[2]}; - double pt3[3] = {(yyvsp[-4].v)[0], (yyvsp[-4].v)[1], (yyvsp[-4].v)[2]}; + double pt1[3] = {(yyvsp[(8) - (16)].v)[0], (yyvsp[(8) - (16)].v)[1], (yyvsp[(8) - (16)].v)[2]}; + double pt2[3] = {(yyvsp[(10) - (16)].v)[0], (yyvsp[(10) - (16)].v)[1], (yyvsp[(10) - (16)].v)[2]}; + double pt3[3] = {(yyvsp[(12) - (16)].v)[0], (yyvsp[(12) - (16)].v)[1], (yyvsp[(12) - (16)].v)[2]}; gLevelset *ls = new gLevelsetPlane(pt1, pt2, pt3, t); LevelSet *l = Create_LevelSet(ls->getTag(), ls); Tree_Add(GModel::current()->getGEOInternals()->LevelSets, &l); } } else - yymsg(0, "Wrong levelset definition (%d)", (yyvsp[-12].d)); + yymsg(0, "Wrong levelset definition (%d)", (yyvsp[(4) - (16)].d)); #endif - } -#line 7934 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 219: -#line 2667 "Gmsh.y" /* yacc.c:1646 */ +#line 2667 "Gmsh.y" { #if defined(HAVE_DINTEGRATION) - if(List_Nbr((yyvsp[-2].l)) == 1){ - int t = (int)(yyvsp[-8].d); + if(List_Nbr((yyvsp[(10) - (12)].l)) == 1){ + int t = (int)(yyvsp[(4) - (12)].d); if(FindLevelSet(t)){ yymsg(0, "Levelset %d already exists", t); } else { double d; - List_Read((yyvsp[-2].l), 0, &d); - gLevelset *ls = new gLevelsetSphere((yyvsp[-4].v)[0], (yyvsp[-4].v)[1], (yyvsp[-4].v)[2], d, t); + List_Read((yyvsp[(10) - (12)].l), 0, &d); + gLevelset *ls = new gLevelsetSphere((yyvsp[(8) - (12)].v)[0], (yyvsp[(8) - (12)].v)[1], (yyvsp[(8) - (12)].v)[2], d, t); LevelSet *l = Create_LevelSet(ls->getTag(), ls); Tree_Add(GModel::current()->getGEOInternals()->LevelSets, &l); } } else - yymsg(0, "Wrong levelset definition (%d)", (yyvsp[-8].d)); + yymsg(0, "Wrong levelset definition (%d)", (yyvsp[(4) - (12)].d)); #endif - } -#line 7958 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 220: -#line 2687 "Gmsh.y" /* yacc.c:1646 */ +#line 2687 "Gmsh.y" { #if defined(HAVE_DINTEGRATION) - if(!strcmp((yyvsp[-6].c), "Union")){ - int t = (int)(yyvsp[-4].d); + if(!strcmp((yyvsp[(2) - (8)].c), "Union")){ + int t = (int)(yyvsp[(4) - (8)].d); if(FindLevelSet(t)){ yymsg(0, "Levelset %d already exists", t); } else { std::vector<gLevelset *> vl; - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++) { - double d; List_Read((yyvsp[-1].l), i, &d); + for(int i = 0; i < List_Nbr((yyvsp[(7) - (8)].l)); i++) { + double d; List_Read((yyvsp[(7) - (8)].l), i, &d); LevelSet *pl = FindLevelSet((int)d); if(!pl) yymsg(0, "Levelset Union %d : unknown levelset %d", t, (int)d); else vl.push_back(pl->ls); @@ -7979,15 +8443,15 @@ yyreduce: Tree_Add(GModel::current()->getGEOInternals()->LevelSets, &l); } } - else if(!strcmp((yyvsp[-6].c), "Intersection")){ - int t = (int)(yyvsp[-4].d); + else if(!strcmp((yyvsp[(2) - (8)].c), "Intersection")){ + int t = (int)(yyvsp[(4) - (8)].d); if(FindLevelSet(t)){ yymsg(0, "Levelset %d already exists", t); } else { std::vector<gLevelset *> vl; - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++) { - double d; List_Read((yyvsp[-1].l), i, &d); + for(int i = 0; i < List_Nbr((yyvsp[(7) - (8)].l)); i++) { + double d; List_Read((yyvsp[(7) - (8)].l), i, &d); LevelSet *pl = FindLevelSet((int)d); if(!pl) yymsg(0, "Levelset Intersection %d : unknown levelset %d", t, (int)d); else vl.push_back(pl->ls); @@ -7997,15 +8461,15 @@ yyreduce: Tree_Add(GModel::current()->getGEOInternals()->LevelSets, &l); } } - else if(!strcmp((yyvsp[-6].c), "Cut")){ - int t = (int)(yyvsp[-4].d); + else if(!strcmp((yyvsp[(2) - (8)].c), "Cut")){ + int t = (int)(yyvsp[(4) - (8)].d); if(FindLevelSet(t)){ yymsg(0, "Levelset %d already exists", t); } else { std::vector<gLevelset *> vl; - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++) { - double d; List_Read((yyvsp[-1].l), i, &d); + for(int i = 0; i < List_Nbr((yyvsp[(7) - (8)].l)); i++) { + double d; List_Read((yyvsp[(7) - (8)].l), i, &d); LevelSet *pl = FindLevelSet((int)d); if(!pl) yymsg(0, "Levelset Cut %d : unknown levelset %d", t, (int)d); else vl.push_back(pl->ls); @@ -8015,15 +8479,15 @@ yyreduce: Tree_Add(GModel::current()->getGEOInternals()->LevelSets, &l); } } - else if(!strcmp((yyvsp[-6].c), "Crack")){ - int t = (int)(yyvsp[-4].d); + else if(!strcmp((yyvsp[(2) - (8)].c), "Crack")){ + int t = (int)(yyvsp[(4) - (8)].d); if(FindLevelSet(t)){ yymsg(0, "Levelset %d already exists", t); } else { std::vector<gLevelset *> vl; - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++) { - double d; List_Read((yyvsp[-1].l), i, &d); + for(int i = 0; i < List_Nbr((yyvsp[(7) - (8)].l)); i++) { + double d; List_Read((yyvsp[(7) - (8)].l), i, &d); LevelSet *pl = FindLevelSet((int)d); if(!pl) yymsg(0, "Levelset Crack %d : unknown levelset %d", t, (int)d); else vl.push_back(pl->ls); @@ -8033,14 +8497,14 @@ yyreduce: Tree_Add(GModel::current()->getGEOInternals()->LevelSets, &l); } } - else if(!strcmp((yyvsp[-6].c), "Reverse")){ - int t = (int)(yyvsp[-4].d); + else if(!strcmp((yyvsp[(2) - (8)].c), "Reverse")){ + int t = (int)(yyvsp[(4) - (8)].d); if(FindLevelSet(t)){ yymsg(0, "Levelset %d already exists", t); } else { double d; - List_Read((yyvsp[-1].l), 0, &d); + List_Read((yyvsp[(7) - (8)].l), 0, &d); LevelSet *pl = FindLevelSet((int)d); gLevelset *ls = NULL; if(!pl) yymsg(0, "Levelset Reverse %d : unknown levelset %d", t, (int)d); @@ -8050,14 +8514,14 @@ yyreduce: } } #if defined(HAVE_POST) - else if(!strcmp((yyvsp[-6].c), "PostView")){ - int t = (int)(yyvsp[-4].d); + else if(!strcmp((yyvsp[(2) - (8)].c), "PostView")){ + int t = (int)(yyvsp[(4) - (8)].d); if(FindLevelSet(t)){ yymsg(0, "Levelset %d already exists", t); } else { - if(List_Nbr((yyvsp[-1].l)) > 0){ - double d; List_Read((yyvsp[-1].l), 0, &d); + if(List_Nbr((yyvsp[(7) - (8)].l)) > 0){ + double d; List_Read((yyvsp[(7) - (8)].l), 0, &d); gLevelset *ls = new gLevelsetPostView((int)d, t); LevelSet *l = Create_LevelSet(ls->getTag(), ls); Tree_Add(GModel::current()->getGEOInternals()->LevelSets, &l); @@ -8066,42 +8530,40 @@ yyreduce: } #endif else - yymsg(0, "Wrong levelset definition (%d)", (yyvsp[-4].d)); - Free((yyvsp[-6].c)); + yymsg(0, "Wrong levelset definition (%d)", (yyvsp[(4) - (8)].d)); + Free((yyvsp[(2) - (8)].c)); #endif - } -#line 8074 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 221: -#line 2799 "Gmsh.y" /* yacc.c:1646 */ +#line 2799 "Gmsh.y" { #if defined(HAVE_DINTEGRATION) - if(!strcmp((yyvsp[-6].c), "MathEval")){ - int t = (int)(yyvsp[-4].d); + if(!strcmp((yyvsp[(2) - (8)].c), "MathEval")){ + int t = (int)(yyvsp[(4) - (8)].d); if(FindLevelSet(t)){ yymsg(0, "Levelset %d already exists", t); } else { - gLevelset *ls = new gLevelsetMathEval((yyvsp[-1].c), t); + gLevelset *ls = new gLevelsetMathEval((yyvsp[(7) - (8)].c), t); LevelSet *l = Create_LevelSet(ls->getTag(), ls); Tree_Add(GModel::current()->getGEOInternals()->LevelSets, &l); } } else yymsg(0, "Wrong levelset definition"); - Free((yyvsp[-6].c)); Free((yyvsp[-1].c)); + Free((yyvsp[(2) - (8)].c)); Free((yyvsp[(7) - (8)].c)); #endif - } -#line 8097 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 222: -#line 2818 "Gmsh.y" /* yacc.c:1646 */ +#line 2818 "Gmsh.y" { #if defined(HAVE_DINTEGRATION) - if(!strcmp((yyvsp[-4].c), "CutMesh")){ - int t = (int)(yyvsp[-2].d); + if(!strcmp((yyvsp[(2) - (6)].c), "CutMesh")){ + int t = (int)(yyvsp[(4) - (6)].d); GModel *GM = GModel::current(); if(FindLevelSet(t)){ GM->buildCutGModel(FindLevelSet(t)->ls, true, false); @@ -8110,8 +8572,8 @@ yyreduce: else yymsg(0, "Unknown levelset (%d)", t); } - else if(!strcmp((yyvsp[-4].c), "CutMeshTri")){ - int t = (int)(yyvsp[-2].d); + else if(!strcmp((yyvsp[(2) - (6)].c), "CutMeshTri")){ + int t = (int)(yyvsp[(4) - (6)].d); GModel *GM = GModel::current(); if(FindLevelSet(t)){ GM->buildCutGModel(FindLevelSet(t)->ls, true, true); @@ -8120,8 +8582,8 @@ yyreduce: else yymsg(0, "Unknown levelset (%d)", t); } - else if(!strcmp((yyvsp[-4].c), "SplitMesh")){ - int t = (int)(yyvsp[-2].d); + else if(!strcmp((yyvsp[(2) - (6)].c), "SplitMesh")){ + int t = (int)(yyvsp[(4) - (6)].d); GModel *GM = GModel::current(); if(FindLevelSet(t)){ GM->buildCutGModel(FindLevelSet(t)->ls, false, true); @@ -8132,105 +8594,104 @@ yyreduce: } else yymsg(0, "Wrong levelset definition"); - Free((yyvsp[-4].c)); + Free((yyvsp[(2) - (6)].c)); #endif - } -#line 8139 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 223: -#line 2857 "Gmsh.y" /* yacc.c:1646 */ +#line 2857 "Gmsh.y" { #if defined(HAVE_DINTEGRATION) - if(!strcmp((yyvsp[-12].c), "Cylinder") && List_Nbr((yyvsp[-2].l)) == 1){ - int t = (int)(yyvsp[-10].d); + if(!strcmp((yyvsp[(2) - (14)].c), "Cylinder") && List_Nbr((yyvsp[(12) - (14)].l)) == 1){ + int t = (int)(yyvsp[(4) - (14)].d); if(FindLevelSet(t)){ yymsg(0, "Levelset %d already exists", t); } else { double d; - List_Read((yyvsp[-2].l), 0, &d); - double pt[3] = {(yyvsp[-6].v)[0], (yyvsp[-6].v)[1], (yyvsp[-6].v)[2]}; - double dir[3] = {(yyvsp[-4].v)[0], (yyvsp[-4].v)[1], (yyvsp[-4].v)[2]}; + List_Read((yyvsp[(12) - (14)].l), 0, &d); + double pt[3] = {(yyvsp[(8) - (14)].v)[0], (yyvsp[(8) - (14)].v)[1], (yyvsp[(8) - (14)].v)[2]}; + double dir[3] = {(yyvsp[(10) - (14)].v)[0], (yyvsp[(10) - (14)].v)[1], (yyvsp[(10) - (14)].v)[2]}; gLevelset *ls = new gLevelsetGenCylinder(pt, dir, d, t); LevelSet *l = Create_LevelSet(ls->getTag(), ls); Tree_Add(GModel::current()->getGEOInternals()->LevelSets, &l); } } - else if(!strcmp((yyvsp[-12].c), "Cone") && List_Nbr((yyvsp[-2].l)) == 1){ - int t = (int)(yyvsp[-10].d); + else if(!strcmp((yyvsp[(2) - (14)].c), "Cone") && List_Nbr((yyvsp[(12) - (14)].l)) == 1){ + int t = (int)(yyvsp[(4) - (14)].d); if(FindLevelSet(t)){ yymsg(0, "Levelset %d already exists", t); } else { double d; - List_Read((yyvsp[-2].l), 0, &d); - double pt[3] = {(yyvsp[-6].v)[0], (yyvsp[-6].v)[1], (yyvsp[-6].v)[2]}; - double dir[3] = {(yyvsp[-4].v)[0], (yyvsp[-4].v)[1], (yyvsp[-4].v)[2]}; + List_Read((yyvsp[(12) - (14)].l), 0, &d); + double pt[3] = {(yyvsp[(8) - (14)].v)[0], (yyvsp[(8) - (14)].v)[1], (yyvsp[(8) - (14)].v)[2]}; + double dir[3] = {(yyvsp[(10) - (14)].v)[0], (yyvsp[(10) - (14)].v)[1], (yyvsp[(10) - (14)].v)[2]}; gLevelset *ls = new gLevelsetCone(pt, dir, d, t); LevelSet *l = Create_LevelSet(ls->getTag(), ls); Tree_Add(GModel::current()->getGEOInternals()->LevelSets, &l); } } - else if(!strcmp((yyvsp[-12].c), "Cylinder") && List_Nbr((yyvsp[-2].l)) == 2){ - int t = (int)(yyvsp[-10].d); + else if(!strcmp((yyvsp[(2) - (14)].c), "Cylinder") && List_Nbr((yyvsp[(12) - (14)].l)) == 2){ + int t = (int)(yyvsp[(4) - (14)].d); if(FindLevelSet(t)){ yymsg(0, "Levelset %d already exists", t); } else { double d[2]; for(int i = 0; i < 2; i++) - List_Read((yyvsp[-2].l), i, &d[i]); - double pt[3] = {(yyvsp[-6].v)[0], (yyvsp[-6].v)[1], (yyvsp[-6].v)[2]}; - double dir[3] = {(yyvsp[-4].v)[0], (yyvsp[-4].v)[1], (yyvsp[-4].v)[2]}; + List_Read((yyvsp[(12) - (14)].l), i, &d[i]); + double pt[3] = {(yyvsp[(8) - (14)].v)[0], (yyvsp[(8) - (14)].v)[1], (yyvsp[(8) - (14)].v)[2]}; + double dir[3] = {(yyvsp[(10) - (14)].v)[0], (yyvsp[(10) - (14)].v)[1], (yyvsp[(10) - (14)].v)[2]}; gLevelset *ls = new gLevelsetCylinder(pt, dir, d[0], d[1], t); LevelSet *l = Create_LevelSet(ls->getTag(), ls); Tree_Add(GModel::current()->getGEOInternals()->LevelSets, &l); } } - else if(!strcmp((yyvsp[-12].c), "Cylinder") && List_Nbr((yyvsp[-2].l)) == 3){ - int t = (int)(yyvsp[-10].d); + else if(!strcmp((yyvsp[(2) - (14)].c), "Cylinder") && List_Nbr((yyvsp[(12) - (14)].l)) == 3){ + int t = (int)(yyvsp[(4) - (14)].d); if(FindLevelSet(t)){ yymsg(0, "Levelset %d already exists", t); } else { double d[3]; for(int i = 0; i < 3; i++) - List_Read((yyvsp[-2].l), i, &d[i]); - double pt[3] = {(yyvsp[-6].v)[0], (yyvsp[-6].v)[1], (yyvsp[-6].v)[2]}; - double dir[3] = {(yyvsp[-4].v)[0], (yyvsp[-4].v)[1], (yyvsp[-4].v)[2]}; + List_Read((yyvsp[(12) - (14)].l), i, &d[i]); + double pt[3] = {(yyvsp[(8) - (14)].v)[0], (yyvsp[(8) - (14)].v)[1], (yyvsp[(8) - (14)].v)[2]}; + double dir[3] = {(yyvsp[(10) - (14)].v)[0], (yyvsp[(10) - (14)].v)[1], (yyvsp[(10) - (14)].v)[2]}; gLevelset *ls = new gLevelsetCylinder(pt, dir, d[0], d[1], d[2], t); LevelSet *l = Create_LevelSet(ls->getTag(), ls); Tree_Add(GModel::current()->getGEOInternals()->LevelSets, &l); } } - else if(!strcmp((yyvsp[-12].c), "Ellipsoid") && List_Nbr((yyvsp[-2].l)) == 3){ - int t = (int)(yyvsp[-10].d); + else if(!strcmp((yyvsp[(2) - (14)].c), "Ellipsoid") && List_Nbr((yyvsp[(12) - (14)].l)) == 3){ + int t = (int)(yyvsp[(4) - (14)].d); if(FindLevelSet(t)){ yymsg(0, "Levelset %d already exists", t); } else { double d[3]; for(int i = 0; i < 3; i++) - List_Read((yyvsp[-2].l), i, &d[i]); - double pt[3] = {(yyvsp[-6].v)[0], (yyvsp[-6].v)[1], (yyvsp[-6].v)[2]}; - double dir[3] = {(yyvsp[-4].v)[0], (yyvsp[-4].v)[1], (yyvsp[-4].v)[2]}; + List_Read((yyvsp[(12) - (14)].l), i, &d[i]); + double pt[3] = {(yyvsp[(8) - (14)].v)[0], (yyvsp[(8) - (14)].v)[1], (yyvsp[(8) - (14)].v)[2]}; + double dir[3] = {(yyvsp[(10) - (14)].v)[0], (yyvsp[(10) - (14)].v)[1], (yyvsp[(10) - (14)].v)[2]}; gLevelset *ls = new gLevelsetEllipsoid(pt, dir, d[0], d[1], d[2], t); LevelSet *l = Create_LevelSet(ls->getTag(), ls); Tree_Add(GModel::current()->getGEOInternals()->LevelSets, &l); } } - else if(!strcmp((yyvsp[-12].c), "Quadric") && List_Nbr((yyvsp[-2].l)) == 5){ - int t = (int)(yyvsp[-10].d); + else if(!strcmp((yyvsp[(2) - (14)].c), "Quadric") && List_Nbr((yyvsp[(12) - (14)].l)) == 5){ + int t = (int)(yyvsp[(4) - (14)].d); if(FindLevelSet(t)){ yymsg(0, "Levelset %d already exists", t); } else { double d[5]; for(int i = 0; i < 5; i++) - List_Read((yyvsp[-2].l), i, &d[i]); - double pt[3] = {(yyvsp[-6].v)[0], (yyvsp[-6].v)[1], (yyvsp[-6].v)[2]}; - double dir[3] = {(yyvsp[-4].v)[0], (yyvsp[-4].v)[1], (yyvsp[-4].v)[2]}; + List_Read((yyvsp[(12) - (14)].l), i, &d[i]); + double pt[3] = {(yyvsp[(8) - (14)].v)[0], (yyvsp[(8) - (14)].v)[1], (yyvsp[(8) - (14)].v)[2]}; + double dir[3] = {(yyvsp[(10) - (14)].v)[0], (yyvsp[(10) - (14)].v)[1], (yyvsp[(10) - (14)].v)[2]}; gLevelset *ls = new gLevelsetGeneralQuadric(pt, dir, d[0], d[1], d[2], d[3], d[4], t); LevelSet *l = Create_LevelSet(ls->getTag(), ls); @@ -8238,219 +8699,204 @@ yyreduce: } } else - yymsg(0, "Wrong levelset definition (%d)", (yyvsp[-10].d)); - Free((yyvsp[-12].c)); + yymsg(0, "Wrong levelset definition (%d)", (yyvsp[(4) - (14)].d)); + Free((yyvsp[(2) - (14)].c)); #endif - } -#line 8246 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 224: -#line 2965 "Gmsh.y" /* yacc.c:1646 */ +#line 2965 "Gmsh.y" { - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++){ Shape TheShape; - List_Read((yyvsp[-1].l), i, &TheShape); + List_Read((yyvsp[(3) - (4)].l), i, &TheShape); DeleteShape(TheShape.Type, TheShape.Num); } - List_Delete((yyvsp[-1].l)); - } -#line 8259 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(3) - (4)].l)); + ;} break; case 225: -#line 2974 "Gmsh.y" /* yacc.c:1646 */ +#line 2974 "Gmsh.y" { #if defined(HAVE_MESH) - GModel::current()->getFields()->deleteField((int)(yyvsp[-2].d)); + GModel::current()->getFields()->deleteField((int)(yyvsp[(4) - (6)].d)); #endif - } -#line 8269 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 226: -#line 2980 "Gmsh.y" /* yacc.c:1646 */ +#line 2980 "Gmsh.y" { #if defined(HAVE_POST) - if(!strcmp((yyvsp[-4].c), "View")){ - int index = (int)(yyvsp[-2].d); + if(!strcmp((yyvsp[(2) - (6)].c), "View")){ + int index = (int)(yyvsp[(4) - (6)].d); if(index >= 0 && index < (int)PView::list.size()) delete PView::list[index]; else yymsg(0, "Unknown view %d", index); } else - yymsg(0, "Unknown command 'Delete %s'", (yyvsp[-4].c)); + yymsg(0, "Unknown command 'Delete %s'", (yyvsp[(2) - (6)].c)); #endif - Free((yyvsp[-4].c)); - } -#line 8288 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(2) - (6)].c)); + ;} break; case 227: -#line 2995 "Gmsh.y" /* yacc.c:1646 */ +#line 2995 "Gmsh.y" { - if(!strcmp((yyvsp[-1].c), "Meshes") || !strcmp((yyvsp[-1].c), "All")){ + if(!strcmp((yyvsp[(2) - (3)].c), "Meshes") || !strcmp((yyvsp[(2) - (3)].c), "All")){ ClearProject(); } - else if(!strcmp((yyvsp[-1].c), "Model")){ + else if(!strcmp((yyvsp[(2) - (3)].c), "Model")){ GModel::current()->destroy(true); // destroy, but keep name/filename GModel::current()->getGEOInternals()->destroy(); } - else if(!strcmp((yyvsp[-1].c), "Physicals")){ + else if(!strcmp((yyvsp[(2) - (3)].c), "Physicals")){ GModel::current()->getGEOInternals()->reset_physicals(); GModel::current()->deletePhysicalGroups(); } - else if(!strcmp((yyvsp[-1].c), "Variables")){ + else if(!strcmp((yyvsp[(2) - (3)].c), "Variables")){ gmsh_yysymbols.clear(); } - else if(!strcmp((yyvsp[-1].c), "Options")){ + else if(!strcmp((yyvsp[(2) - (3)].c), "Options")){ ReInitOptions(0); InitOptionsGUI(0); } else{ - if(gmsh_yysymbols.count((yyvsp[-1].c))) - gmsh_yysymbols.erase((yyvsp[-1].c)); + if(gmsh_yysymbols.count((yyvsp[(2) - (3)].c))) + gmsh_yysymbols.erase((yyvsp[(2) - (3)].c)); else - yymsg(0, "Unknown object or expression to delete '%s'", (yyvsp[-1].c)); + yymsg(0, "Unknown object or expression to delete '%s'", (yyvsp[(2) - (3)].c)); } - Free((yyvsp[-1].c)); - } -#line 8320 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(2) - (3)].c)); + ;} break; case 228: -#line 3023 "Gmsh.y" /* yacc.c:1646 */ +#line 3023 "Gmsh.y" { #if defined(HAVE_POST) - if(!strcmp((yyvsp[-2].c), "Empty") && !strcmp((yyvsp[-1].c), "Views")){ + if(!strcmp((yyvsp[(2) - (4)].c), "Empty") && !strcmp((yyvsp[(3) - (4)].c), "Views")){ for(int i = PView::list.size() - 1; i >= 0; i--) if(PView::list[i]->getData()->empty()) delete PView::list[i]; } else - yymsg(0, "Unknown command 'Delete %s %s'", (yyvsp[-2].c), (yyvsp[-1].c)); + yymsg(0, "Unknown command 'Delete %s %s'", (yyvsp[(2) - (4)].c), (yyvsp[(3) - (4)].c)); #endif - Free((yyvsp[-2].c)); Free((yyvsp[-1].c)); - } -#line 8336 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(2) - (4)].c)); Free((yyvsp[(3) - (4)].c)); + ;} break; case 229: -#line 3040 "Gmsh.y" /* yacc.c:1646 */ +#line 3040 "Gmsh.y" { - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(4) - (5)].l)); i++){ Shape TheShape; - List_Read((yyvsp[-1].l), i, &TheShape); - ColorShape(TheShape.Type, TheShape.Num, (yyvsp[-3].u), false); + List_Read((yyvsp[(4) - (5)].l), i, &TheShape); + ColorShape(TheShape.Type, TheShape.Num, (yyvsp[(2) - (5)].u), false); } - List_Delete((yyvsp[-1].l)); - } -#line 8349 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(4) - (5)].l)); + ;} break; case 230: -#line 3049 "Gmsh.y" /* yacc.c:1646 */ +#line 3049 "Gmsh.y" { - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(5) - (6)].l)); i++){ Shape TheShape; - List_Read((yyvsp[-1].l), i, &TheShape); - ColorShape(TheShape.Type, TheShape.Num, (yyvsp[-3].u), true); + List_Read((yyvsp[(5) - (6)].l), i, &TheShape); + ColorShape(TheShape.Type, TheShape.Num, (yyvsp[(3) - (6)].u), true); } - List_Delete((yyvsp[-1].l)); - } -#line 8362 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(5) - (6)].l)); + ;} break; case 231: -#line 3063 "Gmsh.y" /* yacc.c:1646 */ +#line 3063 "Gmsh.y" { - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(4) - (5)].l)); i++){ Shape TheShape; - List_Read((yyvsp[-1].l), i, &TheShape); - SetPartition(TheShape.Type, TheShape.Num, (yyvsp[-3].d)); + List_Read((yyvsp[(4) - (5)].l), i, &TheShape); + SetPartition(TheShape.Type, TheShape.Num, (yyvsp[(2) - (5)].d)); } - List_Delete((yyvsp[-1].l)); - } -#line 8375 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(4) - (5)].l)); + ;} break; case 232: -#line 3077 "Gmsh.y" /* yacc.c:1646 */ +#line 3077 "Gmsh.y" { for(int i = 0; i < 4; i++) - VisibilityShape((yyvsp[-1].c), i, 1, false); - Free((yyvsp[-1].c)); - } -#line 8385 "Gmsh.tab.cpp" /* yacc.c:1646 */ + VisibilityShape((yyvsp[(2) - (3)].c), i, 1, false); + Free((yyvsp[(2) - (3)].c)); + ;} break; case 233: -#line 3083 "Gmsh.y" /* yacc.c:1646 */ +#line 3083 "Gmsh.y" { for(int i = 0; i < 4; i++) - VisibilityShape((yyvsp[-1].c), i, 0, false); - Free((yyvsp[-1].c)); - } -#line 8395 "Gmsh.tab.cpp" /* yacc.c:1646 */ + VisibilityShape((yyvsp[(2) - (3)].c), i, 0, false); + Free((yyvsp[(2) - (3)].c)); + ;} break; case 234: -#line 3089 "Gmsh.y" /* yacc.c:1646 */ +#line 3089 "Gmsh.y" { - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++){ Shape TheShape; - List_Read((yyvsp[-1].l), i, &TheShape); + List_Read((yyvsp[(3) - (4)].l), i, &TheShape); VisibilityShape(TheShape.Type, TheShape.Num, 1, false); } - List_Delete((yyvsp[-1].l)); - } -#line 8408 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(3) - (4)].l)); + ;} break; case 235: -#line 3098 "Gmsh.y" /* yacc.c:1646 */ +#line 3098 "Gmsh.y" { - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(4) - (5)].l)); i++){ Shape TheShape; - List_Read((yyvsp[-1].l), i, &TheShape); + List_Read((yyvsp[(4) - (5)].l), i, &TheShape); VisibilityShape(TheShape.Type, TheShape.Num, 1, true); } - List_Delete((yyvsp[-1].l)); - } -#line 8421 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(4) - (5)].l)); + ;} break; case 236: -#line 3107 "Gmsh.y" /* yacc.c:1646 */ +#line 3107 "Gmsh.y" { - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++){ Shape TheShape; - List_Read((yyvsp[-1].l), i, &TheShape); + List_Read((yyvsp[(3) - (4)].l), i, &TheShape); VisibilityShape(TheShape.Type, TheShape.Num, 0, false); } - List_Delete((yyvsp[-1].l)); - } -#line 8434 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(3) - (4)].l)); + ;} break; case 237: -#line 3116 "Gmsh.y" /* yacc.c:1646 */ +#line 3116 "Gmsh.y" { - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(4) - (5)].l)); i++){ Shape TheShape; - List_Read((yyvsp[-1].l), i, &TheShape); + List_Read((yyvsp[(4) - (5)].l), i, &TheShape); VisibilityShape(TheShape.Type, TheShape.Num, 0, true); } - List_Delete((yyvsp[-1].l)); - } -#line 8447 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(4) - (5)].l)); + ;} break; case 238: -#line 3130 "Gmsh.y" /* yacc.c:1646 */ +#line 3130 "Gmsh.y" { - if(!strcmp((yyvsp[-2].c), "Include")){ - std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[-1].c)); + if(!strcmp((yyvsp[(1) - (3)].c), "Include")){ + std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[(2) - (3)].c)); Msg::StatusBar(true, "Reading '%s'...", tmp.c_str()); // Warning: we explicitly ask ParseFile not to fclose() the included // file, in order to allow user functions definitions in these files. @@ -8464,299 +8910,281 @@ yyreduce: SetBoundingBox(); Msg::StatusBar(true, "Done reading '%s'", tmp.c_str()); } - else if(!strcmp((yyvsp[-2].c), "Print")){ + else if(!strcmp((yyvsp[(1) - (3)].c), "Print")){ // make sure we have the latest data from GEO_Internals in GModel // (fixes bug where we would have no geometry in the picture if // the print command is in the same file as the geometry) GModel::current()->importGEOInternals(); - std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[-1].c)); + std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[(2) - (3)].c)); CreateOutputFile(tmp, CTX::instance()->print.fileFormat); } - else if(!strcmp((yyvsp[-2].c), "Save")){ + else if(!strcmp((yyvsp[(1) - (3)].c), "Save")){ GModel::current()->importGEOInternals(); - std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[-1].c)); + std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[(2) - (3)].c)); CreateOutputFile(tmp, CTX::instance()->mesh.fileFormat); } - else if(!strcmp((yyvsp[-2].c), "Merge") || !strcmp((yyvsp[-2].c), "MergeWithBoundingBox")){ + else if(!strcmp((yyvsp[(1) - (3)].c), "Merge") || !strcmp((yyvsp[(1) - (3)].c), "MergeWithBoundingBox")){ // MergeWithBoundingBox is deprecated - std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[-1].c)); + std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[(2) - (3)].c)); MergeFile(tmp, true); } - else if(!strcmp((yyvsp[-2].c), "NonBlockingSystemCall")){ - SystemCall((yyvsp[-1].c)); + else if(!strcmp((yyvsp[(1) - (3)].c), "NonBlockingSystemCall")){ + SystemCall((yyvsp[(2) - (3)].c)); } - else if(!strcmp((yyvsp[-2].c), "System") || !strcmp((yyvsp[-2].c), "SystemCall")){ - SystemCall((yyvsp[-1].c), true); + else if(!strcmp((yyvsp[(1) - (3)].c), "System") || !strcmp((yyvsp[(1) - (3)].c), "SystemCall")){ + SystemCall((yyvsp[(2) - (3)].c), true); } - else if(!strcmp((yyvsp[-2].c), "SetName")){ - GModel::current()->setName((yyvsp[-1].c)); + else if(!strcmp((yyvsp[(1) - (3)].c), "SetName")){ + GModel::current()->setName((yyvsp[(2) - (3)].c)); } - else if(!strcmp((yyvsp[-2].c), "CreateDir")){ - std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[-1].c)); + else if(!strcmp((yyvsp[(1) - (3)].c), "CreateDir")){ + std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[(2) - (3)].c)); CreateSingleDir(tmp); } - else if(!strcmp((yyvsp[-2].c), "OnelabRun")){ - Msg::RunOnelabClient((yyvsp[-1].c)); + else if(!strcmp((yyvsp[(1) - (3)].c), "OnelabRun")){ + Msg::RunOnelabClient((yyvsp[(2) - (3)].c)); } - else if(!strcmp((yyvsp[-2].c), "OptimizeMesh")){ - GModel::current()->optimizeMesh((yyvsp[-1].c)); + else if(!strcmp((yyvsp[(1) - (3)].c), "OptimizeMesh")){ + GModel::current()->optimizeMesh((yyvsp[(2) - (3)].c)); } else{ - yymsg(0, "Unknown command '%s'", (yyvsp[-2].c)); + yymsg(0, "Unknown command '%s'", (yyvsp[(1) - (3)].c)); } - Free((yyvsp[-2].c)); Free((yyvsp[-1].c)); - } -#line 8510 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (3)].c)); Free((yyvsp[(2) - (3)].c)); + ;} break; case 239: -#line 3189 "Gmsh.y" /* yacc.c:1646 */ +#line 3189 "Gmsh.y" { - int n = List_Nbr((yyvsp[-2].l)); + int n = List_Nbr((yyvsp[(3) - (5)].l)); if(n == 1){ - char *s; List_Read((yyvsp[-2].l), 0, &s); + char *s; List_Read((yyvsp[(3) - (5)].l), 0, &s); Msg::RunOnelabClient(s); Free(s); } else if(n == 2){ - char *s, *t; List_Read((yyvsp[-2].l), 0, &s); List_Read((yyvsp[-2].l), 1, &t); + char *s, *t; List_Read((yyvsp[(3) - (5)].l), 0, &s); List_Read((yyvsp[(3) - (5)].l), 1, &t); Msg::RunOnelabClient(s, t); Free(s); Free(t); } else{ yymsg(0, "OnelabRun takes one or two arguments"); } - List_Delete((yyvsp[-2].l)); - } -#line 8532 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(3) - (5)].l)); + ;} break; case 240: -#line 3207 "Gmsh.y" /* yacc.c:1646 */ +#line 3207 "Gmsh.y" { #if defined(HAVE_POST) - if(!strcmp((yyvsp[-6].c), "Save") && !strcmp((yyvsp[-5].c), "View")){ - int index = (int)(yyvsp[-3].d); + if(!strcmp((yyvsp[(1) - (7)].c), "Save") && !strcmp((yyvsp[(2) - (7)].c), "View")){ + int index = (int)(yyvsp[(4) - (7)].d); if(index >= 0 && index < (int)PView::list.size()){ - std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[-1].c)); + std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[(6) - (7)].c)); PView::list[index]->write(tmp, CTX::instance()->post.fileFormat); } else yymsg(0, "Unknown view %d", index); } else - yymsg(0, "Unknown command '%s'", (yyvsp[-6].c)); + yymsg(0, "Unknown command '%s'", (yyvsp[(1) - (7)].c)); #endif - Free((yyvsp[-6].c)); Free((yyvsp[-5].c)); Free((yyvsp[-1].c)); - } -#line 8553 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (7)].c)); Free((yyvsp[(2) - (7)].c)); Free((yyvsp[(6) - (7)].c)); + ;} break; case 241: -#line 3224 "Gmsh.y" /* yacc.c:1646 */ +#line 3224 "Gmsh.y" { #if defined(HAVE_POST) && defined(HAVE_MESH) - if(!strcmp((yyvsp[-6].c), "Background") && !strcmp((yyvsp[-5].c), "Mesh") && !strcmp((yyvsp[-4].c), "View")){ - int index = (int)(yyvsp[-2].d); + if(!strcmp((yyvsp[(1) - (7)].c), "Background") && !strcmp((yyvsp[(2) - (7)].c), "Mesh") && !strcmp((yyvsp[(3) - (7)].c), "View")){ + int index = (int)(yyvsp[(5) - (7)].d); if(index >= 0 && index < (int)PView::list.size()) GModel::current()->getFields()->setBackgroundMesh(index); else yymsg(0, "Unknown view %d", index); } else - yymsg(0, "Unknown command '%s'", (yyvsp[-6].c)); + yymsg(0, "Unknown command '%s'", (yyvsp[(1) - (7)].c)); #endif - Free((yyvsp[-6].c)); Free((yyvsp[-5].c)); Free((yyvsp[-4].c)); - } -#line 8572 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (7)].c)); Free((yyvsp[(2) - (7)].c)); Free((yyvsp[(3) - (7)].c)); + ;} break; case 242: -#line 3239 "Gmsh.y" /* yacc.c:1646 */ +#line 3239 "Gmsh.y" { - if(!strcmp((yyvsp[-2].c), "Sleep")){ - SleepInSeconds((yyvsp[-1].d)); + if(!strcmp((yyvsp[(1) - (3)].c), "Sleep")){ + SleepInSeconds((yyvsp[(2) - (3)].d)); } - else if(!strcmp((yyvsp[-2].c), "Remesh")){ + else if(!strcmp((yyvsp[(1) - (3)].c), "Remesh")){ yymsg(0, "Surface remeshing must be reinterfaced"); } - else if(!strcmp((yyvsp[-2].c), "Mesh")){ + else if(!strcmp((yyvsp[(1) - (3)].c), "Mesh")){ int lock = CTX::instance()->lock; CTX::instance()->lock = 0; GModel::current()->importGEOInternals(); - GModel::current()->mesh((int)(yyvsp[-1].d)); + GModel::current()->mesh((int)(yyvsp[(2) - (3)].d)); CTX::instance()->lock = lock; } - else if(!strcmp((yyvsp[-2].c), "SetOrder")){ + else if(!strcmp((yyvsp[(1) - (3)].c), "SetOrder")){ #if defined(HAVE_MESH) - SetOrderN(GModel::current(), (yyvsp[-1].d), CTX::instance()->mesh.secondOrderLinear, + SetOrderN(GModel::current(), (yyvsp[(2) - (3)].d), CTX::instance()->mesh.secondOrderLinear, CTX::instance()->mesh.secondOrderIncomplete, CTX::instance()->mesh.meshOnlyVisible); #endif } else - yymsg(0, "Unknown command '%s'", (yyvsp[-2].c)); - Free((yyvsp[-2].c)); - } -#line 8602 "Gmsh.tab.cpp" /* yacc.c:1646 */ + yymsg(0, "Unknown command '%s'", (yyvsp[(1) - (3)].c)); + Free((yyvsp[(1) - (3)].c)); + ;} break; case 243: -#line 3265 "Gmsh.y" /* yacc.c:1646 */ +#line 3265 "Gmsh.y" { #if defined(HAVE_PLUGINS) try { - PluginManager::instance()->action((yyvsp[-4].c), (yyvsp[-1].c), 0); + PluginManager::instance()->action((yyvsp[(3) - (7)].c), (yyvsp[(6) - (7)].c), 0); } catch(...) { - yymsg(0, "Unknown action '%s' or plugin '%s'", (yyvsp[-1].c), (yyvsp[-4].c)); + yymsg(0, "Unknown action '%s' or plugin '%s'", (yyvsp[(6) - (7)].c), (yyvsp[(3) - (7)].c)); } #endif - Free((yyvsp[-4].c)); Free((yyvsp[-1].c)); - } -#line 8618 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(3) - (7)].c)); Free((yyvsp[(6) - (7)].c)); + ;} break; case 244: -#line 3277 "Gmsh.y" /* yacc.c:1646 */ +#line 3277 "Gmsh.y" { #if defined(HAVE_POST) - if(!strcmp((yyvsp[-1].c), "ElementsFromAllViews")) + if(!strcmp((yyvsp[(2) - (3)].c), "ElementsFromAllViews")) PView::combine(false, 1, CTX::instance()->post.combineRemoveOrig); - else if(!strcmp((yyvsp[-1].c), "ElementsFromVisibleViews")) + else if(!strcmp((yyvsp[(2) - (3)].c), "ElementsFromVisibleViews")) PView::combine(false, 0, CTX::instance()->post.combineRemoveOrig); - else if(!strcmp((yyvsp[-1].c), "ElementsByViewName")) + else if(!strcmp((yyvsp[(2) - (3)].c), "ElementsByViewName")) PView::combine(false, 2, CTX::instance()->post.combineRemoveOrig); - else if(!strcmp((yyvsp[-1].c), "TimeStepsFromAllViews")) + else if(!strcmp((yyvsp[(2) - (3)].c), "TimeStepsFromAllViews")) PView::combine(true, 1, CTX::instance()->post.combineRemoveOrig); - else if(!strcmp((yyvsp[-1].c), "TimeStepsFromVisibleViews")) + else if(!strcmp((yyvsp[(2) - (3)].c), "TimeStepsFromVisibleViews")) PView::combine(true, 0, CTX::instance()->post.combineRemoveOrig); - else if(!strcmp((yyvsp[-1].c), "TimeStepsByViewName")) + else if(!strcmp((yyvsp[(2) - (3)].c), "TimeStepsByViewName")) PView::combine(true, 2, CTX::instance()->post.combineRemoveOrig); - else if(!strcmp((yyvsp[-1].c), "Views")) + else if(!strcmp((yyvsp[(2) - (3)].c), "Views")) PView::combine(false, 1, CTX::instance()->post.combineRemoveOrig); - else if(!strcmp((yyvsp[-1].c), "TimeSteps")) + else if(!strcmp((yyvsp[(2) - (3)].c), "TimeSteps")) PView::combine(true, 2, CTX::instance()->post.combineRemoveOrig); else yymsg(0, "Unknown 'Combine' command"); #endif - Free((yyvsp[-1].c)); - } -#line 8646 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(2) - (3)].c)); + ;} break; case 245: -#line 3301 "Gmsh.y" /* yacc.c:1646 */ +#line 3301 "Gmsh.y" { Msg::Exit(0); - } -#line 8654 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 246: -#line 3305 "Gmsh.y" /* yacc.c:1646 */ +#line 3305 "Gmsh.y" { gmsh_yyerrorstate = 999; // this will be checked when yyparse returns YYABORT; - } -#line 8663 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 247: -#line 3310 "Gmsh.y" /* yacc.c:1646 */ +#line 3310 "Gmsh.y" { // FIXME: this is a hack to force a transfer from the old DB to // the new DB. This will become unnecessary if/when we fill the // GModel directly during parsing. GModel::current()->importGEOInternals(); - } -#line 8674 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 248: -#line 3317 "Gmsh.y" /* yacc.c:1646 */ +#line 3317 "Gmsh.y" { new GModel(); GModel::current(GModel::list.size() - 1); - } -#line 8683 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 249: -#line 3322 "Gmsh.y" /* yacc.c:1646 */ +#line 3322 "Gmsh.y" { CTX::instance()->forcedBBox = 0; GModel::current()->importGEOInternals(); SetBoundingBox(); - } -#line 8693 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 250: -#line 3328 "Gmsh.y" /* yacc.c:1646 */ +#line 3328 "Gmsh.y" { CTX::instance()->forcedBBox = 1; - SetBoundingBox((yyvsp[-12].d), (yyvsp[-10].d), (yyvsp[-8].d), (yyvsp[-6].d), (yyvsp[-4].d), (yyvsp[-2].d)); - } -#line 8702 "Gmsh.tab.cpp" /* yacc.c:1646 */ + SetBoundingBox((yyvsp[(3) - (15)].d), (yyvsp[(5) - (15)].d), (yyvsp[(7) - (15)].d), (yyvsp[(9) - (15)].d), (yyvsp[(11) - (15)].d), (yyvsp[(13) - (15)].d)); + ;} break; case 251: -#line 3333 "Gmsh.y" /* yacc.c:1646 */ +#line 3333 "Gmsh.y" { #if defined(HAVE_OPENGL) drawContext::global()->draw(); #endif - } -#line 8712 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 252: -#line 3339 "Gmsh.y" /* yacc.c:1646 */ +#line 3339 "Gmsh.y" { #if defined(HAVE_OPENGL) CTX::instance()->mesh.changed = ENT_ALL; for(unsigned int index = 0; index < PView::list.size(); index++) PView::list[index]->setChanged(true); #endif - } -#line 8724 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 253: -#line 3347 "Gmsh.y" /* yacc.c:1646 */ +#line 3347 "Gmsh.y" { GModel::current()->createTopologyFromMesh(); - } -#line 8732 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 254: -#line 3351 "Gmsh.y" /* yacc.c:1646 */ +#line 3351 "Gmsh.y" { GModel::current()->createTopologyFromMesh(1); - } -#line 8740 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 255: -#line 3355 "Gmsh.y" /* yacc.c:1646 */ +#line 3355 "Gmsh.y" { GModel::current()->importGEOInternals(); GModel::current()->refineMesh(CTX::instance()->mesh.secondOrderLinear); - } -#line 8749 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 256: -#line 3361 "Gmsh.y" /* yacc.c:1646 */ +#line 3361 "Gmsh.y" { int lock = CTX::instance()->lock; CTX::instance()->lock = 0; std::vector<int> technique; - for(int i = 0; i < List_Nbr((yyvsp[-13].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(3) - (16)].l)); i++){ double d; - List_Read((yyvsp[-13].l), i, &d); + List_Read((yyvsp[(3) - (16)].l), i, &d); technique.push_back((int)d); } if(technique.empty()){ @@ -8764,9 +9192,9 @@ yyreduce: } else{ std::vector<simpleFunction<double>*> f; - for(int i = 0; i < List_Nbr((yyvsp[-10].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(6) - (16)].l)); i++){ double d; - List_Read((yyvsp[-10].l), i, &d); + List_Read((yyvsp[(6) - (16)].l), i, &d); LevelSet *l = FindLevelSet((int)d); if(l) f.push_back(l->ls); else yymsg(0, "Unknown Levelset %d", (int)d); @@ -8775,47 +9203,46 @@ yyreduce: yyerror("Number of techniques != number of levelsets"); } else{ - if(List_Nbr((yyvsp[-7].l)) != (int)f.size()){ + if(List_Nbr((yyvsp[(9) - (16)].l)) != (int)f.size()){ yyerror("Number of parameters != number of levelsets"); } else{ std::vector<std::vector<double> > parameters; - parameters.resize(List_Nbr((yyvsp[-7].l))); - for(int i = 0; i < List_Nbr((yyvsp[-7].l)); i++){ - List_T *l = *(List_T**)List_Pointer((yyvsp[-7].l), i); + parameters.resize(List_Nbr((yyvsp[(9) - (16)].l))); + for(int i = 0; i < List_Nbr((yyvsp[(9) - (16)].l)); i++){ + List_T *l = *(List_T**)List_Pointer((yyvsp[(9) - (16)].l), i); for(int j = 0; j < List_Nbr(l); j++){ double d; List_Read(l, j, &d); parameters[i].push_back(d); } } - int niter = (int)(yyvsp[-4].d); - bool meshAll = ((yyvsp[-2].d) == 0) ? false : true; + int niter = (int)(yyvsp[(12) - (16)].d); + bool meshAll = ((yyvsp[(14) - (16)].d) == 0) ? false : true; GModel::current()->importGEOInternals(); GModel::current()->adaptMesh(technique, f, parameters, niter, meshAll); } } } - List_Delete((yyvsp[-13].l)); - List_Delete((yyvsp[-10].l)); - for(int i = 0; i < List_Nbr((yyvsp[-7].l)); i++) - List_Delete(*(List_T**)List_Pointer((yyvsp[-7].l), i)); - List_Delete((yyvsp[-7].l)); + List_Delete((yyvsp[(3) - (16)].l)); + List_Delete((yyvsp[(6) - (16)].l)); + for(int i = 0; i < List_Nbr((yyvsp[(9) - (16)].l)); i++) + List_Delete(*(List_T**)List_Pointer((yyvsp[(9) - (16)].l), i)); + List_Delete((yyvsp[(9) - (16)].l)); CTX::instance()->lock = lock; - } -#line 8807 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 257: -#line 3420 "Gmsh.y" /* yacc.c:1646 */ +#line 3420 "Gmsh.y" { - LoopControlVariablesTab[ImbricatedLoop][0] = (yyvsp[-3].d); - LoopControlVariablesTab[ImbricatedLoop][1] = (yyvsp[-1].d); + LoopControlVariablesTab[ImbricatedLoop][0] = (yyvsp[(3) - (6)].d); + LoopControlVariablesTab[ImbricatedLoop][1] = (yyvsp[(5) - (6)].d); LoopControlVariablesTab[ImbricatedLoop][2] = 1.0; LoopControlVariablesNameTab[ImbricatedLoop] = ""; gmshgetpos(gmsh_yyin, &yyposImbricatedLoopsTab[ImbricatedLoop]); yylinenoImbricatedLoopsTab[ImbricatedLoop] = gmsh_yylineno; - if((yyvsp[-3].d) > (yyvsp[-1].d)) + if((yyvsp[(3) - (6)].d) > (yyvsp[(5) - (6)].d)) skip_until("For", "EndFor"); else ImbricatedLoop++; @@ -8823,20 +9250,19 @@ yyreduce: yymsg(0, "Reached maximum number of imbricated loops"); ImbricatedLoop = MAX_RECUR_LOOPS - 1; } - } -#line 8828 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 258: -#line 3437 "Gmsh.y" /* yacc.c:1646 */ +#line 3437 "Gmsh.y" { - LoopControlVariablesTab[ImbricatedLoop][0] = (yyvsp[-5].d); - LoopControlVariablesTab[ImbricatedLoop][1] = (yyvsp[-3].d); - LoopControlVariablesTab[ImbricatedLoop][2] = (yyvsp[-1].d); + LoopControlVariablesTab[ImbricatedLoop][0] = (yyvsp[(3) - (8)].d); + LoopControlVariablesTab[ImbricatedLoop][1] = (yyvsp[(5) - (8)].d); + LoopControlVariablesTab[ImbricatedLoop][2] = (yyvsp[(7) - (8)].d); LoopControlVariablesNameTab[ImbricatedLoop] = ""; gmshgetpos(gmsh_yyin, &yyposImbricatedLoopsTab[ImbricatedLoop]); yylinenoImbricatedLoopsTab[ImbricatedLoop] = gmsh_yylineno; - if(((yyvsp[-1].d) > 0. && (yyvsp[-5].d) > (yyvsp[-3].d)) || ((yyvsp[-1].d) < 0. && (yyvsp[-5].d) < (yyvsp[-3].d))) + if(((yyvsp[(7) - (8)].d) > 0. && (yyvsp[(3) - (8)].d) > (yyvsp[(5) - (8)].d)) || ((yyvsp[(7) - (8)].d) < 0. && (yyvsp[(3) - (8)].d) < (yyvsp[(5) - (8)].d))) skip_until("For", "EndFor"); else ImbricatedLoop++; @@ -8844,24 +9270,23 @@ yyreduce: yymsg(0, "Reached maximum number of imbricated loops"); ImbricatedLoop = MAX_RECUR_LOOPS - 1; } - } -#line 8849 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 259: -#line 3454 "Gmsh.y" /* yacc.c:1646 */ +#line 3454 "Gmsh.y" { - LoopControlVariablesTab[ImbricatedLoop][0] = (yyvsp[-3].d); - LoopControlVariablesTab[ImbricatedLoop][1] = (yyvsp[-1].d); + LoopControlVariablesTab[ImbricatedLoop][0] = (yyvsp[(5) - (8)].d); + LoopControlVariablesTab[ImbricatedLoop][1] = (yyvsp[(7) - (8)].d); LoopControlVariablesTab[ImbricatedLoop][2] = 1.0; - LoopControlVariablesNameTab[ImbricatedLoop] = (yyvsp[-6].c); - gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[-6].c)]); + LoopControlVariablesNameTab[ImbricatedLoop] = (yyvsp[(2) - (8)].c); + gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(2) - (8)].c)]); s.list = false; s.value.resize(1); - s.value[0] = (yyvsp[-3].d); + s.value[0] = (yyvsp[(5) - (8)].d); gmshgetpos(gmsh_yyin, &yyposImbricatedLoopsTab[ImbricatedLoop]); yylinenoImbricatedLoopsTab[ImbricatedLoop] = gmsh_yylineno; - if((yyvsp[-3].d) > (yyvsp[-1].d)) + if((yyvsp[(5) - (8)].d) > (yyvsp[(7) - (8)].d)) skip_until("For", "EndFor"); else ImbricatedLoop++; @@ -8869,25 +9294,24 @@ yyreduce: yymsg(0, "Reached maximum number of imbricated loops"); ImbricatedLoop = MAX_RECUR_LOOPS - 1; } - Free((yyvsp[-6].c)); - } -#line 8875 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(2) - (8)].c)); + ;} break; case 260: -#line 3476 "Gmsh.y" /* yacc.c:1646 */ +#line 3476 "Gmsh.y" { - LoopControlVariablesTab[ImbricatedLoop][0] = (yyvsp[-5].d); - LoopControlVariablesTab[ImbricatedLoop][1] = (yyvsp[-3].d); - LoopControlVariablesTab[ImbricatedLoop][2] = (yyvsp[-1].d); - LoopControlVariablesNameTab[ImbricatedLoop] = (yyvsp[-8].c); - gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[-8].c)]); + LoopControlVariablesTab[ImbricatedLoop][0] = (yyvsp[(5) - (10)].d); + LoopControlVariablesTab[ImbricatedLoop][1] = (yyvsp[(7) - (10)].d); + LoopControlVariablesTab[ImbricatedLoop][2] = (yyvsp[(9) - (10)].d); + LoopControlVariablesNameTab[ImbricatedLoop] = (yyvsp[(2) - (10)].c); + gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(2) - (10)].c)]); s.list = false; s.value.resize(1); - s.value[0] = (yyvsp[-5].d); + s.value[0] = (yyvsp[(5) - (10)].d); gmshgetpos(gmsh_yyin, &yyposImbricatedLoopsTab[ImbricatedLoop]); yylinenoImbricatedLoopsTab[ImbricatedLoop] = gmsh_yylineno; - if(((yyvsp[-1].d) > 0. && (yyvsp[-5].d) > (yyvsp[-3].d)) || ((yyvsp[-1].d) < 0. && (yyvsp[-5].d) < (yyvsp[-3].d))) + if(((yyvsp[(9) - (10)].d) > 0. && (yyvsp[(5) - (10)].d) > (yyvsp[(7) - (10)].d)) || ((yyvsp[(9) - (10)].d) < 0. && (yyvsp[(5) - (10)].d) < (yyvsp[(7) - (10)].d))) skip_until("For", "EndFor"); else ImbricatedLoop++; @@ -8895,13 +9319,12 @@ yyreduce: yymsg(0, "Reached maximum number of imbricated loops"); ImbricatedLoop = MAX_RECUR_LOOPS - 1; } - Free((yyvsp[-8].c)); - } -#line 8901 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(2) - (10)].c)); + ;} break; case 261: -#line 3498 "Gmsh.y" /* yacc.c:1646 */ +#line 3498 "Gmsh.y" { if(ImbricatedLoop <= 0){ yymsg(0, "Invalid For/EndFor loop"); @@ -8935,68 +9358,62 @@ yyreduce: else ImbricatedLoop--; } - } -#line 8940 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 262: -#line 3533 "Gmsh.y" /* yacc.c:1646 */ +#line 3533 "Gmsh.y" { if(!FunctionManager::Instance()->createFunction - (std::string((yyvsp[0].c)), gmsh_yyin, gmsh_yyname, gmsh_yylineno)) - yymsg(0, "Redefinition of function %s", (yyvsp[0].c)); + (std::string((yyvsp[(2) - (2)].c)), gmsh_yyin, gmsh_yyname, gmsh_yylineno)) + yymsg(0, "Redefinition of function %s", (yyvsp[(2) - (2)].c)); skip_until(NULL, "Return"); - Free((yyvsp[0].c)); - } -#line 8952 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(2) - (2)].c)); + ;} break; case 263: -#line 3541 "Gmsh.y" /* yacc.c:1646 */ +#line 3541 "Gmsh.y" { if(!FunctionManager::Instance()->createFunction - (std::string((yyvsp[0].c)), gmsh_yyin, gmsh_yyname, gmsh_yylineno)) - yymsg(0, "Redefinition of function %s", (yyvsp[0].c)); + (std::string((yyvsp[(2) - (2)].c)), gmsh_yyin, gmsh_yyname, gmsh_yylineno)) + yymsg(0, "Redefinition of function %s", (yyvsp[(2) - (2)].c)); skip_until(NULL, "Return"); - Free((yyvsp[0].c)); - } -#line 8964 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(2) - (2)].c)); + ;} break; case 264: -#line 3549 "Gmsh.y" /* yacc.c:1646 */ +#line 3549 "Gmsh.y" { if(!FunctionManager::Instance()->leaveFunction (&gmsh_yyin, gmsh_yyname, gmsh_yylineno)) yymsg(0, "Error while exiting function"); - } -#line 8974 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 265: -#line 3555 "Gmsh.y" /* yacc.c:1646 */ +#line 3555 "Gmsh.y" { if(!FunctionManager::Instance()->enterFunction - (std::string((yyvsp[-1].c)), &gmsh_yyin, gmsh_yyname, gmsh_yylineno)) - yymsg(0, "Unknown function %s", (yyvsp[-1].c)); - Free((yyvsp[-1].c)); - } -#line 8985 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (std::string((yyvsp[(2) - (3)].c)), &gmsh_yyin, gmsh_yyname, gmsh_yylineno)) + yymsg(0, "Unknown function %s", (yyvsp[(2) - (3)].c)); + Free((yyvsp[(2) - (3)].c)); + ;} break; case 266: -#line 3562 "Gmsh.y" /* yacc.c:1646 */ +#line 3562 "Gmsh.y" { if(!FunctionManager::Instance()->enterFunction - (std::string((yyvsp[-1].c)), &gmsh_yyin, gmsh_yyname, gmsh_yylineno)) - yymsg(0, "Unknown function %s", (yyvsp[-1].c)); - Free((yyvsp[-1].c)); - } -#line 8996 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (std::string((yyvsp[(2) - (3)].c)), &gmsh_yyin, gmsh_yyname, gmsh_yylineno)) + yymsg(0, "Unknown function %s", (yyvsp[(2) - (3)].c)); + Free((yyvsp[(2) - (3)].c)); + ;} break; case 267: -#line 3569 "Gmsh.y" /* yacc.c:1646 */ +#line 3569 "Gmsh.y" { ImbricatedTest++; if(ImbricatedTest > MAX_RECUR_TESTS-1){ @@ -9004,7 +9421,7 @@ yyreduce: ImbricatedTest = MAX_RECUR_TESTS-1; } - if((yyvsp[-1].d)){ + if((yyvsp[(3) - (4)].d)){ // Current test is true statusImbricatedTests[ImbricatedTest] = 1; } @@ -9015,12 +9432,11 @@ yyreduce: skip_until_test("If", "EndIf", "ElseIf", 4, &type_until2); if(!type_until2) ImbricatedTest--; // EndIf reached } - } -#line 9020 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 268: -#line 3589 "Gmsh.y" /* yacc.c:1646 */ +#line 3589 "Gmsh.y" { if(ImbricatedTest > 0){ if (statusImbricatedTests[ImbricatedTest]){ @@ -9030,7 +9446,7 @@ yyreduce: } else{ // Previous test(s) (If and ElseIf) not yet true - if((yyvsp[-1].d)){ + if((yyvsp[(3) - (4)].d)){ statusImbricatedTests[ImbricatedTest] = 1; } else{ @@ -9045,12 +9461,11 @@ yyreduce: else{ yymsg(0, "Orphan ElseIf"); } - } -#line 9050 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 269: -#line 3615 "Gmsh.y" /* yacc.c:1646 */ +#line 3615 "Gmsh.y" { if(ImbricatedTest > 0){ if(statusImbricatedTests[ImbricatedTest]){ @@ -9061,751 +9476,683 @@ yyreduce: else{ yymsg(0, "Orphan Else"); } - } -#line 9066 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 270: -#line 3627 "Gmsh.y" /* yacc.c:1646 */ +#line 3627 "Gmsh.y" { ImbricatedTest--; if(ImbricatedTest < 0) yymsg(1, "Orphan EndIf"); - } -#line 9076 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 271: -#line 3639 "Gmsh.y" /* yacc.c:1646 */ +#line 3639 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); - ExtrudeShapes(TRANSLATE, (yyvsp[-1].l), - (yyvsp[-3].v)[0], (yyvsp[-3].v)[1], (yyvsp[-3].v)[2], 0., 0., 0., 0., 0., 0., 0., + ExtrudeShapes(TRANSLATE, (yyvsp[(4) - (5)].l), + (yyvsp[(2) - (5)].v)[0], (yyvsp[(2) - (5)].v)[1], (yyvsp[(2) - (5)].v)[2], 0., 0., 0., 0., 0., 0., 0., NULL, (yyval.l)); - List_Delete((yyvsp[-1].l)); - } -#line 9088 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(4) - (5)].l)); + ;} break; case 272: -#line 3647 "Gmsh.y" /* yacc.c:1646 */ +#line 3647 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); - ExtrudeShapes(ROTATE, (yyvsp[-1].l), - 0., 0., 0., (yyvsp[-8].v)[0], (yyvsp[-8].v)[1], (yyvsp[-8].v)[2], (yyvsp[-6].v)[0], (yyvsp[-6].v)[1], (yyvsp[-6].v)[2], (yyvsp[-4].d), + ExtrudeShapes(ROTATE, (yyvsp[(10) - (11)].l), + 0., 0., 0., (yyvsp[(3) - (11)].v)[0], (yyvsp[(3) - (11)].v)[1], (yyvsp[(3) - (11)].v)[2], (yyvsp[(5) - (11)].v)[0], (yyvsp[(5) - (11)].v)[1], (yyvsp[(5) - (11)].v)[2], (yyvsp[(7) - (11)].d), NULL, (yyval.l)); - List_Delete((yyvsp[-1].l)); - } -#line 9100 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(10) - (11)].l)); + ;} break; case 273: -#line 3655 "Gmsh.y" /* yacc.c:1646 */ +#line 3655 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); - ExtrudeShapes(TRANSLATE_ROTATE, (yyvsp[-1].l), - (yyvsp[-10].v)[0], (yyvsp[-10].v)[1], (yyvsp[-10].v)[2], (yyvsp[-8].v)[0], (yyvsp[-8].v)[1], (yyvsp[-8].v)[2], (yyvsp[-6].v)[0], (yyvsp[-6].v)[1], (yyvsp[-6].v)[2], (yyvsp[-4].d), + ExtrudeShapes(TRANSLATE_ROTATE, (yyvsp[(12) - (13)].l), + (yyvsp[(3) - (13)].v)[0], (yyvsp[(3) - (13)].v)[1], (yyvsp[(3) - (13)].v)[2], (yyvsp[(5) - (13)].v)[0], (yyvsp[(5) - (13)].v)[1], (yyvsp[(5) - (13)].v)[2], (yyvsp[(7) - (13)].v)[0], (yyvsp[(7) - (13)].v)[1], (yyvsp[(7) - (13)].v)[2], (yyvsp[(9) - (13)].d), NULL, (yyval.l)); - List_Delete((yyvsp[-1].l)); - } -#line 9112 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(12) - (13)].l)); + ;} break; case 274: -#line 3663 "Gmsh.y" /* yacc.c:1646 */ +#line 3663 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; extr.mesh.ScaleLast = false; - } -#line 9122 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 275: -#line 3669 "Gmsh.y" /* yacc.c:1646 */ +#line 3669 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); - ExtrudeShapes(TRANSLATE, (yyvsp[-3].l), - (yyvsp[-5].v)[0], (yyvsp[-5].v)[1], (yyvsp[-5].v)[2], 0., 0., 0., 0., 0., 0., 0., + ExtrudeShapes(TRANSLATE, (yyvsp[(4) - (7)].l), + (yyvsp[(2) - (7)].v)[0], (yyvsp[(2) - (7)].v)[1], (yyvsp[(2) - (7)].v)[2], 0., 0., 0., 0., 0., 0., 0., &extr, (yyval.l)); - List_Delete((yyvsp[-3].l)); - } -#line 9134 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(4) - (7)].l)); + ;} break; case 276: -#line 3677 "Gmsh.y" /* yacc.c:1646 */ +#line 3677 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; extr.mesh.ScaleLast = false; - } -#line 9144 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 277: -#line 3683 "Gmsh.y" /* yacc.c:1646 */ +#line 3683 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); - ExtrudeShapes(ROTATE, (yyvsp[-3].l), - 0., 0., 0., (yyvsp[-10].v)[0], (yyvsp[-10].v)[1], (yyvsp[-10].v)[2], (yyvsp[-8].v)[0], (yyvsp[-8].v)[1], (yyvsp[-8].v)[2], (yyvsp[-6].d), + ExtrudeShapes(ROTATE, (yyvsp[(10) - (13)].l), + 0., 0., 0., (yyvsp[(3) - (13)].v)[0], (yyvsp[(3) - (13)].v)[1], (yyvsp[(3) - (13)].v)[2], (yyvsp[(5) - (13)].v)[0], (yyvsp[(5) - (13)].v)[1], (yyvsp[(5) - (13)].v)[2], (yyvsp[(7) - (13)].d), &extr, (yyval.l)); - List_Delete((yyvsp[-3].l)); - } -#line 9156 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(10) - (13)].l)); + ;} break; case 278: -#line 3691 "Gmsh.y" /* yacc.c:1646 */ +#line 3691 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; extr.mesh.ScaleLast = false; - } -#line 9166 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 279: -#line 3697 "Gmsh.y" /* yacc.c:1646 */ +#line 3697 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); - ExtrudeShapes(TRANSLATE_ROTATE, (yyvsp[-3].l), - (yyvsp[-12].v)[0], (yyvsp[-12].v)[1], (yyvsp[-12].v)[2], (yyvsp[-10].v)[0], (yyvsp[-10].v)[1], (yyvsp[-10].v)[2], (yyvsp[-8].v)[0], (yyvsp[-8].v)[1], (yyvsp[-8].v)[2], (yyvsp[-6].d), + ExtrudeShapes(TRANSLATE_ROTATE, (yyvsp[(12) - (15)].l), + (yyvsp[(3) - (15)].v)[0], (yyvsp[(3) - (15)].v)[1], (yyvsp[(3) - (15)].v)[2], (yyvsp[(5) - (15)].v)[0], (yyvsp[(5) - (15)].v)[1], (yyvsp[(5) - (15)].v)[2], (yyvsp[(7) - (15)].v)[0], (yyvsp[(7) - (15)].v)[1], (yyvsp[(7) - (15)].v)[2], (yyvsp[(9) - (15)].d), &extr, (yyval.l)); - List_Delete((yyvsp[-3].l)); - } -#line 9178 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(12) - (15)].l)); + ;} break; case 280: -#line 3705 "Gmsh.y" /* yacc.c:1646 */ +#line 3705 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; extr.mesh.ScaleLast = false; - } -#line 9188 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 281: -#line 3711 "Gmsh.y" /* yacc.c:1646 */ +#line 3711 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); - ExtrudeShapes(BOUNDARY_LAYER, (yyvsp[-3].l), 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., + ExtrudeShapes(BOUNDARY_LAYER, (yyvsp[(3) - (6)].l), 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., &extr, (yyval.l)); - List_Delete((yyvsp[-3].l)); - } -#line 9199 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(3) - (6)].l)); + ;} break; case 282: -#line 3719 "Gmsh.y" /* yacc.c:1646 */ +#line 3719 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); - ExtrudeShape(TRANSLATE, MSH_POINT, (int)(yyvsp[-4].d), - (yyvsp[-2].v)[0], (yyvsp[-2].v)[1], (yyvsp[-2].v)[2], 0., 0., 0., 0., 0., 0., 0., + ExtrudeShape(TRANSLATE, MSH_POINT, (int)(yyvsp[(4) - (8)].d), + (yyvsp[(6) - (8)].v)[0], (yyvsp[(6) - (8)].v)[1], (yyvsp[(6) - (8)].v)[2], 0., 0., 0., 0., 0., 0., 0., NULL, (yyval.l)); - } -#line 9210 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 283: -#line 3726 "Gmsh.y" /* yacc.c:1646 */ +#line 3726 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); - ExtrudeShape(TRANSLATE, MSH_SEGM_LINE, (int)(yyvsp[-4].d), - (yyvsp[-2].v)[0], (yyvsp[-2].v)[1], (yyvsp[-2].v)[2], 0., 0., 0., 0., 0., 0., 0., + ExtrudeShape(TRANSLATE, MSH_SEGM_LINE, (int)(yyvsp[(4) - (8)].d), + (yyvsp[(6) - (8)].v)[0], (yyvsp[(6) - (8)].v)[1], (yyvsp[(6) - (8)].v)[2], 0., 0., 0., 0., 0., 0., 0., NULL, (yyval.l)); - } -#line 9221 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 284: -#line 3733 "Gmsh.y" /* yacc.c:1646 */ +#line 3733 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); - ExtrudeShape(TRANSLATE, MSH_SURF_PLAN, (int)(yyvsp[-4].d), - (yyvsp[-2].v)[0], (yyvsp[-2].v)[1], (yyvsp[-2].v)[2], 0., 0., 0., 0., 0., 0., 0., + ExtrudeShape(TRANSLATE, MSH_SURF_PLAN, (int)(yyvsp[(4) - (8)].d), + (yyvsp[(6) - (8)].v)[0], (yyvsp[(6) - (8)].v)[1], (yyvsp[(6) - (8)].v)[2], 0., 0., 0., 0., 0., 0., 0., NULL, (yyval.l)); - } -#line 9232 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 285: -#line 3740 "Gmsh.y" /* yacc.c:1646 */ +#line 3740 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); - ExtrudeShape(ROTATE, MSH_POINT, (int)(yyvsp[-8].d), - 0., 0., 0., (yyvsp[-6].v)[0], (yyvsp[-6].v)[1], (yyvsp[-6].v)[2], (yyvsp[-4].v)[0], (yyvsp[-4].v)[1], (yyvsp[-4].v)[2], (yyvsp[-2].d), + ExtrudeShape(ROTATE, MSH_POINT, (int)(yyvsp[(4) - (12)].d), + 0., 0., 0., (yyvsp[(6) - (12)].v)[0], (yyvsp[(6) - (12)].v)[1], (yyvsp[(6) - (12)].v)[2], (yyvsp[(8) - (12)].v)[0], (yyvsp[(8) - (12)].v)[1], (yyvsp[(8) - (12)].v)[2], (yyvsp[(10) - (12)].d), NULL, (yyval.l)); - } -#line 9243 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 286: -#line 3747 "Gmsh.y" /* yacc.c:1646 */ +#line 3747 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); - ExtrudeShape(ROTATE, MSH_SEGM_LINE, (int)(yyvsp[-8].d), - 0., 0., 0., (yyvsp[-6].v)[0], (yyvsp[-6].v)[1], (yyvsp[-6].v)[2], (yyvsp[-4].v)[0], (yyvsp[-4].v)[1], (yyvsp[-4].v)[2], (yyvsp[-2].d), + ExtrudeShape(ROTATE, MSH_SEGM_LINE, (int)(yyvsp[(4) - (12)].d), + 0., 0., 0., (yyvsp[(6) - (12)].v)[0], (yyvsp[(6) - (12)].v)[1], (yyvsp[(6) - (12)].v)[2], (yyvsp[(8) - (12)].v)[0], (yyvsp[(8) - (12)].v)[1], (yyvsp[(8) - (12)].v)[2], (yyvsp[(10) - (12)].d), NULL, (yyval.l)); - } -#line 9254 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 287: -#line 3754 "Gmsh.y" /* yacc.c:1646 */ +#line 3754 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); - ExtrudeShape(ROTATE, MSH_SURF_PLAN, (int)(yyvsp[-8].d), - 0., 0., 0., (yyvsp[-6].v)[0], (yyvsp[-6].v)[1], (yyvsp[-6].v)[2], (yyvsp[-4].v)[0], (yyvsp[-4].v)[1], (yyvsp[-4].v)[2], (yyvsp[-2].d), + ExtrudeShape(ROTATE, MSH_SURF_PLAN, (int)(yyvsp[(4) - (12)].d), + 0., 0., 0., (yyvsp[(6) - (12)].v)[0], (yyvsp[(6) - (12)].v)[1], (yyvsp[(6) - (12)].v)[2], (yyvsp[(8) - (12)].v)[0], (yyvsp[(8) - (12)].v)[1], (yyvsp[(8) - (12)].v)[2], (yyvsp[(10) - (12)].d), NULL, (yyval.l)); - } -#line 9265 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 288: -#line 3761 "Gmsh.y" /* yacc.c:1646 */ +#line 3761 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); - ExtrudeShape(TRANSLATE_ROTATE, MSH_POINT, (int)(yyvsp[-10].d), - (yyvsp[-8].v)[0], (yyvsp[-8].v)[1], (yyvsp[-8].v)[2], (yyvsp[-6].v)[0], (yyvsp[-6].v)[1], (yyvsp[-6].v)[2], (yyvsp[-4].v)[0], (yyvsp[-4].v)[1], (yyvsp[-4].v)[2], (yyvsp[-2].d), + ExtrudeShape(TRANSLATE_ROTATE, MSH_POINT, (int)(yyvsp[(4) - (14)].d), + (yyvsp[(6) - (14)].v)[0], (yyvsp[(6) - (14)].v)[1], (yyvsp[(6) - (14)].v)[2], (yyvsp[(8) - (14)].v)[0], (yyvsp[(8) - (14)].v)[1], (yyvsp[(8) - (14)].v)[2], (yyvsp[(10) - (14)].v)[0], (yyvsp[(10) - (14)].v)[1], (yyvsp[(10) - (14)].v)[2], (yyvsp[(12) - (14)].d), NULL, (yyval.l)); - } -#line 9276 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 289: -#line 3768 "Gmsh.y" /* yacc.c:1646 */ +#line 3768 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); - ExtrudeShape(TRANSLATE_ROTATE, MSH_SEGM_LINE, (int)(yyvsp[-10].d), - (yyvsp[-8].v)[0], (yyvsp[-8].v)[1], (yyvsp[-8].v)[2], (yyvsp[-6].v)[0], (yyvsp[-6].v)[1], (yyvsp[-6].v)[2], (yyvsp[-4].v)[0], (yyvsp[-4].v)[1], (yyvsp[-4].v)[2], (yyvsp[-2].d), + ExtrudeShape(TRANSLATE_ROTATE, MSH_SEGM_LINE, (int)(yyvsp[(4) - (14)].d), + (yyvsp[(6) - (14)].v)[0], (yyvsp[(6) - (14)].v)[1], (yyvsp[(6) - (14)].v)[2], (yyvsp[(8) - (14)].v)[0], (yyvsp[(8) - (14)].v)[1], (yyvsp[(8) - (14)].v)[2], (yyvsp[(10) - (14)].v)[0], (yyvsp[(10) - (14)].v)[1], (yyvsp[(10) - (14)].v)[2], (yyvsp[(12) - (14)].d), NULL, (yyval.l)); - } -#line 9287 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 290: -#line 3775 "Gmsh.y" /* yacc.c:1646 */ +#line 3775 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); - ExtrudeShape(TRANSLATE_ROTATE, MSH_SURF_PLAN, (int)(yyvsp[-10].d), - (yyvsp[-8].v)[0], (yyvsp[-8].v)[1], (yyvsp[-8].v)[2], (yyvsp[-6].v)[0], (yyvsp[-6].v)[1], (yyvsp[-6].v)[2], (yyvsp[-4].v)[0], (yyvsp[-4].v)[1], (yyvsp[-4].v)[2], (yyvsp[-2].d), + ExtrudeShape(TRANSLATE_ROTATE, MSH_SURF_PLAN, (int)(yyvsp[(4) - (14)].d), + (yyvsp[(6) - (14)].v)[0], (yyvsp[(6) - (14)].v)[1], (yyvsp[(6) - (14)].v)[2], (yyvsp[(8) - (14)].v)[0], (yyvsp[(8) - (14)].v)[1], (yyvsp[(8) - (14)].v)[2], (yyvsp[(10) - (14)].v)[0], (yyvsp[(10) - (14)].v)[1], (yyvsp[(10) - (14)].v)[2], (yyvsp[(12) - (14)].d), NULL, (yyval.l)); - } -#line 9298 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 291: -#line 3782 "Gmsh.y" /* yacc.c:1646 */ +#line 3782 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; extr.mesh.ScaleLast = false; - } -#line 9308 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 292: -#line 3788 "Gmsh.y" /* yacc.c:1646 */ +#line 3788 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); - ExtrudeShape(TRANSLATE, MSH_POINT, (int)(yyvsp[-8].d), - (yyvsp[-6].v)[0], (yyvsp[-6].v)[1], (yyvsp[-6].v)[2], 0., 0., 0., 0., 0., 0., 0., + ExtrudeShape(TRANSLATE, MSH_POINT, (int)(yyvsp[(4) - (12)].d), + (yyvsp[(6) - (12)].v)[0], (yyvsp[(6) - (12)].v)[1], (yyvsp[(6) - (12)].v)[2], 0., 0., 0., 0., 0., 0., 0., &extr, (yyval.l)); - } -#line 9319 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 293: -#line 3795 "Gmsh.y" /* yacc.c:1646 */ +#line 3795 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; extr.mesh.ScaleLast = false; - } -#line 9329 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 294: -#line 3801 "Gmsh.y" /* yacc.c:1646 */ +#line 3801 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); - ExtrudeShape(TRANSLATE, MSH_SEGM_LINE, (int)(yyvsp[-8].d), - (yyvsp[-6].v)[0], (yyvsp[-6].v)[1], (yyvsp[-6].v)[2], 0., 0., 0., 0., 0., 0., 0., + ExtrudeShape(TRANSLATE, MSH_SEGM_LINE, (int)(yyvsp[(4) - (12)].d), + (yyvsp[(6) - (12)].v)[0], (yyvsp[(6) - (12)].v)[1], (yyvsp[(6) - (12)].v)[2], 0., 0., 0., 0., 0., 0., 0., &extr, (yyval.l)); - } -#line 9340 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 295: -#line 3808 "Gmsh.y" /* yacc.c:1646 */ +#line 3808 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; extr.mesh.ScaleLast = false; - } -#line 9350 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 296: -#line 3814 "Gmsh.y" /* yacc.c:1646 */ +#line 3814 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); - ExtrudeShape(TRANSLATE, MSH_SURF_PLAN, (int)(yyvsp[-8].d), - (yyvsp[-6].v)[0], (yyvsp[-6].v)[1], (yyvsp[-6].v)[2], 0., 0., 0., 0., 0., 0., 0., + ExtrudeShape(TRANSLATE, MSH_SURF_PLAN, (int)(yyvsp[(4) - (12)].d), + (yyvsp[(6) - (12)].v)[0], (yyvsp[(6) - (12)].v)[1], (yyvsp[(6) - (12)].v)[2], 0., 0., 0., 0., 0., 0., 0., &extr, (yyval.l)); - } -#line 9361 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 297: -#line 3821 "Gmsh.y" /* yacc.c:1646 */ +#line 3821 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; extr.mesh.ScaleLast = false; - } -#line 9371 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 298: -#line 3827 "Gmsh.y" /* yacc.c:1646 */ +#line 3827 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); - ExtrudeShape(ROTATE, MSH_POINT, (int)(yyvsp[-12].d), - 0., 0., 0., (yyvsp[-10].v)[0], (yyvsp[-10].v)[1], (yyvsp[-10].v)[2], (yyvsp[-8].v)[0], (yyvsp[-8].v)[1], (yyvsp[-8].v)[2], (yyvsp[-6].d), + ExtrudeShape(ROTATE, MSH_POINT, (int)(yyvsp[(4) - (16)].d), + 0., 0., 0., (yyvsp[(6) - (16)].v)[0], (yyvsp[(6) - (16)].v)[1], (yyvsp[(6) - (16)].v)[2], (yyvsp[(8) - (16)].v)[0], (yyvsp[(8) - (16)].v)[1], (yyvsp[(8) - (16)].v)[2], (yyvsp[(10) - (16)].d), &extr, (yyval.l)); - } -#line 9382 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 299: -#line 3834 "Gmsh.y" /* yacc.c:1646 */ +#line 3834 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; extr.mesh.ScaleLast = false; - } -#line 9392 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 300: -#line 3840 "Gmsh.y" /* yacc.c:1646 */ +#line 3840 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); - ExtrudeShape(ROTATE, MSH_SEGM_LINE, (int)(yyvsp[-12].d), - 0., 0., 0., (yyvsp[-10].v)[0], (yyvsp[-10].v)[1], (yyvsp[-10].v)[2], (yyvsp[-8].v)[0], (yyvsp[-8].v)[1], (yyvsp[-8].v)[2], (yyvsp[-6].d), + ExtrudeShape(ROTATE, MSH_SEGM_LINE, (int)(yyvsp[(4) - (16)].d), + 0., 0., 0., (yyvsp[(6) - (16)].v)[0], (yyvsp[(6) - (16)].v)[1], (yyvsp[(6) - (16)].v)[2], (yyvsp[(8) - (16)].v)[0], (yyvsp[(8) - (16)].v)[1], (yyvsp[(8) - (16)].v)[2], (yyvsp[(10) - (16)].d), &extr, (yyval.l)); - } -#line 9403 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 301: -#line 3847 "Gmsh.y" /* yacc.c:1646 */ +#line 3847 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; extr.mesh.ScaleLast = false; - } -#line 9413 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 302: -#line 3853 "Gmsh.y" /* yacc.c:1646 */ +#line 3853 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); - ExtrudeShape(ROTATE, MSH_SURF_PLAN, (int)(yyvsp[-12].d), - 0., 0., 0., (yyvsp[-10].v)[0], (yyvsp[-10].v)[1], (yyvsp[-10].v)[2], (yyvsp[-8].v)[0], (yyvsp[-8].v)[1], (yyvsp[-8].v)[2], (yyvsp[-6].d), + ExtrudeShape(ROTATE, MSH_SURF_PLAN, (int)(yyvsp[(4) - (16)].d), + 0., 0., 0., (yyvsp[(6) - (16)].v)[0], (yyvsp[(6) - (16)].v)[1], (yyvsp[(6) - (16)].v)[2], (yyvsp[(8) - (16)].v)[0], (yyvsp[(8) - (16)].v)[1], (yyvsp[(8) - (16)].v)[2], (yyvsp[(10) - (16)].d), &extr, (yyval.l)); - } -#line 9424 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 303: -#line 3860 "Gmsh.y" /* yacc.c:1646 */ +#line 3860 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; extr.mesh.ScaleLast = false; - } -#line 9434 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 304: -#line 3866 "Gmsh.y" /* yacc.c:1646 */ +#line 3866 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); - ExtrudeShape(TRANSLATE_ROTATE, MSH_POINT, (int)(yyvsp[-14].d), - (yyvsp[-12].v)[0], (yyvsp[-12].v)[1], (yyvsp[-12].v)[2], (yyvsp[-10].v)[0], (yyvsp[-10].v)[1], (yyvsp[-10].v)[2], (yyvsp[-8].v)[0], (yyvsp[-8].v)[1], (yyvsp[-8].v)[2], (yyvsp[-6].d), + ExtrudeShape(TRANSLATE_ROTATE, MSH_POINT, (int)(yyvsp[(4) - (18)].d), + (yyvsp[(6) - (18)].v)[0], (yyvsp[(6) - (18)].v)[1], (yyvsp[(6) - (18)].v)[2], (yyvsp[(8) - (18)].v)[0], (yyvsp[(8) - (18)].v)[1], (yyvsp[(8) - (18)].v)[2], (yyvsp[(10) - (18)].v)[0], (yyvsp[(10) - (18)].v)[1], (yyvsp[(10) - (18)].v)[2], (yyvsp[(12) - (18)].d), &extr, (yyval.l)); - } -#line 9445 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 305: -#line 3873 "Gmsh.y" /* yacc.c:1646 */ +#line 3873 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; extr.mesh.ScaleLast = false; - } -#line 9455 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 306: -#line 3879 "Gmsh.y" /* yacc.c:1646 */ +#line 3879 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); - ExtrudeShape(TRANSLATE_ROTATE, MSH_SEGM_LINE, (int)(yyvsp[-14].d), - (yyvsp[-12].v)[0], (yyvsp[-12].v)[1], (yyvsp[-12].v)[2], (yyvsp[-10].v)[0], (yyvsp[-10].v)[1], (yyvsp[-10].v)[2], (yyvsp[-8].v)[0], (yyvsp[-8].v)[1], (yyvsp[-8].v)[2], (yyvsp[-6].d), + ExtrudeShape(TRANSLATE_ROTATE, MSH_SEGM_LINE, (int)(yyvsp[(4) - (18)].d), + (yyvsp[(6) - (18)].v)[0], (yyvsp[(6) - (18)].v)[1], (yyvsp[(6) - (18)].v)[2], (yyvsp[(8) - (18)].v)[0], (yyvsp[(8) - (18)].v)[1], (yyvsp[(8) - (18)].v)[2], (yyvsp[(10) - (18)].v)[0], (yyvsp[(10) - (18)].v)[1], (yyvsp[(10) - (18)].v)[2], (yyvsp[(12) - (18)].d), &extr, (yyval.l)); - } -#line 9466 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 307: -#line 3886 "Gmsh.y" /* yacc.c:1646 */ +#line 3886 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; extr.mesh.ScaleLast = false; - } -#line 9476 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 308: -#line 3892 "Gmsh.y" /* yacc.c:1646 */ +#line 3892 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); - ExtrudeShape(TRANSLATE_ROTATE, MSH_SURF_PLAN, (int)(yyvsp[-14].d), - (yyvsp[-12].v)[0], (yyvsp[-12].v)[1], (yyvsp[-12].v)[2], (yyvsp[-10].v)[0], (yyvsp[-10].v)[1], (yyvsp[-10].v)[2], (yyvsp[-8].v)[0], (yyvsp[-8].v)[1], (yyvsp[-8].v)[2], (yyvsp[-6].d), + ExtrudeShape(TRANSLATE_ROTATE, MSH_SURF_PLAN, (int)(yyvsp[(4) - (18)].d), + (yyvsp[(6) - (18)].v)[0], (yyvsp[(6) - (18)].v)[1], (yyvsp[(6) - (18)].v)[2], (yyvsp[(8) - (18)].v)[0], (yyvsp[(8) - (18)].v)[1], (yyvsp[(8) - (18)].v)[2], (yyvsp[(10) - (18)].v)[0], (yyvsp[(10) - (18)].v)[1], (yyvsp[(10) - (18)].v)[2], (yyvsp[(12) - (18)].d), &extr, (yyval.l)); - } -#line 9487 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 309: -#line 3903 "Gmsh.y" /* yacc.c:1646 */ +#line 3903 "Gmsh.y" { - } -#line 9494 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 310: -#line 3906 "Gmsh.y" /* yacc.c:1646 */ +#line 3906 "Gmsh.y" { - } -#line 9501 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 311: -#line 3912 "Gmsh.y" /* yacc.c:1646 */ +#line 3912 "Gmsh.y" { - int n = (int)fabs((yyvsp[-2].d)); + int n = (int)fabs((yyvsp[(3) - (5)].d)); if(n){ // we accept n==0 to easily disable layers extr.mesh.ExtrudeMesh = true; extr.mesh.NbLayer = 1; extr.mesh.NbElmLayer.clear(); extr.mesh.hLayer.clear(); - extr.mesh.NbElmLayer.push_back((int)fabs((yyvsp[-2].d))); + extr.mesh.NbElmLayer.push_back((int)fabs((yyvsp[(3) - (5)].d))); extr.mesh.hLayer.push_back(1.); } - } -#line 9517 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 312: -#line 3924 "Gmsh.y" /* yacc.c:1646 */ +#line 3924 "Gmsh.y" { extr.mesh.ExtrudeMesh = true; - extr.mesh.NbLayer = List_Nbr((yyvsp[-4].l)); - if(List_Nbr((yyvsp[-4].l)) == List_Nbr((yyvsp[-2].l))){ + extr.mesh.NbLayer = List_Nbr((yyvsp[(3) - (7)].l)); + if(List_Nbr((yyvsp[(3) - (7)].l)) == List_Nbr((yyvsp[(5) - (7)].l))){ extr.mesh.NbElmLayer.clear(); extr.mesh.hLayer.clear(); - for(int i = 0; i < List_Nbr((yyvsp[-4].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(3) - (7)].l)); i++){ double d; - List_Read((yyvsp[-4].l), i, &d); + List_Read((yyvsp[(3) - (7)].l), i, &d); extr.mesh.NbElmLayer.push_back((d > 0) ? (int)d : 1); - List_Read((yyvsp[-2].l), i, &d); + List_Read((yyvsp[(5) - (7)].l), i, &d); extr.mesh.hLayer.push_back(d); } } else - yymsg(0, "Wrong layer definition {%d, %d}", List_Nbr((yyvsp[-4].l)), List_Nbr((yyvsp[-2].l))); - List_Delete((yyvsp[-4].l)); - List_Delete((yyvsp[-2].l)); - } -#line 9541 "Gmsh.tab.cpp" /* yacc.c:1646 */ + yymsg(0, "Wrong layer definition {%d, %d}", List_Nbr((yyvsp[(3) - (7)].l)), List_Nbr((yyvsp[(5) - (7)].l))); + List_Delete((yyvsp[(3) - (7)].l)); + List_Delete((yyvsp[(5) - (7)].l)); + ;} break; case 313: -#line 3944 "Gmsh.y" /* yacc.c:1646 */ +#line 3944 "Gmsh.y" { yymsg(0, "Explicit region numbers in layers are deprecated"); extr.mesh.ExtrudeMesh = true; - extr.mesh.NbLayer = List_Nbr((yyvsp[-6].l)); - if(List_Nbr((yyvsp[-6].l)) == List_Nbr((yyvsp[-4].l)) && List_Nbr((yyvsp[-6].l)) == List_Nbr((yyvsp[-2].l))){ + extr.mesh.NbLayer = List_Nbr((yyvsp[(3) - (9)].l)); + if(List_Nbr((yyvsp[(3) - (9)].l)) == List_Nbr((yyvsp[(5) - (9)].l)) && List_Nbr((yyvsp[(3) - (9)].l)) == List_Nbr((yyvsp[(7) - (9)].l))){ extr.mesh.NbElmLayer.clear(); extr.mesh.hLayer.clear(); - for(int i = 0; i < List_Nbr((yyvsp[-6].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(3) - (9)].l)); i++){ double d; - List_Read((yyvsp[-6].l), i, &d); + List_Read((yyvsp[(3) - (9)].l), i, &d); extr.mesh.NbElmLayer.push_back((d > 0) ? (int)d : 1); - List_Read((yyvsp[-2].l), i, &d); + List_Read((yyvsp[(7) - (9)].l), i, &d); extr.mesh.hLayer.push_back(d); } } else - yymsg(0, "Wrong layer definition {%d, %d, %d}", List_Nbr((yyvsp[-6].l)), - List_Nbr((yyvsp[-4].l)), List_Nbr((yyvsp[-2].l))); - List_Delete((yyvsp[-6].l)); - List_Delete((yyvsp[-4].l)); - List_Delete((yyvsp[-2].l)); - } -#line 9568 "Gmsh.tab.cpp" /* yacc.c:1646 */ + yymsg(0, "Wrong layer definition {%d, %d, %d}", List_Nbr((yyvsp[(3) - (9)].l)), + List_Nbr((yyvsp[(5) - (9)].l)), List_Nbr((yyvsp[(7) - (9)].l))); + List_Delete((yyvsp[(3) - (9)].l)); + List_Delete((yyvsp[(5) - (9)].l)); + List_Delete((yyvsp[(7) - (9)].l)); + ;} break; case 314: -#line 3968 "Gmsh.y" /* yacc.c:1646 */ +#line 3968 "Gmsh.y" { extr.mesh.ScaleLast = true; - } -#line 9576 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 315: -#line 3972 "Gmsh.y" /* yacc.c:1646 */ +#line 3972 "Gmsh.y" { extr.mesh.Recombine = true; - } -#line 9584 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 316: -#line 3976 "Gmsh.y" /* yacc.c:1646 */ +#line 3976 "Gmsh.y" { - extr.mesh.Recombine = (yyvsp[-1].d) ? true : false; - } -#line 9592 "Gmsh.tab.cpp" /* yacc.c:1646 */ + extr.mesh.Recombine = (yyvsp[(2) - (3)].d) ? true : false; + ;} break; case 317: -#line 3980 "Gmsh.y" /* yacc.c:1646 */ +#line 3980 "Gmsh.y" { yymsg(0, "Keyword 'QuadTriSngl' deprecated. Use 'QuadTriNoNewVerts' instead."); - } -#line 9600 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 318: -#line 3984 "Gmsh.y" /* yacc.c:1646 */ +#line 3984 "Gmsh.y" { yymsg(0, "Keyword 'QuadTriSngl' deprecated. Use 'QuadTriNoNewVerts' instead."); - } -#line 9608 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 319: -#line 3988 "Gmsh.y" /* yacc.c:1646 */ +#line 3988 "Gmsh.y" { yymsg(0, "Method 'QuadTriDbl' deprecated. Use 'QuadTriAddVerts' instead, " "which has no requirement for the number of extrusion layers and meshes " "with body-centered vertices."); - } -#line 9618 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 320: -#line 3994 "Gmsh.y" /* yacc.c:1646 */ +#line 3994 "Gmsh.y" { yymsg(0, "Method 'QuadTriDbl' deprecated. Use 'QuadTriAddVerts' instead, " "which has no requirement for the number of extrusion layers and meshes " "with body-centered vertices."); - } -#line 9628 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 321: -#line 4000 "Gmsh.y" /* yacc.c:1646 */ +#line 4000 "Gmsh.y" { extr.mesh.QuadToTri = QUADTRI_ADDVERTS_1; - } -#line 9636 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 322: -#line 4004 "Gmsh.y" /* yacc.c:1646 */ +#line 4004 "Gmsh.y" { extr.mesh.QuadToTri = QUADTRI_ADDVERTS_1_RECOMB; - } -#line 9644 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 323: -#line 4008 "Gmsh.y" /* yacc.c:1646 */ +#line 4008 "Gmsh.y" { extr.mesh.QuadToTri = QUADTRI_NOVERTS_1; - } -#line 9652 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 324: -#line 4012 "Gmsh.y" /* yacc.c:1646 */ +#line 4012 "Gmsh.y" { extr.mesh.QuadToTri = QUADTRI_NOVERTS_1_RECOMB; - } -#line 9660 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 325: -#line 4016 "Gmsh.y" /* yacc.c:1646 */ +#line 4016 "Gmsh.y" { - int num = (int)(yyvsp[-6].d); + int num = (int)(yyvsp[(3) - (9)].d); if(FindSurface(num)){ yymsg(0, "Surface %d already exists", num); } else{ Surface *s = Create_Surface(num, MSH_SURF_DISCRETE); Tree_Add(GModel::current()->getGEOInternals()->Surfaces, &s); - extr.mesh.Holes[num].first = (yyvsp[-1].d); + extr.mesh.Holes[num].first = (yyvsp[(8) - (9)].d); extr.mesh.Holes[num].second.clear(); - for(int i = 0; i < List_Nbr((yyvsp[-3].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(6) - (9)].l)); i++){ double d; - List_Read((yyvsp[-3].l), i, &d); + List_Read((yyvsp[(6) - (9)].l), i, &d); extr.mesh.Holes[num].second.push_back((int)d); } } - List_Delete((yyvsp[-3].l)); - } -#line 9683 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(6) - (9)].l)); + ;} break; case 326: -#line 4035 "Gmsh.y" /* yacc.c:1646 */ +#line 4035 "Gmsh.y" { - if(!strcmp((yyvsp[-4].c), "Index")) - extr.mesh.BoundaryLayerIndex = (yyvsp[-2].d); - else if(!strcmp((yyvsp[-4].c), "View")) - extr.mesh.ViewIndex = (yyvsp[-2].d); - Free((yyvsp[-4].c)); - } -#line 9695 "Gmsh.tab.cpp" /* yacc.c:1646 */ + if(!strcmp((yyvsp[(2) - (6)].c), "Index")) + extr.mesh.BoundaryLayerIndex = (yyvsp[(4) - (6)].d); + else if(!strcmp((yyvsp[(2) - (6)].c), "View")) + extr.mesh.ViewIndex = (yyvsp[(4) - (6)].d); + Free((yyvsp[(2) - (6)].c)); + ;} break; case 327: -#line 4047 "Gmsh.y" /* yacc.c:1646 */ +#line 4047 "Gmsh.y" { (yyval.v)[0] = (yyval.v)[1] = 1.; - } -#line 9703 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 328: -#line 4051 "Gmsh.y" /* yacc.c:1646 */ +#line 4051 "Gmsh.y" { - if(!strcmp((yyvsp[-1].c), "Progression") || !strcmp((yyvsp[-1].c), "Power")) + if(!strcmp((yyvsp[(2) - (3)].c), "Progression") || !strcmp((yyvsp[(2) - (3)].c), "Power")) (yyval.v)[0] = 1.; - else if(!strcmp((yyvsp[-1].c), "Bump")) + else if(!strcmp((yyvsp[(2) - (3)].c), "Bump")) (yyval.v)[0] = 2.; else{ yymsg(0, "Unknown transfinite mesh type"); (yyval.v)[0] = 1.; } - (yyval.v)[1] = (yyvsp[0].d); - Free((yyvsp[-1].c)); - } -#line 9720 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.v)[1] = (yyvsp[(3) - (3)].d); + Free((yyvsp[(2) - (3)].c)); + ;} break; case 329: -#line 4066 "Gmsh.y" /* yacc.c:1646 */ +#line 4066 "Gmsh.y" { (yyval.i) = -1; // left - } -#line 9728 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 330: -#line 4070 "Gmsh.y" /* yacc.c:1646 */ +#line 4070 "Gmsh.y" { - if(!strcmp((yyvsp[0].c), "Right")) + if(!strcmp((yyvsp[(1) - (1)].c), "Right")) (yyval.i) = 1; - else if(!strcmp((yyvsp[0].c), "Left")) + else if(!strcmp((yyvsp[(1) - (1)].c), "Left")) (yyval.i) = -1; - else if(!strcmp((yyvsp[0].c), "AlternateRight")) + else if(!strcmp((yyvsp[(1) - (1)].c), "AlternateRight")) (yyval.i) = 2; - else if(!strcmp((yyvsp[0].c), "AlternateLeft")) + else if(!strcmp((yyvsp[(1) - (1)].c), "AlternateLeft")) (yyval.i) = -2; else // "Alternate" -> "Alternate Right" (yyval.i) = 2; - Free((yyvsp[0].c)); - } -#line 9746 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (1)].c)); + ;} break; case 331: -#line 4086 "Gmsh.y" /* yacc.c:1646 */ +#line 4086 "Gmsh.y" { (yyval.l) = List_Create(1, 1, sizeof(double)); - } -#line 9754 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 332: -#line 4090 "Gmsh.y" /* yacc.c:1646 */ +#line 4090 "Gmsh.y" { - (yyval.l) = (yyvsp[0].l); - } -#line 9762 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.l) = (yyvsp[(2) - (2)].l); + ;} break; case 333: -#line 4095 "Gmsh.y" /* yacc.c:1646 */ +#line 4095 "Gmsh.y" { (yyval.i) = 45; - } -#line 9770 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 334: -#line 4099 "Gmsh.y" /* yacc.c:1646 */ +#line 4099 "Gmsh.y" { - (yyval.i) = (int)(yyvsp[0].d); - } -#line 9778 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.i) = (int)(yyvsp[(2) - (2)].d); + ;} break; case 335: -#line 4105 "Gmsh.y" /* yacc.c:1646 */ +#line 4105 "Gmsh.y" { (yyval.l) = List_Create(1, 1, sizeof(double)); - } -#line 9786 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 336: -#line 4109 "Gmsh.y" /* yacc.c:1646 */ +#line 4109 "Gmsh.y" { - (yyval.l) = (yyvsp[0].l); - } -#line 9794 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.l) = (yyvsp[(2) - (2)].l); + ;} break; case 337: -#line 4116 "Gmsh.y" /* yacc.c:1646 */ +#line 4116 "Gmsh.y" { - int type = (int)(yyvsp[-1].v)[0]; - double coef = fabs((yyvsp[-1].v)[1]); - if(!(yyvsp[-4].l)){ + int type = (int)(yyvsp[(6) - (7)].v)[0]; + double coef = fabs((yyvsp[(6) - (7)].v)[1]); + if(!(yyvsp[(3) - (7)].l)){ List_T *tmp = Tree2List(GModel::current()->getGEOInternals()->Curves); if(List_Nbr(tmp)){ for(int i = 0; i < List_Nbr(tmp); i++){ Curve *c; List_Read(tmp, i, &c); c->Method = MESH_TRANSFINITE; - c->nbPointsTransfinite = ((yyvsp[-2].d) > 2) ? (int)(yyvsp[-2].d) : 2; + c->nbPointsTransfinite = ((yyvsp[(5) - (7)].d) > 2) ? (int)(yyvsp[(5) - (7)].d) : 2; c->typeTransfinite = type; c->coeffTransfinite = coef; } @@ -9814,7 +10161,7 @@ yyreduce: for(GModel::eiter it = GModel::current()->firstEdge(); it != GModel::current()->lastEdge(); it++){ (*it)->meshAttributes.method = MESH_TRANSFINITE; - (*it)->meshAttributes.nbPointsTransfinite = ((yyvsp[-2].d) > 2) ? (int)(yyvsp[-2].d) : 2; + (*it)->meshAttributes.nbPointsTransfinite = ((yyvsp[(5) - (7)].d) > 2) ? (int)(yyvsp[(5) - (7)].d) : 2; (*it)->meshAttributes.typeTransfinite = type; (*it)->meshAttributes.coeffTransfinite = coef; } @@ -9822,15 +10169,15 @@ yyreduce: List_Delete(tmp); } else{ - for(int i = 0; i < List_Nbr((yyvsp[-4].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(3) - (7)].l)); i++){ double d; - List_Read((yyvsp[-4].l), i, &d); + List_Read((yyvsp[(3) - (7)].l), i, &d); int j = (int)fabs(d); for(int sig = -1; sig <= 1; sig += 2){ Curve *c = FindCurve(sig * j); if(c){ c->Method = MESH_TRANSFINITE; - c->nbPointsTransfinite = ((yyvsp[-2].d) > 2) ? (int)(yyvsp[-2].d) : 2; + c->nbPointsTransfinite = ((yyvsp[(5) - (7)].d) > 2) ? (int)(yyvsp[(5) - (7)].d) : 2; c->typeTransfinite = type * gmsh_sign(d); c->coeffTransfinite = coef; } @@ -9838,7 +10185,7 @@ yyreduce: GEdge *ge = GModel::current()->getEdgeByTag(sig * j); if(ge){ ge->meshAttributes.method = MESH_TRANSFINITE; - ge->meshAttributes.nbPointsTransfinite = ((yyvsp[-2].d) > 2) ? (int)(yyvsp[-2].d) : 2; + ge->meshAttributes.nbPointsTransfinite = ((yyvsp[(5) - (7)].d) > 2) ? (int)(yyvsp[(5) - (7)].d) : 2; ge->meshAttributes.typeTransfinite = type * gmsh_sign(d); ge->meshAttributes.coeffTransfinite = coef; } @@ -9847,28 +10194,27 @@ yyreduce: } } } - List_Delete((yyvsp[-4].l)); + List_Delete((yyvsp[(3) - (7)].l)); } - } -#line 9854 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 338: -#line 4172 "Gmsh.y" /* yacc.c:1646 */ +#line 4172 "Gmsh.y" { - int k = List_Nbr((yyvsp[-2].l)); + int k = List_Nbr((yyvsp[(4) - (6)].l)); if(k != 0 && k != 3 && k != 4){ yymsg(0, "Wrong definition of Transfinite Surface: 0, 3 or 4 points needed"); } else{ - if(!(yyvsp[-3].l)){ + if(!(yyvsp[(3) - (6)].l)){ List_T *tmp = Tree2List(GModel::current()->getGEOInternals()->Surfaces); if(List_Nbr(tmp)){ for(int i = 0; i < List_Nbr(tmp); i++){ Surface *s; List_Read(tmp, i, &s); s->Method = MESH_TRANSFINITE; - s->Recombine_Dir = (yyvsp[-1].i); + s->Recombine_Dir = (yyvsp[(5) - (6)].i); List_Reset(s->TrsfPoints); } } @@ -9876,23 +10222,23 @@ yyreduce: for(GModel::fiter it = GModel::current()->firstFace(); it != GModel::current()->lastFace(); it++){ (*it)->meshAttributes.method = MESH_TRANSFINITE; - (*it)->meshAttributes.transfiniteArrangement = (yyvsp[-1].i); + (*it)->meshAttributes.transfiniteArrangement = (yyvsp[(5) - (6)].i); } } List_Delete(tmp); } else{ - for(int i = 0; i < List_Nbr((yyvsp[-3].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(3) - (6)].l)); i++){ double d; - List_Read((yyvsp[-3].l), i, &d); + List_Read((yyvsp[(3) - (6)].l), i, &d); Surface *s = FindSurface((int)d); if(s){ s->Method = MESH_TRANSFINITE; - s->Recombine_Dir = (yyvsp[-1].i); + s->Recombine_Dir = (yyvsp[(5) - (6)].i); List_Reset(s->TrsfPoints); for(int j = 0; j < k; j++){ double p; - List_Read((yyvsp[-2].l), j, &p); + List_Read((yyvsp[(4) - (6)].l), j, &p); Vertex *v = FindPoint((int)fabs(p)); if(v) List_Add(s->TrsfPoints, &v); @@ -9904,10 +10250,10 @@ yyreduce: GFace *gf = GModel::current()->getFaceByTag((int)d); if(gf){ gf->meshAttributes.method = MESH_TRANSFINITE; - gf->meshAttributes.transfiniteArrangement = (yyvsp[-1].i); + gf->meshAttributes.transfiniteArrangement = (yyvsp[(5) - (6)].i); for(int j = 0; j < k; j++){ double p; - List_Read((yyvsp[-2].l), j, &p); + List_Read((yyvsp[(4) - (6)].l), j, &p); GVertex *gv = GModel::current()->getVertexByTag((int)fabs(p)); if(gv) gf->meshAttributes.corners.push_back(gv); @@ -9919,33 +10265,31 @@ yyreduce: yymsg(0, "Unknown surface %d", (int)d); } } - List_Delete((yyvsp[-3].l)); + List_Delete((yyvsp[(3) - (6)].l)); } } - List_Delete((yyvsp[-2].l)); - } -#line 9928 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(4) - (6)].l)); + ;} break; case 339: -#line 4242 "Gmsh.y" /* yacc.c:1646 */ +#line 4242 "Gmsh.y" { yymsg(1, "Elliptic Surface is deprecated: use Transfinite instead (with smoothing)"); - List_Delete((yyvsp[-1].l)); - } -#line 9937 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(7) - (8)].l)); + ;} break; case 340: -#line 4247 "Gmsh.y" /* yacc.c:1646 */ +#line 4247 "Gmsh.y" { - int k = List_Nbr((yyvsp[-1].l)); + int k = List_Nbr((yyvsp[(4) - (5)].l)); if(k != 0 && k != 6 && k != 8){ yymsg(0, "Wrong definition of Transfinite Volume: " "%d points instead of 6 or 8", k); } else{ - if(!(yyvsp[-2].l)){ + if(!(yyvsp[(3) - (5)].l)){ List_T *tmp = Tree2List(GModel::current()->getGEOInternals()->Volumes); if(List_Nbr(tmp)){ for(int i = 0; i < List_Nbr(tmp); i++){ @@ -9964,16 +10308,16 @@ yyreduce: List_Delete(tmp); } else{ - for(int i = 0; i < List_Nbr((yyvsp[-2].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(3) - (5)].l)); i++){ double d; - List_Read((yyvsp[-2].l), i, &d); + List_Read((yyvsp[(3) - (5)].l), i, &d); Volume *v = FindVolume((int)d); if(v){ v->Method = MESH_TRANSFINITE; List_Reset(v->TrsfPoints); for(int i = 0; i < k; i++){ double p; - List_Read((yyvsp[-1].l), i, &p); + List_Read((yyvsp[(4) - (5)].l), i, &p); Vertex *vert = FindPoint((int)fabs(p)); if(vert) List_Add(v->TrsfPoints, &vert); @@ -9987,7 +10331,7 @@ yyreduce: gr->meshAttributes.method = MESH_TRANSFINITE; for(int i = 0; i < k; i++){ double p; - List_Read((yyvsp[-1].l), i, &p); + List_Read((yyvsp[(4) - (5)].l), i, &p); GVertex *gv = GModel::current()->getVertexByTag((int)fabs(p)); if(gv) gr->meshAttributes.corners.push_back(gv); @@ -9999,18 +10343,17 @@ yyreduce: yymsg(0, "Unknown volume %d", (int)d); } } - List_Delete((yyvsp[-2].l)); + List_Delete((yyvsp[(3) - (5)].l)); } } - List_Delete((yyvsp[-1].l)); - } -#line 10008 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(4) - (5)].l)); + ;} break; case 341: -#line 4314 "Gmsh.y" /* yacc.c:1646 */ +#line 4314 "Gmsh.y" { - if(!(yyvsp[-1].l)){ + if(!(yyvsp[(2) - (3)].l)){ List_T *tmp = Tree2List(GModel::current()->getGEOInternals()->Volumes); if(List_Nbr(tmp)){ for(int i = 0; i < List_Nbr(tmp); i++){ @@ -10027,9 +10370,9 @@ yyreduce: List_Delete(tmp); } else{ - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(2) - (3)].l)); i++){ double d; - List_Read((yyvsp[-1].l), i, &d); + List_Read((yyvsp[(2) - (3)].l), i, &d); Volume *v = FindVolume((int)d); if(v) v->QuadTri = TRANSFINITE_QUADTRI_1; @@ -10041,75 +10384,72 @@ yyreduce: yymsg(1, "Unknown volume %d", (int)d); } } - List_Delete((yyvsp[-1].l)); + List_Delete((yyvsp[(2) - (3)].l)); } - } -#line 10048 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 342: -#line 4350 "Gmsh.y" /* yacc.c:1646 */ +#line 4350 "Gmsh.y" { - for(int i = 0; i < List_Nbr((yyvsp[-4].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(4) - (8)].l)); i++){ double d; - List_Read((yyvsp[-4].l), i, &d); - CTX::instance()->mesh.algo2d_per_face[(int)d] = (int)(yyvsp[-1].d); + List_Read((yyvsp[(4) - (8)].l), i, &d); + CTX::instance()->mesh.algo2d_per_face[(int)d] = (int)(yyvsp[(7) - (8)].d); } - } -#line 10060 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 343: -#line 4358 "Gmsh.y" /* yacc.c:1646 */ +#line 4358 "Gmsh.y" { - if(!(yyvsp[-2].l)){ + if(!(yyvsp[(3) - (5)].l)){ List_T *tmp = Tree2List(GModel::current()->getGEOInternals()->Surfaces); if(List_Nbr(tmp)){ for(int i = 0; i < List_Nbr(tmp); i++){ Surface *s; List_Read(tmp, i, &s); s->Recombine = 1; - s->RecombineAngle = (yyvsp[-1].i); + s->RecombineAngle = (yyvsp[(4) - (5)].i); } } else{ for(GModel::fiter it = GModel::current()->firstFace(); it != GModel::current()->lastFace(); it++){ (*it)->meshAttributes.recombine = 1; - (*it)->meshAttributes.recombineAngle = (yyvsp[-1].i); + (*it)->meshAttributes.recombineAngle = (yyvsp[(4) - (5)].i); } } List_Delete(tmp); } else{ - for(int i = 0; i < List_Nbr((yyvsp[-2].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(3) - (5)].l)); i++){ double d; - List_Read((yyvsp[-2].l), i, &d); + List_Read((yyvsp[(3) - (5)].l), i, &d); Surface *s = FindSurface((int)d); if(s){ s->Recombine = 1; - s->RecombineAngle = (yyvsp[-1].i); + s->RecombineAngle = (yyvsp[(4) - (5)].i); } else{ GFace *gf = GModel::current()->getFaceByTag((int)d); if(gf){ gf->meshAttributes.recombine = 1; - gf->meshAttributes.recombineAngle = (yyvsp[-1].i); + gf->meshAttributes.recombineAngle = (yyvsp[(4) - (5)].i); } else yymsg(1, "Unknown surface %d", (int)d); } } - List_Delete((yyvsp[-2].l)); + List_Delete((yyvsp[(3) - (5)].l)); } - } -#line 10107 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 344: -#line 4401 "Gmsh.y" /* yacc.c:1646 */ +#line 4401 "Gmsh.y" { - if(!(yyvsp[-1].l)){ + if(!(yyvsp[(3) - (4)].l)){ List_T *tmp = Tree2List(GModel::current()->getGEOInternals()->Volumes); if(List_Nbr(tmp)){ for(int i = 0; i < List_Nbr(tmp); i++){ @@ -10127,9 +10467,9 @@ yyreduce: List_Delete(tmp); } else{ - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++){ double d; - List_Read((yyvsp[-1].l), i, &d); + List_Read((yyvsp[(3) - (4)].l), i, &d); Volume *v = FindVolume((int)d); if(v){ v->Recombine3D = 1; @@ -10143,255 +10483,246 @@ yyreduce: yymsg(1, "Unknown volume %d", (int)d); } } - List_Delete((yyvsp[-1].l)); + List_Delete((yyvsp[(3) - (4)].l)); } - } -#line 10150 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 345: -#line 4440 "Gmsh.y" /* yacc.c:1646 */ +#line 4440 "Gmsh.y" { - for(int i = 0; i < List_Nbr((yyvsp[-3].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(3) - (6)].l)); i++){ double d; - List_Read((yyvsp[-3].l), i, &d); + List_Read((yyvsp[(3) - (6)].l), i, &d); int j = (int)d; Surface *s = FindSurface(j); if(s){ - s->TransfiniteSmoothing = (int)(yyvsp[-1].d); + s->TransfiniteSmoothing = (int)(yyvsp[(5) - (6)].d); } else{ GFace *gf = GModel::current()->getFaceByTag(j); if(gf) - gf->meshAttributes.transfiniteSmoothing = (int)(yyvsp[-1].d); + gf->meshAttributes.transfiniteSmoothing = (int)(yyvsp[(5) - (6)].d); else - yymsg(1, "Unknown surface %d", (int)(yyvsp[-1].d)); + yymsg(1, "Unknown surface %d", (int)(yyvsp[(5) - (6)].d)); } } - List_Delete((yyvsp[-3].l)); - } -#line 10174 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(3) - (6)].l)); + ;} break; case 346: -#line 4461 "Gmsh.y" /* yacc.c:1646 */ +#line 4461 "Gmsh.y" { - if (List_Nbr((yyvsp[-7].l)) != List_Nbr((yyvsp[-3].l))){ + if (List_Nbr((yyvsp[(4) - (11)].l)) != List_Nbr((yyvsp[(8) - (11)].l))){ yymsg(0, "Number of master lines (%d) different from number of " - "slaves (%d) ", List_Nbr((yyvsp[-3].l)), List_Nbr((yyvsp[-7].l))); + "slaves (%d) ", List_Nbr((yyvsp[(8) - (11)].l)), List_Nbr((yyvsp[(4) - (11)].l))); } else{ std::vector<double> transfo; - if(List_Nbr((yyvsp[-1].l)) != 0) { - if (List_Nbr((yyvsp[-1].l)) < 12){ + if(List_Nbr((yyvsp[(10) - (11)].l)) != 0) { + if (List_Nbr((yyvsp[(10) - (11)].l)) < 12){ yymsg(0, "Affine transformation requires at least 12 entries (we have %d)", - List_Nbr((yyvsp[-1].l))); + List_Nbr((yyvsp[(10) - (11)].l))); } else { - transfo.resize(List_Nbr((yyvsp[-1].l))); - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++) - List_Read((yyvsp[-1].l), i, &transfo[i]); + transfo.resize(List_Nbr((yyvsp[(10) - (11)].l))); + for(int i = 0; i < List_Nbr((yyvsp[(10) - (11)].l)); i++) + List_Read((yyvsp[(10) - (11)].l), i, &transfo[i]); } } - for(int i = 0; i < List_Nbr((yyvsp[-7].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(4) - (11)].l)); i++){ double d_master, d_slave; - List_Read((yyvsp[-3].l), i, &d_master); - List_Read((yyvsp[-7].l), i, &d_slave); + List_Read((yyvsp[(8) - (11)].l), i, &d_master); + List_Read((yyvsp[(4) - (11)].l), i, &d_slave); int j_master = (int)d_master; int j_slave = (int)d_slave; addPeriodicEdge(j_slave, j_master, transfo); } } - List_Delete((yyvsp[-7].l)); - List_Delete((yyvsp[-3].l)); - } -#line 10209 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(4) - (11)].l)); + List_Delete((yyvsp[(8) - (11)].l)); + ;} break; case 347: -#line 4493 "Gmsh.y" /* yacc.c:1646 */ +#line 4493 "Gmsh.y" { - if (List_Nbr((yyvsp[-7].l)) != List_Nbr((yyvsp[-3].l))){ + if (List_Nbr((yyvsp[(4) - (11)].l)) != List_Nbr((yyvsp[(8) - (11)].l))){ yymsg(0, "Number of master faces (%d) different from number of " - "slaves (%d) ", List_Nbr((yyvsp[-3].l)), List_Nbr((yyvsp[-7].l))); + "slaves (%d) ", List_Nbr((yyvsp[(8) - (11)].l)), List_Nbr((yyvsp[(4) - (11)].l))); } else{ - if (List_Nbr((yyvsp[-1].l)) < 12){ + if (List_Nbr((yyvsp[(10) - (11)].l)) < 12){ // FIXME full automatic case here if List_Nbr($10) == 0) yymsg(0, "Affine transformation requires at least 12 entries"); } else { std::vector<double> transfo(16,0); - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++) - List_Read((yyvsp[-1].l), i, &transfo[i]); - for(int i = 0; i < List_Nbr((yyvsp[-7].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(10) - (11)].l)); i++) + List_Read((yyvsp[(10) - (11)].l), i, &transfo[i]); + for(int i = 0; i < List_Nbr((yyvsp[(4) - (11)].l)); i++){ double d_master, d_slave; - List_Read((yyvsp[-3].l), i, &d_master); - List_Read((yyvsp[-7].l), i, &d_slave); + List_Read((yyvsp[(8) - (11)].l), i, &d_master); + List_Read((yyvsp[(4) - (11)].l), i, &d_slave); addPeriodicFace(d_slave, d_master, transfo); } } } - List_Delete((yyvsp[-7].l)); - List_Delete((yyvsp[-3].l)); - } -#line 10239 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(4) - (11)].l)); + List_Delete((yyvsp[(8) - (11)].l)); + ;} break; case 348: -#line 4520 "Gmsh.y" /* yacc.c:1646 */ +#line 4520 "Gmsh.y" { - if (List_Nbr((yyvsp[-14].l)) != List_Nbr((yyvsp[-10].l))){ + if (List_Nbr((yyvsp[(4) - (18)].l)) != List_Nbr((yyvsp[(8) - (18)].l))){ yymsg(0, "Number of master edges (%d) different from number of " - "slaves (%d) ", List_Nbr((yyvsp[-10].l)), List_Nbr((yyvsp[-14].l))); + "slaves (%d) ", List_Nbr((yyvsp[(8) - (18)].l)), List_Nbr((yyvsp[(4) - (18)].l))); } else{ - SPoint3 axis((yyvsp[-6].v)[0],(yyvsp[-6].v)[1],(yyvsp[-6].v)[2]); - SPoint3 origin((yyvsp[-4].v)[0],(yyvsp[-4].v)[1],(yyvsp[-4].v)[2]); - double angle((yyvsp[-2].d)); + SPoint3 axis((yyvsp[(12) - (18)].v)[0],(yyvsp[(12) - (18)].v)[1],(yyvsp[(12) - (18)].v)[2]); + SPoint3 origin((yyvsp[(14) - (18)].v)[0],(yyvsp[(14) - (18)].v)[1],(yyvsp[(14) - (18)].v)[2]); + double angle((yyvsp[(16) - (18)].d)); SPoint3 translation(0,0,0); std::vector<double> transfo; computeAffineTransformation(origin,axis,angle,translation,transfo); - for(int i = 0; i < List_Nbr((yyvsp[-14].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(4) - (18)].l)); i++){ double d_master, d_slave; - List_Read((yyvsp[-10].l), i, &d_master); - List_Read((yyvsp[-14].l), i, &d_slave); + List_Read((yyvsp[(8) - (18)].l), i, &d_master); + List_Read((yyvsp[(4) - (18)].l), i, &d_slave); addPeriodicEdge(d_slave,d_master,transfo); } } - List_Delete((yyvsp[-14].l)); - List_Delete((yyvsp[-10].l)); - } -#line 10268 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(4) - (18)].l)); + List_Delete((yyvsp[(8) - (18)].l)); + ;} break; case 349: -#line 4546 "Gmsh.y" /* yacc.c:1646 */ +#line 4546 "Gmsh.y" { - if (List_Nbr((yyvsp[-14].l)) != List_Nbr((yyvsp[-10].l))){ + if (List_Nbr((yyvsp[(4) - (18)].l)) != List_Nbr((yyvsp[(8) - (18)].l))){ yymsg(0, "Number of master faces (%d) different from number of " - "slaves (%d) ", List_Nbr((yyvsp[-10].l)), List_Nbr((yyvsp[-14].l))); + "slaves (%d) ", List_Nbr((yyvsp[(8) - (18)].l)), List_Nbr((yyvsp[(4) - (18)].l))); } else{ - SPoint3 origin((yyvsp[-4].v)[0],(yyvsp[-4].v)[1],(yyvsp[-4].v)[2]); - SPoint3 axis((yyvsp[-6].v)[0],(yyvsp[-6].v)[1],(yyvsp[-6].v)[2]); - double angle((yyvsp[-2].d)); + SPoint3 origin((yyvsp[(14) - (18)].v)[0],(yyvsp[(14) - (18)].v)[1],(yyvsp[(14) - (18)].v)[2]); + SPoint3 axis((yyvsp[(12) - (18)].v)[0],(yyvsp[(12) - (18)].v)[1],(yyvsp[(12) - (18)].v)[2]); + double angle((yyvsp[(16) - (18)].d)); SPoint3 translation(0,0,0); std::vector<double> transfo; computeAffineTransformation(origin,axis,angle,translation,transfo); - for(int i = 0; i < List_Nbr((yyvsp[-14].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(4) - (18)].l)); i++){ double d_master, d_slave; - List_Read((yyvsp[-10].l), i, &d_master); - List_Read((yyvsp[-14].l), i, &d_slave); + List_Read((yyvsp[(8) - (18)].l), i, &d_master); + List_Read((yyvsp[(4) - (18)].l), i, &d_slave); addPeriodicFace(d_slave, d_master, transfo); } } - List_Delete((yyvsp[-14].l)); - List_Delete((yyvsp[-10].l)); - } -#line 10297 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(4) - (18)].l)); + List_Delete((yyvsp[(8) - (18)].l)); + ;} break; case 350: -#line 4572 "Gmsh.y" /* yacc.c:1646 */ +#line 4572 "Gmsh.y" { - if (List_Nbr((yyvsp[-8].l)) != List_Nbr((yyvsp[-4].l))){ + if (List_Nbr((yyvsp[(4) - (12)].l)) != List_Nbr((yyvsp[(8) - (12)].l))){ yymsg(0, "Number of master edges (%d) different from number of " - "slaves (%d) ", List_Nbr((yyvsp[-4].l)), List_Nbr((yyvsp[-8].l))); + "slaves (%d) ", List_Nbr((yyvsp[(8) - (12)].l)), List_Nbr((yyvsp[(4) - (12)].l))); } else{ SPoint3 origin(0,0,0); SPoint3 axis(0,0,0); double angle(0); - SPoint3 translation((yyvsp[-1].v)[0],(yyvsp[-1].v)[1],(yyvsp[-1].v)[2]); + SPoint3 translation((yyvsp[(11) - (12)].v)[0],(yyvsp[(11) - (12)].v)[1],(yyvsp[(11) - (12)].v)[2]); std::vector<double> transfo; computeAffineTransformation(origin,axis,angle,translation,transfo); - for(int i = 0; i < List_Nbr((yyvsp[-8].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(4) - (12)].l)); i++){ double d_master, d_slave; - List_Read((yyvsp[-4].l), i, &d_master); - List_Read((yyvsp[-8].l), i, &d_slave); + List_Read((yyvsp[(8) - (12)].l), i, &d_master); + List_Read((yyvsp[(4) - (12)].l), i, &d_slave); addPeriodicEdge(d_slave,d_master,transfo); } } - List_Delete((yyvsp[-8].l)); - List_Delete((yyvsp[-4].l)); - } -#line 10326 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(4) - (12)].l)); + List_Delete((yyvsp[(8) - (12)].l)); + ;} break; case 351: -#line 4598 "Gmsh.y" /* yacc.c:1646 */ +#line 4598 "Gmsh.y" { - if (List_Nbr((yyvsp[-8].l)) != List_Nbr((yyvsp[-4].l))){ + if (List_Nbr((yyvsp[(4) - (12)].l)) != List_Nbr((yyvsp[(8) - (12)].l))){ yymsg(0, "Number of master faces (%d) different from number of " - "slaves (%d) ", List_Nbr((yyvsp[-4].l)), List_Nbr((yyvsp[-8].l))); + "slaves (%d) ", List_Nbr((yyvsp[(8) - (12)].l)), List_Nbr((yyvsp[(4) - (12)].l))); } else{ SPoint3 origin(0,0,0); SPoint3 axis(0,0,0); double angle(0); - SPoint3 translation((yyvsp[-1].v)[0],(yyvsp[-1].v)[1],(yyvsp[-1].v)[2]); + SPoint3 translation((yyvsp[(11) - (12)].v)[0],(yyvsp[(11) - (12)].v)[1],(yyvsp[(11) - (12)].v)[2]); std::vector<double> transfo; computeAffineTransformation(origin,axis,angle,translation,transfo); - for(int i = 0; i < List_Nbr((yyvsp[-8].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(4) - (12)].l)); i++){ double d_master, d_slave; - List_Read((yyvsp[-4].l), i, &d_master); - List_Read((yyvsp[-8].l), i, &d_slave); + List_Read((yyvsp[(8) - (12)].l), i, &d_master); + List_Read((yyvsp[(4) - (12)].l), i, &d_slave); addPeriodicFace(d_slave, d_master, transfo); } } - List_Delete((yyvsp[-8].l)); - List_Delete((yyvsp[-4].l)); - } -#line 10355 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(4) - (12)].l)); + List_Delete((yyvsp[(8) - (12)].l)); + ;} break; case 352: -#line 4624 "Gmsh.y" /* yacc.c:1646 */ +#line 4624 "Gmsh.y" { - if (List_Nbr((yyvsp[-7].l)) != List_Nbr((yyvsp[-2].l))){ + if (List_Nbr((yyvsp[(5) - (12)].l)) != List_Nbr((yyvsp[(10) - (12)].l))){ yymsg(0, "Number of master surface edges (%d) different from number of " - "slave (%d) edges", List_Nbr((yyvsp[-2].l)), List_Nbr((yyvsp[-7].l))); + "slave (%d) edges", List_Nbr((yyvsp[(10) - (12)].l)), List_Nbr((yyvsp[(5) - (12)].l))); } else{ - int j_master = (int)(yyvsp[-4].d); - int j_slave = (int)(yyvsp[-9].d); + int j_master = (int)(yyvsp[(8) - (12)].d); + int j_slave = (int)(yyvsp[(3) - (12)].d); std::map<int,int> edgeCounterParts; - for (int i = 0; i < List_Nbr((yyvsp[-7].l)); i++){ + for (int i = 0; i < List_Nbr((yyvsp[(5) - (12)].l)); i++){ double ds,dm; - List_Read((yyvsp[-7].l),i,&ds); - List_Read((yyvsp[-2].l),i,&dm); + List_Read((yyvsp[(5) - (12)].l),i,&ds); + List_Read((yyvsp[(10) - (12)].l),i,&dm); edgeCounterParts[(int) ds] = (int) dm; } addPeriodicFace(j_slave, j_master, edgeCounterParts); } - List_Delete((yyvsp[-7].l)); - List_Delete((yyvsp[-2].l)); - } -#line 10380 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(5) - (12)].l)); + List_Delete((yyvsp[(10) - (12)].l)); + ;} break; case 353: -#line 4645 "Gmsh.y" /* yacc.c:1646 */ +#line 4645 "Gmsh.y" { - Surface *s = FindSurface((int)(yyvsp[-2].d)); + Surface *s = FindSurface((int)(yyvsp[(8) - (10)].d)); if(s){ - setSurfaceEmbeddedPoints(s, (yyvsp[-7].l)); + setSurfaceEmbeddedPoints(s, (yyvsp[(3) - (10)].l)); } else{ - GFace *gf = GModel::current()->getFaceByTag((int)(yyvsp[-2].d)); + GFace *gf = GModel::current()->getFaceByTag((int)(yyvsp[(8) - (10)].d)); if(gf){ - for(int i = 0; i < List_Nbr((yyvsp[-7].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(3) - (10)].l)); i++){ double d; - List_Read((yyvsp[-7].l), i, &d); + List_Read((yyvsp[(3) - (10)].l), i, &d); int iPoint = (int)d; GVertex *gv = GModel::current()->getVertexByTag(iPoint); if(!gv){ // sync model in case the embedded point is a .geo point @@ -10405,25 +10736,24 @@ yyreduce: } } else - yymsg(0, "Unknown surface %d", (int)(yyvsp[-2].d)); + yymsg(0, "Unknown surface %d", (int)(yyvsp[(8) - (10)].d)); } - } -#line 10412 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 354: -#line 4673 "Gmsh.y" /* yacc.c:1646 */ +#line 4673 "Gmsh.y" { - Surface *s = FindSurface((int)(yyvsp[-2].d)); + Surface *s = FindSurface((int)(yyvsp[(8) - (10)].d)); if(s){ - setSurfaceEmbeddedCurves(s, (yyvsp[-7].l)); + setSurfaceEmbeddedCurves(s, (yyvsp[(3) - (10)].l)); } else{ - GFace *gf = GModel::current()->getFaceByTag((int)(yyvsp[-2].d)); + GFace *gf = GModel::current()->getFaceByTag((int)(yyvsp[(8) - (10)].d)); if(gf){ - for(int i = 0; i < List_Nbr((yyvsp[-7].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(3) - (10)].l)); i++){ double d; - List_Read((yyvsp[-7].l), i, &d); + List_Read((yyvsp[(3) - (10)].l), i, &d); int iCurve = (int)d; GEdge *ge = GModel::current()->getEdgeByTag(iCurve); if(!ge){ // sync model in case the embedded line is a .geo line @@ -10437,41 +10767,63 @@ yyreduce: } } else - yymsg(0, "Unknown surface %d", (int)(yyvsp[-2].d)); + yymsg(0, "Unknown surface %d", (int)(yyvsp[(8) - (10)].d)); } - } -#line 10444 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 355: -#line 4701 "Gmsh.y" /* yacc.c:1646 */ +#line 4701 "Gmsh.y" { Msg::Error("Point in Volume not implemented yet"); - } -#line 10452 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 356: -#line 4705 "Gmsh.y" /* yacc.c:1646 */ +#line 4705 "Gmsh.y" { - Msg::Error("Line in Volume not implemented yet"); - } -#line 10460 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Volume *v = FindVolume((int)(yyvsp[(8) - (10)].d)); + if(v){ + setVolumeEmbeddedCurves(v, (yyvsp[(3) - (10)].l)); + } + else{ + GRegion *gr = GModel::current()->getRegionByTag((int)(yyvsp[(8) - (10)].d)); + if(gr){ + for(int i = 0; i < List_Nbr((yyvsp[(3) - (10)].l)); i++){ + double d; + List_Read((yyvsp[(3) - (10)].l), i, &d); + int iLine = (int)d; + GEdge *ge = GModel::current()->getEdgeByTag(iLine); + if(!ge){ // sync model in case the embedded face is a .geo face + GModel::current()->importGEOInternals(); + ge = GModel::current()->getEdgeByTag(iLine); + } + if(ge) + gr->addEmbeddedEdge(ge); + else + yymsg(0, "Unknown Curve %d", iLine); + } + } + else + yymsg(0, "Unknown volume %d", (int)(yyvsp[(8) - (10)].d)); + } +// Msg::Error("Line in Volume not implemented yet"); + ;} break; case 357: -#line 4709 "Gmsh.y" /* yacc.c:1646 */ +#line 4734 "Gmsh.y" { - Volume *v = FindVolume((int)(yyvsp[-2].d)); + Volume *v = FindVolume((int)(yyvsp[(8) - (10)].d)); if(v){ - setVolumeEmbeddedSurfaces(v, (yyvsp[-7].l)); + setVolumeEmbeddedSurfaces(v, (yyvsp[(3) - (10)].l)); } else{ - GRegion *gr = GModel::current()->getRegionByTag((int)(yyvsp[-2].d)); + GRegion *gr = GModel::current()->getRegionByTag((int)(yyvsp[(8) - (10)].d)); if(gr){ - for(int i = 0; i < List_Nbr((yyvsp[-7].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(3) - (10)].l)); i++){ double d; - List_Read((yyvsp[-7].l), i, &d); + List_Read((yyvsp[(3) - (10)].l), i, &d); int iSurface = (int)d; GFace *gf = GModel::current()->getFaceByTag(iSurface); if(!gf){ // sync model in case the embedded face is a .geo face @@ -10485,16 +10837,15 @@ yyreduce: } } else - yymsg(0, "Unknown volume %d", (int)(yyvsp[-2].d)); + yymsg(0, "Unknown volume %d", (int)(yyvsp[(8) - (10)].d)); } - } -#line 10492 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 358: -#line 4737 "Gmsh.y" /* yacc.c:1646 */ +#line 4762 "Gmsh.y" { - if(!(yyvsp[-1].l)){ + if(!(yyvsp[(3) - (4)].l)){ List_T *tmp = Tree2List(GModel::current()->getGEOInternals()->Surfaces); if(List_Nbr(tmp)){ for(int i = 0; i < List_Nbr(tmp); i++){ @@ -10512,9 +10863,9 @@ yyreduce: List_Delete(tmp); } else{ - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++){ double d; - List_Read((yyvsp[-1].l), i, &d); + List_Read((yyvsp[(3) - (4)].l), i, &d); Surface *s = FindSurface((int)d); if(s){ s->ReverseMesh = 1; @@ -10528,16 +10879,15 @@ yyreduce: yymsg(1, "Unknown surface %d", (int)d); } } - List_Delete((yyvsp[-1].l)); + List_Delete((yyvsp[(3) - (4)].l)); } - } -#line 10535 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 359: -#line 4776 "Gmsh.y" /* yacc.c:1646 */ +#line 4801 "Gmsh.y" { - if(!(yyvsp[-1].l)){ + if(!(yyvsp[(3) - (4)].l)){ List_T *tmp = Tree2List(GModel::current()->getGEOInternals()->Curves); if(List_Nbr(tmp)){ for(int i = 0; i < List_Nbr(tmp); i++){ @@ -10555,9 +10905,9 @@ yyreduce: List_Delete(tmp); } else{ - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++){ double d; - List_Read((yyvsp[-1].l), i, &d); + List_Read((yyvsp[(3) - (4)].l), i, &d); Curve *c = FindCurve((int)d); if(c){ c->ReverseMesh = 1; @@ -10571,24 +10921,23 @@ yyreduce: yymsg(1, "Unknown line %d", (int)d); } } - List_Delete((yyvsp[-1].l)); + List_Delete((yyvsp[(3) - (4)].l)); } - } -#line 10578 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 360: -#line 4815 "Gmsh.y" /* yacc.c:1646 */ +#line 4840 "Gmsh.y" { - if(!(yyvsp[-1].l)){ + if(!(yyvsp[(3) - (4)].l)){ for(GModel::viter it = GModel::current()->firstVertex(); it != GModel::current()->lastVertex(); it++) (*it)->relocateMeshVertices(); } else{ - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++){ double d; - List_Read((yyvsp[-1].l), i, &d); + List_Read((yyvsp[(3) - (4)].l), i, &d); GVertex *gv = GModel::current()->getVertexByTag((int)d); if(gv){ gv->relocateMeshVertices(); @@ -10596,24 +10945,23 @@ yyreduce: else yymsg(1, "Unknown point %d", (int)d); } - List_Delete((yyvsp[-1].l)); + List_Delete((yyvsp[(3) - (4)].l)); } - } -#line 10603 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 361: -#line 4836 "Gmsh.y" /* yacc.c:1646 */ +#line 4861 "Gmsh.y" { - if(!(yyvsp[-1].l)){ + if(!(yyvsp[(3) - (4)].l)){ for(GModel::eiter it = GModel::current()->firstEdge(); it != GModel::current()->lastEdge(); it++) (*it)->relocateMeshVertices(); } else{ - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++){ double d; - List_Read((yyvsp[-1].l), i, &d); + List_Read((yyvsp[(3) - (4)].l), i, &d); GEdge *ge = GModel::current()->getEdgeByTag((int)d); if(ge){ ge->relocateMeshVertices(); @@ -10621,24 +10969,23 @@ yyreduce: else yymsg(1, "Unknown line %d", (int)d); } - List_Delete((yyvsp[-1].l)); + List_Delete((yyvsp[(3) - (4)].l)); } - } -#line 10628 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 362: -#line 4857 "Gmsh.y" /* yacc.c:1646 */ +#line 4882 "Gmsh.y" { - if(!(yyvsp[-1].l)){ + if(!(yyvsp[(3) - (4)].l)){ for(GModel::fiter it = GModel::current()->firstFace(); it != GModel::current()->lastFace(); it++) (*it)->relocateMeshVertices(); } else{ - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++){ double d; - List_Read((yyvsp[-1].l), i, &d); + List_Read((yyvsp[(3) - (4)].l), i, &d); GFace *gf = GModel::current()->getFaceByTag((int)d); if(gf){ gf->relocateMeshVertices(); @@ -10646,47 +10993,44 @@ yyreduce: else yymsg(1, "Unknown surface %d", (int)d); } - List_Delete((yyvsp[-1].l)); + List_Delete((yyvsp[(3) - (4)].l)); } - } -#line 10653 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 363: -#line 4884 "Gmsh.y" /* yacc.c:1646 */ +#line 4909 "Gmsh.y" { ReplaceAllDuplicates(); - } -#line 10661 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 364: -#line 4888 "Gmsh.y" /* yacc.c:1646 */ +#line 4913 "Gmsh.y" { - if(!strcmp((yyvsp[-1].c), "Geometry")) + if(!strcmp((yyvsp[(2) - (3)].c), "Geometry")) ReplaceAllDuplicates(); - else if(!strcmp((yyvsp[-1].c), "Mesh")) + else if(!strcmp((yyvsp[(2) - (3)].c), "Mesh")) GModel::current()->removeDuplicateMeshVertices(CTX::instance()->geom.tolerance); else yymsg(0, "Unknown coherence command"); - Free((yyvsp[-1].c)); - } -#line 10675 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(2) - (3)].c)); + ;} break; case 365: -#line 4898 "Gmsh.y" /* yacc.c:1646 */ +#line 4923 "Gmsh.y" { - if(List_Nbr((yyvsp[-2].l)) >= 2){ + if(List_Nbr((yyvsp[(4) - (6)].l)) >= 2){ double d; - List_Read((yyvsp[-2].l), 0, &d); + List_Read((yyvsp[(4) - (6)].l), 0, &d); Vertex *target = FindPoint((int)d); if(!target) yymsg(0, "Could not find Point %d", (int)d); else{ double x = target->Pos.X, y = target->Pos.Y, z = target->Pos.Z; - for(int i = 1; i < List_Nbr((yyvsp[-2].l)); i++){ - List_Read((yyvsp[-2].l), i, &d); + for(int i = 1; i < List_Nbr((yyvsp[(4) - (6)].l)); i++){ + List_Read((yyvsp[(4) - (6)].l), i, &d); Vertex *source = FindPoint((int)d); if(!source) yymsg(0, "Could not find Point %d", (int)d); if(target && source){ @@ -10703,819 +11047,733 @@ yyreduce: else yymsg(0, "Need at least two points to merge"); ReplaceAllDuplicates(); - List_Delete((yyvsp[-2].l)); - } -#line 10709 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(4) - (6)].l)); + ;} break; case 366: -#line 4932 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.c) = (char*)"Homology"; } -#line 10715 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 4957 "Gmsh.y" + { (yyval.c) = (char*)"Homology"; ;} break; case 367: -#line 4933 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.c) = (char*)"Cohomology"; } -#line 10721 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 4958 "Gmsh.y" + { (yyval.c) = (char*)"Cohomology"; ;} break; case 368: -#line 4934 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.c) = (char*)"Betti"; } -#line 10727 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 4959 "Gmsh.y" + { (yyval.c) = (char*)"Betti"; ;} break; case 369: -#line 4939 "Gmsh.y" /* yacc.c:1646 */ +#line 4964 "Gmsh.y" { std::vector<int> domain, subdomain, dim; for(int i = 0; i < 4; i++) dim.push_back(i); - GModel::current()->addHomologyRequest((yyvsp[-1].c), domain, subdomain, dim); - } -#line 10737 "Gmsh.tab.cpp" /* yacc.c:1646 */ + GModel::current()->addHomologyRequest((yyvsp[(1) - (2)].c), domain, subdomain, dim); + ;} break; case 370: -#line 4945 "Gmsh.y" /* yacc.c:1646 */ +#line 4970 "Gmsh.y" { std::vector<int> domain, subdomain, dim; - for(int i = 0; i < List_Nbr((yyvsp[-2].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(3) - (5)].l)); i++){ double d; - List_Read((yyvsp[-2].l), i, &d); + List_Read((yyvsp[(3) - (5)].l), i, &d); domain.push_back((int)d); } for(int i = 0; i < 4; i++) dim.push_back(i); - GModel::current()->addHomologyRequest((yyvsp[-4].c), domain, subdomain, dim); - List_Delete((yyvsp[-2].l)); - } -#line 10753 "Gmsh.tab.cpp" /* yacc.c:1646 */ + GModel::current()->addHomologyRequest((yyvsp[(1) - (5)].c), domain, subdomain, dim); + List_Delete((yyvsp[(3) - (5)].l)); + ;} break; case 371: -#line 4957 "Gmsh.y" /* yacc.c:1646 */ +#line 4982 "Gmsh.y" { std::vector<int> domain, subdomain, dim; - for(int i = 0; i < List_Nbr((yyvsp[-4].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(3) - (7)].l)); i++){ double d; - List_Read((yyvsp[-4].l), i, &d); + List_Read((yyvsp[(3) - (7)].l), i, &d); domain.push_back((int)d); } - for(int i = 0; i < List_Nbr((yyvsp[-2].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(5) - (7)].l)); i++){ double d; - List_Read((yyvsp[-2].l), i, &d); + List_Read((yyvsp[(5) - (7)].l), i, &d); subdomain.push_back((int)d); } for(int i = 0; i < 4; i++) dim.push_back(i); - GModel::current()->addHomologyRequest((yyvsp[-6].c), domain, subdomain, dim); - List_Delete((yyvsp[-4].l)); - List_Delete((yyvsp[-2].l)); - } -#line 10775 "Gmsh.tab.cpp" /* yacc.c:1646 */ + GModel::current()->addHomologyRequest((yyvsp[(1) - (7)].c), domain, subdomain, dim); + List_Delete((yyvsp[(3) - (7)].l)); + List_Delete((yyvsp[(5) - (7)].l)); + ;} break; case 372: -#line 4975 "Gmsh.y" /* yacc.c:1646 */ +#line 5000 "Gmsh.y" { std::vector<int> domain, subdomain, dim; - for(int i = 0; i < List_Nbr((yyvsp[-4].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(6) - (10)].l)); i++){ double d; - List_Read((yyvsp[-4].l), i, &d); + List_Read((yyvsp[(6) - (10)].l), i, &d); domain.push_back((int)d); } - for(int i = 0; i < List_Nbr((yyvsp[-2].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(8) - (10)].l)); i++){ double d; - List_Read((yyvsp[-2].l), i, &d); + List_Read((yyvsp[(8) - (10)].l), i, &d); subdomain.push_back((int)d); } - for(int i = 0; i < List_Nbr((yyvsp[-7].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(3) - (10)].l)); i++){ double d; - List_Read((yyvsp[-7].l), i, &d); + List_Read((yyvsp[(3) - (10)].l), i, &d); dim.push_back((int)d); } - GModel::current()->addHomologyRequest((yyvsp[-9].c), domain, subdomain, dim); - List_Delete((yyvsp[-4].l)); - List_Delete((yyvsp[-2].l)); - List_Delete((yyvsp[-7].l)); - } -#line 10802 "Gmsh.tab.cpp" /* yacc.c:1646 */ + GModel::current()->addHomologyRequest((yyvsp[(1) - (10)].c), domain, subdomain, dim); + List_Delete((yyvsp[(6) - (10)].l)); + List_Delete((yyvsp[(8) - (10)].l)); + List_Delete((yyvsp[(3) - (10)].l)); + ;} break; case 373: -#line 5002 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = (yyvsp[0].d); } -#line 10808 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5027 "Gmsh.y" + { (yyval.d) = (yyvsp[(1) - (1)].d); ;} break; case 374: -#line 5003 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = (yyvsp[-1].d); } -#line 10814 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5028 "Gmsh.y" + { (yyval.d) = (yyvsp[(2) - (3)].d); ;} break; case 375: -#line 5004 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = -(yyvsp[0].d); } -#line 10820 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5029 "Gmsh.y" + { (yyval.d) = -(yyvsp[(2) - (2)].d); ;} break; case 376: -#line 5005 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = (yyvsp[0].d); } -#line 10826 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5030 "Gmsh.y" + { (yyval.d) = (yyvsp[(2) - (2)].d); ;} break; case 377: -#line 5006 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = !(yyvsp[0].d); } -#line 10832 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5031 "Gmsh.y" + { (yyval.d) = !(yyvsp[(2) - (2)].d); ;} break; case 378: -#line 5007 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = (yyvsp[-2].d) - (yyvsp[0].d); } -#line 10838 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5032 "Gmsh.y" + { (yyval.d) = (yyvsp[(1) - (3)].d) - (yyvsp[(3) - (3)].d); ;} break; case 379: -#line 5008 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = (yyvsp[-2].d) + (yyvsp[0].d); } -#line 10844 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5033 "Gmsh.y" + { (yyval.d) = (yyvsp[(1) - (3)].d) + (yyvsp[(3) - (3)].d); ;} break; case 380: -#line 5009 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = (yyvsp[-2].d) * (yyvsp[0].d); } -#line 10850 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5034 "Gmsh.y" + { (yyval.d) = (yyvsp[(1) - (3)].d) * (yyvsp[(3) - (3)].d); ;} break; case 381: -#line 5011 "Gmsh.y" /* yacc.c:1646 */ +#line 5036 "Gmsh.y" { - if(!(yyvsp[0].d)) - yymsg(0, "Division by zero in '%g / %g'", (yyvsp[-2].d), (yyvsp[0].d)); + if(!(yyvsp[(3) - (3)].d)) + yymsg(0, "Division by zero in '%g / %g'", (yyvsp[(1) - (3)].d), (yyvsp[(3) - (3)].d)); else - (yyval.d) = (yyvsp[-2].d) / (yyvsp[0].d); - } -#line 10861 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.d) = (yyvsp[(1) - (3)].d) / (yyvsp[(3) - (3)].d); + ;} break; case 382: -#line 5017 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = (int)(yyvsp[-2].d) % (int)(yyvsp[0].d); } -#line 10867 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5042 "Gmsh.y" + { (yyval.d) = (int)(yyvsp[(1) - (3)].d) % (int)(yyvsp[(3) - (3)].d); ;} break; case 383: -#line 5018 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = pow((yyvsp[-2].d), (yyvsp[0].d)); } -#line 10873 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5043 "Gmsh.y" + { (yyval.d) = pow((yyvsp[(1) - (3)].d), (yyvsp[(3) - (3)].d)); ;} break; case 384: -#line 5019 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = (yyvsp[-2].d) < (yyvsp[0].d); } -#line 10879 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5044 "Gmsh.y" + { (yyval.d) = (yyvsp[(1) - (3)].d) < (yyvsp[(3) - (3)].d); ;} break; case 385: -#line 5020 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = (yyvsp[-2].d) > (yyvsp[0].d); } -#line 10885 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5045 "Gmsh.y" + { (yyval.d) = (yyvsp[(1) - (3)].d) > (yyvsp[(3) - (3)].d); ;} break; case 386: -#line 5021 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = (yyvsp[-2].d) <= (yyvsp[0].d); } -#line 10891 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5046 "Gmsh.y" + { (yyval.d) = (yyvsp[(1) - (3)].d) <= (yyvsp[(3) - (3)].d); ;} break; case 387: -#line 5022 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = (yyvsp[-2].d) >= (yyvsp[0].d); } -#line 10897 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5047 "Gmsh.y" + { (yyval.d) = (yyvsp[(1) - (3)].d) >= (yyvsp[(3) - (3)].d); ;} break; case 388: -#line 5023 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = (yyvsp[-2].d) == (yyvsp[0].d); } -#line 10903 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5048 "Gmsh.y" + { (yyval.d) = (yyvsp[(1) - (3)].d) == (yyvsp[(3) - (3)].d); ;} break; case 389: -#line 5024 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = (yyvsp[-2].d) != (yyvsp[0].d); } -#line 10909 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5049 "Gmsh.y" + { (yyval.d) = (yyvsp[(1) - (3)].d) != (yyvsp[(3) - (3)].d); ;} break; case 390: -#line 5025 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = (yyvsp[-2].d) && (yyvsp[0].d); } -#line 10915 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5050 "Gmsh.y" + { (yyval.d) = (yyvsp[(1) - (3)].d) && (yyvsp[(3) - (3)].d); ;} break; case 391: -#line 5026 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = (yyvsp[-2].d) || (yyvsp[0].d); } -#line 10921 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5051 "Gmsh.y" + { (yyval.d) = (yyvsp[(1) - (3)].d) || (yyvsp[(3) - (3)].d); ;} break; case 392: -#line 5027 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = (yyvsp[-4].d) ? (yyvsp[-2].d) : (yyvsp[0].d); } -#line 10927 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5052 "Gmsh.y" + { (yyval.d) = (yyvsp[(1) - (5)].d) ? (yyvsp[(3) - (5)].d) : (yyvsp[(5) - (5)].d); ;} break; case 393: -#line 5028 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = exp((yyvsp[-1].d)); } -#line 10933 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5053 "Gmsh.y" + { (yyval.d) = exp((yyvsp[(3) - (4)].d)); ;} break; case 394: -#line 5029 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = log((yyvsp[-1].d)); } -#line 10939 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5054 "Gmsh.y" + { (yyval.d) = log((yyvsp[(3) - (4)].d)); ;} break; case 395: -#line 5030 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = log10((yyvsp[-1].d)); } -#line 10945 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5055 "Gmsh.y" + { (yyval.d) = log10((yyvsp[(3) - (4)].d)); ;} break; case 396: -#line 5031 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = sqrt((yyvsp[-1].d)); } -#line 10951 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5056 "Gmsh.y" + { (yyval.d) = sqrt((yyvsp[(3) - (4)].d)); ;} break; case 397: -#line 5032 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = sin((yyvsp[-1].d)); } -#line 10957 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5057 "Gmsh.y" + { (yyval.d) = sin((yyvsp[(3) - (4)].d)); ;} break; case 398: -#line 5033 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = asin((yyvsp[-1].d)); } -#line 10963 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5058 "Gmsh.y" + { (yyval.d) = asin((yyvsp[(3) - (4)].d)); ;} break; case 399: -#line 5034 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = cos((yyvsp[-1].d)); } -#line 10969 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5059 "Gmsh.y" + { (yyval.d) = cos((yyvsp[(3) - (4)].d)); ;} break; case 400: -#line 5035 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = acos((yyvsp[-1].d)); } -#line 10975 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5060 "Gmsh.y" + { (yyval.d) = acos((yyvsp[(3) - (4)].d)); ;} break; case 401: -#line 5036 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = tan((yyvsp[-1].d)); } -#line 10981 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5061 "Gmsh.y" + { (yyval.d) = tan((yyvsp[(3) - (4)].d)); ;} break; case 402: -#line 5037 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = atan((yyvsp[-1].d)); } -#line 10987 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5062 "Gmsh.y" + { (yyval.d) = atan((yyvsp[(3) - (4)].d)); ;} break; case 403: -#line 5038 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = atan2((yyvsp[-3].d), (yyvsp[-1].d));} -#line 10993 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5063 "Gmsh.y" + { (yyval.d) = atan2((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d));;} break; case 404: -#line 5039 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = sinh((yyvsp[-1].d)); } -#line 10999 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5064 "Gmsh.y" + { (yyval.d) = sinh((yyvsp[(3) - (4)].d)); ;} break; case 405: -#line 5040 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = cosh((yyvsp[-1].d)); } -#line 11005 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5065 "Gmsh.y" + { (yyval.d) = cosh((yyvsp[(3) - (4)].d)); ;} break; case 406: -#line 5041 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = tanh((yyvsp[-1].d)); } -#line 11011 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5066 "Gmsh.y" + { (yyval.d) = tanh((yyvsp[(3) - (4)].d)); ;} break; case 407: -#line 5042 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = fabs((yyvsp[-1].d)); } -#line 11017 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5067 "Gmsh.y" + { (yyval.d) = fabs((yyvsp[(3) - (4)].d)); ;} break; case 408: -#line 5043 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = floor((yyvsp[-1].d)); } -#line 11023 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5068 "Gmsh.y" + { (yyval.d) = floor((yyvsp[(3) - (4)].d)); ;} break; case 409: -#line 5044 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = ceil((yyvsp[-1].d)); } -#line 11029 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5069 "Gmsh.y" + { (yyval.d) = ceil((yyvsp[(3) - (4)].d)); ;} break; case 410: -#line 5045 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = floor((yyvsp[-1].d) + 0.5); } -#line 11035 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5070 "Gmsh.y" + { (yyval.d) = floor((yyvsp[(3) - (4)].d) + 0.5); ;} break; case 411: -#line 5046 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = fmod((yyvsp[-3].d), (yyvsp[-1].d)); } -#line 11041 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5071 "Gmsh.y" + { (yyval.d) = fmod((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d)); ;} break; case 412: -#line 5047 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = fmod((yyvsp[-3].d), (yyvsp[-1].d)); } -#line 11047 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5072 "Gmsh.y" + { (yyval.d) = fmod((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d)); ;} break; case 413: -#line 5048 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = sqrt((yyvsp[-3].d) * (yyvsp[-3].d) + (yyvsp[-1].d) * (yyvsp[-1].d)); } -#line 11053 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5073 "Gmsh.y" + { (yyval.d) = sqrt((yyvsp[(3) - (6)].d) * (yyvsp[(3) - (6)].d) + (yyvsp[(5) - (6)].d) * (yyvsp[(5) - (6)].d)); ;} break; case 414: -#line 5049 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = (yyvsp[-1].d) * (double)rand() / (double)RAND_MAX; } -#line 11059 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5074 "Gmsh.y" + { (yyval.d) = (yyvsp[(3) - (4)].d) * (double)rand() / (double)RAND_MAX; ;} break; case 415: -#line 5058 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = (yyvsp[0].d); } -#line 11065 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5083 "Gmsh.y" + { (yyval.d) = (yyvsp[(1) - (1)].d); ;} break; case 416: -#line 5059 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = 3.141592653589793; } -#line 11071 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5084 "Gmsh.y" + { (yyval.d) = 3.141592653589793; ;} break; case 417: -#line 5060 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = (double)ImbricatedTest; } -#line 11077 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5085 "Gmsh.y" + { (yyval.d) = (double)ImbricatedTest; ;} break; case 418: -#line 5061 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = Msg::GetCommRank(); } -#line 11083 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5086 "Gmsh.y" + { (yyval.d) = Msg::GetCommRank(); ;} break; case 419: -#line 5062 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = Msg::GetCommSize(); } -#line 11089 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5087 "Gmsh.y" + { (yyval.d) = Msg::GetCommSize(); ;} break; case 420: -#line 5063 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = GetGmshMajorVersion(); } -#line 11095 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5088 "Gmsh.y" + { (yyval.d) = GetGmshMajorVersion(); ;} break; case 421: -#line 5064 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = GetGmshMinorVersion(); } -#line 11101 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5089 "Gmsh.y" + { (yyval.d) = GetGmshMinorVersion(); ;} break; case 422: -#line 5065 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = GetGmshPatchVersion(); } -#line 11107 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5090 "Gmsh.y" + { (yyval.d) = GetGmshPatchVersion(); ;} break; case 423: -#line 5066 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = Cpu(); } -#line 11113 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5091 "Gmsh.y" + { (yyval.d) = Cpu(); ;} break; case 424: -#line 5067 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = GetMemoryUsage()/1024./1024.; } -#line 11119 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5092 "Gmsh.y" + { (yyval.d) = GetMemoryUsage()/1024./1024.; ;} break; case 425: -#line 5068 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.d) = TotalRam(); } -#line 11125 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5093 "Gmsh.y" + { (yyval.d) = TotalRam(); ;} break; case 426: -#line 5073 "Gmsh.y" /* yacc.c:1646 */ - { floatOptions.clear(); charOptions.clear(); } -#line 11131 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 5098 "Gmsh.y" + { floatOptions.clear(); charOptions.clear(); ;} break; case 427: -#line 5075 "Gmsh.y" /* yacc.c:1646 */ +#line 5100 "Gmsh.y" { - std::vector<double> val(1, (yyvsp[-3].d)); + std::vector<double> val(1, (yyvsp[(3) - (6)].d)); Msg::ExchangeOnelabParameter("", val, floatOptions, charOptions); (yyval.d) = val[0]; - } -#line 11141 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 428: -#line 5081 "Gmsh.y" /* yacc.c:1646 */ +#line 5106 "Gmsh.y" { - (yyval.d) = Msg::GetOnelabNumber((yyvsp[-1].c)); - Free((yyvsp[-1].c)); - } -#line 11150 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.d) = Msg::GetOnelabNumber((yyvsp[(3) - (4)].c)); + Free((yyvsp[(3) - (4)].c)); + ;} break; case 429: -#line 5086 "Gmsh.y" /* yacc.c:1646 */ +#line 5111 "Gmsh.y" { - (yyval.d) = Msg::GetOnelabNumber((yyvsp[-3].c), (yyvsp[-1].d)); - Free((yyvsp[-3].c)); - } -#line 11159 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.d) = Msg::GetOnelabNumber((yyvsp[(3) - (6)].c), (yyvsp[(5) - (6)].d)); + Free((yyvsp[(3) - (6)].c)); + ;} break; case 430: -#line 5091 "Gmsh.y" /* yacc.c:1646 */ +#line 5116 "Gmsh.y" { - if(!gmsh_yysymbols.count((yyvsp[0].c))){ - yymsg(0, "Unknown variable '%s'", (yyvsp[0].c)); + if(!gmsh_yysymbols.count((yyvsp[(1) - (1)].c))){ + yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (1)].c)); (yyval.d) = 0.; } else{ - gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[0].c)]); + gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(1) - (1)].c)]); if(s.value.empty()){ - yymsg(0, "Uninitialized variable '%s'", (yyvsp[0].c)); + yymsg(0, "Uninitialized variable '%s'", (yyvsp[(1) - (1)].c)); (yyval.d) = 0.; } else (yyval.d) = s.value[0]; } - Free((yyvsp[0].c)); - } -#line 11180 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (1)].c)); + ;} break; case 431: -#line 5108 "Gmsh.y" /* yacc.c:1646 */ +#line 5133 "Gmsh.y" { - int index = (int)(yyvsp[-1].d); - if(!gmsh_yysymbols.count((yyvsp[-3].c))){ - yymsg(0, "Unknown variable '%s'", (yyvsp[-3].c)); + int index = (int)(yyvsp[(3) - (4)].d); + if(!gmsh_yysymbols.count((yyvsp[(1) - (4)].c))){ + yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (4)].c)); (yyval.d) = 0.; } else{ - gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[-3].c)]); + gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(1) - (4)].c)]); if((int)s.value.size() < index + 1){ - yymsg(0, "Uninitialized variable '%s[%d]'", (yyvsp[-3].c), index); + yymsg(0, "Uninitialized variable '%s[%d]'", (yyvsp[(1) - (4)].c), index); (yyval.d) = 0.; } else (yyval.d) = s.value[index]; } - Free((yyvsp[-3].c)); - } -#line 11202 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (4)].c)); + ;} break; case 432: -#line 5126 "Gmsh.y" /* yacc.c:1646 */ +#line 5151 "Gmsh.y" { - int index = (int)(yyvsp[-1].d); - if(!gmsh_yysymbols.count((yyvsp[-3].c))){ - yymsg(0, "Unknown variable '%s'", (yyvsp[-3].c)); + int index = (int)(yyvsp[(3) - (4)].d); + if(!gmsh_yysymbols.count((yyvsp[(1) - (4)].c))){ + yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (4)].c)); (yyval.d) = 0.; } else{ - gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[-3].c)]); + gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(1) - (4)].c)]); if((int)s.value.size() < index + 1){ - yymsg(0, "Uninitialized variable '%s[%d]'", (yyvsp[-3].c), index); + yymsg(0, "Uninitialized variable '%s[%d]'", (yyvsp[(1) - (4)].c), index); (yyval.d) = 0.; } else (yyval.d) = s.value[index]; } - Free((yyvsp[-3].c)); - } -#line 11224 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (4)].c)); + ;} break; case 433: -#line 5144 "Gmsh.y" /* yacc.c:1646 */ +#line 5169 "Gmsh.y" { - int index = (int)(yyvsp[-1].d); - if(!gmsh_yysymbols.count((yyvsp[-3].c))){ - yymsg(0, "Unknown variable '%s'", (yyvsp[-3].c)); + int index = (int)(yyvsp[(3) - (4)].d); + if(!gmsh_yysymbols.count((yyvsp[(1) - (4)].c))){ + yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (4)].c)); (yyval.d) = 0.; } else{ - gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[-3].c)]); + gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(1) - (4)].c)]); if((int)s.value.size() < index + 1){ - yymsg(0, "Uninitialized variable '%s[%d]'", (yyvsp[-3].c), index); + yymsg(0, "Uninitialized variable '%s[%d]'", (yyvsp[(1) - (4)].c), index); (yyval.d) = 0.; } else (yyval.d) = s.value[index]; } - Free((yyvsp[-3].c)); - } -#line 11246 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (4)].c)); + ;} break; case 434: -#line 5162 "Gmsh.y" /* yacc.c:1646 */ +#line 5187 "Gmsh.y" { - int index = (int)(yyvsp[-1].d); - if(!gmsh_yysymbols.count((yyvsp[-3].c))){ - yymsg(0, "Unknown variable '%s'", (yyvsp[-3].c)); + int index = (int)(yyvsp[(3) - (4)].d); + if(!gmsh_yysymbols.count((yyvsp[(1) - (4)].c))){ + yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (4)].c)); (yyval.d) = 0.; } else{ - gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[-3].c)]); + gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(1) - (4)].c)]); if((int)s.value.size() < index + 1){ - yymsg(0, "Uninitialized variable '%s[%d]'", (yyvsp[-3].c), index); + yymsg(0, "Uninitialized variable '%s[%d]'", (yyvsp[(1) - (4)].c), index); (yyval.d) = 0.; } else (yyval.d) = s.value[index]; } - Free((yyvsp[-3].c)); - } -#line 11268 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (4)].c)); + ;} break; case 435: -#line 5180 "Gmsh.y" /* yacc.c:1646 */ +#line 5205 "Gmsh.y" { - (yyval.d) = gmsh_yysymbols.count((yyvsp[-1].c)); - Free((yyvsp[-1].c)); - } -#line 11277 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.d) = gmsh_yysymbols.count((yyvsp[(3) - (4)].c)); + Free((yyvsp[(3) - (4)].c)); + ;} break; case 436: -#line 5185 "Gmsh.y" /* yacc.c:1646 */ +#line 5210 "Gmsh.y" { - std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[-1].c)); + std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[(3) - (4)].c)); (yyval.d) = !StatFile(tmp); - Free((yyvsp[-1].c)); - } -#line 11287 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(3) - (4)].c)); + ;} break; case 437: -#line 5191 "Gmsh.y" /* yacc.c:1646 */ +#line 5216 "Gmsh.y" { - if(gmsh_yysymbols.count((yyvsp[-2].c))){ - gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[-2].c)]); + if(gmsh_yysymbols.count((yyvsp[(2) - (4)].c))){ + gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(2) - (4)].c)]); (yyval.d) = s.value.size(); } - else if(gmsh_yystringsymbols.count((yyvsp[-2].c))){ - (yyval.d) = gmsh_yystringsymbols[(yyvsp[-2].c)].size(); + else if(gmsh_yystringsymbols.count((yyvsp[(2) - (4)].c))){ + (yyval.d) = gmsh_yystringsymbols[(yyvsp[(2) - (4)].c)].size(); } else{ - yymsg(0, "Unknown variable '%s'", (yyvsp[-2].c)); + yymsg(0, "Unknown variable '%s'", (yyvsp[(2) - (4)].c)); (yyval.d) = 0.; } - Free((yyvsp[-2].c)); - } -#line 11306 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(2) - (4)].c)); + ;} break; case 438: -#line 5206 "Gmsh.y" /* yacc.c:1646 */ +#line 5231 "Gmsh.y" { - if(!gmsh_yysymbols.count((yyvsp[-1].c))){ - yymsg(0, "Unknown variable '%s'", (yyvsp[-1].c)); + if(!gmsh_yysymbols.count((yyvsp[(1) - (2)].c))){ + yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (2)].c)); (yyval.d) = 0.; } else{ - gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[-1].c)]); + gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(1) - (2)].c)]); if(s.value.empty()){ - yymsg(0, "Uninitialized variable '%s'", (yyvsp[-1].c)); + yymsg(0, "Uninitialized variable '%s'", (yyvsp[(1) - (2)].c)); (yyval.d) = 0.; } else - (yyval.d) = (s.value[0] += (yyvsp[0].i)); + (yyval.d) = (s.value[0] += (yyvsp[(2) - (2)].i)); } - Free((yyvsp[-1].c)); - } -#line 11327 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (2)].c)); + ;} break; case 439: -#line 5223 "Gmsh.y" /* yacc.c:1646 */ +#line 5248 "Gmsh.y" { - int index = (int)(yyvsp[-2].d); - if(!gmsh_yysymbols.count((yyvsp[-4].c))){ - yymsg(0, "Unknown variable '%s'", (yyvsp[-4].c)); + int index = (int)(yyvsp[(3) - (5)].d); + if(!gmsh_yysymbols.count((yyvsp[(1) - (5)].c))){ + yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (5)].c)); (yyval.d) = 0.; } else{ - gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[-4].c)]); + gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(1) - (5)].c)]); if((int)s.value.size() < index + 1){ - yymsg(0, "Uninitialized variable '%s[%d]'", (yyvsp[-4].c), index); + yymsg(0, "Uninitialized variable '%s[%d]'", (yyvsp[(1) - (5)].c), index); (yyval.d) = 0.; } else - (yyval.d) = (s.value[index] += (yyvsp[0].i)); + (yyval.d) = (s.value[index] += (yyvsp[(5) - (5)].i)); } - Free((yyvsp[-4].c)); - } -#line 11349 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (5)].c)); + ;} break; case 440: -#line 5241 "Gmsh.y" /* yacc.c:1646 */ +#line 5266 "Gmsh.y" { - int index = (int)(yyvsp[-2].d); - if(!gmsh_yysymbols.count((yyvsp[-4].c))){ - yymsg(0, "Unknown variable '%s'", (yyvsp[-4].c)); + int index = (int)(yyvsp[(3) - (5)].d); + if(!gmsh_yysymbols.count((yyvsp[(1) - (5)].c))){ + yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (5)].c)); (yyval.d) = 0.; } else{ - gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[-4].c)]); + gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(1) - (5)].c)]); if((int)s.value.size() < index + 1){ - yymsg(0, "Uninitialized variable '%s[%d]'", (yyvsp[-4].c), index); + yymsg(0, "Uninitialized variable '%s[%d]'", (yyvsp[(1) - (5)].c), index); (yyval.d) = 0.; } else - (yyval.d) = (s.value[index] += (yyvsp[0].i)); + (yyval.d) = (s.value[index] += (yyvsp[(5) - (5)].i)); } - Free((yyvsp[-4].c)); - } -#line 11371 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (5)].c)); + ;} break; case 441: -#line 5259 "Gmsh.y" /* yacc.c:1646 */ +#line 5284 "Gmsh.y" { - int index = (int)(yyvsp[-2].d); - if(!gmsh_yysymbols.count((yyvsp[-4].c))){ - yymsg(0, "Unknown variable '%s'", (yyvsp[-4].c)); + int index = (int)(yyvsp[(3) - (5)].d); + if(!gmsh_yysymbols.count((yyvsp[(1) - (5)].c))){ + yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (5)].c)); (yyval.d) = 0.; } else{ - gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[-4].c)]); + gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(1) - (5)].c)]); if((int)s.value.size() < index + 1){ - yymsg(0, "Uninitialized variable '%s[%d]'", (yyvsp[-4].c), index); + yymsg(0, "Uninitialized variable '%s[%d]'", (yyvsp[(1) - (5)].c), index); (yyval.d) = 0.; } else - (yyval.d) = (s.value[index] += (yyvsp[0].i)); + (yyval.d) = (s.value[index] += (yyvsp[(5) - (5)].i)); } - Free((yyvsp[-4].c)); - } -#line 11393 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (5)].c)); + ;} break; case 442: -#line 5277 "Gmsh.y" /* yacc.c:1646 */ +#line 5302 "Gmsh.y" { - int index = (int)(yyvsp[-2].d); - if(!gmsh_yysymbols.count((yyvsp[-4].c))){ - yymsg(0, "Unknown variable '%s'", (yyvsp[-4].c)); + int index = (int)(yyvsp[(3) - (5)].d); + if(!gmsh_yysymbols.count((yyvsp[(1) - (5)].c))){ + yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (5)].c)); (yyval.d) = 0.; } else{ - gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[-4].c)]); + gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(1) - (5)].c)]); if((int)s.value.size() < index + 1){ - yymsg(0, "Uninitialized variable '%s[%d]'", (yyvsp[-4].c), index); + yymsg(0, "Uninitialized variable '%s[%d]'", (yyvsp[(1) - (5)].c), index); (yyval.d) = 0.; } else - (yyval.d) = (s.value[index] += (yyvsp[0].i)); + (yyval.d) = (s.value[index] += (yyvsp[(5) - (5)].i)); } - Free((yyvsp[-4].c)); - } -#line 11415 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (5)].c)); + ;} break; case 443: -#line 5298 "Gmsh.y" /* yacc.c:1646 */ +#line 5323 "Gmsh.y" { - NumberOption(GMSH_GET, (yyvsp[-2].c), 0, (yyvsp[0].c), (yyval.d)); - Free((yyvsp[-2].c)); Free((yyvsp[0].c)); - } -#line 11424 "Gmsh.tab.cpp" /* yacc.c:1646 */ + NumberOption(GMSH_GET, (yyvsp[(1) - (3)].c), 0, (yyvsp[(3) - (3)].c), (yyval.d)); + Free((yyvsp[(1) - (3)].c)); Free((yyvsp[(3) - (3)].c)); + ;} break; case 444: -#line 5303 "Gmsh.y" /* yacc.c:1646 */ +#line 5328 "Gmsh.y" { - NumberOption(GMSH_GET, (yyvsp[-5].c), (int)(yyvsp[-3].d), (yyvsp[0].c), (yyval.d)); - Free((yyvsp[-5].c)); Free((yyvsp[0].c)); - } -#line 11433 "Gmsh.tab.cpp" /* yacc.c:1646 */ + NumberOption(GMSH_GET, (yyvsp[(1) - (6)].c), (int)(yyvsp[(3) - (6)].d), (yyvsp[(6) - (6)].c), (yyval.d)); + Free((yyvsp[(1) - (6)].c)); Free((yyvsp[(6) - (6)].c)); + ;} break; case 445: -#line 5308 "Gmsh.y" /* yacc.c:1646 */ +#line 5333 "Gmsh.y" { double d = 0.; - if(NumberOption(GMSH_GET, (yyvsp[-3].c), 0, (yyvsp[-1].c), d)){ - d += (yyvsp[0].i); - NumberOption(GMSH_SET|GMSH_GUI, (yyvsp[-3].c), 0, (yyvsp[-1].c), d); + if(NumberOption(GMSH_GET, (yyvsp[(1) - (4)].c), 0, (yyvsp[(3) - (4)].c), d)){ + d += (yyvsp[(4) - (4)].i); + NumberOption(GMSH_SET|GMSH_GUI, (yyvsp[(1) - (4)].c), 0, (yyvsp[(3) - (4)].c), d); (yyval.d) = d; } - Free((yyvsp[-3].c)); Free((yyvsp[-1].c)); - } -#line 11447 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (4)].c)); Free((yyvsp[(3) - (4)].c)); + ;} break; case 446: -#line 5318 "Gmsh.y" /* yacc.c:1646 */ +#line 5343 "Gmsh.y" { double d = 0.; - if(NumberOption(GMSH_GET, (yyvsp[-6].c), (int)(yyvsp[-4].d), (yyvsp[-1].c), d)){ - d += (yyvsp[0].i); - NumberOption(GMSH_SET|GMSH_GUI, (yyvsp[-6].c), (int)(yyvsp[-4].d), (yyvsp[-1].c), d); + if(NumberOption(GMSH_GET, (yyvsp[(1) - (7)].c), (int)(yyvsp[(3) - (7)].d), (yyvsp[(6) - (7)].c), d)){ + d += (yyvsp[(7) - (7)].i); + NumberOption(GMSH_SET|GMSH_GUI, (yyvsp[(1) - (7)].c), (int)(yyvsp[(3) - (7)].d), (yyvsp[(6) - (7)].c), d); (yyval.d) = d; } - Free((yyvsp[-6].c)); Free((yyvsp[-1].c)); - } -#line 11461 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (7)].c)); Free((yyvsp[(6) - (7)].c)); + ;} break; case 447: -#line 5328 "Gmsh.y" /* yacc.c:1646 */ +#line 5353 "Gmsh.y" { - (yyval.d) = Msg::GetValue((yyvsp[-3].c), (yyvsp[-1].d)); - Free((yyvsp[-3].c)); - } -#line 11470 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.d) = Msg::GetValue((yyvsp[(3) - (6)].c), (yyvsp[(5) - (6)].d)); + Free((yyvsp[(3) - (6)].c)); + ;} break; case 448: -#line 5333 "Gmsh.y" /* yacc.c:1646 */ +#line 5358 "Gmsh.y" { int matches = 0; - for(int i = 0; i < List_Nbr((yyvsp[-3].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(3) - (6)].l)); i++){ double d; - List_Read((yyvsp[-3].l), i, &d); - matches += List_Search((yyvsp[-1].l), &d, fcmp_double); + List_Read((yyvsp[(3) - (6)].l), i, &d); + matches += List_Search((yyvsp[(5) - (6)].l), &d, fcmp_double); } (yyval.d) = matches; - Free((yyvsp[-3].l)); Free((yyvsp[-1].l)); - } -#line 11485 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(3) - (6)].l)); Free((yyvsp[(5) - (6)].l)); + ;} break; case 449: -#line 5344 "Gmsh.y" /* yacc.c:1646 */ +#line 5369 "Gmsh.y" { - std::string s((yyvsp[-3].c)), substr((yyvsp[-1].c)); + std::string s((yyvsp[(3) - (6)].c)), substr((yyvsp[(5) - (6)].c)); if(s.find(substr) != std::string::npos) (yyval.d) = 1.; else (yyval.d) = 0.; - Free((yyvsp[-3].c)); Free((yyvsp[-1].c)); - } -#line 11498 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(3) - (6)].c)); Free((yyvsp[(5) - (6)].c)); + ;} break; case 450: -#line 5353 "Gmsh.y" /* yacc.c:1646 */ +#line 5378 "Gmsh.y" { - (yyval.d) = strcmp((yyvsp[-3].c), (yyvsp[-1].c)); - Free((yyvsp[-3].c)); Free((yyvsp[-1].c)); - } -#line 11507 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.d) = strcmp((yyvsp[(3) - (6)].c), (yyvsp[(5) - (6)].c)); + Free((yyvsp[(3) - (6)].c)); Free((yyvsp[(5) - (6)].c)); + ;} break; case 451: -#line 5358 "Gmsh.y" /* yacc.c:1646 */ +#line 5383 "Gmsh.y" { int align = 0, font = 0, fontsize = CTX::instance()->glFontSize; - if(List_Nbr((yyvsp[-1].l)) % 2){ + if(List_Nbr((yyvsp[(3) - (4)].l)) % 2){ yyerror("Number of text attributes should be even"); } else{ - for(int i = 0 ; i < List_Nbr((yyvsp[-1].l)); i += 2){ - char *s1, *s2; List_Read((yyvsp[-1].l), i, &s1); List_Read((yyvsp[-1].l), i + 1, &s2); + for(int i = 0 ; i < List_Nbr((yyvsp[(3) - (4)].l)); i += 2){ + char *s1, *s2; List_Read((yyvsp[(3) - (4)].l), i, &s1); List_Read((yyvsp[(3) - (4)].l), i + 1, &s2); std::string key(s1), val(s2); Free(s1); Free(s2); #if defined(HAVE_OPENGL) @@ -11528,239 +11786,215 @@ yyreduce: #endif } } - List_Delete((yyvsp[-1].l)); + List_Delete((yyvsp[(3) - (4)].l)); (yyval.d) = (double)((align<<16)|(font<<8)|(fontsize)); - } -#line 11535 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 452: -#line 5385 "Gmsh.y" /* yacc.c:1646 */ +#line 5410 "Gmsh.y" { - memcpy((yyval.v), (yyvsp[0].v), 5*sizeof(double)); - } -#line 11543 "Gmsh.tab.cpp" /* yacc.c:1646 */ + memcpy((yyval.v), (yyvsp[(1) - (1)].v), 5*sizeof(double)); + ;} break; case 453: -#line 5389 "Gmsh.y" /* yacc.c:1646 */ +#line 5414 "Gmsh.y" { - for(int i = 0; i < 5; i++) (yyval.v)[i] = -(yyvsp[0].v)[i]; - } -#line 11551 "Gmsh.tab.cpp" /* yacc.c:1646 */ + for(int i = 0; i < 5; i++) (yyval.v)[i] = -(yyvsp[(2) - (2)].v)[i]; + ;} break; case 454: -#line 5393 "Gmsh.y" /* yacc.c:1646 */ +#line 5418 "Gmsh.y" { - for(int i = 0; i < 5; i++) (yyval.v)[i] = (yyvsp[0].v)[i]; - } -#line 11559 "Gmsh.tab.cpp" /* yacc.c:1646 */ + for(int i = 0; i < 5; i++) (yyval.v)[i] = (yyvsp[(2) - (2)].v)[i]; + ;} break; case 455: -#line 5397 "Gmsh.y" /* yacc.c:1646 */ +#line 5422 "Gmsh.y" { - for(int i = 0; i < 5; i++) (yyval.v)[i] = (yyvsp[-2].v)[i] - (yyvsp[0].v)[i]; - } -#line 11567 "Gmsh.tab.cpp" /* yacc.c:1646 */ + for(int i = 0; i < 5; i++) (yyval.v)[i] = (yyvsp[(1) - (3)].v)[i] - (yyvsp[(3) - (3)].v)[i]; + ;} break; case 456: -#line 5401 "Gmsh.y" /* yacc.c:1646 */ +#line 5426 "Gmsh.y" { - for(int i = 0; i < 5; i++) (yyval.v)[i] = (yyvsp[-2].v)[i] + (yyvsp[0].v)[i]; - } -#line 11575 "Gmsh.tab.cpp" /* yacc.c:1646 */ + for(int i = 0; i < 5; i++) (yyval.v)[i] = (yyvsp[(1) - (3)].v)[i] + (yyvsp[(3) - (3)].v)[i]; + ;} break; case 457: -#line 5408 "Gmsh.y" /* yacc.c:1646 */ +#line 5433 "Gmsh.y" { - (yyval.v)[0] = (yyvsp[-9].d); (yyval.v)[1] = (yyvsp[-7].d); (yyval.v)[2] = (yyvsp[-5].d); (yyval.v)[3] = (yyvsp[-3].d); (yyval.v)[4] = (yyvsp[-1].d); - } -#line 11583 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.v)[0] = (yyvsp[(2) - (11)].d); (yyval.v)[1] = (yyvsp[(4) - (11)].d); (yyval.v)[2] = (yyvsp[(6) - (11)].d); (yyval.v)[3] = (yyvsp[(8) - (11)].d); (yyval.v)[4] = (yyvsp[(10) - (11)].d); + ;} break; case 458: -#line 5412 "Gmsh.y" /* yacc.c:1646 */ +#line 5437 "Gmsh.y" { - (yyval.v)[0] = (yyvsp[-7].d); (yyval.v)[1] = (yyvsp[-5].d); (yyval.v)[2] = (yyvsp[-3].d); (yyval.v)[3] = (yyvsp[-1].d); (yyval.v)[4] = 1.0; - } -#line 11591 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.v)[0] = (yyvsp[(2) - (9)].d); (yyval.v)[1] = (yyvsp[(4) - (9)].d); (yyval.v)[2] = (yyvsp[(6) - (9)].d); (yyval.v)[3] = (yyvsp[(8) - (9)].d); (yyval.v)[4] = 1.0; + ;} break; case 459: -#line 5416 "Gmsh.y" /* yacc.c:1646 */ +#line 5441 "Gmsh.y" { - (yyval.v)[0] = (yyvsp[-5].d); (yyval.v)[1] = (yyvsp[-3].d); (yyval.v)[2] = (yyvsp[-1].d); (yyval.v)[3] = 0.0; (yyval.v)[4] = 1.0; - } -#line 11599 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.v)[0] = (yyvsp[(2) - (7)].d); (yyval.v)[1] = (yyvsp[(4) - (7)].d); (yyval.v)[2] = (yyvsp[(6) - (7)].d); (yyval.v)[3] = 0.0; (yyval.v)[4] = 1.0; + ;} break; case 460: -#line 5420 "Gmsh.y" /* yacc.c:1646 */ +#line 5445 "Gmsh.y" { - (yyval.v)[0] = (yyvsp[-5].d); (yyval.v)[1] = (yyvsp[-3].d); (yyval.v)[2] = (yyvsp[-1].d); (yyval.v)[3] = 0.0; (yyval.v)[4] = 1.0; - } -#line 11607 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.v)[0] = (yyvsp[(2) - (7)].d); (yyval.v)[1] = (yyvsp[(4) - (7)].d); (yyval.v)[2] = (yyvsp[(6) - (7)].d); (yyval.v)[3] = 0.0; (yyval.v)[4] = 1.0; + ;} break; case 461: -#line 5427 "Gmsh.y" /* yacc.c:1646 */ +#line 5452 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(List_T*)); - List_Add((yyval.l), &((yyvsp[0].l))); - } -#line 11616 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Add((yyval.l), &((yyvsp[(1) - (1)].l))); + ;} break; case 462: -#line 5432 "Gmsh.y" /* yacc.c:1646 */ +#line 5457 "Gmsh.y" { - List_Add((yyval.l), &((yyvsp[0].l))); - } -#line 11624 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Add((yyval.l), &((yyvsp[(3) - (3)].l))); + ;} break; case 463: -#line 5439 "Gmsh.y" /* yacc.c:1646 */ +#line 5464 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(double)); - List_Add((yyval.l), &((yyvsp[0].d))); - } -#line 11633 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Add((yyval.l), &((yyvsp[(1) - (1)].d))); + ;} break; case 464: -#line 5444 "Gmsh.y" /* yacc.c:1646 */ +#line 5469 "Gmsh.y" { - (yyval.l) = (yyvsp[0].l); - } -#line 11641 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.l) = (yyvsp[(1) - (1)].l); + ;} break; case 465: -#line 5448 "Gmsh.y" /* yacc.c:1646 */ +#line 5473 "Gmsh.y" { // creates an empty list (yyval.l) = List_Create(2, 1, sizeof(double)); - } -#line 11650 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 466: -#line 5453 "Gmsh.y" /* yacc.c:1646 */ +#line 5478 "Gmsh.y" { - (yyval.l) = (yyvsp[-1].l); - } -#line 11658 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.l) = (yyvsp[(2) - (3)].l); + ;} break; case 467: -#line 5457 "Gmsh.y" /* yacc.c:1646 */ +#line 5482 "Gmsh.y" { - (yyval.l) = (yyvsp[-1].l); + (yyval.l) = (yyvsp[(3) - (4)].l); for(int i = 0; i < List_Nbr((yyval.l)); i++){ double *pd = (double*)List_Pointer((yyval.l), i); (*pd) = - (*pd); } - } -#line 11670 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 468: -#line 5465 "Gmsh.y" /* yacc.c:1646 */ +#line 5490 "Gmsh.y" { - (yyval.l) = (yyvsp[-1].l); + (yyval.l) = (yyvsp[(4) - (5)].l); for(int i = 0; i < List_Nbr((yyval.l)); i++){ double *pd = (double*)List_Pointer((yyval.l), i); - (*pd) *= (yyvsp[-4].d); + (*pd) *= (yyvsp[(1) - (5)].d); } - } -#line 11682 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 469: -#line 5476 "Gmsh.y" /* yacc.c:1646 */ +#line 5501 "Gmsh.y" { - (yyval.l) = (yyvsp[0].l); - } -#line 11690 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.l) = (yyvsp[(1) - (1)].l); + ;} break; case 470: -#line 5480 "Gmsh.y" /* yacc.c:1646 */ +#line 5505 "Gmsh.y" { - if(!strcmp((yyvsp[0].c), "*") || !strcmp((yyvsp[0].c), "all")) + if(!strcmp((yyvsp[(1) - (1)].c), "*") || !strcmp((yyvsp[(1) - (1)].c), "all")) (yyval.l) = 0; else{ yyerror("Unknown special string for list replacement"); (yyval.l) = List_Create(2, 1, sizeof(double)); } - } -#line 11703 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 471: -#line 5492 "Gmsh.y" /* yacc.c:1646 */ +#line 5517 "Gmsh.y" { - (yyval.l) = (yyvsp[0].l); + (yyval.l) = (yyvsp[(2) - (2)].l); for(int i = 0; i < List_Nbr((yyval.l)); i++){ double *pd = (double*)List_Pointer((yyval.l), i); (*pd) = - (*pd); } - } -#line 11715 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 472: -#line 5500 "Gmsh.y" /* yacc.c:1646 */ +#line 5525 "Gmsh.y" { - (yyval.l) = (yyvsp[0].l); + (yyval.l) = (yyvsp[(3) - (3)].l); for(int i = 0; i < List_Nbr((yyval.l)); i++){ double *pd = (double*)List_Pointer((yyval.l), i); - (*pd) *= (yyvsp[-2].d); + (*pd) *= (yyvsp[(1) - (3)].d); } - } -#line 11727 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 473: -#line 5508 "Gmsh.y" /* yacc.c:1646 */ +#line 5533 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(double)); - for(double d = (yyvsp[-2].d); ((yyvsp[-2].d) < (yyvsp[0].d)) ? (d <= (yyvsp[0].d)) : (d >= (yyvsp[0].d)); - ((yyvsp[-2].d) < (yyvsp[0].d)) ? (d += 1.) : (d -= 1.)) + for(double d = (yyvsp[(1) - (3)].d); ((yyvsp[(1) - (3)].d) < (yyvsp[(3) - (3)].d)) ? (d <= (yyvsp[(3) - (3)].d)) : (d >= (yyvsp[(3) - (3)].d)); + ((yyvsp[(1) - (3)].d) < (yyvsp[(3) - (3)].d)) ? (d += 1.) : (d -= 1.)) List_Add((yyval.l), &d); - } -#line 11738 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 474: -#line 5515 "Gmsh.y" /* yacc.c:1646 */ +#line 5540 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(double)); - if(!(yyvsp[0].d)){ //|| ($1 < $3 && $5 < 0) || ($1 > $3 && $5 > 0) - yymsg(0, "Wrong increment in '%g:%g:%g'", (yyvsp[-4].d), (yyvsp[-2].d), (yyvsp[0].d)); + if(!(yyvsp[(5) - (5)].d)){ //|| ($1 < $3 && $5 < 0) || ($1 > $3 && $5 > 0) + yymsg(0, "Wrong increment in '%g:%g:%g'", (yyvsp[(1) - (5)].d), (yyvsp[(3) - (5)].d), (yyvsp[(5) - (5)].d)); } else - for(double d = (yyvsp[-4].d); ((yyvsp[0].d) > 0) ? (d <= (yyvsp[-2].d)) : (d >= (yyvsp[-2].d)); d += (yyvsp[0].d)) + for(double d = (yyvsp[(1) - (5)].d); ((yyvsp[(5) - (5)].d) > 0) ? (d <= (yyvsp[(3) - (5)].d)) : (d >= (yyvsp[(3) - (5)].d)); d += (yyvsp[(5) - (5)].d)) List_Add((yyval.l), &d); - } -#line 11752 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 475: -#line 5525 "Gmsh.y" /* yacc.c:1646 */ +#line 5550 "Gmsh.y" { // Returns the coordinates of a point and fills a list with it. // This allows to ensure e.g. that relative point positions are // always conserved - Vertex *v = FindPoint((int)(yyvsp[-1].d)); + Vertex *v = FindPoint((int)(yyvsp[(3) - (4)].d)); (yyval.l) = List_Create(3, 1, sizeof(double)); if(!v) { - GVertex *gv = GModel::current()->getVertexByTag((int)(yyvsp[-1].d)); + GVertex *gv = GModel::current()->getVertexByTag((int)(yyvsp[(3) - (4)].d)); if(gv){ double x = gv->x(), y = gv->y(), z = gv->z(); List_Add((yyval.l), &x); @@ -11768,7 +12002,7 @@ yyreduce: List_Add((yyval.l), &z); } else{ - yymsg(0, "Unknown point '%d'", (int)(yyvsp[-1].d)); + yymsg(0, "Unknown point '%d'", (int)(yyvsp[(3) - (4)].d)); double d = 0.0; List_Add((yyval.l), &d); List_Add((yyval.l), &d); @@ -11780,81 +12014,72 @@ yyreduce: List_Add((yyval.l), &v->Pos.Y); List_Add((yyval.l), &v->Pos.Z); } - } -#line 11785 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 476: -#line 5554 "Gmsh.y" /* yacc.c:1646 */ +#line 5579 "Gmsh.y" { (yyval.l) = GetAllElementaryEntityNumbers(0); - } -#line 11793 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 477: -#line 5558 "Gmsh.y" /* yacc.c:1646 */ +#line 5583 "Gmsh.y" { (yyval.l) = GetAllElementaryEntityNumbers(1); - } -#line 11801 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 478: -#line 5562 "Gmsh.y" /* yacc.c:1646 */ +#line 5587 "Gmsh.y" { (yyval.l) = GetAllElementaryEntityNumbers(2); - } -#line 11809 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 479: -#line 5566 "Gmsh.y" /* yacc.c:1646 */ +#line 5591 "Gmsh.y" { (yyval.l) = GetAllElementaryEntityNumbers(3); - } -#line 11817 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 480: -#line 5570 "Gmsh.y" /* yacc.c:1646 */ +#line 5595 "Gmsh.y" { (yyval.l) = GetAllPhysicalEntityNumbers(0); - } -#line 11825 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 481: -#line 5574 "Gmsh.y" /* yacc.c:1646 */ +#line 5599 "Gmsh.y" { (yyval.l) = GetAllPhysicalEntityNumbers(1); - } -#line 11833 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 482: -#line 5578 "Gmsh.y" /* yacc.c:1646 */ +#line 5603 "Gmsh.y" { (yyval.l) = GetAllPhysicalEntityNumbers(2); - } -#line 11841 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 483: -#line 5582 "Gmsh.y" /* yacc.c:1646 */ +#line 5607 "Gmsh.y" { (yyval.l) = GetAllPhysicalEntityNumbers(3); - } -#line 11849 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 484: -#line 5586 "Gmsh.y" /* yacc.c:1646 */ +#line 5611 "Gmsh.y" { (yyval.l) = List_Create(10, 1, sizeof(double)); - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(4) - (5)].l)); i++){ double num; - List_Read((yyvsp[-1].l), i, &num); + List_Read((yyvsp[(4) - (5)].l), i, &num); PhysicalGroup *p = FindPhysicalGroup((int)num, MSH_PHYSICAL_POINT); if(p){ for(int j = 0; j < List_Nbr(p->Entities); j++){ @@ -11876,18 +12101,17 @@ yyreduce: } } } - List_Delete((yyvsp[-1].l)); - } -#line 11882 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(4) - (5)].l)); + ;} break; case 485: -#line 5615 "Gmsh.y" /* yacc.c:1646 */ +#line 5640 "Gmsh.y" { (yyval.l) = List_Create(10, 1, sizeof(double)); - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(4) - (5)].l)); i++){ double num; - List_Read((yyvsp[-1].l), i, &num); + List_Read((yyvsp[(4) - (5)].l), i, &num); PhysicalGroup *p = FindPhysicalGroup((int)num, MSH_PHYSICAL_LINE); if(p){ for(int j = 0; j < List_Nbr(p->Entities); j++){ @@ -11909,18 +12133,17 @@ yyreduce: } } } - List_Delete((yyvsp[-1].l)); - } -#line 11915 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(4) - (5)].l)); + ;} break; case 486: -#line 5644 "Gmsh.y" /* yacc.c:1646 */ +#line 5669 "Gmsh.y" { (yyval.l) = List_Create(10, 1, sizeof(double)); - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(4) - (5)].l)); i++){ double num; - List_Read((yyvsp[-1].l), i, &num); + List_Read((yyvsp[(4) - (5)].l), i, &num); PhysicalGroup *p = FindPhysicalGroup((int)num, MSH_PHYSICAL_SURFACE); if(p){ for(int j = 0; j < List_Nbr(p->Entities); j++){ @@ -11942,18 +12165,17 @@ yyreduce: } } } - List_Delete((yyvsp[-1].l)); - } -#line 11948 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(4) - (5)].l)); + ;} break; case 487: -#line 5673 "Gmsh.y" /* yacc.c:1646 */ +#line 5698 "Gmsh.y" { (yyval.l) = List_Create(10, 1, sizeof(double)); - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(4) - (5)].l)); i++){ double num; - List_Read((yyvsp[-1].l), i, &num); + List_Read((yyvsp[(4) - (5)].l), i, &num); PhysicalGroup *p = FindPhysicalGroup((int)num, MSH_PHYSICAL_VOLUME); if(p){ for(int j = 0; j < List_Nbr(p->Entities); j++){ @@ -11975,880 +12197,801 @@ yyreduce: } } } - List_Delete((yyvsp[-1].l)); - } -#line 11981 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(4) - (5)].l)); + ;} break; case 488: -#line 5703 "Gmsh.y" /* yacc.c:1646 */ +#line 5728 "Gmsh.y" { (yyval.l) = List_Create(10, 1, sizeof(double)); GModel::current()->importGEOInternals(); - SBoundingBox3d box((yyvsp[-11].d), (yyvsp[-9].d), (yyvsp[-7].d), (yyvsp[-5].d), (yyvsp[-3].d), (yyvsp[-1].d)); + SBoundingBox3d box((yyvsp[(5) - (16)].d), (yyvsp[(7) - (16)].d), (yyvsp[(9) - (16)].d), (yyvsp[(11) - (16)].d), (yyvsp[(13) - (16)].d), (yyvsp[(15) - (16)].d)); std::vector<GEntity*> entities; GModel::current()->getEntitiesInBox(entities, box, 0); for(unsigned int i = 0; i < entities.size(); i++){ double d = entities[i]->tag(); List_Add((yyval.l), &d); } - } -#line 11997 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 489: -#line 5716 "Gmsh.y" /* yacc.c:1646 */ +#line 5741 "Gmsh.y" { (yyval.l) = List_Create(10, 1, sizeof(double)); GModel::current()->importGEOInternals(); - SBoundingBox3d box((yyvsp[-11].d), (yyvsp[-9].d), (yyvsp[-7].d), (yyvsp[-5].d), (yyvsp[-3].d), (yyvsp[-1].d)); + SBoundingBox3d box((yyvsp[(5) - (16)].d), (yyvsp[(7) - (16)].d), (yyvsp[(9) - (16)].d), (yyvsp[(11) - (16)].d), (yyvsp[(13) - (16)].d), (yyvsp[(15) - (16)].d)); std::vector<GEntity*> entities; GModel::current()->getEntitiesInBox(entities, box, 1); for(unsigned int i = 0; i < entities.size(); i++){ double d = entities[i]->tag(); List_Add((yyval.l), &d); } - } -#line 12013 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 490: -#line 5729 "Gmsh.y" /* yacc.c:1646 */ +#line 5754 "Gmsh.y" { (yyval.l) = List_Create(10, 1, sizeof(double)); GModel::current()->importGEOInternals(); - SBoundingBox3d box((yyvsp[-11].d), (yyvsp[-9].d), (yyvsp[-7].d), (yyvsp[-5].d), (yyvsp[-3].d), (yyvsp[-1].d)); + SBoundingBox3d box((yyvsp[(5) - (16)].d), (yyvsp[(7) - (16)].d), (yyvsp[(9) - (16)].d), (yyvsp[(11) - (16)].d), (yyvsp[(13) - (16)].d), (yyvsp[(15) - (16)].d)); std::vector<GEntity*> entities; GModel::current()->getEntitiesInBox(entities, box, 2); for(unsigned int i = 0; i < entities.size(); i++){ double d = entities[i]->tag(); List_Add((yyval.l), &d); } - } -#line 12029 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 491: -#line 5742 "Gmsh.y" /* yacc.c:1646 */ +#line 5767 "Gmsh.y" { (yyval.l) = List_Create(10, 1, sizeof(double)); GModel::current()->importGEOInternals(); - SBoundingBox3d box((yyvsp[-11].d), (yyvsp[-9].d), (yyvsp[-7].d), (yyvsp[-5].d), (yyvsp[-3].d), (yyvsp[-1].d)); + SBoundingBox3d box((yyvsp[(5) - (16)].d), (yyvsp[(7) - (16)].d), (yyvsp[(9) - (16)].d), (yyvsp[(11) - (16)].d), (yyvsp[(13) - (16)].d), (yyvsp[(15) - (16)].d)); std::vector<GEntity*> entities; GModel::current()->getEntitiesInBox(entities, box, 3); for(unsigned int i = 0; i < entities.size(); i++){ double d = entities[i]->tag(); List_Add((yyval.l), &d); } - } -#line 12045 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 492: -#line 5754 "Gmsh.y" /* yacc.c:1646 */ +#line 5779 "Gmsh.y" { - (yyval.l) = List_Create(List_Nbr((yyvsp[0].l)), 1, sizeof(double)); - for(int i = 0; i < List_Nbr((yyvsp[0].l)); i++){ - Shape *s = (Shape*) List_Pointer((yyvsp[0].l), i); + (yyval.l) = List_Create(List_Nbr((yyvsp[(1) - (1)].l)), 1, sizeof(double)); + for(int i = 0; i < List_Nbr((yyvsp[(1) - (1)].l)); i++){ + Shape *s = (Shape*) List_Pointer((yyvsp[(1) - (1)].l), i); double d = s->Num; List_Add((yyval.l), &d); } - List_Delete((yyvsp[0].l)); - } -#line 12059 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(1) - (1)].l)); + ;} break; case 493: -#line 5764 "Gmsh.y" /* yacc.c:1646 */ +#line 5789 "Gmsh.y" { - (yyval.l) = List_Create(List_Nbr((yyvsp[0].l)), 1, sizeof(double)); - for(int i = 0; i < List_Nbr((yyvsp[0].l)); i++){ - Shape *s = (Shape*) List_Pointer((yyvsp[0].l), i); + (yyval.l) = List_Create(List_Nbr((yyvsp[(1) - (1)].l)), 1, sizeof(double)); + for(int i = 0; i < List_Nbr((yyvsp[(1) - (1)].l)); i++){ + Shape *s = (Shape*) List_Pointer((yyvsp[(1) - (1)].l), i); double d = s->Num; List_Add((yyval.l), &d); } - List_Delete((yyvsp[0].l)); - } -#line 12073 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(1) - (1)].l)); + ;} break; case 494: -#line 5774 "Gmsh.y" /* yacc.c:1646 */ +#line 5799 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(double)); - if(!gmsh_yysymbols.count((yyvsp[-2].c))) - yymsg(0, "Unknown variable '%s'", (yyvsp[-2].c)); + if(!gmsh_yysymbols.count((yyvsp[(1) - (3)].c))) + yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (3)].c)); else{ - gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[-2].c)]); + gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(1) - (3)].c)]); for(unsigned int i = 0; i < s.value.size(); i++) List_Add((yyval.l), &s.value[i]); } - Free((yyvsp[-2].c)); - } -#line 12089 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (3)].c)); + ;} break; case 495: -#line 5786 "Gmsh.y" /* yacc.c:1646 */ +#line 5811 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(double)); - if(!gmsh_yysymbols.count((yyvsp[-2].c))) - yymsg(0, "Unknown variable '%s'", (yyvsp[-2].c)); + if(!gmsh_yysymbols.count((yyvsp[(1) - (3)].c))) + yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (3)].c)); else{ - gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[-2].c)]); + gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(1) - (3)].c)]); for(unsigned int i = 0; i < s.value.size(); i++) List_Add((yyval.l), &s.value[i]); } - Free((yyvsp[-2].c)); - } -#line 12105 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (3)].c)); + ;} break; case 496: -#line 5799 "Gmsh.y" /* yacc.c:1646 */ +#line 5824 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(double)); - if(!gmsh_yysymbols.count((yyvsp[-1].c))) - yymsg(0, "Unknown variable '%s'", (yyvsp[-1].c)); + if(!gmsh_yysymbols.count((yyvsp[(3) - (4)].c))) + yymsg(0, "Unknown variable '%s'", (yyvsp[(3) - (4)].c)); else{ - gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[-1].c)]); + gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(3) - (4)].c)]); for(unsigned int i = 0; i < s.value.size(); i++) List_Add((yyval.l), &s.value[i]); } - Free((yyvsp[-1].c)); - } -#line 12121 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(3) - (4)].c)); + ;} break; case 497: -#line 5811 "Gmsh.y" /* yacc.c:1646 */ +#line 5836 "Gmsh.y" { - (yyval.l) = (yyvsp[-1].l); - } -#line 12129 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.l) = (yyvsp[(3) - (4)].l); + ;} break; case 498: -#line 5815 "Gmsh.y" /* yacc.c:1646 */ +#line 5840 "Gmsh.y" { - (yyval.l) = (yyvsp[-1].l); - } -#line 12137 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.l) = (yyvsp[(3) - (4)].l); + ;} break; case 499: -#line 5819 "Gmsh.y" /* yacc.c:1646 */ +#line 5844 "Gmsh.y" { - (yyval.l) = (yyvsp[-2].l); - } -#line 12145 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.l) = (yyvsp[(4) - (6)].l); + ;} break; case 500: -#line 5823 "Gmsh.y" /* yacc.c:1646 */ +#line 5848 "Gmsh.y" { - (yyval.l) = (yyvsp[-2].l); - } -#line 12153 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.l) = (yyvsp[(4) - (6)].l); + ;} break; case 501: -#line 5827 "Gmsh.y" /* yacc.c:1646 */ +#line 5852 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(double)); - if(!gmsh_yysymbols.count((yyvsp[-5].c))) - yymsg(0, "Unknown variable '%s'", (yyvsp[-5].c)); + if(!gmsh_yysymbols.count((yyvsp[(1) - (6)].c))) + yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (6)].c)); else{ - gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[-5].c)]); - for(int i = 0; i < List_Nbr((yyvsp[-2].l)); i++){ - int index = (int)(*(double*)List_Pointer_Fast((yyvsp[-2].l), i)); + gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(1) - (6)].c)]); + for(int i = 0; i < List_Nbr((yyvsp[(4) - (6)].l)); i++){ + int index = (int)(*(double*)List_Pointer_Fast((yyvsp[(4) - (6)].l), i)); if((int)s.value.size() < index + 1) - yymsg(0, "Uninitialized variable '%s[%d]'", (yyvsp[-5].c), index); + yymsg(0, "Uninitialized variable '%s[%d]'", (yyvsp[(1) - (6)].c), index); else List_Add((yyval.l), &s.value[index]); } } - Free((yyvsp[-5].c)); - List_Delete((yyvsp[-2].l)); - } -#line 12175 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (6)].c)); + List_Delete((yyvsp[(4) - (6)].l)); + ;} break; case 502: -#line 5845 "Gmsh.y" /* yacc.c:1646 */ +#line 5870 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(double)); - if(!gmsh_yysymbols.count((yyvsp[-5].c))) - yymsg(0, "Unknown variable '%s'", (yyvsp[-5].c)); + if(!gmsh_yysymbols.count((yyvsp[(1) - (6)].c))) + yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (6)].c)); else{ - gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[-5].c)]); - for(int i = 0; i < List_Nbr((yyvsp[-2].l)); i++){ - int index = (int)(*(double*)List_Pointer_Fast((yyvsp[-2].l), i)); + gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(1) - (6)].c)]); + for(int i = 0; i < List_Nbr((yyvsp[(4) - (6)].l)); i++){ + int index = (int)(*(double*)List_Pointer_Fast((yyvsp[(4) - (6)].l), i)); if((int)s.value.size() < index + 1) - yymsg(0, "Uninitialized variable '%s[%d]'", (yyvsp[-5].c), index); + yymsg(0, "Uninitialized variable '%s[%d]'", (yyvsp[(1) - (6)].c), index); else List_Add((yyval.l), &s.value[index]); } } - Free((yyvsp[-5].c)); - List_Delete((yyvsp[-2].l)); - } -#line 12197 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (6)].c)); + List_Delete((yyvsp[(4) - (6)].l)); + ;} break; case 503: -#line 5866 "Gmsh.y" /* yacc.c:1646 */ +#line 5891 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(double)); - List_Add((yyval.l), &((yyvsp[0].d))); - } -#line 12206 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Add((yyval.l), &((yyvsp[(1) - (1)].d))); + ;} break; case 504: -#line 5871 "Gmsh.y" /* yacc.c:1646 */ +#line 5896 "Gmsh.y" { - (yyval.l) = (yyvsp[0].l); - } -#line 12214 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.l) = (yyvsp[(1) - (1)].l); + ;} break; case 505: -#line 5875 "Gmsh.y" /* yacc.c:1646 */ +#line 5900 "Gmsh.y" { - List_Add((yyval.l), &((yyvsp[0].d))); - } -#line 12222 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Add((yyval.l), &((yyvsp[(3) - (3)].d))); + ;} break; case 506: -#line 5879 "Gmsh.y" /* yacc.c:1646 */ +#line 5904 "Gmsh.y" { - for(int i = 0; i < List_Nbr((yyvsp[0].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(3) - (3)].l)); i++){ double d; - List_Read((yyvsp[0].l), i, &d); + List_Read((yyvsp[(3) - (3)].l), i, &d); List_Add((yyval.l), &d); } - List_Delete((yyvsp[0].l)); - } -#line 12235 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(3) - (3)].l)); + ;} break; case 507: -#line 5891 "Gmsh.y" /* yacc.c:1646 */ +#line 5916 "Gmsh.y" { - (yyval.u) = CTX::instance()->packColor((int)(yyvsp[-7].d), (int)(yyvsp[-5].d), (int)(yyvsp[-3].d), (int)(yyvsp[-1].d)); - } -#line 12243 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.u) = CTX::instance()->packColor((int)(yyvsp[(2) - (9)].d), (int)(yyvsp[(4) - (9)].d), (int)(yyvsp[(6) - (9)].d), (int)(yyvsp[(8) - (9)].d)); + ;} break; case 508: -#line 5895 "Gmsh.y" /* yacc.c:1646 */ +#line 5920 "Gmsh.y" { - (yyval.u) = CTX::instance()->packColor((int)(yyvsp[-5].d), (int)(yyvsp[-3].d), (int)(yyvsp[-1].d), 255); - } -#line 12251 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.u) = CTX::instance()->packColor((int)(yyvsp[(2) - (7)].d), (int)(yyvsp[(4) - (7)].d), (int)(yyvsp[(6) - (7)].d), 255); + ;} break; case 509: -#line 5907 "Gmsh.y" /* yacc.c:1646 */ +#line 5932 "Gmsh.y" { int flag = 0; - if(gmsh_yystringsymbols.count((yyvsp[0].c))){ - if(gmsh_yystringsymbols[(yyvsp[0].c)].size()){ - (yyval.u) = GetColorForString(-1, gmsh_yystringsymbols[(yyvsp[0].c)][0].c_str(), &flag); + if(gmsh_yystringsymbols.count((yyvsp[(1) - (1)].c))){ + if(gmsh_yystringsymbols[(yyvsp[(1) - (1)].c)].size()){ + (yyval.u) = GetColorForString(-1, gmsh_yystringsymbols[(yyvsp[(1) - (1)].c)][0].c_str(), &flag); } else{ - yymsg(0, "Unknown color '%s'", (yyvsp[0].c)); + yymsg(0, "Unknown color '%s'", (yyvsp[(1) - (1)].c)); (yyval.u) = 0; } } else - (yyval.u) = GetColorForString(-1, (yyvsp[0].c), &flag); - if(flag) yymsg(0, "Unknown color '%s'", (yyvsp[0].c)); - Free((yyvsp[0].c)); - } -#line 12272 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.u) = GetColorForString(-1, (yyvsp[(1) - (1)].c), &flag); + if(flag) yymsg(0, "Unknown color '%s'", (yyvsp[(1) - (1)].c)); + Free((yyvsp[(1) - (1)].c)); + ;} break; case 510: -#line 5924 "Gmsh.y" /* yacc.c:1646 */ +#line 5949 "Gmsh.y" { unsigned int val = 0; - ColorOption(GMSH_GET, (yyvsp[-4].c), 0, (yyvsp[0].c), val); + ColorOption(GMSH_GET, (yyvsp[(1) - (5)].c), 0, (yyvsp[(5) - (5)].c), val); (yyval.u) = val; - Free((yyvsp[-4].c)); Free((yyvsp[0].c)); - } -#line 12283 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (5)].c)); Free((yyvsp[(5) - (5)].c)); + ;} break; case 511: -#line 5934 "Gmsh.y" /* yacc.c:1646 */ +#line 5959 "Gmsh.y" { - (yyval.l) = (yyvsp[-1].l); - } -#line 12291 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.l) = (yyvsp[(2) - (3)].l); + ;} break; case 512: -#line 5938 "Gmsh.y" /* yacc.c:1646 */ +#line 5963 "Gmsh.y" { (yyval.l) = List_Create(256, 10, sizeof(unsigned int)); - GmshColorTable *ct = GetColorTable((int)(yyvsp[-3].d)); + GmshColorTable *ct = GetColorTable((int)(yyvsp[(3) - (6)].d)); if(!ct) - yymsg(0, "View[%d] does not exist", (int)(yyvsp[-3].d)); + yymsg(0, "View[%d] does not exist", (int)(yyvsp[(3) - (6)].d)); else{ for(int i = 0; i < ct->size; i++) List_Add((yyval.l), &ct->table[i]); } - Free((yyvsp[-5].c)); - } -#line 12307 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (6)].c)); + ;} break; case 513: -#line 5953 "Gmsh.y" /* yacc.c:1646 */ +#line 5978 "Gmsh.y" { (yyval.l) = List_Create(256, 10, sizeof(unsigned int)); - List_Add((yyval.l), &((yyvsp[0].u))); - } -#line 12316 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Add((yyval.l), &((yyvsp[(1) - (1)].u))); + ;} break; case 514: -#line 5958 "Gmsh.y" /* yacc.c:1646 */ +#line 5983 "Gmsh.y" { - List_Add((yyval.l), &((yyvsp[0].u))); - } -#line 12324 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Add((yyval.l), &((yyvsp[(3) - (3)].u))); + ;} break; case 515: -#line 5965 "Gmsh.y" /* yacc.c:1646 */ +#line 5990 "Gmsh.y" { - (yyval.c) = (yyvsp[0].c); - } -#line 12332 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.c) = (yyvsp[(1) - (1)].c); + ;} break; case 516: -#line 5969 "Gmsh.y" /* yacc.c:1646 */ +#line 5994 "Gmsh.y" { std::string val; - if(!gmsh_yystringsymbols.count((yyvsp[0].c))) - yymsg(0, "Unknown string variable '%s'", (yyvsp[0].c)); - else if(gmsh_yystringsymbols[(yyvsp[0].c)].size() == 1) - val = gmsh_yystringsymbols[(yyvsp[0].c)][0]; + if(!gmsh_yystringsymbols.count((yyvsp[(1) - (1)].c))) + yymsg(0, "Unknown string variable '%s'", (yyvsp[(1) - (1)].c)); + else if(gmsh_yystringsymbols[(yyvsp[(1) - (1)].c)].size() == 1) + val = gmsh_yystringsymbols[(yyvsp[(1) - (1)].c)][0]; else - yymsg(0, "Expected single valued string variable '%s'", (yyvsp[0].c)); + yymsg(0, "Expected single valued string variable '%s'", (yyvsp[(1) - (1)].c)); (yyval.c) = (char *)Malloc((val.size() + 1) * sizeof(char)); strcpy((yyval.c), val.c_str()); - Free((yyvsp[0].c)); - } -#line 12349 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (1)].c)); + ;} break; case 517: -#line 5982 "Gmsh.y" /* yacc.c:1646 */ +#line 6007 "Gmsh.y" { std::string val; - int j = (int)(yyvsp[-1].d); - if(!gmsh_yystringsymbols.count((yyvsp[-3].c))) - yymsg(0, "Unknown string variable '%s'", (yyvsp[-3].c)); - else if(j >= 0 && j < (int)gmsh_yystringsymbols[(yyvsp[-3].c)].size()) - val = gmsh_yystringsymbols[(yyvsp[-3].c)][j]; + int j = (int)(yyvsp[(3) - (4)].d); + if(!gmsh_yystringsymbols.count((yyvsp[(1) - (4)].c))) + yymsg(0, "Unknown string variable '%s'", (yyvsp[(1) - (4)].c)); + else if(j >= 0 && j < (int)gmsh_yystringsymbols[(yyvsp[(1) - (4)].c)].size()) + val = gmsh_yystringsymbols[(yyvsp[(1) - (4)].c)][j]; else yymsg(0, "Index %d out of range", j); (yyval.c) = (char *)Malloc((val.size() + 1) * sizeof(char)); strcpy((yyval.c), val.c_str()); - Free((yyvsp[-3].c)); - } -#line 12367 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (4)].c)); + ;} break; case 518: -#line 5996 "Gmsh.y" /* yacc.c:1646 */ +#line 6021 "Gmsh.y" { std::string val; - int j = (int)(yyvsp[-1].d); - if(!gmsh_yystringsymbols.count((yyvsp[-3].c))) - yymsg(0, "Unknown string variable '%s'", (yyvsp[-3].c)); - else if(j >= 0 && j < (int)gmsh_yystringsymbols[(yyvsp[-3].c)].size()) - val = gmsh_yystringsymbols[(yyvsp[-3].c)][j]; + int j = (int)(yyvsp[(3) - (4)].d); + if(!gmsh_yystringsymbols.count((yyvsp[(1) - (4)].c))) + yymsg(0, "Unknown string variable '%s'", (yyvsp[(1) - (4)].c)); + else if(j >= 0 && j < (int)gmsh_yystringsymbols[(yyvsp[(1) - (4)].c)].size()) + val = gmsh_yystringsymbols[(yyvsp[(1) - (4)].c)][j]; else yymsg(0, "Index %d out of range", j); (yyval.c) = (char *)Malloc((val.size() + 1) * sizeof(char)); strcpy((yyval.c), val.c_str()); - Free((yyvsp[-3].c)); - } -#line 12385 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (4)].c)); + ;} break; case 519: -#line 6010 "Gmsh.y" /* yacc.c:1646 */ +#line 6035 "Gmsh.y" { std::string val; - int j = (int)(yyvsp[-1].d); - if(!gmsh_yystringsymbols.count((yyvsp[-3].c))) - yymsg(0, "Unknown string variable '%s'", (yyvsp[-3].c)); - else if(j >= 0 && j < (int)gmsh_yystringsymbols[(yyvsp[-3].c)].size()) - val = gmsh_yystringsymbols[(yyvsp[-3].c)][j]; + int j = (int)(yyvsp[(3) - (4)].d); + if(!gmsh_yystringsymbols.count((yyvsp[(1) - (4)].c))) + yymsg(0, "Unknown string variable '%s'", (yyvsp[(1) - (4)].c)); + else if(j >= 0 && j < (int)gmsh_yystringsymbols[(yyvsp[(1) - (4)].c)].size()) + val = gmsh_yystringsymbols[(yyvsp[(1) - (4)].c)][j]; else yymsg(0, "Index %d out of range", j); (yyval.c) = (char *)Malloc((val.size() + 1) * sizeof(char)); strcpy((yyval.c), val.c_str()); - Free((yyvsp[-3].c)); - } -#line 12403 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (4)].c)); + ;} break; case 520: -#line 6024 "Gmsh.y" /* yacc.c:1646 */ +#line 6049 "Gmsh.y" { std::string val; - int j = (int)(yyvsp[-1].d); - if(!gmsh_yystringsymbols.count((yyvsp[-3].c))) - yymsg(0, "Unknown string variable '%s'", (yyvsp[-3].c)); - else if(j >= 0 && j < (int)gmsh_yystringsymbols[(yyvsp[-3].c)].size()) - val = gmsh_yystringsymbols[(yyvsp[-3].c)][j]; + int j = (int)(yyvsp[(3) - (4)].d); + if(!gmsh_yystringsymbols.count((yyvsp[(1) - (4)].c))) + yymsg(0, "Unknown string variable '%s'", (yyvsp[(1) - (4)].c)); + else if(j >= 0 && j < (int)gmsh_yystringsymbols[(yyvsp[(1) - (4)].c)].size()) + val = gmsh_yystringsymbols[(yyvsp[(1) - (4)].c)][j]; else yymsg(0, "Index %d out of range", j); (yyval.c) = (char *)Malloc((val.size() + 1) * sizeof(char)); strcpy((yyval.c), val.c_str()); - Free((yyvsp[-3].c)); - } -#line 12421 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (4)].c)); + ;} break; case 521: -#line 6038 "Gmsh.y" /* yacc.c:1646 */ +#line 6063 "Gmsh.y" { std::string out; - StringOption(GMSH_GET, (yyvsp[-2].c), 0, (yyvsp[0].c), out); + StringOption(GMSH_GET, (yyvsp[(1) - (3)].c), 0, (yyvsp[(3) - (3)].c), out); (yyval.c) = (char*)Malloc((out.size() + 1) * sizeof(char)); strcpy((yyval.c), out.c_str()); - Free((yyvsp[-2].c)); Free((yyvsp[0].c)); - } -#line 12433 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (3)].c)); Free((yyvsp[(3) - (3)].c)); + ;} break; case 522: -#line 6046 "Gmsh.y" /* yacc.c:1646 */ +#line 6071 "Gmsh.y" { std::string out; - StringOption(GMSH_GET, (yyvsp[-5].c), (int)(yyvsp[-3].d), (yyvsp[0].c), out); + StringOption(GMSH_GET, (yyvsp[(1) - (6)].c), (int)(yyvsp[(3) - (6)].d), (yyvsp[(6) - (6)].c), out); (yyval.c) = (char*)Malloc((out.size() + 1) * sizeof(char)); strcpy((yyval.c), out.c_str()); - Free((yyvsp[-5].c)); Free((yyvsp[0].c)); - } -#line 12445 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(1) - (6)].c)); Free((yyvsp[(6) - (6)].c)); + ;} break; case 523: -#line 6057 "Gmsh.y" /* yacc.c:1646 */ +#line 6082 "Gmsh.y" { - (yyval.c) = (yyvsp[0].c); - } -#line 12453 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.c) = (yyvsp[(1) - (1)].c); + ;} break; case 524: -#line 6061 "Gmsh.y" /* yacc.c:1646 */ +#line 6086 "Gmsh.y" { - (yyval.c) = (yyvsp[-1].c); - } -#line 12461 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.c) = (yyvsp[(3) - (4)].c); + ;} break; case 525: -#line 6065 "Gmsh.y" /* yacc.c:1646 */ +#line 6090 "Gmsh.y" { (yyval.c) = (char *)Malloc(32 * sizeof(char)); time_t now; time(&now); strcpy((yyval.c), ctime(&now)); (yyval.c)[strlen((yyval.c)) - 1] = '\0'; - } -#line 12473 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 526: -#line 6073 "Gmsh.y" /* yacc.c:1646 */ +#line 6098 "Gmsh.y" { std::string exe = Msg::GetExecutableName(); (yyval.c) = (char *)Malloc(exe.size() + 1); strcpy((yyval.c), exe.c_str()); - } -#line 12483 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 527: -#line 6079 "Gmsh.y" /* yacc.c:1646 */ +#line 6104 "Gmsh.y" { std::string action = Msg::GetOnelabAction(); (yyval.c) = (char *)Malloc(action.size() + 1); strcpy((yyval.c), action.c_str()); - } -#line 12493 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 528: -#line 6085 "Gmsh.y" /* yacc.c:1646 */ +#line 6110 "Gmsh.y" { - const char *env = GetEnvironmentVar((yyvsp[-1].c)); + const char *env = GetEnvironmentVar((yyvsp[(3) - (4)].c)); if(!env) env = ""; (yyval.c) = (char *)Malloc((sizeof(env) + 1) * sizeof(char)); strcpy((yyval.c), env); - Free((yyvsp[-1].c)); - } -#line 12505 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(3) - (4)].c)); + ;} break; case 529: -#line 6093 "Gmsh.y" /* yacc.c:1646 */ +#line 6118 "Gmsh.y" { - std::string s = Msg::GetString((yyvsp[-3].c), (yyvsp[-1].c)); + std::string s = Msg::GetString((yyvsp[(3) - (6)].c), (yyvsp[(5) - (6)].c)); (yyval.c) = (char *)Malloc((s.size() + 1) * sizeof(char)); strcpy((yyval.c), s.c_str()); - Free((yyvsp[-3].c)); - Free((yyvsp[-1].c)); - } -#line 12517 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(3) - (6)].c)); + Free((yyvsp[(5) - (6)].c)); + ;} break; case 530: -#line 6101 "Gmsh.y" /* yacc.c:1646 */ +#line 6126 "Gmsh.y" { - std::string s = Msg::GetOnelabString((yyvsp[-1].c)); + std::string s = Msg::GetOnelabString((yyvsp[(3) - (4)].c)); (yyval.c) = (char *)Malloc((s.size() + 1) * sizeof(char)); strcpy((yyval.c), s.c_str()); - Free((yyvsp[-1].c)); - } -#line 12528 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(3) - (4)].c)); + ;} break; case 531: -#line 6108 "Gmsh.y" /* yacc.c:1646 */ +#line 6133 "Gmsh.y" { - std::string s = Msg::GetOnelabString((yyvsp[-3].c), (yyvsp[-1].c)); + std::string s = Msg::GetOnelabString((yyvsp[(3) - (6)].c), (yyvsp[(5) - (6)].c)); (yyval.c) = (char *)Malloc((s.size() + 1) * sizeof(char)); strcpy((yyval.c), s.c_str()); - Free((yyvsp[-3].c)); - Free((yyvsp[-1].c)); - } -#line 12540 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(3) - (6)].c)); + Free((yyvsp[(5) - (6)].c)); + ;} break; case 532: -#line 6116 "Gmsh.y" /* yacc.c:1646 */ +#line 6141 "Gmsh.y" { int size = 1; - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++) - size += strlen(*(char**)List_Pointer((yyvsp[-1].l), i)) + 1; + for(int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++) + size += strlen(*(char**)List_Pointer((yyvsp[(3) - (4)].l), i)) + 1; (yyval.c) = (char*)Malloc(size * sizeof(char)); (yyval.c)[0] = '\0'; - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++){ char *s; - List_Read((yyvsp[-1].l), i, &s); + List_Read((yyvsp[(3) - (4)].l), i, &s); strcat((yyval.c), s); Free(s); } - List_Delete((yyvsp[-1].l)); - } -#line 12559 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(3) - (4)].l)); + ;} break; case 533: -#line 6131 "Gmsh.y" /* yacc.c:1646 */ +#line 6156 "Gmsh.y" { - (yyval.c) = (char *)Malloc((strlen((yyvsp[-1].c)) + 1) * sizeof(char)); + (yyval.c) = (char *)Malloc((strlen((yyvsp[(3) - (4)].c)) + 1) * sizeof(char)); int i; - for(i = strlen((yyvsp[-1].c)) - 1; i >= 0; i--){ - if((yyvsp[-1].c)[i] == '.'){ - strncpy((yyval.c), (yyvsp[-1].c), i); + for(i = strlen((yyvsp[(3) - (4)].c)) - 1; i >= 0; i--){ + if((yyvsp[(3) - (4)].c)[i] == '.'){ + strncpy((yyval.c), (yyvsp[(3) - (4)].c), i); (yyval.c)[i]='\0'; break; } } - if(i <= 0) strcpy((yyval.c), (yyvsp[-1].c)); - Free((yyvsp[-1].c)); - } -#line 12577 "Gmsh.tab.cpp" /* yacc.c:1646 */ + if(i <= 0) strcpy((yyval.c), (yyvsp[(3) - (4)].c)); + Free((yyvsp[(3) - (4)].c)); + ;} break; case 534: -#line 6145 "Gmsh.y" /* yacc.c:1646 */ +#line 6170 "Gmsh.y" { - (yyval.c) = (char *)Malloc((strlen((yyvsp[-1].c)) + 1) * sizeof(char)); + (yyval.c) = (char *)Malloc((strlen((yyvsp[(3) - (4)].c)) + 1) * sizeof(char)); int i; - for(i = strlen((yyvsp[-1].c)) - 1; i >= 0; i--){ - if((yyvsp[-1].c)[i] == '/' || (yyvsp[-1].c)[i] == '\\') + for(i = strlen((yyvsp[(3) - (4)].c)) - 1; i >= 0; i--){ + if((yyvsp[(3) - (4)].c)[i] == '/' || (yyvsp[(3) - (4)].c)[i] == '\\') break; } if(i <= 0) - strcpy((yyval.c), (yyvsp[-1].c)); + strcpy((yyval.c), (yyvsp[(3) - (4)].c)); else - strcpy((yyval.c), &(yyvsp[-1].c)[i+1]); - Free((yyvsp[-1].c)); - } -#line 12595 "Gmsh.tab.cpp" /* yacc.c:1646 */ + strcpy((yyval.c), &(yyvsp[(3) - (4)].c)[i+1]); + Free((yyvsp[(3) - (4)].c)); + ;} break; case 535: -#line 6159 "Gmsh.y" /* yacc.c:1646 */ +#line 6184 "Gmsh.y" { - std::string input = (yyvsp[-5].c); - std::string substr_old = (yyvsp[-3].c); - std::string substr_new = (yyvsp[-1].c); + std::string input = (yyvsp[(3) - (8)].c); + std::string substr_old = (yyvsp[(5) - (8)].c); + std::string substr_new = (yyvsp[(7) - (8)].c); std::string ret = ReplaceSubString(substr_old, substr_new, input); (yyval.c) = (char *)Malloc((ret.size() + 1) * sizeof(char)); strcpy((yyval.c), ret.c_str()); - Free((yyvsp[-5].c)); - Free((yyvsp[-3].c)); - Free((yyvsp[-1].c)); - } -#line 12611 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(3) - (8)].c)); + Free((yyvsp[(5) - (8)].c)); + Free((yyvsp[(7) - (8)].c)); + ;} break; case 536: -#line 6171 "Gmsh.y" /* yacc.c:1646 */ +#line 6196 "Gmsh.y" { int size = 1; - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++) - size += strlen(*(char**)List_Pointer((yyvsp[-1].l), i)) + 1; + for(int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++) + size += strlen(*(char**)List_Pointer((yyvsp[(3) - (4)].l), i)) + 1; (yyval.c) = (char*)Malloc(size * sizeof(char)); (yyval.c)[0] = '\0'; - for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ + for(int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++){ char *s; - List_Read((yyvsp[-1].l), i, &s); + List_Read((yyvsp[(3) - (4)].l), i, &s); strcat((yyval.c), s); Free(s); - if(i != List_Nbr((yyvsp[-1].l)) - 1) strcat((yyval.c), "\n"); + if(i != List_Nbr((yyvsp[(3) - (4)].l)) - 1) strcat((yyval.c), "\n"); } - List_Delete((yyvsp[-1].l)); - } -#line 12631 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(3) - (4)].l)); + ;} break; case 537: -#line 6187 "Gmsh.y" /* yacc.c:1646 */ +#line 6212 "Gmsh.y" { int i = 0; - while ((yyvsp[-1].c)[i]) { - (yyvsp[-1].c)[i] = toupper((yyvsp[-1].c)[i]); + while ((yyvsp[(3) - (4)].c)[i]) { + (yyvsp[(3) - (4)].c)[i] = toupper((yyvsp[(3) - (4)].c)[i]); i++; } - (yyval.c) = (yyvsp[-1].c); - } -#line 12644 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.c) = (yyvsp[(3) - (4)].c); + ;} break; case 538: -#line 6196 "Gmsh.y" /* yacc.c:1646 */ +#line 6221 "Gmsh.y" { int i = 0; - while ((yyvsp[-1].c)[i]) { - (yyvsp[-1].c)[i] = tolower((yyvsp[-1].c)[i]); + while ((yyvsp[(3) - (4)].c)[i]) { + (yyvsp[(3) - (4)].c)[i] = tolower((yyvsp[(3) - (4)].c)[i]); i++; } - (yyval.c) = (yyvsp[-1].c); - } -#line 12657 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.c) = (yyvsp[(3) - (4)].c); + ;} break; case 539: -#line 6205 "Gmsh.y" /* yacc.c:1646 */ +#line 6230 "Gmsh.y" { int i = 0; - while ((yyvsp[-1].c)[i]) { - if (i > 0 && (yyvsp[-1].c)[i-1] != '_') - (yyvsp[-1].c)[i] = tolower((yyvsp[-1].c)[i]); + while ((yyvsp[(3) - (4)].c)[i]) { + if (i > 0 && (yyvsp[(3) - (4)].c)[i-1] != '_') + (yyvsp[(3) - (4)].c)[i] = tolower((yyvsp[(3) - (4)].c)[i]); i++; } - (yyval.c) = (yyvsp[-1].c); - } -#line 12671 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.c) = (yyvsp[(3) - (4)].c); + ;} break; case 540: -#line 6215 "Gmsh.y" /* yacc.c:1646 */ +#line 6240 "Gmsh.y" { - if((yyvsp[-5].d)){ - (yyval.c) = (yyvsp[-3].c); - Free((yyvsp[-1].c)); + if((yyvsp[(3) - (8)].d)){ + (yyval.c) = (yyvsp[(5) - (8)].c); + Free((yyvsp[(7) - (8)].c)); } else{ - (yyval.c) = (yyvsp[-1].c); - Free((yyvsp[-3].c)); + (yyval.c) = (yyvsp[(7) - (8)].c); + Free((yyvsp[(5) - (8)].c)); } - } -#line 12686 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 541: -#line 6226 "Gmsh.y" /* yacc.c:1646 */ +#line 6251 "Gmsh.y" { - (yyval.c) = (yyvsp[-1].c); - } -#line 12694 "Gmsh.tab.cpp" /* yacc.c:1646 */ + (yyval.c) = (yyvsp[(3) - (4)].c); + ;} break; case 542: -#line 6230 "Gmsh.y" /* yacc.c:1646 */ +#line 6255 "Gmsh.y" { char tmpstring[5000]; - int i = PrintListOfDouble((yyvsp[-3].c), (yyvsp[-1].l), tmpstring); + int i = PrintListOfDouble((yyvsp[(3) - (6)].c), (yyvsp[(5) - (6)].l), tmpstring); if(i < 0){ yymsg(0, "Too few arguments in Sprintf"); - (yyval.c) = (yyvsp[-3].c); + (yyval.c) = (yyvsp[(3) - (6)].c); } else if(i > 0){ yymsg(0, "%d extra argument%s in Sprintf", i, (i > 1) ? "s" : ""); - (yyval.c) = (yyvsp[-3].c); + (yyval.c) = (yyvsp[(3) - (6)].c); } else{ (yyval.c) = (char*)Malloc((strlen(tmpstring) + 1) * sizeof(char)); strcpy((yyval.c), tmpstring); - Free((yyvsp[-3].c)); + Free((yyvsp[(3) - (6)].c)); } - List_Delete((yyvsp[-1].l)); - } -#line 12717 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Delete((yyvsp[(5) - (6)].l)); + ;} break; case 543: -#line 6249 "Gmsh.y" /* yacc.c:1646 */ +#line 6274 "Gmsh.y" { - std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[-1].c)); + std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[(3) - (4)].c)); (yyval.c) = (char*)Malloc((tmp.size() + 1) * sizeof(char)); strcpy((yyval.c), tmp.c_str()); - Free((yyvsp[-1].c)); - } -#line 12728 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(3) - (4)].c)); + ;} break; case 544: -#line 6256 "Gmsh.y" /* yacc.c:1646 */ +#line 6281 "Gmsh.y" { std::string tmp = SplitFileName(GetAbsolutePath(gmsh_yyname))[0]; (yyval.c) = (char*)Malloc((tmp.size() + 1) * sizeof(char)); strcpy((yyval.c), tmp.c_str()); - } -#line 12738 "Gmsh.tab.cpp" /* yacc.c:1646 */ + ;} break; case 545: -#line 6262 "Gmsh.y" /* yacc.c:1646 */ +#line 6287 "Gmsh.y" { - std::string tmp = SplitFileName((yyvsp[-1].c))[0]; + std::string tmp = SplitFileName((yyvsp[(3) - (4)].c))[0]; (yyval.c) = (char*)Malloc((tmp.size() + 1) * sizeof(char)); strcpy((yyval.c), tmp.c_str()); - Free((yyvsp[-1].c)); - } -#line 12749 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(3) - (4)].c)); + ;} break; case 546: -#line 6269 "Gmsh.y" /* yacc.c:1646 */ +#line 6294 "Gmsh.y" { - std::string tmp = GetAbsolutePath((yyvsp[-1].c)); + std::string tmp = GetAbsolutePath((yyvsp[(3) - (4)].c)); (yyval.c) = (char*)Malloc((tmp.size() + 1) * sizeof(char)); strcpy((yyval.c), tmp.c_str()); - Free((yyvsp[-1].c)); - } -#line 12760 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(3) - (4)].c)); + ;} break; case 547: -#line 6276 "Gmsh.y" /* yacc.c:1646 */ - { floatOptions.clear(); charOptions.clear(); } -#line 12766 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 6301 "Gmsh.y" + { floatOptions.clear(); charOptions.clear(); ;} break; case 548: -#line 6278 "Gmsh.y" /* yacc.c:1646 */ +#line 6303 "Gmsh.y" { - std::string val((yyvsp[-3].c)); + std::string val((yyvsp[(3) - (6)].c)); Msg::ExchangeOnelabParameter("", val, floatOptions, charOptions); (yyval.c) = (char*)Malloc((val.size() + 1) * sizeof(char)); strcpy((yyval.c), val.c_str()); - Free((yyvsp[-3].c)); - } -#line 12778 "Gmsh.tab.cpp" /* yacc.c:1646 */ + Free((yyvsp[(3) - (6)].c)); + ;} break; case 549: -#line 6289 "Gmsh.y" /* yacc.c:1646 */ +#line 6314 "Gmsh.y" { (yyval.l) = List_Create(20,20,sizeof(char*)); - List_Add((yyval.l), &((yyvsp[0].c))); - } -#line 12787 "Gmsh.tab.cpp" /* yacc.c:1646 */ + List_Add((yyval.l), &((yyvsp[(1) - (1)].c))); + ;} break; case 550: -#line 6294 "Gmsh.y" /* yacc.c:1646 */ - { List_Add((yyval.l), &((yyvsp[0].c))); } -#line 12793 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 6319 "Gmsh.y" + { List_Add((yyval.l), &((yyvsp[(3) - (3)].c))); ;} break; case 551: -#line 6300 "Gmsh.y" /* yacc.c:1646 */ +#line 6325 "Gmsh.y" { char tmpstr[256]; - sprintf(tmpstr, "_%d", (int)(yyvsp[-1].d)); - (yyval.c) = (char *)Malloc((strlen((yyvsp[-4].c))+strlen(tmpstr)+1)*sizeof(char)); - strcpy((yyval.c), (yyvsp[-4].c)); strcat((yyval.c), tmpstr); - Free((yyvsp[-4].c)); - } -#line 12805 "Gmsh.tab.cpp" /* yacc.c:1646 */ + sprintf(tmpstr, "_%d", (int)(yyvsp[(4) - (5)].d)); + (yyval.c) = (char *)Malloc((strlen((yyvsp[(1) - (5)].c))+strlen(tmpstr)+1)*sizeof(char)); + strcpy((yyval.c), (yyvsp[(1) - (5)].c)); strcat((yyval.c), tmpstr); + Free((yyvsp[(1) - (5)].c)); + ;} break; case 552: -#line 6309 "Gmsh.y" /* yacc.c:1646 */ +#line 6334 "Gmsh.y" { char tmpstr[256]; - sprintf(tmpstr, "_%d", (int)(yyvsp[-1].d)); - (yyval.c) = (char *)Malloc((strlen((yyvsp[-4].c))+strlen(tmpstr)+1)*sizeof(char)) ; - strcpy((yyval.c), (yyvsp[-4].c)) ; strcat((yyval.c), tmpstr) ; - Free((yyvsp[-4].c)); - } -#line 12817 "Gmsh.tab.cpp" /* yacc.c:1646 */ + sprintf(tmpstr, "_%d", (int)(yyvsp[(4) - (5)].d)); + (yyval.c) = (char *)Malloc((strlen((yyvsp[(1) - (5)].c))+strlen(tmpstr)+1)*sizeof(char)) ; + strcpy((yyval.c), (yyvsp[(1) - (5)].c)) ; strcat((yyval.c), tmpstr) ; + Free((yyvsp[(1) - (5)].c)); + ;} break; case 553: -#line 6322 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.c) = (yyvsp[0].c); } -#line 12823 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 6347 "Gmsh.y" + { (yyval.c) = (yyvsp[(1) - (1)].c); ;} break; case 554: -#line 6325 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.c) = (yyvsp[0].c); } -#line 12829 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 6350 "Gmsh.y" + { (yyval.c) = (yyvsp[(1) - (1)].c); ;} break; case 555: -#line 6329 "Gmsh.y" /* yacc.c:1646 */ - { (yyval.c) = (yyvsp[-1].c); } -#line 12835 "Gmsh.tab.cpp" /* yacc.c:1646 */ +#line 6354 "Gmsh.y" + { (yyval.c) = (yyvsp[(3) - (4)].c); ;} break; -#line 12839 "Gmsh.tab.cpp" /* yacc.c:1646 */ +/* Line 1267 of yacc.c. */ +#line 12993 "Gmsh.tab.cpp" default: break; } - /* User semantic actions sometimes alter yychar, and that requires - that yytoken be updated with the new translation. We take the - approach of translating immediately before every use of yytoken. - One alternative is translating here after every semantic action, - but that translation would be missed if the semantic action invokes - YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or - if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an - incorrect destructor might then be invoked immediately. In the - case of YYERROR or YYBACKUP, subsequent parser actions might lead - to an incorrect destructor call or verbose syntax error message - before the lookahead is translated. */ YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); YYPOPSTACK (yylen); @@ -12857,7 +13000,8 @@ yyreduce: *++yyvsp = yyval; - /* Now 'shift' the result of the reduction. Determine what state + + /* Now `shift' the result of the reduction. Determine what state that goes to, based on the state we popped back to and the rule number reduced by. */ @@ -12872,14 +13016,10 @@ yyreduce: goto yynewstate; -/*--------------------------------------. -| yyerrlab -- here on detecting error. | -`--------------------------------------*/ +/*------------------------------------. +| yyerrlab -- here on detecting error | +`------------------------------------*/ yyerrlab: - /* Make sure we have latest lookahead translation. See comments at - user semantic actions for why this is necessary. */ - yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar); - /* If not already recovering from an error, report this error. */ if (!yyerrstatus) { @@ -12887,36 +13027,37 @@ yyerrlab: #if ! YYERROR_VERBOSE yyerror (YY_("syntax error")); #else -# define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \ - yyssp, yytoken) { - char const *yymsgp = YY_("syntax error"); - int yysyntax_error_status; - yysyntax_error_status = YYSYNTAX_ERROR; - if (yysyntax_error_status == 0) - yymsgp = yymsg; - else if (yysyntax_error_status == 1) - { - if (yymsg != yymsgbuf) - YYSTACK_FREE (yymsg); - yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc); - if (!yymsg) - { - yymsg = yymsgbuf; - yymsg_alloc = sizeof yymsgbuf; - yysyntax_error_status = 2; - } - else - { - yysyntax_error_status = YYSYNTAX_ERROR; - yymsgp = yymsg; - } - } - yyerror (yymsgp); - if (yysyntax_error_status == 2) - goto yyexhaustedlab; + YYSIZE_T yysize = yysyntax_error (0, yystate, yychar); + if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM) + { + YYSIZE_T yyalloc = 2 * yysize; + if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM)) + yyalloc = YYSTACK_ALLOC_MAXIMUM; + if (yymsg != yymsgbuf) + YYSTACK_FREE (yymsg); + yymsg = (char *) YYSTACK_ALLOC (yyalloc); + if (yymsg) + yymsg_alloc = yyalloc; + else + { + yymsg = yymsgbuf; + yymsg_alloc = sizeof yymsgbuf; + } + } + + if (0 < yysize && yysize <= yymsg_alloc) + { + (void) yysyntax_error (yymsg, yystate, yychar); + yyerror (yymsg); + } + else + { + yyerror (YY_("syntax error")); + if (yysize != 0) + goto yyexhaustedlab; + } } -# undef YYSYNTAX_ERROR #endif } @@ -12924,24 +13065,24 @@ yyerrlab: if (yyerrstatus == 3) { - /* If just tried and failed to reuse lookahead token after an - error, discard it. */ + /* If just tried and failed to reuse look-ahead token after an + error, discard it. */ if (yychar <= YYEOF) - { - /* Return failure if at end of input. */ - if (yychar == YYEOF) - YYABORT; - } + { + /* Return failure if at end of input. */ + if (yychar == YYEOF) + YYABORT; + } else - { - yydestruct ("Error: discarding", - yytoken, &yylval); - yychar = YYEMPTY; - } + { + yydestruct ("Error: discarding", + yytoken, &yylval); + yychar = YYEMPTY; + } } - /* Else will try to reuse lookahead token after shifting the error + /* Else will try to reuse look-ahead token after shifting the error token. */ goto yyerrlab1; @@ -12957,7 +13098,7 @@ yyerrorlab: if (/*CONSTCOND*/ 0) goto yyerrorlab; - /* Do not reclaim the symbols of the rule whose action triggered + /* Do not reclaim the symbols of the rule which action triggered this YYERROR. */ YYPOPSTACK (yylen); yylen = 0; @@ -12970,37 +13111,38 @@ yyerrorlab: | yyerrlab1 -- common code for both syntax error and YYERROR. | `-------------------------------------------------------------*/ yyerrlab1: - yyerrstatus = 3; /* Each real token shifted decrements this. */ + yyerrstatus = 3; /* Each real token shifted decrements this. */ for (;;) { yyn = yypact[yystate]; - if (!yypact_value_is_default (yyn)) - { - yyn += YYTERROR; - if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) - { - yyn = yytable[yyn]; - if (0 < yyn) - break; - } - } + if (yyn != YYPACT_NINF) + { + yyn += YYTERROR; + if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) + { + yyn = yytable[yyn]; + if (0 < yyn) + break; + } + } /* Pop the current state because it cannot handle the error token. */ if (yyssp == yyss) - YYABORT; + YYABORT; yydestruct ("Error: popping", - yystos[yystate], yyvsp); + yystos[yystate], yyvsp); YYPOPSTACK (1); yystate = *yyssp; YY_STACK_PRINT (yyss, yyssp); } - YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN + if (yyn == YYFINAL) + YYACCEPT; + *++yyvsp = yylval; - YY_IGNORE_MAYBE_UNINITIALIZED_END /* Shift the error token. */ @@ -13024,7 +13166,7 @@ yyabortlab: yyresult = 1; goto yyreturn; -#if !defined yyoverflow || YYERROR_VERBOSE +#ifndef yyoverflow /*-------------------------------------------------. | yyexhaustedlab -- memory exhaustion comes here. | `-------------------------------------------------*/ @@ -13035,22 +13177,17 @@ yyexhaustedlab: #endif yyreturn: - if (yychar != YYEMPTY) - { - /* Make sure we have latest lookahead translation. See comments at - user semantic actions for why this is necessary. */ - yytoken = YYTRANSLATE (yychar); - yydestruct ("Cleanup: discarding lookahead", - yytoken, &yylval); - } - /* Do not reclaim the symbols of the rule whose action triggered + if (yychar != YYEOF && yychar != YYEMPTY) + yydestruct ("Cleanup: discarding lookahead", + yytoken, &yylval); + /* Do not reclaim the symbols of the rule which action triggered this YYABORT or YYACCEPT. */ YYPOPSTACK (yylen); YY_STACK_PRINT (yyss, yyssp); while (yyssp != yyss) { yydestruct ("Cleanup: popping", - yystos[*yyssp], yyvsp); + yystos[*yyssp], yyvsp); YYPOPSTACK (1); } #ifndef yyoverflow @@ -13061,9 +13198,12 @@ yyreturn: if (yymsg != yymsgbuf) YYSTACK_FREE (yymsg); #endif - return yyresult; + /* Make sure YYID is used. */ + return YYID (yyresult); } -#line 6332 "Gmsh.y" /* yacc.c:1906 */ + + +#line 6357 "Gmsh.y" void assignVariable(const std::string &name, int index, int assignType, @@ -13416,3 +13556,4 @@ void computeAffineTransformation(SPoint3& origin, SPoint3& axis, for (int i = 0; i < 4; i++) tfo[12+i] = 0; tfo[15] = 1; } + diff --git a/Parser/Gmsh.tab.hpp b/Parser/Gmsh.tab.hpp index 59ad1e5b80..38fdc5226c 100644 --- a/Parser/Gmsh.tab.hpp +++ b/Parser/Gmsh.tab.hpp @@ -1,13 +1,14 @@ -/* A Bison parser, made by GNU Bison 3.0.4. */ +/* A Bison parser, made by GNU Bison 2.3. */ -/* Bison interface for Yacc-like parsers in C +/* Skeleton interface for Bison's Yacc-like parsers in C - Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc. + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 + Free Software Foundation, Inc. - This program is free software: you can redistribute it and/or modify + 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 3 of the License, or - (at your option) any later version. + 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 @@ -15,7 +16,9 @@ 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, see <http://www.gnu.org/licenses/>. */ + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. */ /* As a special exception, you may create a larger work that contains part or all of the Bison parser skeleton and distribute that work @@ -30,217 +33,395 @@ This special exception was added by the Free Software Foundation in version 2.2 of Bison. */ -#ifndef YY_GMSH_YY_GMSH_TAB_HPP_INCLUDED -# define YY_GMSH_YY_GMSH_TAB_HPP_INCLUDED -/* Debug traces. */ -#ifndef YYDEBUG -# define YYDEBUG 0 -#endif -#if YYDEBUG -extern int gmsh_yydebug; -#endif - -/* Token type. */ +/* Tokens. */ #ifndef YYTOKENTYPE # define YYTOKENTYPE - 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, - tTestLevel = 269, - tExp = 270, - tLog = 271, - tLog10 = 272, - tSqrt = 273, - tSin = 274, - tAsin = 275, - tCos = 276, - tAcos = 277, - tTan = 278, - tRand = 279, - tAtan = 280, - tAtan2 = 281, - tSinh = 282, - tCosh = 283, - tTanh = 284, - tFabs = 285, - tFloor = 286, - tCeil = 287, - tRound = 288, - tFmod = 289, - tModulo = 290, - tHypot = 291, - tList = 292, - tPrintf = 293, - tError = 294, - tStr = 295, - tSprintf = 296, - tStrCat = 297, - tStrPrefix = 298, - tStrRelative = 299, - tStrReplace = 300, - tAbsolutePath = 301, - tDirName = 302, - tFind = 303, - tStrFind = 304, - tStrCmp = 305, - tStrChoice = 306, - tUpperCase = 307, - tLowerCase = 308, - tLowerCaseIn = 309, - tTextAttributes = 310, - tBoundingBox = 311, - tDraw = 312, - tSetChanged = 313, - tToday = 314, - tFixRelativePath = 315, - tCurrentDirectory = 316, - tSyncModel = 317, - tNewModel = 318, - tOnelabAction = 319, - tOnelabRun = 320, - tCpu = 321, - tMemory = 322, - tTotalMemory = 323, - tCreateTopology = 324, - tCreateTopologyNoHoles = 325, - tDistanceFunction = 326, - tDefineConstant = 327, - tUndefineConstant = 328, - tDefineNumber = 329, - tDefineString = 330, - tSetNumber = 331, - tSetString = 332, - tPoint = 333, - tCircle = 334, - tEllipse = 335, - tLine = 336, - tSphere = 337, - tPolarSphere = 338, - tSurface = 339, - tSpline = 340, - tVolume = 341, - tCharacteristic = 342, - tLength = 343, - tParametric = 344, - tElliptic = 345, - tRefineMesh = 346, - tAdaptMesh = 347, - tRelocateMesh = 348, - tPlane = 349, - tRuled = 350, - tTransfinite = 351, - tComplex = 352, - tPhysical = 353, - tCompound = 354, - tPeriodic = 355, - tUsing = 356, - tPlugin = 357, - tDegenerated = 358, - tRecursive = 359, - tRotate = 360, - tTranslate = 361, - tSymmetry = 362, - tDilate = 363, - tExtrude = 364, - tLevelset = 365, - tAffine = 366, - tRecombine = 367, - tSmoother = 368, - tSplit = 369, - tDelete = 370, - tCoherence = 371, - tIntersect = 372, - tMeshAlgorithm = 373, - tReverse = 374, - tLayers = 375, - tScaleLast = 376, - tHole = 377, - tAlias = 378, - tAliasWithOptions = 379, - tCopyOptions = 380, - tQuadTriAddVerts = 381, - tQuadTriNoNewVerts = 382, - tQuadTriSngl = 383, - tQuadTriDbl = 384, - tRecombLaterals = 385, - tTransfQuadTri = 386, - tText2D = 387, - tText3D = 388, - tInterpolationScheme = 389, - tTime = 390, - tCombine = 391, - tBSpline = 392, - tBezier = 393, - tNurbs = 394, - tNurbsOrder = 395, - tNurbsKnots = 396, - tColor = 397, - tColorTable = 398, - tFor = 399, - tIn = 400, - tEndFor = 401, - tIf = 402, - tElseIf = 403, - tElse = 404, - tEndIf = 405, - tExit = 406, - tAbort = 407, - tField = 408, - tReturn = 409, - tCall = 410, - tMacro = 411, - tShow = 412, - tHide = 413, - tGetValue = 414, - tGetStringValue = 415, - tGetEnv = 416, - tGetString = 417, - tGetNumber = 418, - tHomology = 419, - tCohomology = 420, - tBetti = 421, - tExists = 422, - tFileExists = 423, - tGMSH_MAJOR_VERSION = 424, - tGMSH_MINOR_VERSION = 425, - tGMSH_PATCH_VERSION = 426, - tGmshExecutableName = 427, - tSetPartition = 428, - tNameToString = 429, - tStringToName = 430, - tAFFECTPLUS = 431, - tAFFECTMINUS = 432, - tAFFECTTIMES = 433, - tAFFECTDIVIDE = 434, - tOR = 435, - tAND = 436, - tEQUAL = 437, - tNOTEQUAL = 438, - tLESSOREQUAL = 439, - tGREATEROREQUAL = 440, - tPLUSPLUS = 441, - tMINUSMINUS = 442, - UNARYPREC = 443 - }; + /* 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, + tTestLevel = 269, + tExp = 270, + tLog = 271, + tLog10 = 272, + tSqrt = 273, + tSin = 274, + tAsin = 275, + tCos = 276, + tAcos = 277, + tTan = 278, + tRand = 279, + tAtan = 280, + tAtan2 = 281, + tSinh = 282, + tCosh = 283, + tTanh = 284, + tFabs = 285, + tFloor = 286, + tCeil = 287, + tRound = 288, + tFmod = 289, + tModulo = 290, + tHypot = 291, + tList = 292, + tPrintf = 293, + tError = 294, + tStr = 295, + tSprintf = 296, + tStrCat = 297, + tStrPrefix = 298, + tStrRelative = 299, + tStrReplace = 300, + tAbsolutePath = 301, + tDirName = 302, + tFind = 303, + tStrFind = 304, + tStrCmp = 305, + tStrChoice = 306, + tUpperCase = 307, + tLowerCase = 308, + tLowerCaseIn = 309, + tTextAttributes = 310, + tBoundingBox = 311, + tDraw = 312, + tSetChanged = 313, + tToday = 314, + tFixRelativePath = 315, + tCurrentDirectory = 316, + tSyncModel = 317, + tNewModel = 318, + tOnelabAction = 319, + tOnelabRun = 320, + tCpu = 321, + tMemory = 322, + tTotalMemory = 323, + tCreateTopology = 324, + tCreateTopologyNoHoles = 325, + tDistanceFunction = 326, + tDefineConstant = 327, + tUndefineConstant = 328, + tDefineNumber = 329, + tDefineString = 330, + tSetNumber = 331, + tSetString = 332, + tPoint = 333, + tCircle = 334, + tEllipse = 335, + tLine = 336, + tSphere = 337, + tPolarSphere = 338, + tSurface = 339, + tSpline = 340, + tVolume = 341, + tCharacteristic = 342, + tLength = 343, + tParametric = 344, + tElliptic = 345, + tRefineMesh = 346, + tAdaptMesh = 347, + tRelocateMesh = 348, + tPlane = 349, + tRuled = 350, + tTransfinite = 351, + tComplex = 352, + tPhysical = 353, + tCompound = 354, + tPeriodic = 355, + tUsing = 356, + tPlugin = 357, + tDegenerated = 358, + tRecursive = 359, + tRotate = 360, + tTranslate = 361, + tSymmetry = 362, + tDilate = 363, + tExtrude = 364, + tLevelset = 365, + tAffine = 366, + tRecombine = 367, + tSmoother = 368, + tSplit = 369, + tDelete = 370, + tCoherence = 371, + tIntersect = 372, + tMeshAlgorithm = 373, + tReverse = 374, + tLayers = 375, + tScaleLast = 376, + tHole = 377, + tAlias = 378, + tAliasWithOptions = 379, + tCopyOptions = 380, + tQuadTriAddVerts = 381, + tQuadTriNoNewVerts = 382, + tQuadTriSngl = 383, + tQuadTriDbl = 384, + tRecombLaterals = 385, + tTransfQuadTri = 386, + tText2D = 387, + tText3D = 388, + tInterpolationScheme = 389, + tTime = 390, + tCombine = 391, + tBSpline = 392, + tBezier = 393, + tNurbs = 394, + tNurbsOrder = 395, + tNurbsKnots = 396, + tColor = 397, + tColorTable = 398, + tFor = 399, + tIn = 400, + tEndFor = 401, + tIf = 402, + tElseIf = 403, + tElse = 404, + tEndIf = 405, + tExit = 406, + tAbort = 407, + tField = 408, + tReturn = 409, + tCall = 410, + tMacro = 411, + tShow = 412, + tHide = 413, + tGetValue = 414, + tGetStringValue = 415, + tGetEnv = 416, + tGetString = 417, + tGetNumber = 418, + tHomology = 419, + tCohomology = 420, + tBetti = 421, + tExists = 422, + tFileExists = 423, + tGMSH_MAJOR_VERSION = 424, + tGMSH_MINOR_VERSION = 425, + tGMSH_PATCH_VERSION = 426, + tGmshExecutableName = 427, + tSetPartition = 428, + tNameToString = 429, + tStringToName = 430, + tAFFECTDIVIDE = 431, + tAFFECTTIMES = 432, + tAFFECTMINUS = 433, + tAFFECTPLUS = 434, + tOR = 435, + tAND = 436, + tNOTEQUAL = 437, + tEQUAL = 438, + tGREATEROREQUAL = 439, + tLESSOREQUAL = 440, + UNARYPREC = 441, + tMINUSMINUS = 442, + tPLUSPLUS = 443 + }; #endif +/* Tokens. */ +#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 tEuclidian 267 +#define tCoordinates 268 +#define tTestLevel 269 +#define tExp 270 +#define tLog 271 +#define tLog10 272 +#define tSqrt 273 +#define tSin 274 +#define tAsin 275 +#define tCos 276 +#define tAcos 277 +#define tTan 278 +#define tRand 279 +#define tAtan 280 +#define tAtan2 281 +#define tSinh 282 +#define tCosh 283 +#define tTanh 284 +#define tFabs 285 +#define tFloor 286 +#define tCeil 287 +#define tRound 288 +#define tFmod 289 +#define tModulo 290 +#define tHypot 291 +#define tList 292 +#define tPrintf 293 +#define tError 294 +#define tStr 295 +#define tSprintf 296 +#define tStrCat 297 +#define tStrPrefix 298 +#define tStrRelative 299 +#define tStrReplace 300 +#define tAbsolutePath 301 +#define tDirName 302 +#define tFind 303 +#define tStrFind 304 +#define tStrCmp 305 +#define tStrChoice 306 +#define tUpperCase 307 +#define tLowerCase 308 +#define tLowerCaseIn 309 +#define tTextAttributes 310 +#define tBoundingBox 311 +#define tDraw 312 +#define tSetChanged 313 +#define tToday 314 +#define tFixRelativePath 315 +#define tCurrentDirectory 316 +#define tSyncModel 317 +#define tNewModel 318 +#define tOnelabAction 319 +#define tOnelabRun 320 +#define tCpu 321 +#define tMemory 322 +#define tTotalMemory 323 +#define tCreateTopology 324 +#define tCreateTopologyNoHoles 325 +#define tDistanceFunction 326 +#define tDefineConstant 327 +#define tUndefineConstant 328 +#define tDefineNumber 329 +#define tDefineString 330 +#define tSetNumber 331 +#define tSetString 332 +#define tPoint 333 +#define tCircle 334 +#define tEllipse 335 +#define tLine 336 +#define tSphere 337 +#define tPolarSphere 338 +#define tSurface 339 +#define tSpline 340 +#define tVolume 341 +#define tCharacteristic 342 +#define tLength 343 +#define tParametric 344 +#define tElliptic 345 +#define tRefineMesh 346 +#define tAdaptMesh 347 +#define tRelocateMesh 348 +#define tPlane 349 +#define tRuled 350 +#define tTransfinite 351 +#define tComplex 352 +#define tPhysical 353 +#define tCompound 354 +#define tPeriodic 355 +#define tUsing 356 +#define tPlugin 357 +#define tDegenerated 358 +#define tRecursive 359 +#define tRotate 360 +#define tTranslate 361 +#define tSymmetry 362 +#define tDilate 363 +#define tExtrude 364 +#define tLevelset 365 +#define tAffine 366 +#define tRecombine 367 +#define tSmoother 368 +#define tSplit 369 +#define tDelete 370 +#define tCoherence 371 +#define tIntersect 372 +#define tMeshAlgorithm 373 +#define tReverse 374 +#define tLayers 375 +#define tScaleLast 376 +#define tHole 377 +#define tAlias 378 +#define tAliasWithOptions 379 +#define tCopyOptions 380 +#define tQuadTriAddVerts 381 +#define tQuadTriNoNewVerts 382 +#define tQuadTriSngl 383 +#define tQuadTriDbl 384 +#define tRecombLaterals 385 +#define tTransfQuadTri 386 +#define tText2D 387 +#define tText3D 388 +#define tInterpolationScheme 389 +#define tTime 390 +#define tCombine 391 +#define tBSpline 392 +#define tBezier 393 +#define tNurbs 394 +#define tNurbsOrder 395 +#define tNurbsKnots 396 +#define tColor 397 +#define tColorTable 398 +#define tFor 399 +#define tIn 400 +#define tEndFor 401 +#define tIf 402 +#define tElseIf 403 +#define tElse 404 +#define tEndIf 405 +#define tExit 406 +#define tAbort 407 +#define tField 408 +#define tReturn 409 +#define tCall 410 +#define tMacro 411 +#define tShow 412 +#define tHide 413 +#define tGetValue 414 +#define tGetStringValue 415 +#define tGetEnv 416 +#define tGetString 417 +#define tGetNumber 418 +#define tHomology 419 +#define tCohomology 420 +#define tBetti 421 +#define tExists 422 +#define tFileExists 423 +#define tGMSH_MAJOR_VERSION 424 +#define tGMSH_MINOR_VERSION 425 +#define tGMSH_PATCH_VERSION 426 +#define tGmshExecutableName 427 +#define tSetPartition 428 +#define tNameToString 429 +#define tStringToName 430 +#define tAFFECTDIVIDE 431 +#define tAFFECTTIMES 432 +#define tAFFECTMINUS 433 +#define tAFFECTPLUS 434 +#define tOR 435 +#define tAND 436 +#define tNOTEQUAL 437 +#define tEQUAL 438 +#define tGREATEROREQUAL 439 +#define tLESSOREQUAL 440 +#define UNARYPREC 441 +#define tMINUSMINUS 442 +#define tPLUSPLUS 443 + -/* Value type. */ -#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED -union YYSTYPE -{ -#line 110 "Gmsh.y" /* yacc.c:1909 */ +#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED +typedef union YYSTYPE +#line 110 "Gmsh.y" +{ char *c; int i; unsigned int u; @@ -248,18 +429,14 @@ union YYSTYPE double v[5]; Shape s; List_T *l; - -#line 253 "Gmsh.tab.hpp" /* yacc.c:1909 */ -}; - -typedef union YYSTYPE YYSTYPE; -# define YYSTYPE_IS_TRIVIAL 1 +} +/* Line 1529 of yacc.c. */ +#line 435 "Gmsh.tab.hpp" + YYSTYPE; +# define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 +# define YYSTYPE_IS_TRIVIAL 1 #endif - extern YYSTYPE gmsh_yylval; -int gmsh_yyparse (void); - -#endif /* !YY_GMSH_YY_GMSH_TAB_HPP_INCLUDED */ diff --git a/Parser/Gmsh.y b/Parser/Gmsh.y index aa03f28faa..ca4a681c06 100644 --- a/Parser/Gmsh.y +++ b/Parser/Gmsh.y @@ -4703,7 +4703,32 @@ Constraints : } | tLine '{' RecursiveListOfDouble '}' tIn tVolume '{' FExpr '}' tEND { - Msg::Error("Line in Volume not implemented yet"); + Volume *v = FindVolume((int)$8); + if(v){ + setVolumeEmbeddedCurves(v, $3); + } + else{ + GRegion *gr = GModel::current()->getRegionByTag((int)$8); + if(gr){ + for(int i = 0; i < List_Nbr($3); i++){ + double d; + List_Read($3, i, &d); + int iLine = (int)d; + GEdge *ge = GModel::current()->getEdgeByTag(iLine); + if(!ge){ // sync model in case the embedded face is a .geo face + GModel::current()->importGEOInternals(); + ge = GModel::current()->getEdgeByTag(iLine); + } + if(ge) + gr->addEmbeddedEdge(ge); + else + yymsg(0, "Unknown Curve %d", iLine); + } + } + else + yymsg(0, "Unknown volume %d", (int)$8); + } +// Msg::Error("Line in Volume not implemented yet"); } | tSurface '{' RecursiveListOfDouble '}' tIn tVolume '{' FExpr '}' tEND { diff --git a/Parser/Gmsh.yy.cpp b/Parser/Gmsh.yy.cpp index e132ded53f..4ae0cbbcdf 100644 --- a/Parser/Gmsh.yy.cpp +++ b/Parser/Gmsh.yy.cpp @@ -28,7 +28,7 @@ #define FLEX_SCANNER #define YY_FLEX_MAJOR_VERSION 2 #define YY_FLEX_MINOR_VERSION 5 -#define YY_FLEX_SUBMINOR_VERSION 37 +#define YY_FLEX_SUBMINOR_VERSION 35 #if YY_FLEX_SUBMINOR_VERSION > 0 #define FLEX_BETA #endif @@ -66,6 +66,7 @@ typedef int16_t flex_int16_t; typedef uint16_t flex_uint16_t; typedef int32_t flex_int32_t; typedef uint32_t flex_uint32_t; +typedef uint64_t flex_uint64_t; #else typedef signed char flex_int8_t; typedef short int flex_int16_t; @@ -73,6 +74,7 @@ typedef int flex_int32_t; typedef unsigned char flex_uint8_t; typedef unsigned short int flex_uint16_t; typedef unsigned int flex_uint32_t; +#endif /* ! C99 */ /* Limits of integral types. */ #ifndef INT8_MIN @@ -103,8 +105,6 @@ typedef unsigned int flex_uint32_t; #define UINT32_MAX (4294967295U) #endif -#endif /* ! C99 */ - #endif /* ! FLEXINT_H */ #ifdef __cplusplus @@ -375,7 +375,7 @@ static void yy_fatal_error (yyconst char msg[] ); */ #define YY_DO_BEFORE_ACTION \ (yytext_ptr) = yy_bp; \ - gmsh_yyleng = (size_t) (yy_cp - yy_bp); \ + gmsh_yyleng = (yy_size_t) (yy_cp - yy_bp); \ (yy_hold_char) = *yy_cp; \ *yy_cp = '\0'; \ (yy_c_buf_p) = yy_cp; @@ -1253,7 +1253,7 @@ static int input (void ); /* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). */ -#define ECHO do { if (fwrite( gmsh_yytext, gmsh_yyleng, 1, gmsh_yyout )) {} } while (0) +#define ECHO fwrite( gmsh_yytext, gmsh_yyleng, 1, gmsh_yyout ) #endif /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, @@ -1264,7 +1264,7 @@ static int input (void ); if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ { \ int c = '*'; \ - size_t n; \ + yy_size_t n; \ for ( n = 0; n < max_size && \ (c = getc( gmsh_yyin )) != EOF && c != '\n'; ++n ) \ buf[n] = (char) c; \ @@ -2682,7 +2682,7 @@ static int yy_get_next_buffer (void) { /* Not enough room in the buffer - grow it. */ /* just a shorter name for the current buffer */ - YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE; + YY_BUFFER_STATE b = YY_CURRENT_BUFFER; int yy_c_buf_p_offset = (int) ((yy_c_buf_p) - b->yy_ch_buf); @@ -2815,7 +2815,7 @@ static int yy_get_next_buffer (void) yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; yy_is_jam = (yy_current_state == 1073); - return yy_is_jam ? 0 : yy_current_state; + return yy_is_jam ? 0 : yy_current_state; } static void yyunput (int c, register char * yy_bp ) @@ -2903,7 +2903,7 @@ static int yy_get_next_buffer (void) case EOB_ACT_END_OF_FILE: { if ( gmsh_yywrap( ) ) - return EOF; + return 0; if ( ! (yy_did_buffer_switch_on_eof) ) YY_NEW_FILE; @@ -3039,6 +3039,10 @@ static void gmsh_yy_load_buffer_state (void) gmsh_yyfree((void *) b ); } +#ifndef __cplusplus +extern int isatty (int ); +#endif /* __cplusplus */ + /* Initializes or reinitializes a buffer. * This function is sometimes called more than once on the same buffer, * such as during a gmsh_yyrestart() or at EOF. @@ -3243,8 +3247,8 @@ YY_BUFFER_STATE gmsh_yy_scan_string (yyconst char * yystr ) /** Setup the input buffer state to scan the given bytes. The next call to gmsh_yylex() will * scan from a @e copy of @a bytes. - * @param yybytes the byte buffer to scan - * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. + * @param bytes the byte buffer to scan + * @param len the number of bytes in the buffer pointed to by @a bytes. * * @return the newly allocated buffer state object. */ @@ -3252,8 +3256,7 @@ YY_BUFFER_STATE gmsh_yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes { YY_BUFFER_STATE b; char *buf; - yy_size_t n; - yy_size_t i; + yy_size_t n, i; /* Get memory for full buffer, including space for trailing EOB's. */ n = _yybytes_len + 2; -- GitLab