Re: yyerror() location tracking

2010-01-17 Thread Tom Stellard
On Sun, Jan 17, 2010 at 02:14:14PM -0500, Joel E. Denny wrote: > On Sun, 17 Jan 2010, Joel E. Denny wrote: > > > The section of the manual you want is: > > > > > > http://www.gnu.org/software/bison/manual/html_node/Error-Reporting.html#Error-Reporting > > > > As you'll read there, to convince

Re: yyerror() location tracking

2010-01-17 Thread Joel E. Denny
On Sun, 17 Jan 2010, Joel E. Denny wrote: > The section of the manual you want is: > > > http://www.gnu.org/software/bison/manual/html_node/Error-Reporting.html#Error-Reporting > > As you'll read there, to convince the deterministic parser in C to pass a > location to yyerror, you need to sp

Re: yyerror() location tracking

2010-01-17 Thread Joel E. Denny
On Sat, 16 Jan 2010, Tom Stellard wrote: > I am trying to add line numbers to my parser's error messages. I have > included the options, %locations and %define api.pure in my bison > definition file, but it seems to be generating yyerror with this signature: > yyerror(const char *msg); > instead

Re: yyerror() location tracking

2010-01-17 Thread Luca
Il 17/01/2010 7.18, Tom Stellard ha scritto: Hi, I am trying to add line numbers to my parser's error messages. I have included the options, %locations and %define api.pure in my bison definition file, but it seems to be generating yyerror with this signature: yyerror(const char *msg); instead

yyerror() location tracking

2010-01-16 Thread Tom Stellard
Hi, I am trying to add line numbers to my parser's error messages. I have included the options, %locations and %define api.pure in my bison definition file, but it seems to be generating yyerror with this signature: yyerror(const char *msg); instead of the signature I am expecting: yyerror (YYLTY

Re: location tracking for the empty rule without prior symbol

2009-08-19 Thread Akim Demaille
Le 22 juil. 09 à 06:17, Joel E. Denny a écrit : On Mon, 20 Jul 2009, Bill Allombert wrote: Thanks a lot: I sent this question the first time 18 months ago and this is the first answer I reveive. Sorry it took so long. I guess I overlooked it the last time. Search for %initial-action in

Re: location tracking for the empty rule without prior symbol

2009-07-21 Thread Joel E. Denny
On Mon, 20 Jul 2009, Bill Allombert wrote: > Thanks a lot: I sent this question the first time 18 months ago and this is > the > first answer I reveive. Sorry it took so long. I guess I overlooked it the last time. > > > Search for %initial-action in the Bison manual. > > That works fine, gre

Re: location tracking for the empty rule without prior symbol

2009-07-20 Thread Bill Allombert
On Mon, Jul 20, 2009 at 09:35:09AM -0400, Joel E. Denny wrote: > The mailing list never posted this message, so I'm sending it again. Thanks a lot: I sent this question the first time 18 months ago and this is the first answer I reveive. > On Wed, 15 Jul 2009, Joel E. Denny wrote: > > > On Fri,

Re: location tracking for the empty rule without prior symbol

2009-07-20 Thread Joel E. Denny
The mailing list never posted this message, so I'm sending it again. On Wed, 15 Jul 2009, Joel E. Denny wrote: > 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. > _

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

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

Location Tracking

2006-12-04 Thread Paulo J. Matos
Hi all, When generating C++, If I don't use %locations, why do I still get a locations and position files? Are they required anyway? Moreover, error in parser class still gets a reference to a location. If I don't use locations, what reference is that? I would expect when disabling locations that