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

revert EOF fix for now (breaks e.g. t7.geo)

parent edff711f
No related branches found
No related tags found
No related merge requests found
......@@ -49,9 +49,6 @@ void skipline(void);
buf[n++] = (char) c; \
yylineno++; \
} \
else if ( c == EOF ){ \
buf[n++] = '\0'; \
} \
if ( c == EOF && ferror( yyin ) ) \
Msg::Fatal("Input in flex scanner failed"); \
result = n; \
......@@ -342,7 +339,7 @@ void parsestring(char endchar)
// etc.) "as is" in the output string: see yyinput() above
int i = 0;
while ((c = yyinput()) != endchar) {
if(c=='\0'){
if(gmsheof(yyin)){ // FIXME: this is not correct
Msg::Error("End of file in string");
break;
}
......
Source diff could not be displayed: it is too large. Options to address this: view the blob.
/* A Bison parser, made by GNU Bison 2.3. */
/* A Bison parser, made by GNU Bison 3.0.4. */
/* Skeleton interface for Bison's Yacc-like parsers in C
/* Bison interface for Yacc-like parsers in C
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
Free Software Foundation, Inc.
Copyright (C) 1984, 1989-1990, 2000-2015 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 2, or (at your option)
any later version.
the Free Software Foundation, either version 3 of the License, 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
......@@ -16,9 +15,7 @@
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. */
along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
......@@ -33,12 +30,21 @@
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
/* Tokens. */
#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
/* Put the tokens into the symbol table, so that GDB and other debuggers
know about them. */
enum yytokentype {
enum yytokentype
{
tDOUBLE = 258,
tSTRING = 259,
tBIGSTR = 260,
......@@ -210,214 +216,29 @@
tSetPartition = 426,
tNameToString = 427,
tStringToName = 428,
tAFFECTDIVIDE = 429,
tAFFECTTIMES = 430,
tAFFECTMINUS = 431,
tAFFECTPLUS = 432,
tAFFECTPLUS = 429,
tAFFECTMINUS = 430,
tAFFECTTIMES = 431,
tAFFECTDIVIDE = 432,
tOR = 433,
tAND = 434,
tNOTEQUAL = 435,
tEQUAL = 436,
tGREATEROREQUAL = 437,
tLESSOREQUAL = 438,
UNARYPREC = 439,
tEQUAL = 435,
tNOTEQUAL = 436,
tLESSOREQUAL = 437,
tGREATEROREQUAL = 438,
tPLUSPLUS = 439,
tMINUSMINUS = 440,
tPLUSPLUS = 441
UNARYPREC = 441
};
#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 tFind 301
#define tStrFind 302
#define tStrCmp 303
#define tStrChoice 304
#define tUpperCase 305
#define tLowerCase 306
#define tLowerCaseIn 307
#define tTextAttributes 308
#define tBoundingBox 309
#define tDraw 310
#define tSetChanged 311
#define tToday 312
#define tFixRelativePath 313
#define tCurrentDirectory 314
#define tSyncModel 315
#define tNewModel 316
#define tOnelabAction 317
#define tOnelabRun 318
#define tCpu 319
#define tMemory 320
#define tTotalMemory 321
#define tCreateTopology 322
#define tCreateTopologyNoHoles 323
#define tDistanceFunction 324
#define tDefineConstant 325
#define tUndefineConstant 326
#define tDefineNumber 327
#define tDefineString 328
#define tSetNumber 329
#define tSetString 330
#define tPoint 331
#define tCircle 332
#define tEllipse 333
#define tLine 334
#define tSphere 335
#define tPolarSphere 336
#define tSurface 337
#define tSpline 338
#define tVolume 339
#define tCharacteristic 340
#define tLength 341
#define tParametric 342
#define tElliptic 343
#define tRefineMesh 344
#define tAdaptMesh 345
#define tRelocateMesh 346
#define tPlane 347
#define tRuled 348
#define tTransfinite 349
#define tComplex 350
#define tPhysical 351
#define tCompound 352
#define tPeriodic 353
#define tUsing 354
#define tPlugin 355
#define tDegenerated 356
#define tRecursive 357
#define tRotate 358
#define tTranslate 359
#define tSymmetry 360
#define tDilate 361
#define tExtrude 362
#define tLevelset 363
#define tAffine 364
#define tRecombine 365
#define tSmoother 366
#define tSplit 367
#define tDelete 368
#define tCoherence 369
#define tIntersect 370
#define tMeshAlgorithm 371
#define tReverse 372
#define tLayers 373
#define tScaleLast 374
#define tHole 375
#define tAlias 376
#define tAliasWithOptions 377
#define tCopyOptions 378
#define tQuadTriAddVerts 379
#define tQuadTriNoNewVerts 380
#define tQuadTriSngl 381
#define tQuadTriDbl 382
#define tRecombLaterals 383
#define tTransfQuadTri 384
#define tText2D 385
#define tText3D 386
#define tInterpolationScheme 387
#define tTime 388
#define tCombine 389
#define tBSpline 390
#define tBezier 391
#define tNurbs 392
#define tNurbsOrder 393
#define tNurbsKnots 394
#define tColor 395
#define tColorTable 396
#define tFor 397
#define tIn 398
#define tEndFor 399
#define tIf 400
#define tElseIf 401
#define tElse 402
#define tEndIf 403
#define tExit 404
#define tAbort 405
#define tField 406
#define tReturn 407
#define tCall 408
#define tMacro 409
#define tShow 410
#define tHide 411
#define tGetValue 412
#define tGetStringValue 413
#define tGetEnv 414
#define tGetString 415
#define tGetNumber 416
#define tHomology 417
#define tCohomology 418
#define tBetti 419
#define tExists 420
#define tFileExists 421
#define tGMSH_MAJOR_VERSION 422
#define tGMSH_MINOR_VERSION 423
#define tGMSH_PATCH_VERSION 424
#define tGmshExecutableName 425
#define tSetPartition 426
#define tNameToString 427
#define tStringToName 428
#define tAFFECTDIVIDE 429
#define tAFFECTTIMES 430
#define tAFFECTMINUS 431
#define tAFFECTPLUS 432
#define tOR 433
#define tAND 434
#define tNOTEQUAL 435
#define tEQUAL 436
#define tGREATEROREQUAL 437
#define tLESSOREQUAL 438
#define UNARYPREC 439
#define tMINUSMINUS 440
#define tPLUSPLUS 441
/* Value type. */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE
#line 109 "Gmsh.y"
union YYSTYPE
{
#line 109 "Gmsh.y" /* yacc.c:1909 */
char *c;
int i;
unsigned int u;
......@@ -425,14 +246,18 @@ typedef union YYSTYPE
double v[5];
Shape s;
List_T *l;
}
/* Line 1529 of yacc.c. */
#line 431 "Gmsh.tab.hpp"
YYSTYPE;
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
#line 251 "Gmsh.tab.hpp" /* yacc.c:1909 */
};
typedef union YYSTYPE YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define YYSTYPE_IS_DECLARED 1
#endif
extern YYSTYPE gmsh_yylval;
int gmsh_yyparse (void);
#endif /* !YY_GMSH_YY_GMSH_TAB_HPP_INCLUDED */
......@@ -28,7 +28,7 @@
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5
#define YY_FLEX_SUBMINOR_VERSION 35
#define YY_FLEX_SUBMINOR_VERSION 37
#if YY_FLEX_SUBMINOR_VERSION > 0
#define FLEX_BETA
#endif
......@@ -66,7 +66,6 @@ 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;
......@@ -74,7 +73,6 @@ 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
......@@ -105,6 +103,8 @@ 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 = (yy_size_t) (yy_cp - yy_bp); \
gmsh_yyleng = (size_t) (yy_cp - yy_bp); \
(yy_hold_char) = *yy_cp; \
*yy_cp = '\0'; \
(yy_c_buf_p) = yy_cp;
......@@ -1145,9 +1145,6 @@ void skipline(void);
buf[n++] = (char) c; \
gmsh_yylineno++; \
} \
else if ( c == EOF ){ \
buf[n++] = '\0'; \
} \
if ( c == EOF && ferror( gmsh_yyin ) ) \
Msg::Fatal("Input in flex scanner failed"); \
result = n; \
......@@ -1159,7 +1156,7 @@ void skipline(void);
#define YY_NO_UNISTD_H
#endif
#line 1163 "Gmsh.yy.cpp"
#line 1160 "Gmsh.yy.cpp"
#define INITIAL 0
......@@ -1248,7 +1245,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 fwrite( gmsh_yytext, gmsh_yyleng, 1, gmsh_yyout )
#define ECHO do { if (fwrite( gmsh_yytext, gmsh_yyleng, 1, gmsh_yyout )) {} } while (0)
#endif
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
......@@ -1259,7 +1256,7 @@ static int input (void );
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
{ \
int c = '*'; \
yy_size_t n; \
size_t n; \
for ( n = 0; n < max_size && \
(c = getc( gmsh_yyin )) != EOF && c != '\n'; ++n ) \
buf[n] = (char) c; \
......@@ -1341,10 +1338,10 @@ YY_DECL
register char *yy_cp, *yy_bp;
register int yy_act;
#line 75 "Gmsh.l"
#line 72 "Gmsh.l"
#line 1348 "Gmsh.yy.cpp"
#line 1345 "Gmsh.yy.cpp"
if ( !(yy_init) )
{
......@@ -1430,1051 +1427,1051 @@ do_action: /* This label is used only to access EOF actions. */
case 1:
/* rule 1 can match eol */
YY_RULE_SETUP
#line 77 "Gmsh.l"
#line 74 "Gmsh.l"
/* none */;
YY_BREAK
case 2:
YY_RULE_SETUP
#line 78 "Gmsh.l"
#line 75 "Gmsh.l"
return tEND;
YY_BREAK
case 3:
YY_RULE_SETUP
#line 79 "Gmsh.l"
#line 76 "Gmsh.l"
skipcomments();
YY_BREAK
case 4:
YY_RULE_SETUP
#line 80 "Gmsh.l"
#line 77 "Gmsh.l"
skipline();
YY_BREAK
case 5:
YY_RULE_SETUP
#line 81 "Gmsh.l"
#line 78 "Gmsh.l"
{ parsestring('\"'); return tBIGSTR; }
YY_BREAK
case 6:
YY_RULE_SETUP
#line 82 "Gmsh.l"
#line 79 "Gmsh.l"
{ parsestring('\''); return tBIGSTR; }
YY_BREAK
case 7:
YY_RULE_SETUP
#line 83 "Gmsh.l"
#line 80 "Gmsh.l"
{ gmsh_yylval.d = NEWREG(); return tDOUBLE; }
YY_BREAK
case 8:
YY_RULE_SETUP
#line 84 "Gmsh.l"
#line 81 "Gmsh.l"
{ gmsh_yylval.d = NEWPOINT(); return tDOUBLE; }
YY_BREAK
case 9:
YY_RULE_SETUP
#line 85 "Gmsh.l"
#line 82 "Gmsh.l"
{ gmsh_yylval.d = NEWLINE(); return tDOUBLE; }
YY_BREAK
case 10:
YY_RULE_SETUP
#line 86 "Gmsh.l"
#line 83 "Gmsh.l"
{ gmsh_yylval.d = NEWLINE(); return tDOUBLE; }
YY_BREAK
case 11:
YY_RULE_SETUP
#line 87 "Gmsh.l"
#line 84 "Gmsh.l"
{ gmsh_yylval.d = NEWLINELOOP(); return tDOUBLE; }
YY_BREAK
case 12:
YY_RULE_SETUP
#line 88 "Gmsh.l"
#line 85 "Gmsh.l"
{ gmsh_yylval.d = NEWSURFACE(); return tDOUBLE; }
YY_BREAK
case 13:
YY_RULE_SETUP
#line 89 "Gmsh.l"
#line 86 "Gmsh.l"
{ gmsh_yylval.d = NEWSURFACELOOP(); return tDOUBLE; }
YY_BREAK
case 14:
YY_RULE_SETUP
#line 90 "Gmsh.l"
#line 87 "Gmsh.l"
{ gmsh_yylval.d = NEWVOLUME(); return tDOUBLE; }
YY_BREAK
case 15:
YY_RULE_SETUP
#line 91 "Gmsh.l"
#line 88 "Gmsh.l"
{ gmsh_yylval.d = NEWFIELD(); return tDOUBLE; }
YY_BREAK
case 16:
YY_RULE_SETUP
#line 92 "Gmsh.l"
#line 89 "Gmsh.l"
return tAFFECT;
YY_BREAK
case 17:
YY_RULE_SETUP
#line 93 "Gmsh.l"
#line 90 "Gmsh.l"
return tAFFECTPLUS;
YY_BREAK
case 18:
YY_RULE_SETUP
#line 94 "Gmsh.l"
#line 91 "Gmsh.l"
return tAFFECTMINUS;
YY_BREAK
case 19:
YY_RULE_SETUP
#line 95 "Gmsh.l"
#line 92 "Gmsh.l"
return tAFFECTTIMES;
YY_BREAK
case 20:
YY_RULE_SETUP
#line 96 "Gmsh.l"
#line 93 "Gmsh.l"
return tAFFECTDIVIDE;
YY_BREAK
case 21:
YY_RULE_SETUP
#line 97 "Gmsh.l"
#line 94 "Gmsh.l"
return tDOTS;
YY_BREAK
case 22:
YY_RULE_SETUP
#line 98 "Gmsh.l"
#line 95 "Gmsh.l"
return tDOTS;
YY_BREAK
case 23:
YY_RULE_SETUP
#line 99 "Gmsh.l"
#line 96 "Gmsh.l"
return tOR;
YY_BREAK
case 24:
YY_RULE_SETUP
#line 100 "Gmsh.l"
#line 97 "Gmsh.l"
return tAND;
YY_BREAK
case 25:
YY_RULE_SETUP
#line 101 "Gmsh.l"
#line 98 "Gmsh.l"
return tPLUSPLUS;
YY_BREAK
case 26:
YY_RULE_SETUP
#line 102 "Gmsh.l"
#line 99 "Gmsh.l"
return tMINUSMINUS;
YY_BREAK
case 27:
YY_RULE_SETUP
#line 103 "Gmsh.l"
#line 100 "Gmsh.l"
return tEQUAL;
YY_BREAK
case 28:
YY_RULE_SETUP
#line 104 "Gmsh.l"
#line 101 "Gmsh.l"
return tNOTEQUAL;
YY_BREAK
case 29:
YY_RULE_SETUP
#line 105 "Gmsh.l"
#line 102 "Gmsh.l"
return tLESSOREQUAL;
YY_BREAK
case 30:
YY_RULE_SETUP
#line 106 "Gmsh.l"
#line 103 "Gmsh.l"
return tGREATEROREQUAL;
YY_BREAK
case 31:
YY_RULE_SETUP
#line 108 "Gmsh.l"
#line 105 "Gmsh.l"
return tAbort;
YY_BREAK
case 32:
YY_RULE_SETUP
#line 109 "Gmsh.l"
#line 106 "Gmsh.l"
return tAcos;
YY_BREAK
case 33:
YY_RULE_SETUP
#line 110 "Gmsh.l"
#line 107 "Gmsh.l"
return tAdaptMesh;
YY_BREAK
case 34:
YY_RULE_SETUP
#line 111 "Gmsh.l"
#line 108 "Gmsh.l"
return tAffine;
YY_BREAK
case 35:
YY_RULE_SETUP
#line 112 "Gmsh.l"
#line 109 "Gmsh.l"
return tAcos;
YY_BREAK
case 36:
YY_RULE_SETUP
#line 113 "Gmsh.l"
#line 110 "Gmsh.l"
return tAlias;
YY_BREAK
case 37:
YY_RULE_SETUP
#line 114 "Gmsh.l"
#line 111 "Gmsh.l"
return tAliasWithOptions;
YY_BREAK
case 38:
YY_RULE_SETUP
#line 115 "Gmsh.l"
#line 112 "Gmsh.l"
return tAsin;
YY_BREAK
case 39:
YY_RULE_SETUP
#line 116 "Gmsh.l"
#line 113 "Gmsh.l"
return tAsin;
YY_BREAK
case 40:
YY_RULE_SETUP
#line 117 "Gmsh.l"
#line 114 "Gmsh.l"
return tAtan;
YY_BREAK
case 41:
YY_RULE_SETUP
#line 118 "Gmsh.l"
#line 115 "Gmsh.l"
return tAtan;
YY_BREAK
case 42:
YY_RULE_SETUP
#line 119 "Gmsh.l"
#line 116 "Gmsh.l"
return tAtan2;
YY_BREAK
case 43:
YY_RULE_SETUP
#line 120 "Gmsh.l"
#line 117 "Gmsh.l"
return tAtan2;
YY_BREAK
case 44:
YY_RULE_SETUP
#line 122 "Gmsh.l"
#line 119 "Gmsh.l"
return tBetti;
YY_BREAK
case 45:
YY_RULE_SETUP
#line 123 "Gmsh.l"
#line 120 "Gmsh.l"
return tBezier;
YY_BREAK
case 46:
YY_RULE_SETUP
#line 124 "Gmsh.l"
#line 121 "Gmsh.l"
return tBSpline;
YY_BREAK
case 47:
YY_RULE_SETUP
#line 125 "Gmsh.l"
#line 122 "Gmsh.l"
return tBoundingBox;
YY_BREAK
case 48:
YY_RULE_SETUP
#line 127 "Gmsh.l"
#line 124 "Gmsh.l"
return tCeil;
YY_BREAK
case 49:
YY_RULE_SETUP
#line 128 "Gmsh.l"
#line 125 "Gmsh.l"
return tCircle;
YY_BREAK
case 50:
YY_RULE_SETUP
#line 129 "Gmsh.l"
#line 126 "Gmsh.l"
return tCopyOptions;
YY_BREAK
case 51:
YY_RULE_SETUP
#line 130 "Gmsh.l"
#line 127 "Gmsh.l"
return tCoherence;
YY_BREAK
case 52:
YY_RULE_SETUP
#line 131 "Gmsh.l"
#line 128 "Gmsh.l"
return tCohomology;
YY_BREAK
case 53:
YY_RULE_SETUP
#line 132 "Gmsh.l"
#line 129 "Gmsh.l"
return tCombine;
YY_BREAK
case 54:
YY_RULE_SETUP
#line 133 "Gmsh.l"
#line 130 "Gmsh.l"
return tCosh;
YY_BREAK
case 55:
YY_RULE_SETUP
#line 134 "Gmsh.l"
#line 131 "Gmsh.l"
return tCos;
YY_BREAK
case 56:
YY_RULE_SETUP
#line 135 "Gmsh.l"
#line 132 "Gmsh.l"
return tCharacteristic;
YY_BREAK
case 57:
YY_RULE_SETUP
#line 136 "Gmsh.l"
#line 133 "Gmsh.l"
return tComplex;
YY_BREAK
case 58:
YY_RULE_SETUP
#line 137 "Gmsh.l"
#line 134 "Gmsh.l"
return tColor;
YY_BREAK
case 59:
YY_RULE_SETUP
#line 138 "Gmsh.l"
#line 135 "Gmsh.l"
return tColorTable;
YY_BREAK
case 60:
YY_RULE_SETUP
#line 139 "Gmsh.l"
#line 136 "Gmsh.l"
return tCompound;
YY_BREAK
case 61:
YY_RULE_SETUP
#line 140 "Gmsh.l"
#line 137 "Gmsh.l"
return tCoordinates;
YY_BREAK
case 62:
YY_RULE_SETUP
#line 141 "Gmsh.l"
#line 138 "Gmsh.l"
return tSpline;
YY_BREAK
case 63:
YY_RULE_SETUP
#line 142 "Gmsh.l"
#line 139 "Gmsh.l"
return tCall;
YY_BREAK
case 64:
YY_RULE_SETUP
#line 143 "Gmsh.l"
#line 140 "Gmsh.l"
return tCreateTopology;
YY_BREAK
case 65:
YY_RULE_SETUP
#line 144 "Gmsh.l"
#line 141 "Gmsh.l"
return tCreateTopologyNoHoles;
YY_BREAK
case 66:
YY_RULE_SETUP
#line 145 "Gmsh.l"
#line 142 "Gmsh.l"
return tCpu;
YY_BREAK
case 67:
YY_RULE_SETUP
#line 146 "Gmsh.l"
#line 143 "Gmsh.l"
return tCurrentDirectory;
YY_BREAK
case 68:
YY_RULE_SETUP
#line 147 "Gmsh.l"
#line 144 "Gmsh.l"
return tCurrentDirectory;
YY_BREAK
case 69:
YY_RULE_SETUP
#line 149 "Gmsh.l"
#line 146 "Gmsh.l"
return tDefineConstant;
YY_BREAK
case 70:
YY_RULE_SETUP
#line 150 "Gmsh.l"
#line 147 "Gmsh.l"
return tDefineNumber;
YY_BREAK
case 71:
YY_RULE_SETUP
#line 151 "Gmsh.l"
#line 148 "Gmsh.l"
return tDefineString;
YY_BREAK
case 72:
YY_RULE_SETUP
#line 152 "Gmsh.l"
#line 149 "Gmsh.l"
return tDelete;
YY_BREAK
case 73:
YY_RULE_SETUP
#line 153 "Gmsh.l"
#line 150 "Gmsh.l"
return tDegenerated;
YY_BREAK
case 74:
YY_RULE_SETUP
#line 154 "Gmsh.l"
#line 151 "Gmsh.l"
return tDilate;
YY_BREAK
case 75:
YY_RULE_SETUP
#line 155 "Gmsh.l"
#line 152 "Gmsh.l"
return tDraw;
YY_BREAK
case 76:
YY_RULE_SETUP
#line 156 "Gmsh.l"
#line 153 "Gmsh.l"
return tSetChanged;
YY_BREAK
case 77:
YY_RULE_SETUP
#line 158 "Gmsh.l"
#line 155 "Gmsh.l"
return tExp;
YY_BREAK
case 78:
YY_RULE_SETUP
#line 159 "Gmsh.l"
#line 156 "Gmsh.l"
return tEllipse;
YY_BREAK
case 79:
YY_RULE_SETUP
#line 160 "Gmsh.l"
#line 157 "Gmsh.l"
return tEllipse;
YY_BREAK
case 80:
YY_RULE_SETUP
#line 161 "Gmsh.l"
#line 158 "Gmsh.l"
return tElse;
YY_BREAK
case 81:
YY_RULE_SETUP
#line 162 "Gmsh.l"
#line 159 "Gmsh.l"
return tElseIf;
YY_BREAK
case 82:
YY_RULE_SETUP
#line 163 "Gmsh.l"
#line 160 "Gmsh.l"
return tExtrude;
YY_BREAK
case 83:
YY_RULE_SETUP
#line 164 "Gmsh.l"
#line 161 "Gmsh.l"
return tElliptic;
YY_BREAK
case 84:
YY_RULE_SETUP
#line 165 "Gmsh.l"
#line 162 "Gmsh.l"
return tEndFor;
YY_BREAK
case 85:
YY_RULE_SETUP
#line 166 "Gmsh.l"
#line 163 "Gmsh.l"
return tEndIf;
YY_BREAK
case 86:
YY_RULE_SETUP
#line 167 "Gmsh.l"
#line 164 "Gmsh.l"
return tEuclidian;
YY_BREAK
case 87:
YY_RULE_SETUP
#line 168 "Gmsh.l"
#line 165 "Gmsh.l"
return tError;
YY_BREAK
case 88:
YY_RULE_SETUP
#line 169 "Gmsh.l"
#line 166 "Gmsh.l"
return tExit;
YY_BREAK
case 89:
YY_RULE_SETUP
#line 170 "Gmsh.l"
#line 167 "Gmsh.l"
return tExists;
YY_BREAK
case 90:
YY_RULE_SETUP
#line 172 "Gmsh.l"
#line 169 "Gmsh.l"
return tFabs;
YY_BREAK
case 91:
YY_RULE_SETUP
#line 173 "Gmsh.l"
#line 170 "Gmsh.l"
return tField;
YY_BREAK
case 92:
YY_RULE_SETUP
#line 174 "Gmsh.l"
#line 171 "Gmsh.l"
return tFind;
YY_BREAK
case 93:
YY_RULE_SETUP
#line 175 "Gmsh.l"
#line 172 "Gmsh.l"
return tFileExists;
YY_BREAK
case 94:
YY_RULE_SETUP
#line 176 "Gmsh.l"
#line 173 "Gmsh.l"
return tFixRelativePath;
YY_BREAK
case 95:
YY_RULE_SETUP
#line 177 "Gmsh.l"
#line 174 "Gmsh.l"
return tFloor;
YY_BREAK
case 96:
YY_RULE_SETUP
#line 178 "Gmsh.l"
#line 175 "Gmsh.l"
return tFmod;
YY_BREAK
case 97:
YY_RULE_SETUP
#line 179 "Gmsh.l"
#line 176 "Gmsh.l"
return tFor;
YY_BREAK
case 98:
YY_RULE_SETUP
#line 180 "Gmsh.l"
#line 177 "Gmsh.l"
return tMacro;
YY_BREAK
case 99:
YY_RULE_SETUP
#line 182 "Gmsh.l"
#line 179 "Gmsh.l"
return tGetEnv;
YY_BREAK
case 100:
YY_RULE_SETUP
#line 183 "Gmsh.l"
#line 180 "Gmsh.l"
return tGetString;
YY_BREAK
case 101:
YY_RULE_SETUP
#line 184 "Gmsh.l"
#line 181 "Gmsh.l"
return tGetNumber;
YY_BREAK
case 102:
YY_RULE_SETUP
#line 185 "Gmsh.l"
#line 182 "Gmsh.l"
return tGetValue;
YY_BREAK
case 103:
YY_RULE_SETUP
#line 186 "Gmsh.l"
#line 183 "Gmsh.l"
return tGetStringValue;
YY_BREAK
case 104:
YY_RULE_SETUP
#line 187 "Gmsh.l"
#line 184 "Gmsh.l"
return tGMSH_MAJOR_VERSION;
YY_BREAK
case 105:
YY_RULE_SETUP
#line 188 "Gmsh.l"
#line 185 "Gmsh.l"
return tGMSH_MINOR_VERSION;
YY_BREAK
case 106:
YY_RULE_SETUP
#line 189 "Gmsh.l"
#line 186 "Gmsh.l"
return tGMSH_PATCH_VERSION;
YY_BREAK
case 107:
YY_RULE_SETUP
#line 190 "Gmsh.l"
#line 187 "Gmsh.l"
return tGmshExecutableName;
YY_BREAK
case 108:
YY_RULE_SETUP
#line 192 "Gmsh.l"
#line 189 "Gmsh.l"
return tHide;
YY_BREAK
case 109:
YY_RULE_SETUP
#line 193 "Gmsh.l"
#line 190 "Gmsh.l"
return tHole;
YY_BREAK
case 110:
YY_RULE_SETUP
#line 194 "Gmsh.l"
#line 191 "Gmsh.l"
return tHomology;
YY_BREAK
case 111:
YY_RULE_SETUP
#line 195 "Gmsh.l"
#line 192 "Gmsh.l"
return tHypot;
YY_BREAK
case 112:
YY_RULE_SETUP
#line 197 "Gmsh.l"
#line 194 "Gmsh.l"
return tIn;
YY_BREAK
case 113:
YY_RULE_SETUP
#line 198 "Gmsh.l"
#line 195 "Gmsh.l"
return tIf;
YY_BREAK
case 114:
YY_RULE_SETUP
#line 199 "Gmsh.l"
#line 196 "Gmsh.l"
return tIntersect;
YY_BREAK
case 115:
YY_RULE_SETUP
#line 200 "Gmsh.l"
#line 197 "Gmsh.l"
return tInterpolationScheme;
YY_BREAK
case 116:
YY_RULE_SETUP
#line 202 "Gmsh.l"
#line 199 "Gmsh.l"
return tNurbsKnots;
YY_BREAK
case 117:
YY_RULE_SETUP
#line 204 "Gmsh.l"
#line 201 "Gmsh.l"
return tLength;
YY_BREAK
case 118:
YY_RULE_SETUP
#line 205 "Gmsh.l"
#line 202 "Gmsh.l"
return tLine;
YY_BREAK
case 119:
YY_RULE_SETUP
#line 206 "Gmsh.l"
#line 203 "Gmsh.l"
return tList;
YY_BREAK
case 120:
YY_RULE_SETUP
#line 207 "Gmsh.l"
#line 204 "Gmsh.l"
return tLog;
YY_BREAK
case 121:
YY_RULE_SETUP
#line 208 "Gmsh.l"
#line 205 "Gmsh.l"
return tLog10;
YY_BREAK
case 122:
YY_RULE_SETUP
#line 209 "Gmsh.l"
#line 206 "Gmsh.l"
return tLayers;
YY_BREAK
case 123:
YY_RULE_SETUP
#line 210 "Gmsh.l"
#line 207 "Gmsh.l"
return tLevelset;
YY_BREAK
case 124:
YY_RULE_SETUP
#line 212 "Gmsh.l"
#line 209 "Gmsh.l"
return tMacro;
YY_BREAK
case 125:
YY_RULE_SETUP
#line 213 "Gmsh.l"
#line 210 "Gmsh.l"
return tMeshAlgorithm;
YY_BREAK
case 126:
YY_RULE_SETUP
#line 214 "Gmsh.l"
#line 211 "Gmsh.l"
return tModulo;
YY_BREAK
case 127:
YY_RULE_SETUP
#line 215 "Gmsh.l"
#line 212 "Gmsh.l"
return tMPI_Rank;
YY_BREAK
case 128:
YY_RULE_SETUP
#line 216 "Gmsh.l"
#line 213 "Gmsh.l"
return tMPI_Size;
YY_BREAK
case 129:
YY_RULE_SETUP
#line 217 "Gmsh.l"
#line 214 "Gmsh.l"
return tMemory;
YY_BREAK
case 130:
YY_RULE_SETUP
#line 219 "Gmsh.l"
#line 216 "Gmsh.l"
return tNameToString;
YY_BREAK
case 131:
YY_RULE_SETUP
#line 220 "Gmsh.l"
#line 217 "Gmsh.l"
return tNameToString;
YY_BREAK
case 132:
YY_RULE_SETUP
#line 221 "Gmsh.l"
#line 218 "Gmsh.l"
return tNewModel;
YY_BREAK
case 133:
YY_RULE_SETUP
#line 222 "Gmsh.l"
#line 219 "Gmsh.l"
return tNurbs;
YY_BREAK
case 134:
YY_RULE_SETUP
#line 224 "Gmsh.l"
#line 221 "Gmsh.l"
return tOnelabAction;
YY_BREAK
case 135:
YY_RULE_SETUP
#line 225 "Gmsh.l"
#line 222 "Gmsh.l"
return tOnelabRun;
YY_BREAK
case 136:
YY_RULE_SETUP
#line 226 "Gmsh.l"
#line 223 "Gmsh.l"
return tNurbsOrder;
YY_BREAK
case 137:
YY_RULE_SETUP
#line 228 "Gmsh.l"
#line 225 "Gmsh.l"
return tPeriodic;
YY_BREAK
case 138:
YY_RULE_SETUP
#line 229 "Gmsh.l"
#line 226 "Gmsh.l"
return tPhysical;
YY_BREAK
case 139:
YY_RULE_SETUP
#line 230 "Gmsh.l"
#line 227 "Gmsh.l"
return tPi;
YY_BREAK
case 140:
YY_RULE_SETUP
#line 231 "Gmsh.l"
#line 228 "Gmsh.l"
return tPlane;
YY_BREAK
case 141:
YY_RULE_SETUP
#line 232 "Gmsh.l"
#line 229 "Gmsh.l"
return tPoint;
YY_BREAK
case 142:
YY_RULE_SETUP
#line 233 "Gmsh.l"
#line 230 "Gmsh.l"
return tParametric;
YY_BREAK
case 143:
YY_RULE_SETUP
#line 234 "Gmsh.l"
#line 231 "Gmsh.l"
return tPolarSphere;
YY_BREAK
case 144:
YY_RULE_SETUP
#line 235 "Gmsh.l"
#line 232 "Gmsh.l"
return tPrintf;
YY_BREAK
case 145:
YY_RULE_SETUP
#line 236 "Gmsh.l"
#line 233 "Gmsh.l"
return tPlugin;
YY_BREAK
case 146:
YY_RULE_SETUP
#line 238 "Gmsh.l"
#line 235 "Gmsh.l"
return tQuadTriAddVerts;
YY_BREAK
case 147:
YY_RULE_SETUP
#line 239 "Gmsh.l"
#line 236 "Gmsh.l"
return tQuadTriNoNewVerts;
YY_BREAK
case 148:
YY_RULE_SETUP
#line 241 "Gmsh.l"
#line 238 "Gmsh.l"
return tQuadTriDbl;
YY_BREAK
case 149:
YY_RULE_SETUP
#line 242 "Gmsh.l"
#line 239 "Gmsh.l"
return tQuadTriSngl;
YY_BREAK
case 150:
YY_RULE_SETUP
#line 244 "Gmsh.l"
#line 241 "Gmsh.l"
return tRecombine;
YY_BREAK
case 151:
YY_RULE_SETUP
#line 245 "Gmsh.l"
#line 242 "Gmsh.l"
return tRecombLaterals;
YY_BREAK
case 152:
YY_RULE_SETUP
#line 246 "Gmsh.l"
#line 243 "Gmsh.l"
return tRecursive;
YY_BREAK
case 153:
YY_RULE_SETUP
#line 247 "Gmsh.l"
#line 244 "Gmsh.l"
return tRotate;
YY_BREAK
case 154:
YY_RULE_SETUP
#line 248 "Gmsh.l"
#line 245 "Gmsh.l"
return tRound;
YY_BREAK
case 155:
YY_RULE_SETUP
#line 249 "Gmsh.l"
#line 246 "Gmsh.l"
return tRuled;
YY_BREAK
case 156:
YY_RULE_SETUP
#line 250 "Gmsh.l"
#line 247 "Gmsh.l"
return tRand;
YY_BREAK
case 157:
YY_RULE_SETUP
#line 251 "Gmsh.l"
#line 248 "Gmsh.l"
return tRefineMesh;
YY_BREAK
case 158:
YY_RULE_SETUP
#line 252 "Gmsh.l"
#line 249 "Gmsh.l"
return tRelocateMesh;
YY_BREAK
case 159:
YY_RULE_SETUP
#line 253 "Gmsh.l"
#line 250 "Gmsh.l"
return tReturn;
YY_BREAK
case 160:
YY_RULE_SETUP
#line 254 "Gmsh.l"
#line 251 "Gmsh.l"
return tReverse;
YY_BREAK
case 161:
YY_RULE_SETUP
#line 256 "Gmsh.l"
#line 253 "Gmsh.l"
return tScaleLast;
YY_BREAK
case 162:
YY_RULE_SETUP
#line 257 "Gmsh.l"
#line 254 "Gmsh.l"
return tSmoother;
YY_BREAK
case 163:
YY_RULE_SETUP
#line 258 "Gmsh.l"
#line 255 "Gmsh.l"
return tSetNumber;
YY_BREAK
case 164:
YY_RULE_SETUP
#line 259 "Gmsh.l"
#line 256 "Gmsh.l"
return tSetString;
YY_BREAK
case 165:
YY_RULE_SETUP
#line 260 "Gmsh.l"
#line 257 "Gmsh.l"
return tSetPartition;
YY_BREAK
case 166:
YY_RULE_SETUP
#line 261 "Gmsh.l"
#line 258 "Gmsh.l"
return tSqrt;
YY_BREAK
case 167:
YY_RULE_SETUP
#line 262 "Gmsh.l"
#line 259 "Gmsh.l"
return tSin;
YY_BREAK
case 168:
YY_RULE_SETUP
#line 263 "Gmsh.l"
#line 260 "Gmsh.l"
return tSinh;
YY_BREAK
case 169:
YY_RULE_SETUP
#line 264 "Gmsh.l"
#line 261 "Gmsh.l"
return tSphere;
YY_BREAK
case 170:
YY_RULE_SETUP
#line 265 "Gmsh.l"
#line 262 "Gmsh.l"
return tSpline;
YY_BREAK
case 171:
YY_RULE_SETUP
#line 266 "Gmsh.l"
#line 263 "Gmsh.l"
return tSplit;
YY_BREAK
case 172:
YY_RULE_SETUP
#line 267 "Gmsh.l"
#line 264 "Gmsh.l"
return tSurface;
YY_BREAK
case 173:
YY_RULE_SETUP
#line 268 "Gmsh.l"
#line 265 "Gmsh.l"
return tStr;
YY_BREAK
case 174:
YY_RULE_SETUP
#line 269 "Gmsh.l"
#line 266 "Gmsh.l"
return tStringToName;
YY_BREAK
case 175:
YY_RULE_SETUP
#line 270 "Gmsh.l"
#line 267 "Gmsh.l"
return tStringToName;
YY_BREAK
case 176:
YY_RULE_SETUP
#line 271 "Gmsh.l"
#line 268 "Gmsh.l"
return tSprintf;
YY_BREAK
case 177:
YY_RULE_SETUP
#line 272 "Gmsh.l"
#line 269 "Gmsh.l"
return tStrCat;
YY_BREAK
case 178:
YY_RULE_SETUP
#line 273 "Gmsh.l"
#line 270 "Gmsh.l"
return tStrReplace;
YY_BREAK
case 179:
YY_RULE_SETUP
#line 274 "Gmsh.l"
#line 271 "Gmsh.l"
return tStrPrefix;
YY_BREAK
case 180:
YY_RULE_SETUP
#line 275 "Gmsh.l"
#line 272 "Gmsh.l"
return tStrRelative;
YY_BREAK
case 181:
YY_RULE_SETUP
#line 276 "Gmsh.l"
#line 273 "Gmsh.l"
return tStrFind;
YY_BREAK
case 182:
YY_RULE_SETUP
#line 277 "Gmsh.l"
#line 274 "Gmsh.l"
return tStrCmp;
YY_BREAK
case 183:
YY_RULE_SETUP
#line 278 "Gmsh.l"
#line 275 "Gmsh.l"
return tStrChoice;
YY_BREAK
case 184:
YY_RULE_SETUP
#line 279 "Gmsh.l"
#line 276 "Gmsh.l"
return tShow;
YY_BREAK
case 185:
YY_RULE_SETUP
#line 280 "Gmsh.l"
#line 277 "Gmsh.l"
return tSymmetry;
YY_BREAK
case 186:
YY_RULE_SETUP
#line 281 "Gmsh.l"
#line 278 "Gmsh.l"
return tSyncModel;
YY_BREAK
case 187:
YY_RULE_SETUP
#line 283 "Gmsh.l"
#line 280 "Gmsh.l"
return tText2D;
YY_BREAK
case 188:
YY_RULE_SETUP
#line 284 "Gmsh.l"
#line 281 "Gmsh.l"
return tText3D;
YY_BREAK
case 189:
YY_RULE_SETUP
#line 285 "Gmsh.l"
#line 282 "Gmsh.l"
return tTestLevel;
YY_BREAK
case 190:
YY_RULE_SETUP
#line 286 "Gmsh.l"
#line 283 "Gmsh.l"
return tTextAttributes;
YY_BREAK
case 191:
YY_RULE_SETUP
#line 287 "Gmsh.l"
#line 284 "Gmsh.l"
return tTime;
YY_BREAK
case 192:
YY_RULE_SETUP
#line 288 "Gmsh.l"
#line 285 "Gmsh.l"
return tTransfinite;
YY_BREAK
case 193:
YY_RULE_SETUP
#line 289 "Gmsh.l"
#line 286 "Gmsh.l"
return tTransfQuadTri;
YY_BREAK
case 194:
YY_RULE_SETUP
#line 290 "Gmsh.l"
#line 287 "Gmsh.l"
return tTranslate;
YY_BREAK
case 195:
YY_RULE_SETUP
#line 291 "Gmsh.l"
#line 288 "Gmsh.l"
return tTanh;
YY_BREAK
case 196:
YY_RULE_SETUP
#line 292 "Gmsh.l"
#line 289 "Gmsh.l"
return tTan;
YY_BREAK
case 197:
YY_RULE_SETUP
#line 293 "Gmsh.l"
#line 290 "Gmsh.l"
return tToday;
YY_BREAK
case 198:
YY_RULE_SETUP
#line 294 "Gmsh.l"
#line 291 "Gmsh.l"
return tTotalMemory;
YY_BREAK
case 199:
YY_RULE_SETUP
#line 296 "Gmsh.l"
#line 293 "Gmsh.l"
return tUndefineConstant;
YY_BREAK
case 200:
YY_RULE_SETUP
#line 297 "Gmsh.l"
#line 294 "Gmsh.l"
return tUpperCase;
YY_BREAK
case 201:
YY_RULE_SETUP
#line 298 "Gmsh.l"
#line 295 "Gmsh.l"
return tLowerCase;
YY_BREAK
case 202:
YY_RULE_SETUP
#line 299 "Gmsh.l"
#line 296 "Gmsh.l"
return tLowerCaseIn;
YY_BREAK
case 203:
YY_RULE_SETUP
#line 300 "Gmsh.l"
#line 297 "Gmsh.l"
return tUsing;
YY_BREAK
case 204:
YY_RULE_SETUP
#line 302 "Gmsh.l"
#line 299 "Gmsh.l"
return tVolume;
YY_BREAK
case 205:
#line 305 "Gmsh.l"
#line 302 "Gmsh.l"
case 206:
#line 306 "Gmsh.l"
#line 303 "Gmsh.l"
case 207:
#line 307 "Gmsh.l"
#line 304 "Gmsh.l"
case 208:
YY_RULE_SETUP
#line 307 "Gmsh.l"
#line 304 "Gmsh.l"
{ gmsh_yylval.d = atof((char *)gmsh_yytext); return tDOUBLE; }
YY_BREAK
case 209:
YY_RULE_SETUP
#line 309 "Gmsh.l"
#line 306 "Gmsh.l"
{ gmsh_yylval.c = strsave((char*)gmsh_yytext); return tSTRING; }
YY_BREAK
case 210:
YY_RULE_SETUP
#line 311 "Gmsh.l"
#line 308 "Gmsh.l"
return gmsh_yytext[0];
YY_BREAK
case 211:
YY_RULE_SETUP
#line 313 "Gmsh.l"
#line 310 "Gmsh.l"
ECHO;
YY_BREAK
#line 2478 "Gmsh.yy.cpp"
#line 2475 "Gmsh.yy.cpp"
case YY_STATE_EOF(INITIAL):
yyterminate();
......@@ -2667,7 +2664,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;
YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
int yy_c_buf_p_offset =
(int) ((yy_c_buf_p) - b->yy_ch_buf);
......@@ -2888,7 +2885,7 @@ static int yy_get_next_buffer (void)
case EOB_ACT_END_OF_FILE:
{
if ( gmsh_yywrap( ) )
return 0;
return EOF;
if ( ! (yy_did_buffer_switch_on_eof) )
YY_NEW_FILE;
......@@ -3024,10 +3021,6 @@ 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.
......@@ -3232,8 +3225,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 bytes the byte buffer to scan
* @param len the number of bytes in the buffer pointed to by @a bytes.
* @param yybytes the byte buffer to scan
* @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
*
* @return the newly allocated buffer state object.
*/
......@@ -3241,7 +3234,8 @@ YY_BUFFER_STATE gmsh_yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes
{
YY_BUFFER_STATE b;
char *buf;
yy_size_t n, i;
yy_size_t n;
int i;
/* Get memory for full buffer, including space for trailing EOB's. */
n = _yybytes_len + 2;
......@@ -3471,7 +3465,7 @@ void gmsh_yyfree (void * ptr )
#define YYTABLES_NAME "yytables"
#line 313 "Gmsh.l"
#line 310 "Gmsh.l"
......@@ -3505,7 +3499,7 @@ void parsestring(char endchar)
// etc.) "as is" in the output string: see yyinput() above
int i = 0;
while ((c = yyinput()) != endchar) {
if(c=='\0'){
if(gmsheof(gmsh_yyin)){ // FIXME: this is not correct
Msg::Error("End of file in string");
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment