* src/evtgbaparse/evtgbaparse.yy, src/evtgbaparse/evtgbascan.ll,

src/evtgbaparse/fmterror.cc, src/evtgbaparse/parsedecl.hh,
src/evtgbaparse/public.hh, src/evtgbatest/product.cc,
src/evtgbatest/readsave.cc, src/ltlparse/fmterror.cc,
src/ltlparse/ltlparse.yy, src/ltlparse/parsedecl.hh,
src/ltlparse/public.hh, src/tgbaparse/parsedecl.hh,
src/tgbaparse/public.hh, src/tgbaparse/tgbaparse.yy: Update
to Bison 2.0.
This commit is contained in:
Alexandre Duret-Lutz 2005-02-01 18:03:00 +00:00
parent 461fcd3732
commit 5cd58f9aaf
16 changed files with 64 additions and 66 deletions

View file

@ -1,4 +1,4 @@
// Copyright (C) 2003, 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
// Copyright (C) 2003, 2004, 2005 Laboratoire d'Informatique de Paris 6 (LIP6),
// département Systèmes Répartis Coopératifs (SRC), Université Pierre
// et Marie Curie.
//
@ -37,7 +37,7 @@ namespace spot
for (it = error_list.begin(); it != error_list.end(); ++it)
{
os << ">>> " << ltl_string << std::endl;
yy::Location& l = it->first;
yy::location& l = it->first;
unsigned n = 0;
for (; n < 4 + l.begin.column; ++n)

View file

@ -1,4 +1,4 @@
/* Copyright (C) 2003, 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
/* Copyright (C) 2003, 2004, 2005 Laboratoire d'Informatique de Paris 6 (LIP6),
** département Systèmes Répartis Coopératifs (SRC), Université Pierre
** et Marie Curie.
**
@ -111,6 +111,8 @@ using namespace spot::ltl;
%destructor { delete $$; } "atomic proposition"
%destructor { spot::ltl::destroy($$); } result subformula
%printer { debug_stream() << *$$; } "atomic proposition"
%%
result: subformula END_OF_INPUT
{ result = $$ = $1;
@ -260,14 +262,7 @@ subformula: ATOMIC_PROP
%%
void
yy::Parser::print_()
{
if (looka_ == ATOMIC_PROP)
YYCDEBUG << " '" << *value.str << "'";
}
void
yy::Parser::error_()
yy::parser::error(const location_type& location, const std::string& message)
{
error_list.push_back(parse_error(location, message));
}
@ -284,7 +279,8 @@ namespace spot
{
formula* result = 0;
flex_set_buffer(ltl_string.c_str());
yy::Parser parser(debug, yy::Location(), error_list, env, result);
yy::parser parser(error_list, env, result);
parser.set_debug_level(debug);
parser.parse();
return result;
}

View file

@ -1,4 +1,4 @@
// Copyright (C) 2003 Laboratoire d'Informatique de Paris 6 (LIP6),
// Copyright (C) 2003, 2005 Laboratoire d'Informatique de Paris 6 (LIP6),
// département Systèmes Répartis Coopératifs (SRC), Université Pierre
// et Marie Curie.
//
@ -26,7 +26,7 @@
#include "location.hh"
# define YY_DECL \
int ltlyylex (yystype *yylval, yy::Location *yylloc)
int ltlyylex (yystype *yylval, yy::location *yylloc)
YY_DECL;
void flex_set_buffer(const char *buf);

View file

@ -1,4 +1,4 @@
// Copyright (C) 2003, 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
// Copyright (C) 2003, 2004, 2005 Laboratoire d'Informatique de Paris 6 (LIP6),
// département Systèmes Répartis Coopératifs (SRC), Université Pierre
// et Marie Curie.
//
@ -38,7 +38,7 @@ namespace spot
/// @{
/// \brief A parse diagnostic with its location.
typedef std::pair<yy::Location, std::string> parse_error;
typedef std::pair<yy::location, std::string> parse_error;
/// \brief A list of parser diagnostics, as filled by parse.
typedef std::list<parse_error> parse_error_list;