syntax errors
Jonathan Wakely
jwakely.gcc@gmail.com
Thu Jan 3 17:39:00 GMT 2019
On Thu, 3 Jan 2019 at 17:03, Daniel Marjamäki
<daniel.marjamaki@gmail.com> wrote:
>
> Thank you for the quick reply.
>
> > how about "stray %qs token"?
>
> I will change.
>
> > I wonder how much we want to special-case this. Are you thinking about
> > the case where there's a stray symbol in the code (perhaps due to a
> > stray keypress, or unfinished manual edits)?
>
> At the moment I only think about ) } ]
>
> I would like to focus on only those 3 to start with. but it sounds
> good to prepare for more stray tokens later.
It doesn't scale to write a custom diagnostic for every invalid input
character in every context.
More information about the Gcc
mailing list