Re: Bison error handling

2013-01-27 Thread Akim Demaille
Le 27 janv. 2013 à 00:45, Bernd Clausen a écrit : > I have the following destructor specified for strings like IDENT. > > %destructor { printf ("free at line %d: %s\n",@$.first_line, $$->c_str()); > delete($$); } > > Now I have the following input. The first line is valid, the second line >

Bison error handling

2013-01-26 Thread Bernd Clausen
I have the following destructor specified for strings like IDENT. %destructor { printf ("free at line %d: %s\n",@$.first_line, $$->c_str()); delete($$); } Now I have the following input. The first line is valid, the second line isn't (identifier is missing): ConfigParam p; ConfigPara

Re: Bison error handling

2008-12-12 Thread Hans Aberg
On 12 Dec 2008, at 15:14, sgaurelius wrote: So, you re saying to do the first and add more errors as I find more errors. Yeah, I guess this is the optimal. Since it goes deep until finding the first error, it will print messages for all errors or for the most basic one ? The latter is bett

Re: Bison error handling

2008-12-12 Thread sgaurelius
Using LR(1) without such state compaction having that > flaw might be better. > >Hans > > > > > ___ > help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison > > -- View this message in context: http://www.nabble.com/Bison-error-handling-tp20964993p20976407.html Sent from the Gnu - Bison - Help mailing list archive at Nabble.com. ___ help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison

Re: Bison error handling

2008-12-12 Thread Hans Aberg
On 12 Dec 2008, at 00:39, sgaurelius wrote: if I want to define, exactly what messages or actions bison should do when an error occurs, what should I do. From what I 've searched, either I can do 1) what is says in http://www.slac.stanford.edu/comp/unix/gnu-info/bison_9.html or 2) what is s

Bison error handling

2008-12-11 Thread sgaurelius
context: http://www.nabble.com/Bison-error-handling-tp20964993p20964993.html Sent from the Gnu - Bison - Help mailing list archive at Nabble.com. ___ help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison