* src/tgbaparse/tgbaparse.yy (lines): Expect at last one line.

This commit is contained in:
Alexandre Duret-Lutz 2003-06-30 16:47:56 +00:00
parent cd8090d66c
commit d3a9261816
3 changed files with 14 additions and 11 deletions

View file

@ -5,16 +5,16 @@
namespace spot {
namespace ltl {
/// \brief Formula visitor that can modify the formula.
///
/// Writing visitors is the prefered way
/// Writing visitors is the prefered way
/// to traverse a formula, since it doesn't
/// involve any cast.
///
/// If you do not need to modify the visited formula, inherit from
/// spot::ltl:const_visitor instead.
struct visitor
struct visitor
{
virtual void visit(atomic_prop* node) = 0;
virtual void visit(constant* node) = 0;
@ -25,13 +25,13 @@ namespace spot {
/// \brief Formula visitor that cannot modify the formula.
///
/// Writing visitors is the prefered way
/// Writing visitors is the prefered way
/// to traverse a formula, since it doesn't
/// involve any cast.
///
/// If you want to modify the visited formula, inherit from
/// spot::ltl:visitor instead.
struct const_visitor
struct const_visitor
{
virtual void visit(const atomic_prop* node) = 0;
virtual void visit(const constant* node) = 0;

View file

@ -46,7 +46,8 @@ tgba: accepting_decl lines | lines;
accepting_decl: ACC_DEF acc_decl ';'
lines:
/* At least one line. */
lines: line
| lines line
;