Skip to content
Snippets Groups Projects
Commit 201fc201 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

remove tBoundary: it conflicts with post options

parent 8e4fb809
No related branches found
No related tags found
No related merge requests found
...@@ -91,7 +91,6 @@ Atan2 return tAtan2; ...@@ -91,7 +91,6 @@ Atan2 return tAtan2;
ArcTan2 return tAtan2; ArcTan2 return tAtan2;
Bezier return tBezier; Bezier return tBezier;
Boundary return tBoundary;
Bump return tBump; Bump return tBump;
BSpline return tBSpline; BSpline return tBSpline;
BoundingBox return tBoundingBox; BoundingBox return tBoundingBox;
...@@ -112,7 +111,6 @@ Call return tCall; ...@@ -112,7 +111,6 @@ Call return tCall;
Delete return tDelete; Delete return tDelete;
Dilate return tDilate; Dilate return tDilate;
Duplicata return tDuplicata;
Draw return tDraw; Draw return tDraw;
Exp return tExp; Exp return tExp;
...@@ -144,6 +142,7 @@ Hypot return tHypot; ...@@ -144,6 +142,7 @@ Hypot return tHypot;
In return tIn; In return tIn;
If return tIf; If return tIf;
Intersect return tIntersect; Intersect return tIntersect;
INTERPOLATION_SCHEME return tInterpolationScheme;
Knots return tKnots; Knots return tKnots;
...@@ -185,15 +184,18 @@ Sin return tSin; ...@@ -185,15 +184,18 @@ Sin return tSin;
Sinh return tSinh; Sinh return tSinh;
Sphere return tSphere; Sphere return tSphere;
Spline return tSpline; Spline return tSpline;
Split return tSplit; Split return tSplit;
Surface return tSurface; Surface return tSurface;
Symmetry return tSymmetry;
Sprintf return tSprintf; Sprintf return tSprintf;
StrCat return tStrCat; StrCat return tStrCat;
StrPrefix return tStrPrefix; StrPrefix return tStrPrefix;
StrRelative return tStrRelative; StrRelative return tStrRelative;
Show return tShow; Show return tShow;
Symmetry return tSymmetry;
T2 return tText2D;
T3 return tText3D;
TIME return tTime;
Transfinite return tTransfinite; Transfinite return tTransfinite;
Translate return tTranslate; Translate return tTranslate;
Tanh return tTanh; Tanh return tTanh;
...@@ -204,11 +206,6 @@ Using return tUsing; ...@@ -204,11 +206,6 @@ Using return tUsing;
Volume return tVolume; Volume return tVolume;
T2 return tText2D;
T3 return tText3D;
INTERPOLATION_SCHEME return tInterpolationScheme;
TIME return tTime;
{digit}+ | {digit}+ |
{digit}+"."{digit}*({exp})? | {digit}+"."{digit}*({exp})? |
{digit}*"."{digit}+({exp})? | {digit}*"."{digit}+({exp})? |
......
This diff is collapsed.
...@@ -106,60 +106,58 @@ ...@@ -106,60 +106,58 @@
tSymmetry = 322, tSymmetry = 322,
tDilate = 323, tDilate = 323,
tExtrude = 324, tExtrude = 324,
tDuplicata = 325, tLoop = 325,
tLoop = 326, tRecombine = 326,
tRecombine = 327, tSmoother = 327,
tSmoother = 328, tSplit = 328,
tSplit = 329, tDelete = 329,
tDelete = 330, tCoherence = 330,
tCoherence = 331, tIntersect = 331,
tIntersect = 332, tLayers = 332,
tBoundary = 333, tHole = 333,
tLayers = 334, tAlias = 334,
tHole = 335, tAliasWithOptions = 335,
tAlias = 336, tText2D = 336,
tAliasWithOptions = 337, tText3D = 337,
tText2D = 338, tInterpolationScheme = 338,
tText3D = 339, tTime = 339,
tInterpolationScheme = 340, tCombine = 340,
tTime = 341, tBSpline = 341,
tCombine = 342, tBezier = 342,
tBSpline = 343, tNurbs = 343,
tBezier = 344, tOrder = 344,
tNurbs = 345, tKnots = 345,
tOrder = 346, tColor = 346,
tKnots = 347, tColorTable = 347,
tColor = 348, tFor = 348,
tColorTable = 349, tIn = 349,
tFor = 350, tEndFor = 350,
tIn = 351, tIf = 351,
tEndFor = 352, tEndIf = 352,
tIf = 353, tExit = 353,
tEndIf = 354, tField = 354,
tExit = 355, tReturn = 355,
tField = 356, tCall = 356,
tReturn = 357, tFunction = 357,
tCall = 358, tShow = 358,
tFunction = 359, tHide = 359,
tShow = 360, tGetValue = 360,
tHide = 361, tGMSH_MAJOR_VERSION = 361,
tGetValue = 362, tGMSH_MINOR_VERSION = 362,
tGMSH_MAJOR_VERSION = 363, tGMSH_PATCH_VERSION = 363,
tGMSH_MINOR_VERSION = 364, tAFFECTDIVIDE = 364,
tGMSH_PATCH_VERSION = 365, tAFFECTTIMES = 365,
tAFFECTDIVIDE = 366, tAFFECTMINUS = 366,
tAFFECTTIMES = 367, tAFFECTPLUS = 367,
tAFFECTMINUS = 368, tOR = 368,
tAFFECTPLUS = 369, tAND = 369,
tOR = 370, tNOTEQUAL = 370,
tAND = 371, tEQUAL = 371,
tNOTEQUAL = 372, tGREATEROREQUAL = 372,
tEQUAL = 373, tLESSOREQUAL = 373,
tGREATEROREQUAL = 374, UNARYPREC = 374,
tLESSOREQUAL = 375, tMINUSMINUS = 375,
UNARYPREC = 376, tPLUSPLUS = 376
tMINUSMINUS = 377,
tPLUSPLUS = 378
}; };
#endif #endif
/* Tokens. */ /* Tokens. */
...@@ -230,60 +228,58 @@ ...@@ -230,60 +228,58 @@
#define tSymmetry 322 #define tSymmetry 322
#define tDilate 323 #define tDilate 323
#define tExtrude 324 #define tExtrude 324
#define tDuplicata 325 #define tLoop 325
#define tLoop 326 #define tRecombine 326
#define tRecombine 327 #define tSmoother 327
#define tSmoother 328 #define tSplit 328
#define tSplit 329 #define tDelete 329
#define tDelete 330 #define tCoherence 330
#define tCoherence 331 #define tIntersect 331
#define tIntersect 332 #define tLayers 332
#define tBoundary 333 #define tHole 333
#define tLayers 334 #define tAlias 334
#define tHole 335 #define tAliasWithOptions 335
#define tAlias 336 #define tText2D 336
#define tAliasWithOptions 337 #define tText3D 337
#define tText2D 338 #define tInterpolationScheme 338
#define tText3D 339 #define tTime 339
#define tInterpolationScheme 340 #define tCombine 340
#define tTime 341 #define tBSpline 341
#define tCombine 342 #define tBezier 342
#define tBSpline 343 #define tNurbs 343
#define tBezier 344 #define tOrder 344
#define tNurbs 345 #define tKnots 345
#define tOrder 346 #define tColor 346
#define tKnots 347 #define tColorTable 347
#define tColor 348 #define tFor 348
#define tColorTable 349 #define tIn 349
#define tFor 350 #define tEndFor 350
#define tIn 351 #define tIf 351
#define tEndFor 352 #define tEndIf 352
#define tIf 353 #define tExit 353
#define tEndIf 354 #define tField 354
#define tExit 355 #define tReturn 355
#define tField 356 #define tCall 356
#define tReturn 357 #define tFunction 357
#define tCall 358 #define tShow 358
#define tFunction 359 #define tHide 359
#define tShow 360 #define tGetValue 360
#define tHide 361 #define tGMSH_MAJOR_VERSION 361
#define tGetValue 362 #define tGMSH_MINOR_VERSION 362
#define tGMSH_MAJOR_VERSION 363 #define tGMSH_PATCH_VERSION 363
#define tGMSH_MINOR_VERSION 364 #define tAFFECTDIVIDE 364
#define tGMSH_PATCH_VERSION 365 #define tAFFECTTIMES 365
#define tAFFECTDIVIDE 366 #define tAFFECTMINUS 366
#define tAFFECTTIMES 367 #define tAFFECTPLUS 367
#define tAFFECTMINUS 368 #define tOR 368
#define tAFFECTPLUS 369 #define tAND 369
#define tOR 370 #define tNOTEQUAL 370
#define tAND 371 #define tEQUAL 371
#define tNOTEQUAL 372 #define tGREATEROREQUAL 372
#define tEQUAL 373 #define tLESSOREQUAL 373
#define tGREATEROREQUAL 374 #define UNARYPREC 374
#define tLESSOREQUAL 375 #define tMINUSMINUS 375
#define UNARYPREC 376 #define tPLUSPLUS 376
#define tMINUSMINUS 377
#define tPLUSPLUS 378
...@@ -301,7 +297,7 @@ typedef union YYSTYPE ...@@ -301,7 +297,7 @@ typedef union YYSTYPE
List_T *l; List_T *l;
} }
/* Line 1529 of yacc.c. */ /* Line 1529 of yacc.c. */
#line 305 "Gmsh.tab.hpp" #line 301 "Gmsh.tab.hpp"
YYSTYPE; YYSTYPE;
# define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1 # define YYSTYPE_IS_DECLARED 1
......
...@@ -91,8 +91,8 @@ void FixRelativePath(const char *in, char *out); ...@@ -91,8 +91,8 @@ void FixRelativePath(const char *in, char *out);
%token tCharacteristic tLength tParametric tElliptic %token tCharacteristic tLength tParametric tElliptic
%token tPlane tRuled tTransfinite tComplex tPhysical %token tPlane tRuled tTransfinite tComplex tPhysical
%token tUsing tBump tProgression tPlugin %token tUsing tBump tProgression tPlugin
%token tRotate tTranslate tSymmetry tDilate tExtrude tDuplicata %token tRotate tTranslate tSymmetry tDilate tExtrude
%token tLoop tRecombine tSmoother tSplit tDelete tCoherence tIntersect tBoundary %token tLoop tRecombine tSmoother tSplit tDelete tCoherence tIntersect
%token tLayers tHole tAlias tAliasWithOptions %token tLayers tHole tAlias tAliasWithOptions
%token tText2D tText3D tInterpolationScheme tTime tCombine %token tText2D tText3D tInterpolationScheme tTime tCombine
%token tBSpline tBezier tNurbs tOrder tKnots %token tBSpline tBezier tNurbs tOrder tKnots
...@@ -1550,15 +1550,24 @@ Transform : ...@@ -1550,15 +1550,24 @@ Transform :
DilatShapes($3[0], $3[1], $3[2], $5, $8); DilatShapes($3[0], $3[1], $3[2], $5, $8);
$$ = $8; $$ = $8;
} }
| tDuplicata '{' MultipleShape '}' | tSTRING '{' MultipleShape '}'
{ {
$$ = List_Create(3, 3, sizeof(Shape)); $$ = List_Create(3, 3, sizeof(Shape));
for(int i = 0; i < List_Nbr($3); i++){ if(!strcmp($1, "Duplicata")){
Shape TheShape; for(int i = 0; i < List_Nbr($3); i++){
List_Read($3, i, &TheShape); Shape TheShape;
CopyShape(TheShape.Type, TheShape.Num, &TheShape.Num); List_Read($3, i, &TheShape);
List_Add($$, &TheShape); CopyShape(TheShape.Type, TheShape.Num, &TheShape.Num);
List_Add($$, &TheShape);
}
}
else if(!strcmp($1, "Boundary")){
BoundaryShapes($3, $$);
}
else{
yymsg(0, "Unknown command on multiple shapes: '%s'", $1);
} }
Free($1);
List_Delete($3); List_Delete($3);
} }
| tIntersect tLine '{' RecursiveListOfDouble '}' tSurface '{' FExpr '}' | tIntersect tLine '{' RecursiveListOfDouble '}' tSurface '{' FExpr '}'
...@@ -1575,12 +1584,6 @@ Transform : ...@@ -1575,12 +1584,6 @@ Transform :
SplitCurve((int)$4,tmp,$$); SplitCurve((int)$4,tmp,$$);
List_Delete(tmp); List_Delete(tmp);
} }
| tBoundary '{' MultipleShape '}'
{
$$ = List_Create(2, 1, sizeof(Shape));
BoundaryShapes($3, $$);
List_Delete($3);
}
; ;
MultipleShape : MultipleShape :
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment