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

fix make parser on linux
parent f4602311
No related branches found
No related tags found
No related merge requests found
# $Id: Makefile,v 1.1 2004-05-12 02:02:21 geuzaine Exp $ # $Id: Makefile,v 1.2 2004-05-12 18:38:44 geuzaine Exp $
# #
# Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle # Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle
# #
...@@ -48,6 +48,7 @@ parser: ...@@ -48,6 +48,7 @@ parser:
bison --output parser.cpp -pme -d parser.y bison --output parser.cpp -pme -d parser.y
flex -oscanner.cpp -Pme scanner.l flex -oscanner.cpp -Pme scanner.l
if [ -r parser.cpp.h ]; then mv parser.cpp.h parser.h ; fi if [ -r parser.cpp.h ]; then mv parser.cpp.h parser.h ; fi
if [ -r parser.hpp ]; then mv parser.hpp parser.h ; fi
clean: clean:
rm -f *.o rm -f *.o
......
#ifndef BISON_PARSER_HPP
# define BISON_PARSER_HPP
#ifndef YYSTYPE
typedef union { typedef union {
Node *node; Node *node;
Record *record; Record *record;
} YYSTYPE; } yystype;
# define YYSTYPE yystype
# define YYSTYPE_IS_TRIVIAL 1
#endif
# define NUMBER 257 # define NUMBER 257
# define VARIABLE 258 # define VARIABLE 258
# define FUNCTION 259 # define FUNCTION 259
...@@ -9,3 +16,5 @@ typedef union { ...@@ -9,3 +16,5 @@ typedef union {
extern YYSTYPE melval; extern YYSTYPE melval;
#endif /* not BISON_PARSER_HPP */
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
/* A lexical scanner generated by flex */ /* A lexical scanner generated by flex */
/* Scanner skeleton version: /* Scanner skeleton version:
* $Header: /cvsroot/gmsh/MathEval/scanner.cpp,v 1.2 2004-05-12 18:14:20 geuzaine Exp $ * $Header: /cvsroot/gmsh/MathEval/scanner.cpp,v 1.3 2004-05-12 18:38:44 geuzaine Exp $
*/ */
#define FLEX_SCANNER #define FLEX_SCANNER
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment