Modernize Bison parsers.

* src/ltlparse/ltlparse.yy, src/tgbaparse/tgbaparse.yy,
src/evtgbaparse/evtgbaparse.yy, src/eltlparse/eltlparse.yy: Use
token types for %destructor and %printer.  Remove the yylex hack,
since %name-prefix is now honored by Bison.  Also remove the
useless <token> type.  Suggested by Akim Demaille.
This commit is contained in:
Alexandre Duret-Lutz 2010-04-07 16:47:40 +02:00
parent d71ceb3b04
commit bbd526ac81
5 changed files with 37 additions and 49 deletions

View file

@ -1,5 +1,5 @@
/* Copyright (C) 2008, 2009 Laboratoire de Recherche et Développement
** de l'Epita (LRDE).
/* Copyright (C) 2008, 2009, 2010 Laboratoire de Recherche et
** Développement de l'Epita (LRDE).
**
** This file is part of Spot, a model checking library.
**
@ -230,10 +230,10 @@ using namespace spot::ltl;
%type <pval> nfa_arg
%type <bval> nfa_arg_list
%destructor { delete $$; } "atomic proposition"
%destructor { $$->destroy(); } subformula
%destructor { delete $$; } <sval>
%destructor { $$->destroy(); } <fval>
%printer { debug_stream() << *$$; } "atomic proposition"
%printer { debug_stream() << *$$; } <sval>
%%