Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
9174963e
Commit
9174963e
authored
18 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
tCircle and tCoherence were removed from the lexer? WTF?
parent
976617d7
No related branches found
No related tags found
No related merge requests found
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Parser/Gmsh.l
+3
-1
3 additions, 1 deletion
Parser/Gmsh.l
Parser/Gmsh.tab.cpp
+4962
-6237
4962 additions, 6237 deletions
Parser/Gmsh.tab.cpp
Parser/Gmsh.tab.hpp
+126
-307
126 additions, 307 deletions
Parser/Gmsh.tab.hpp
Parser/Gmsh.yy.cpp
+538
-539
538 additions, 539 deletions
Parser/Gmsh.yy.cpp
with
5629 additions
and
7084 deletions
Parser/Gmsh.l
+
3
−
1
View file @
9174963e
%{
%{
// $Id: Gmsh.l,v 1.8
7
2007-04-
16 09:08:28 remacl
e Exp $
// $Id: Gmsh.l,v 1.8
8
2007-04-
21 19:46:27 geuzain
e Exp $
//
//
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
//
//
...
@@ -126,6 +126,8 @@ BSpline return tBSpline;
...
@@ -126,6 +126,8 @@ BSpline return tBSpline;
BoundingBox return tBoundingBox;
BoundingBox return tBoundingBox;
Ceil return tCeil;
Ceil return tCeil;
Circle return tCircle;
Coherence return tCoherence;
Combine return tCombine;
Combine return tCombine;
Cosh return tCosh;
Cosh return tCosh;
Cos return tCos;
Cos return tCos;
...
...
This diff is collapsed.
Click to expand it.
Parser/Gmsh.tab.cpp
+
4962
−
6237
View file @
9174963e
This diff is collapsed.
Click to expand it.
Parser/Gmsh.tab.hpp
+
126
−
307
View file @
9174963e
/* A Bison parser, made by GNU Bison 2.3. */
typedef
union
{
/* Skeleton interface for Bison's Yacc-like parsers in C
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
it under the terms of the GNU General Public License as published by
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
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 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
under terms of your choice, so long as that work isn't itself a
parser generator using the skeleton or a modified version thereof
as a parser skeleton. Alternatively, if you modify or redistribute
the parser skeleton itself, you may (at your option) remove this
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
/* 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
,
tExp
=
269
,
tLog
=
270
,
tLog10
=
271
,
tSqrt
=
272
,
tSin
=
273
,
tAsin
=
274
,
tCos
=
275
,
tAcos
=
276
,
tTan
=
277
,
tRand
=
278
,
tAtan
=
279
,
tAtan2
=
280
,
tSinh
=
281
,
tCosh
=
282
,
tTanh
=
283
,
tFabs
=
284
,
tFloor
=
285
,
tCeil
=
286
,
tFmod
=
287
,
tModulo
=
288
,
tHypot
=
289
,
tPrintf
=
290
,
tSprintf
=
291
,
tStrCat
=
292
,
tStrPrefix
=
293
,
tStrRelative
=
294
,
tBoundingBox
=
295
,
tDraw
=
296
,
tToday
=
297
,
tPoint
=
298
,
tCircle
=
299
,
tEllipse
=
300
,
tLine
=
301
,
tSphere
=
302
,
tPolarSphere
=
303
,
tSurface
=
304
,
tSpline
=
305
,
tVolume
=
306
,
tCharacteristic
=
307
,
tLength
=
308
,
tParametric
=
309
,
tElliptic
=
310
,
tPlane
=
311
,
tRuled
=
312
,
tTransfinite
=
313
,
tComplex
=
314
,
tPhysical
=
315
,
tUsing
=
316
,
tBump
=
317
,
tProgression
=
318
,
tPlugin
=
319
,
tRotate
=
320
,
tTranslate
=
321
,
tSymmetry
=
322
,
tDilate
=
323
,
tExtrude
=
324
,
tDuplicata
=
325
,
tLoop
=
326
,
tRecombine
=
327
,
tDelete
=
328
,
tCoherence
=
329
,
tAttractor
=
330
,
tLayers
=
331
,
tHole
=
332
,
tAlias
=
333
,
tAliasWithOptions
=
334
,
tText2D
=
335
,
tText3D
=
336
,
tInterpolationScheme
=
337
,
tTime
=
338
,
tGrain
=
339
,
tCombine
=
340
,
tBSpline
=
341
,
tBezier
=
342
,
tNurbs
=
343
,
tOrder
=
344
,
tKnots
=
345
,
tColor
=
346
,
tColorTable
=
347
,
tFor
=
348
,
tIn
=
349
,
tEndFor
=
350
,
tIf
=
351
,
tEndIf
=
352
,
tExit
=
353
,
tField
=
354
,
tThreshold
=
355
,
tStructured
=
356
,
tLatLon
=
357
,
tGrad
=
358
,
tReturn
=
359
,
tCall
=
360
,
tFunction
=
361
,
tShow
=
362
,
tHide
=
363
,
tGetValue
=
364
,
tGMSH_MAJOR_VERSION
=
365
,
tGMSH_MINOR_VERSION
=
366
,
tGMSH_PATCH_VERSION
=
367
,
tAFFECTDIVIDE
=
368
,
tAFFECTTIMES
=
369
,
tAFFECTMINUS
=
370
,
tAFFECTPLUS
=
371
,
tOR
=
372
,
tAND
=
373
,
tNOTEQUAL
=
374
,
tEQUAL
=
375
,
tGREATEROREQUAL
=
376
,
tLESSOREQUAL
=
377
,
UNARYPREC
=
378
,
tMINUSMINUS
=
379
,
tPLUSPLUS
=
380
};
#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 tExp 269
#define tLog 270
#define tLog10 271
#define tSqrt 272
#define tSin 273
#define tAsin 274
#define tCos 275
#define tAcos 276
#define tTan 277
#define tRand 278
#define tAtan 279
#define tAtan2 280
#define tSinh 281
#define tCosh 282
#define tTanh 283
#define tFabs 284
#define tFloor 285
#define tCeil 286
#define tFmod 287
#define tModulo 288
#define tHypot 289
#define tPrintf 290
#define tSprintf 291
#define tStrCat 292
#define tStrPrefix 293
#define tStrRelative 294
#define tBoundingBox 295
#define tDraw 296
#define tToday 297
#define tPoint 298
#define tCircle 299
#define tEllipse 300
#define tLine 301
#define tSphere 302
#define tPolarSphere 303
#define tSurface 304
#define tSpline 305
#define tVolume 306
#define tCharacteristic 307
#define tLength 308
#define tParametric 309
#define tElliptic 310
#define tPlane 311
#define tRuled 312
#define tTransfinite 313
#define tComplex 314
#define tPhysical 315
#define tUsing 316
#define tBump 317
#define tProgression 318
#define tPlugin 319
#define tRotate 320
#define tTranslate 321
#define tSymmetry 322
#define tDilate 323
#define tExtrude 324
#define tDuplicata 325
#define tLoop 326
#define tRecombine 327
#define tDelete 328
#define tCoherence 329
#define tAttractor 330
#define tLayers 331
#define tHole 332
#define tAlias 333
#define tAliasWithOptions 334
#define tText2D 335
#define tText3D 336
#define tInterpolationScheme 337
#define tTime 338
#define tGrain 339
#define tCombine 340
#define tBSpline 341
#define tBezier 342
#define tNurbs 343
#define tOrder 344
#define tKnots 345
#define tColor 346
#define tColorTable 347
#define tFor 348
#define tIn 349
#define tEndFor 350
#define tIf 351
#define tEndIf 352
#define tExit 353
#define tField 354
#define tThreshold 355
#define tStructured 356
#define tLatLon 357
#define tGrad 358
#define tReturn 359
#define tCall 360
#define tFunction 361
#define tShow 362
#define tHide 363
#define tGetValue 364
#define tGMSH_MAJOR_VERSION 365
#define tGMSH_MINOR_VERSION 366
#define tGMSH_PATCH_VERSION 367
#define tAFFECTDIVIDE 368
#define tAFFECTTIMES 369
#define tAFFECTMINUS 370
#define tAFFECTPLUS 371
#define tOR 372
#define tAND 373
#define tNOTEQUAL 374
#define tEQUAL 375
#define tGREATEROREQUAL 376
#define tLESSOREQUAL 377
#define UNARYPREC 378
#define tMINUSMINUS 379
#define tPLUSPLUS 380
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef
union
YYSTYPE
#line 79 "Gmsh.y"
{
char
*
c
;
char
*
c
;
int
i
;
int
i
;
unsigned
int
u
;
unsigned
int
u
;
...
@@ -303,14 +6,130 @@ typedef union YYSTYPE
...
@@ -303,14 +6,130 @@ typedef union YYSTYPE
double
v
[
5
];
double
v
[
5
];
Shape
s
;
Shape
s
;
List_T
*
l
;
List_T
*
l
;
}
}
YYSTYPE
;
/* Line 1489 of yacc.c. */
#define tDOUBLE 257
#line 309 "Gmsh.tab.hpp"
#define tSTRING 258
YYSTYPE
;
#define tBIGSTR 259
# define yystype YYSTYPE
/* obsolescent; will be withdrawn */
#define tEND 260
# define YYSTYPE_IS_DECLARED 1
#define tAFFECT 261
# define YYSTYPE_IS_TRIVIAL 1
#define tDOTS 262
#endif
#define tPi 263
#define tMPI_Rank 264
#define tMPI_Size 265
#define tEuclidian 266
#define tCoordinates 267
#define tExp 268
#define tLog 269
#define tLog10 270
#define tSqrt 271
#define tSin 272
#define tAsin 273
#define tCos 274
#define tAcos 275
#define tTan 276
#define tRand 277
#define tAtan 278
#define tAtan2 279
#define tSinh 280
#define tCosh 281
#define tTanh 282
#define tFabs 283
#define tFloor 284
#define tCeil 285
#define tFmod 286
#define tModulo 287
#define tHypot 288
#define tPrintf 289
#define tSprintf 290
#define tStrCat 291
#define tStrPrefix 292
#define tStrRelative 293
#define tBoundingBox 294
#define tDraw 295
#define tToday 296
#define tPoint 297
#define tCircle 298
#define tEllipse 299
#define tLine 300
#define tSphere 301
#define tPolarSphere 302
#define tSurface 303
#define tSpline 304
#define tVolume 305
#define tCharacteristic 306
#define tLength 307
#define tParametric 308
#define tElliptic 309
#define tPlane 310
#define tRuled 311
#define tTransfinite 312
#define tComplex 313
#define tPhysical 314
#define tUsing 315
#define tBump 316
#define tProgression 317
#define tPlugin 318
#define tRotate 319
#define tTranslate 320
#define tSymmetry 321
#define tDilate 322
#define tExtrude 323
#define tDuplicata 324
#define tLoop 325
#define tRecombine 326
#define tDelete 327
#define tCoherence 328
#define tAttractor 329
#define tLayers 330
#define tHole 331
#define tAlias 332
#define tAliasWithOptions 333
#define tText2D 334
#define tText3D 335
#define tInterpolationScheme 336
#define tTime 337
#define tGrain 338
#define tCombine 339
#define tBSpline 340
#define tBezier 341
#define tNurbs 342
#define tOrder 343
#define tKnots 344
#define tColor 345
#define tColorTable 346
#define tFor 347
#define tIn 348
#define tEndFor 349
#define tIf 350
#define tEndIf 351
#define tExit 352
#define tField 353
#define tThreshold 354
#define tStructured 355
#define tLatLon 356
#define tGrad 357
#define tReturn 358
#define tCall 359
#define tFunction 360
#define tShow 361
#define tHide 362
#define tGetValue 363
#define tGMSH_MAJOR_VERSION 364
#define tGMSH_MINOR_VERSION 365
#define tGMSH_PATCH_VERSION 366
#define tAFFECTPLUS 367
#define tAFFECTMINUS 368
#define tAFFECTTIMES 369
#define tAFFECTDIVIDE 370
#define tOR 371
#define tAND 372
#define tEQUAL 373
#define tNOTEQUAL 374
#define tLESSOREQUAL 375
#define tGREATEROREQUAL 376
#define tPLUSPLUS 377
#define tMINUSMINUS 378
#define UNARYPREC 379
extern
YYSTYPE
yylval
;
extern
YYSTYPE
yylval
;
This diff is collapsed.
Click to expand it.
Parser/Gmsh.yy.cpp
+
538
−
539
View file @
9174963e
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment