Re: how to get left hand side symbol in action

Christian Schoenebeck <[email protected]>
Newsgroups gmane.comp.parsers.bison.general
Message-ID <2158867.iCQuS6ZvNg@silver>
On Freitag, 10. Mai 2019 06:57:00 CEST Derek Clegg wrote:
> In fact, I do not think error messages in the generated parser should be
> provided by bison, except as a trivial default. Instead, I’d like to see
> bison call a function (which I provide) when a syntax error occurs, with a
> list of what was expected along with what was encountered. Obviously, they
> should be provided without translation. That would be the most flexible.

Yep, I can just agree.

I actually almost never use the built-in error messages except of for early 
prototyping or something like that. Because being honest, probably everybody 
has a completely different opinion about how an appropriate representation of 
an error message in a final software release should look like exactly.

Best regards,
Christian Schoenebeck

_______________________________________________
[email protected] https://lists.gnu.org/mailman/listinfo/help-bison
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.