Re: Token value in custom error reporting

Akim Demaille <[email protected]>
Newsgroups gmane.comp.parsers.bison.general
Message-ID <[email protected]>

> Le 18 juin 2020 à 07:49, Daniele Nicolodi <[email protected]> a écrit :
> 
> Hi Akim,
> 
> On 17/06/2020 23:43, Akim Demaille wrote:
>> I think it's a mistake to try to use the semantic value in error messages.
> 
> The goal would not be to use the semantic value in the error message,
> but to use additional context attached to the token by the lexer to
> decide how to report the error.

Would you have an example of what you mean?
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.