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

new "AliasWithOptions" command
parent 908ef8c9
No related branches found
No related tags found
No related merge requests found
%{ %{
// $Id: Gmsh.l,v 1.66 2005-01-13 05:45:41 geuzaine Exp $ // $Id: Gmsh.l,v 1.67 2005-01-14 17:54:25 geuzaine Exp $
// //
// Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle
// //
...@@ -112,6 +112,7 @@ stepid {dieze}({digit})+ ...@@ -112,6 +112,7 @@ stepid {dieze}({digit})+
Acos return tAcos; Acos return tAcos;
ArcCos return tAcos; ArcCos return tAcos;
Alias return tAlias; Alias return tAlias;
AliasWithOptions return tAliasWithOptions;
Asin return tAsin; Asin return tAsin;
ArcSin return tAsin; ArcSin return tAsin;
Atan return tAtan; Atan return tAtan;
......
This diff is collapsed.
...@@ -80,124 +80,125 @@ typedef union { ...@@ -80,124 +80,125 @@ typedef union {
#define tAttractor 327 #define tAttractor 327
#define tLayers 328 #define tLayers 328
#define tAlias 329 #define tAlias 329
#define tScalarPoint 330 #define tAliasWithOptions 330
#define tVectorPoint 331 #define tScalarPoint 331
#define tTensorPoint 332 #define tVectorPoint 332
#define tScalarLine 333 #define tTensorPoint 333
#define tVectorLine 334 #define tScalarLine 334
#define tTensorLine 335 #define tVectorLine 335
#define tScalarTriangle 336 #define tTensorLine 336
#define tVectorTriangle 337 #define tScalarTriangle 337
#define tTensorTriangle 338 #define tVectorTriangle 338
#define tScalarQuadrangle 339 #define tTensorTriangle 339
#define tVectorQuadrangle 340 #define tScalarQuadrangle 340
#define tTensorQuadrangle 341 #define tVectorQuadrangle 341
#define tScalarTetrahedron 342 #define tTensorQuadrangle 342
#define tVectorTetrahedron 343 #define tScalarTetrahedron 343
#define tTensorTetrahedron 344 #define tVectorTetrahedron 344
#define tScalarHexahedron 345 #define tTensorTetrahedron 345
#define tVectorHexahedron 346 #define tScalarHexahedron 346
#define tTensorHexahedron 347 #define tVectorHexahedron 347
#define tScalarPrism 348 #define tTensorHexahedron 348
#define tVectorPrism 349 #define tScalarPrism 349
#define tTensorPrism 350 #define tVectorPrism 350
#define tScalarPyramid 351 #define tTensorPrism 351
#define tVectorPyramid 352 #define tScalarPyramid 352
#define tTensorPyramid 353 #define tVectorPyramid 353
#define tText2D 354 #define tTensorPyramid 354
#define tText3D 355 #define tText2D 355
#define tInterpolationScheme 356 #define tText3D 356
#define tTime 357 #define tInterpolationScheme 357
#define tCombine 358 #define tTime 358
#define tBSpline 359 #define tCombine 359
#define tBezier 360 #define tBSpline 360
#define tNurbs 361 #define tBezier 361
#define tOrder 362 #define tNurbs 362
#define tWith 363 #define tOrder 363
#define tBounds 364 #define tWith 364
#define tKnots 365 #define tBounds 365
#define tColor 366 #define tKnots 366
#define tColorTable 367 #define tColor 367
#define tFor 368 #define tColorTable 368
#define tIn 369 #define tFor 369
#define tEndFor 370 #define tIn 370
#define tIf 371 #define tEndFor 371
#define tEndIf 372 #define tIf 372
#define tExit 373 #define tEndIf 373
#define tReturn 374 #define tExit 374
#define tCall 375 #define tReturn 375
#define tFunction 376 #define tCall 376
#define tTrimmed 377 #define tFunction 377
#define tShow 378 #define tTrimmed 378
#define tHide 379 #define tShow 379
#define tGetValue 380 #define tHide 380
#define tB_SPLINE_SURFACE_WITH_KNOTS 381 #define tGetValue 381
#define tB_SPLINE_CURVE_WITH_KNOTS 382 #define tB_SPLINE_SURFACE_WITH_KNOTS 382
#define tCARTESIAN_POINT 383 #define tB_SPLINE_CURVE_WITH_KNOTS 383
#define tTRUE 384 #define tCARTESIAN_POINT 384
#define tFALSE 385 #define tTRUE 385
#define tUNSPECIFIED 386 #define tFALSE 386
#define tU 387 #define tUNSPECIFIED 387
#define tV 388 #define tU 388
#define tEDGE_CURVE 389 #define tV 389
#define tVERTEX_POINT 390 #define tEDGE_CURVE 390
#define tORIENTED_EDGE 391 #define tVERTEX_POINT 391
#define tPLANE 392 #define tORIENTED_EDGE 392
#define tFACE_OUTER_BOUND 393 #define tPLANE 393
#define tEDGE_LOOP 394 #define tFACE_OUTER_BOUND 394
#define tADVANCED_FACE 395 #define tEDGE_LOOP 395
#define tVECTOR 396 #define tADVANCED_FACE 396
#define tDIRECTION 397 #define tVECTOR 397
#define tAXIS2_PLACEMENT_3D 398 #define tDIRECTION 398
#define tISO 399 #define tAXIS2_PLACEMENT_3D 399
#define tENDISO 400 #define tISO 400
#define tENDSEC 401 #define tENDISO 401
#define tDATA 402 #define tENDSEC 402
#define tHEADER 403 #define tDATA 403
#define tFILE_DESCRIPTION 404 #define tHEADER 404
#define tFILE_SCHEMA 405 #define tFILE_DESCRIPTION 405
#define tFILE_NAME 406 #define tFILE_SCHEMA 406
#define tMANIFOLD_SOLID_BREP 407 #define tFILE_NAME 407
#define tCLOSED_SHELL 408 #define tMANIFOLD_SOLID_BREP 408
#define tADVANCED_BREP_SHAPE_REPRESENTATION 409 #define tCLOSED_SHELL 409
#define tFACE_BOUND 410 #define tADVANCED_BREP_SHAPE_REPRESENTATION 410
#define tCYLINDRICAL_SURFACE 411 #define tFACE_BOUND 411
#define tCONICAL_SURFACE 412 #define tCYLINDRICAL_SURFACE 412
#define tCIRCLE 413 #define tCONICAL_SURFACE 413
#define tTRIMMED_CURVE 414 #define tCIRCLE 414
#define tGEOMETRIC_SET 415 #define tTRIMMED_CURVE 415
#define tCOMPOSITE_CURVE_SEGMENT 416 #define tGEOMETRIC_SET 416
#define tCONTINUOUS 417 #define tCOMPOSITE_CURVE_SEGMENT 417
#define tCOMPOSITE_CURVE 418 #define tCONTINUOUS 418
#define tTOROIDAL_SURFACE 419 #define tCOMPOSITE_CURVE 419
#define tPRODUCT_DEFINITION 420 #define tTOROIDAL_SURFACE 420
#define tPRODUCT_DEFINITION_SHAPE 421 #define tPRODUCT_DEFINITION 421
#define tSHAPE_DEFINITION_REPRESENTATION 422 #define tPRODUCT_DEFINITION_SHAPE 422
#define tELLIPSE 423 #define tSHAPE_DEFINITION_REPRESENTATION 423
#define tSolid 424 #define tELLIPSE 424
#define tEndSolid 425 #define tSolid 425
#define tVertex 426 #define tEndSolid 426
#define tFacet 427 #define tVertex 427
#define tNormal 428 #define tFacet 428
#define tOuter 429 #define tNormal 429
#define tLoopSTL 430 #define tOuter 430
#define tEndLoop 431 #define tLoopSTL 431
#define tEndFacet 432 #define tEndLoop 432
#define tAFFECTPLUS 433 #define tEndFacet 433
#define tAFFECTMINUS 434 #define tAFFECTPLUS 434
#define tAFFECTTIMES 435 #define tAFFECTMINUS 435
#define tAFFECTDIVIDE 436 #define tAFFECTTIMES 436
#define tOR 437 #define tAFFECTDIVIDE 437
#define tAND 438 #define tOR 438
#define tEQUAL 439 #define tAND 439
#define tNOTEQUAL 440 #define tEQUAL 440
#define tAPPROXEQUAL 441 #define tNOTEQUAL 441
#define tLESSOREQUAL 442 #define tAPPROXEQUAL 442
#define tGREATEROREQUAL 443 #define tLESSOREQUAL 443
#define tCROSSPRODUCT 444 #define tGREATEROREQUAL 444
#define tPLUSPLUS 445 #define tCROSSPRODUCT 445
#define tMINUSMINUS 446 #define tPLUSPLUS 446
#define UNARYPREC 447 #define tMINUSMINUS 447
#define UNARYPREC 448
extern YYSTYPE yylval; extern YYSTYPE yylval;
%{ %{
// $Id: Gmsh.y,v 1.198 2005-01-13 05:45:45 geuzaine Exp $ // $Id: Gmsh.y,v 1.199 2005-01-14 17:54:26 geuzaine Exp $
// //
// Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle
// //
...@@ -95,7 +95,7 @@ int CheckViewErrorFlags(Post_View *v); ...@@ -95,7 +95,7 @@ int CheckViewErrorFlags(Post_View *v);
%token tUsing tBump tProgression tPlugin tDiscrete %token tUsing tBump tProgression tPlugin tDiscrete
%token tRotate tTranslate tSymmetry tDilate tExtrude tDuplicata %token tRotate tTranslate tSymmetry tDilate tExtrude tDuplicata
%token tLoop tRecombine tDelete tCoherence tIntersect %token tLoop tRecombine tDelete tCoherence tIntersect
%token tAttractor tLayers tAlias %token tAttractor tLayers tAlias tAliasWithOptions
%token tScalarPoint tVectorPoint tTensorPoint %token tScalarPoint tVectorPoint tTensorPoint
%token tScalarLine tVectorLine tTensorLine %token tScalarLine tVectorLine tTensorLine
%token tScalarTriangle tVectorTriangle tTensorTriangle %token tScalarTriangle tVectorTriangle tTensorTriangle
...@@ -2394,6 +2394,12 @@ Duplicata : ...@@ -2394,6 +2394,12 @@ Duplicata :
Free($2); Free($2);
$$ = NULL; $$ = NULL;
} }
| tAliasWithOptions tSTRING '[' FExpr ']' tEND
{
if(!strcmp($2, "View")) AliasView((int)$4, 1);
Free($2);
$$ = NULL;
}
; ;
......
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