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 gr

how to abort when token are discarded

2011-02-11 Thread Bill Allombert
Dear Bison people, I have a grammar that handles errors. However, in this contest, discarding tokens is highly undesirable, much more so than aborting. What is the proper way to prevent bison from discarding token and instead abort ? Thanks in advance for your answer, Bill. ___

Re: location tracking for the empty rule without prior symbol

2009-07-20 Thread Bill Allombert
t; > > On Fri, 26 Jun 2009, Bill Allombert wrote: > > > > > Is there a way I can initialize a custom YYLTYPE ? > > > > Search for %initial-action in the Bison manual. That works fine, great! In the example at hand a single line %initial-action{ @$.sta...@$.end=*le

location tracking for the empty rule without prior symbol

2009-06-26 Thread Bill Allombert
Hello GNU Bison people, I am using location tracking. While it works great in general, there is a corner case where I am unsure about the intended behaviour of bison and how the program should handle it. The issue is related to the value of @$ for the first reduction when the rule involved has no

location tracking for the empty rules without prior symbol

2007-12-19 Thread Bill Allombert
Hello GNU Bison people, I am using location tracking. While it works great in general, there is a corner case where I am unsure about the intended behaviour of bison and how the program should handle it. The issue is what is the value of @$ for the first reduction when the rule involved has no co