bison-patches
[Top][All Lists]
Advanced

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

Re: [PATCH 0/6] diagnostics: improve bison's syntax error messages


From: Akim Demaille
Subject: Re: [PATCH 0/6] diagnostics: improve bison's syntax error messages
Date: Sat, 25 Jan 2020 08:04:56 +0100


> Le 23 janv. 2020 à 08:50, Akim Demaille <address@hidden> a écrit :
> 
> This series of patches plays with parse.error=detailed in bison
> itself, and then with parse.error=custom.  This was an opportunity to
> change bison's syntax errors themselves, so we're going from:
> 
>  foo.y:1.8-13: error: syntax error, unexpected %token, expecting character 
> literal or identifier or <tag>
> 
> to
> 
>  foo.y:1.8-13: error: expected character literal or identifier or <tag> 
> before %token
> 
> where the expected tokens ("character literal", "identifier" and
> "<tag>") are displayed in green by default, and the unexpected one
> ("%token") is in red.  I'm not sure yet of these choices, comments are
> most welcome.

No comments?

Pushed.




reply via email to

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