help-bison
[Top][All Lists]
Advanced

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

Re: Is there an option to change the message produced by bison's YYERROR


From: Simon Sobisch
Subject: Re: Is there an option to change the message produced by bison's YYERROR_VERBOSE?
Date: Mon, 7 Nov 2016 22:03:18 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0

Hello Hans,

coming back to this issue after not reaching the conclusions myself and
being lost on different search machines:

> It should not be too difficult, as it now uses M4. The only problem is
when the Bison skeleton file is updated, then you have an outdated
skeleton file.

* Where do I find the correct skeleton file?
* How do I get familiar with m4 fast?
* How do I apply it (both via a manual call to bison in the makefile and
with the implicit yacc rule)?

> But you may develop it as a feature, and then integrate it into Bison
yourself, or suggest it. The feature might be an option adding an extra
argument to yyerror with a reference to the error token.

Sounds even much better. How to do this? If this isn't possible to be
applied "in-tree" (via m4 or otherwise - I guess it isn't) this would
only help people with a recent and unpublished Bison version (btw: are
there plans for a new release soon?) - or with the generated files.

Thank you for your response,
Simon



reply via email to

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