[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bison behavior changed



At Thu, 17 Oct 2002 10:45:33 +0200 (CEST),
Vincent Renardias wrote:

> > bison 1.50 was released, but it doesn't accept ambiguous rules
> > that was no problem prior to bison 1.50.  For examples, gram.y in 
> > twm in xfree86 [Bug#164486] and drivers/scsi/aic7xxx/aicasm/aicasm_gram.y
> > in linux-2.4.19.
> > 
> > Please check packages that build-depends on bison is really built
> > with bison 1.50.  There are 295 packages.
> 
> As the bison package maintainer, I'd like to hear from people having
> difficulties to build their package with the new bison. So far the only
> known (to me) problematic packages are pre-3.0 gcc packages, but there may
> be more...

AFAIK, Most common problems are:

 - missing `;' at end of each rules.
 - no %type declarations for nonterminal symbols.
 - some grammer files puts `=' between components and action in rules.
   (for example, 44bsd-rdist)

In some cases, these may be accepted by byacc. So easy fix is to use byacc
instead of bison (>= 1.50)

Regards,
Fumitoshi UKAI



Reply to: