This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: syntax errors
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Daniel Marjamäki <daniel dot marjamaki at gmail dot com>
- Cc: David Malcolm <dmalcolm at redhat dot com>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Thu, 3 Jan 2019 17:39:22 +0000
- Subject: Re: syntax errors
- References: <CAMabPZQ+cm2XKYYvH8C7LPabhaV1D6C9gNDaEUJWkJQ3-NNWFw@mail.gmail.com>
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.