Re: %name-prefix: manual not consistent with bison

2009-10-15 Thread Joel E. Denny
On Wed, 14 Oct 2009, Rui Maciel wrote: > I've just noticed that the manual entry on the %name-prefix option isn't > consistent with the way Bison handles this option, as, while the manual > states[1] that the option should be used like: > > %name-prefix "prefix" > > When Bison stumbles on that

Re: How to make yyerror() report line?

2009-10-15 Thread Luca Marzolla
Rui Maciel ha scritto: How is it possible to make yyerror also report the line where an error was found? Thanks in advance, Rui Maciel ___ help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison Use yylineno variable. See %option

Re: How can I understand the output of bison's debug output ??

2009-10-15 Thread Luca Marzolla
> How can I understand the output of bison's debug output ?? such as --(end of buffer or a NUL) --accepting rule at line 95 ("int") --accepting rule at line 173 (" ") --accepting rule at line 112 ("x") --accepting rule at line 173 (" ") --accepting rule at line 146 (";") --accepting rule at l