Tweak precedence of "->" and <->.

* src/ltlparse/ltlparse.yy: Change the precedence of "->" and
"<->" so that "a & b -> c" is interpreted as "(a & b) -> c"
instead of "a & (b -> c)".  The new interpretation is more
intuitive, and matches that of LBTT.
This commit is contained in:
Alexandre Duret-Lutz 2010-03-06 17:39:42 +01:00
parent cc66aff634
commit 351a8076d0
2 changed files with 11 additions and 2 deletions

View file

@ -1,4 +1,4 @@
/* Copyright (C) 2009 Laboratoire de Recherche et Développement
/* Copyright (C) 2009, 2010 Laboratoire de Recherche et Développement
** de l'Epita (LRDE).
/* Copyright (C) 2003, 2004, 2005, 2006 Laboratoire d'Informatique de
** Paris 6 (LIP6), département Systèmes Répartis Coopératifs (SRC),
@ -93,10 +93,10 @@ using namespace spot::ltl;
/* Priorities. */
/* Logical operators. */
%left OP_IMPLIES OP_EQUIV
%left OP_OR
%left OP_XOR
%left OP_AND
%left OP_IMPLIES OP_EQUIV
/* LTL operators. */
%left OP_U OP_R