[Top][All Lists]

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

Re: Reductions during Bison error handling

From: Richard Stallman
Subject: Re: Reductions during Bison error handling
Date: Sat, 25 May 2002 15:19:01 -0600 (MDT)

    The effect is that when a syntax error is discovered, we would now pop
    the stack back to where 'error' can be shifted, shift it, and then
    continue (the standard yacc panic-mode error recovery, in other
    words).  By contrast, the current code will, after popping stack
    symbols but before shifting error, sometimes perform additional
    reductions (as a result of which it may never shift error or take the
    error action at all.)  I sent a contrived example a couple of weeks
    ago (below).

Since this is only a matter of error processing, I think it can't
cause real harm.  So please go ahead.

reply via email to

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