* src/ltlparse/ltlscan.ll: Use ltlyy as %prefix.
* src/ltlparse/parsedecl.hh (YY_DECL): Rename yylex to ltlyylex. * src/ltlparse/ltlparse.yy: Define yylex as ltlyylex.
This commit is contained in:
parent
c4c90de3f6
commit
3fb593e542
5 changed files with 61 additions and 49 deletions
|
|
@ -1,3 +1,9 @@
|
|||
2003-06-04 Alexandre Duret-Lutz <aduret@src.lip6.fr>
|
||||
|
||||
* src/ltlparse/ltlscan.ll: Use ltlyy as %prefix.
|
||||
* src/ltlparse/parsedecl.hh (YY_DECL): Rename yylex to ltlyylex.
|
||||
* src/ltlparse/ltlparse.yy: Define yylex as ltlyylex.
|
||||
|
||||
2003-06-03 Alexandre Duret-Lutz <adl@gnu.org>
|
||||
|
||||
* src/tgba/dictunion.cc, src/tgba/ltl2tgba.cc,
|
||||
|
|
|
|||
|
|
@ -26,6 +26,11 @@ extern spot::ltl::formula* result;
|
|||
before parsedecl.hh uses it. */
|
||||
#include "parsedecl.hh"
|
||||
using namespace spot::ltl;
|
||||
|
||||
/* Ugly hack so that Bison use ltlyylex, not yylex.
|
||||
(%name-prefix doesn't work for the lalr1.cc skeleton
|
||||
at the time of writing.) */
|
||||
#define yylex ltlyylex
|
||||
%}
|
||||
|
||||
/* Logical operators. */
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
%option noyywrap
|
||||
%option prefix="ltlyy"
|
||||
%option outfile="lex.yy.c"
|
||||
|
||||
%{
|
||||
#include <string>
|
||||
|
|
|
|||
|
|
@ -5,10 +5,9 @@
|
|||
#include "location.hh"
|
||||
|
||||
# define YY_DECL \
|
||||
int yylex (yystype *yylval, yy::Location *yylloc)
|
||||
int ltlyylex (yystype *yylval, yy::Location *yylloc)
|
||||
YY_DECL;
|
||||
|
||||
void flex_set_buffer(const char *buf);
|
||||
|
||||
#endif // SPOT_LTLPARSE_PARSEDECL_HH
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue