Re: how to abort when token are discarded

2011-02-19 Thread Joel E. Denny
On Sat, 12 Feb 2011, Bill Allombert wrote: > I have a grammar that handles errors. Do you mean you're using Bison's error token? Or do you mean that you've written grammar rules that match syntactically incorrect input? > However, in this contest, discarding > tokens is highly undesirable, muc

Re: Utterly confused at the Error recovery

2011-02-19 Thread Joel E. Denny
On Sun, 13 Feb 2011, Adam Smalin wrote: > funcBodyLoop2: > | funcBodyLoop2 funcBody > | funcBodyLoop2 error aEOS > > What i am expecting is if funcBody gets an error anywhere at all it will use > the rule funcBodyLoop2 error aEOS. However this is NOT THE CASE. Why? The > code completely s

Re: how to abort when token are discarded

2011-02-19 Thread Bill Allombert
On Sat, Feb 19, 2011 at 12:26:47PM -0500, Joel E. Denny wrote: > On Sat, 12 Feb 2011, Bill Allombert wrote: > > > I have a grammar that handles errors. > > Do you mean you're using Bison's error token? Yes. > Or do you mean that you've written grammar rules that match syntactically > incorrec