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: Thu, 14 Sep 2006 12:24:53 +0000
User-agent: KMail/1.9.4

On Thursday 14 September 2006 09:09, Akim Demaille wrote:
> >>> "Frans" == Frans Englich <address@hidden> writes:
>  >
>  > What exactly does it do, it allows one to at runtime customize the
>  > message Bison uses for a token(and perhaps even terminal?)? For
>  > example, that instead of that Bison says "Unexpected <numeric
>  > literal>" one can make it say "Unexpected '2.3'", right?
>
> No, rather it is meant to make the debugging traces (yydebug) more
> readable.  It is a replacement for YYPRINT which works for tokens
> only.

I'm sure that's practical, but it surely would be cool to be able to craft 
better messages!


Cheers,

                Frans




reply via email to

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