help-bison
[Top][All Lists]
Advanced

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

Re: avoiding infinite loops


From: Joel E. Denny
Subject: Re: avoiding infinite loops
Date: Tue, 13 Jun 2006 18:09:04 -0400 (EDT)

On Tue, 13 Jun 2006, Sylvain Schmitz wrote:

> Since we are talking about conflicts and looping parsers, there is a
> possibility for an infinite loop with bison's conflict resolution in LALR(1).
> See attached file loop.y.

Here's one that uses rule order rather than precedence declarations:

  S: A ;
  B: C ;
  C: B ; 
  A: B ;
  C: 'a' ;

Input is just 'a'.

Joel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]