help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using %printer


From: Frans Englich
Subject: Re: Using %printer
Date: Fri, 15 Sep 2006 08:45:17 +0000
User-agent: KMail/1.9.4

On Thursday 14 September 2006 12:34, Akim Demaille wrote:
> >>> "Frans" == Frans Englich <address@hidden> writes:
>  >
>  > I'm sure that's practical, but it surely would be cool to be able
>  > to craft better messages!
>
> I agree, but there is a real problem: the interface here is outputting
> on a stream, while yyerror expects a string.  Besides, levels of
> verbosity would probably be needed.

I guess one would have to invent a different "print system" for that. Perhaps 
those "error printers" would return a heap allocated char string, which the 
caller(the bison generated parser) is responsible for de-allocating.


Cheers,

                Frans




reply via email to

[Prev in Thread] Current Thread [Next in Thread]