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

make parser
parent 864a124e
No related branches found
No related tags found
No related merge requests found
Source diff could not be displayed: it is too large. Options to address this: view the blob.
#ifndef BISON_GMSH_TAB_HPP
# define BISON_GMSH_TAB_HPP
#ifndef YYSTYPE
typedef union { typedef union {
char *c; char *c;
int i; int i;
...@@ -10,10 +6,7 @@ typedef union { ...@@ -10,10 +6,7 @@ typedef union {
double v[5]; double v[5];
Shape s; Shape s;
List_T *l; List_T *l;
} yystype; } YYSTYPE;
# define YYSTYPE yystype
# define YYSTYPE_IS_TRIVIAL 1
#endif
#define tDOUBLE 257 #define tDOUBLE 257
#define tSTRING 258 #define tSTRING 258
#define tBIGSTR 259 #define tBIGSTR 259
...@@ -201,5 +194,3 @@ typedef union { ...@@ -201,5 +194,3 @@ typedef union {
extern YYSTYPE yylval; extern YYSTYPE yylval;
#endif /* not BISON_GMSH_TAB_HPP */
...@@ -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.188 2004-05-14 18:23:58 geuzaine Exp $ * $Header: /cvsroot/gmsh/Parser/Gmsh.yy.cpp,v 1.189 2004-05-22 01:34:57 geuzaine Exp $
*/ */
#define FLEX_SCANNER #define FLEX_SCANNER
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
#define YY_FLEX_MINOR_VERSION 5 #define YY_FLEX_MINOR_VERSION 5
#include <stdio.h> #include <stdio.h>
#include <unistd.h>
/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */ /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
...@@ -24,6 +23,7 @@ ...@@ -24,6 +23,7 @@
#ifdef __cplusplus #ifdef __cplusplus
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h>
/* Use prototypes in function declarations. */ /* Use prototypes in function declarations. */
#define YY_USE_PROTOS #define YY_USE_PROTOS
...@@ -1014,7 +1014,7 @@ char *yytext; ...@@ -1014,7 +1014,7 @@ char *yytext;
#line 1 "Gmsh.l" #line 1 "Gmsh.l"
#define INITIAL 0 #define INITIAL 0
#line 2 "Gmsh.l" #line 2 "Gmsh.l"
// $Id: Gmsh.yy.cpp,v 1.188 2004-05-14 18:23:58 geuzaine Exp $ // $Id: Gmsh.yy.cpp,v 1.189 2004-05-22 01:34:57 geuzaine Exp $
// //
// Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle
// //
...@@ -1223,7 +1223,7 @@ YY_MALLOC_DECL ...@@ -1223,7 +1223,7 @@ YY_MALLOC_DECL
YY_DECL YY_DECL
{ {
register yy_state_type yy_current_state; register yy_state_type yy_current_state;
register char *yy_cp = NULL, *yy_bp = NULL; register char *yy_cp, *yy_bp;
register int yy_act; register int yy_act;
#line 80 "Gmsh.l" #line 80 "Gmsh.l"
...@@ -2725,7 +2725,6 @@ register char *yy_bp; ...@@ -2725,7 +2725,6 @@ register char *yy_bp;
#endif /* ifndef YY_NO_UNPUT */ #endif /* ifndef YY_NO_UNPUT */
#ifndef YY_NO_INPUT
#ifdef __cplusplus #ifdef __cplusplus
static int yyinput() static int yyinput()
#else #else
...@@ -2797,7 +2796,7 @@ static int input() ...@@ -2797,7 +2796,7 @@ static int input()
return c; return c;
} }
#endif /* YY_NO_INPUT */
#ifdef YY_USE_PROTOS #ifdef YY_USE_PROTOS
void yyrestart( FILE *input_file ) void yyrestart( FILE *input_file )
...@@ -2908,6 +2907,11 @@ YY_BUFFER_STATE b; ...@@ -2908,6 +2907,11 @@ YY_BUFFER_STATE b;
} }
#ifndef YY_ALWAYS_INTERACTIVE
#ifndef YY_NEVER_INTERACTIVE
extern int isatty YY_PROTO(( int ));
#endif
#endif
#ifdef YY_USE_PROTOS #ifdef YY_USE_PROTOS
void yy_init_buffer( YY_BUFFER_STATE b, FILE *file ) void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment