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
8ba590c5
Commit
8ba590c5
authored
24 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
correct
parent
1991aad4
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Parser/Gmsh.tab.cpp
+2231
-2054
2231 additions, 2054 deletions
Parser/Gmsh.tab.cpp
Parser/Gmsh.tab.cpp.h
+9
-9
9 additions, 9 deletions
Parser/Gmsh.tab.cpp.h
Parser/Gmsh.y
+11
-8
11 additions, 8 deletions
Parser/Gmsh.y
Parser/Gmsh.yy.cpp
+1
-1
1 addition, 1 deletion
Parser/Gmsh.yy.cpp
with
2252 additions
and
2072 deletions
Parser/Gmsh.tab.cpp
+
2231
−
2054
View file @
8ba590c5
Source diff could not be displayed: it is too large. Options to address this:
view the blob
.
This diff is collapsed.
Click to expand it.
Parser/Gmsh.tab.cpp.h
+
9
−
9
View file @
8ba590c5
...
@@ -146,15 +146,15 @@ typedef union {
...
@@ -146,15 +146,15 @@ typedef union {
#define tLoopSTL 393
#define tLoopSTL 393
#define tEndLoop 394
#define tEndLoop 394
#define tEndFacet 395
#define tEndFacet 395
#define tA
FFECTPLUS
396
#define tA
ND
396
#define t
AFFECTMINUS
397
#define t
OR
397
#define t
AFFECTTIMES
398
#define t
NOTEQUAL
398
#define t
AFFECTDIVIDE
399
#define t
EQUAL
399
#define tA
ND
400
#define tA
PPROXEQUAL
400
#define t
OR
401
#define t
AFFECTPLUS
401
#define t
NOTEQUAL
402
#define t
AFFECTMINUS
402
#define t
EQUAL
403
#define t
AFFECTTIMES
403
#define tA
PPROXEQUAL
404
#define tA
FFECTDIVIDE
404
#define tLESSOREQUAL 405
#define tLESSOREQUAL 405
#define tGREATEROREQUAL 406
#define tGREATEROREQUAL 406
#define tCROSSPRODUCT 407
#define tCROSSPRODUCT 407
...
...
This diff is collapsed.
Click to expand it.
Parser/Gmsh.y
+
11
−
8
View file @
8ba590c5
%{ /* $Id: Gmsh.y,v 1.2
2
2000-12-07 01:
03
:3
8
geuzaine Exp $ */
%{ /* $Id: Gmsh.y,v 1.2
3
2000-12-07 01:
14
:3
0
geuzaine Exp $ */
#include <stdarg.h>
#include <stdarg.h>
...
@@ -109,6 +109,8 @@ void vyyerror (char *fmt, ...);
...
@@ -109,6 +109,8 @@ void vyyerror (char *fmt, ...);
%type <i> BoolExpr
%type <i> BoolExpr
%type <u> Color
%type <u> Color
/* A VERFIFIER ! Je n'ai pas le bouquin sous les yeux */
/* ------------------------------------------------------------------ */
/* ------------------------------------------------------------------ */
/* Operators (with ascending priority) : cf. C language */
/* Operators (with ascending priority) : cf. C language */
/* */
/* */
...
@@ -116,10 +118,11 @@ void vyyerror (char *fmt, ...);
...
@@ -116,10 +118,11 @@ void vyyerror (char *fmt, ...);
/* - UNARYPREC is a dummy terminal to resolve ambiguous cases */
/* - UNARYPREC is a dummy terminal to resolve ambiguous cases */
/* for + and - (which exist in both unary and binary form) */
/* for + and - (which exist in both unary and binary form) */
/* ------------------------------------------------------------------ */
/* ------------------------------------------------------------------ */
%left tAFFECT
tAFFECTPLUS tAFFECTMINUS tAFFECTTIMES tAFFECTDIVIDE
%left tAFFECT
%right '?' tDOTS
%right '?' tDOTS
%left tAND tOR
%left tAND tOR
%left tNOTEQUAL tEQUAL tAPPROXEQUAL
%left tNOTEQUAL tEQUAL tAPPROXEQUAL
%left tAFFECTPLUS tAFFECTMINUS tAFFECTTIMES tAFFECTDIVIDE
%left '<' '>' tLESSOREQUAL tGREATEROREQUAL
%left '<' '>' tLESSOREQUAL tGREATEROREQUAL
%left '+' '-'
%left '+' '-'
%left '*' '/' '%'
%left '*' '/' '%'
...
@@ -708,29 +711,29 @@ Affectation :
...
@@ -708,29 +711,29 @@ Affectation :
TheSymbol.val = $3;
TheSymbol.val = $3;
List_Replace(Symbol_L,&TheSymbol,CompareSymbols);
List_Replace(Symbol_L,&TheSymbol,CompareSymbols);
}
}
| tSTRING t
AFFECTPLUS FExpr
tEND
| tSTRING t
PLUSPLUS
tEND
{
{
TheSymbol.Name = $1 ;
TheSymbol.Name = $1 ;
if (!(pSymbol = (Symbol*)List_PQuery(Symbol_L, &TheSymbol, CompareSymbols)))
if (!(pSymbol = (Symbol*)List_PQuery(Symbol_L, &TheSymbol, CompareSymbols)))
vyyerror("Unknown Variable '%s'", $1) ;
vyyerror("Unknown Variable '%s'", $1) ;
else
else
pSymbol->val +=
$3
;
pSymbol->val +=
1.
;
}
}
| tSTRING t
AFFECTMINUS FExpr
tEND
| tSTRING t
MINUSMINUS
tEND
{
{
TheSymbol.Name = $1 ;
TheSymbol.Name = $1 ;
if (!(pSymbol = (Symbol*)List_PQuery(Symbol_L, &TheSymbol, CompareSymbols)))
if (!(pSymbol = (Symbol*)List_PQuery(Symbol_L, &TheSymbol, CompareSymbols)))
vyyerror("Unknown Variable '%s'", $1) ;
vyyerror("Unknown Variable '%s'", $1) ;
else
else
pSymbol->val -=
$3
;
pSymbol->val -=
1.
;
}
}
| tSTRING t
PLUS
PLUS FExpr tEND
| tSTRING t
AFFECT
PLUS FExpr tEND
{
{
TheSymbol.Name = $1 ;
TheSymbol.Name = $1 ;
if (!(pSymbol = (Symbol*)List_PQuery(Symbol_L, &TheSymbol, CompareSymbols)))
if (!(pSymbol = (Symbol*)List_PQuery(Symbol_L, &TheSymbol, CompareSymbols)))
vyyerror("Unknown Variable '%s'", $1) ;
vyyerror("Unknown Variable '%s'", $1) ;
else
else
pSymbol->val +=
1.
;
pSymbol->val +=
$3
;
}
}
| tSTRING tAFFECTMINUS FExpr tEND
| tSTRING tAFFECTMINUS FExpr tEND
{
{
...
...
This diff is collapsed.
Click to expand it.
Parser/Gmsh.yy.cpp
+
1
−
1
View file @
8ba590c5
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
/* A lexical scanner generated by flex */
/* A lexical scanner generated by flex */
/* Scanner skeleton version:
/* Scanner skeleton version:
* $Header: /cvsroot/gmsh/Parser/Gmsh.yy.cpp,v 1.2
2
2000-12-07 01:
03
:3
9
geuzaine Exp $
* $Header: /cvsroot/gmsh/Parser/Gmsh.yy.cpp,v 1.2
3
2000-12-07 01:
14
:3
0
geuzaine Exp $
*/
*/
#define FLEX_SCANNER
#define FLEX_SCANNER
...
...
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