This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Objective C lexer - small cleanup
- To: Stan Shebs <shebs at apple dot com>
- Subject: Re: Objective C lexer - small cleanup
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Fri, 29 Jun 2001 07:14:18 +0100
- Cc: Zack Weinberg <zackw at stanford dot edu>, gcc-patches at gcc dot gnu dot org
Stan Shebs wrote:-
> Looks like a good change! I even rolled across the hall and tried
> it out on the original author (Steve Naroff)... he had a question,
> and I couldn't be sure from inspection - is '@ objckeyword' or
> '@ /* cmt */ objckeyword' now valid? It looks like it is, and
> in fact it looks like "#define FOO interface" "@ FOO class ..." will
> work also. Since this would be a compatible extension of the
> existing language, it's not really a problem, just sort of a weird
> consequence as far as I can tell.
That's been a natural consequence of the decision about 4 months ago
to treat @ as a separate token, which was wanted in order to be able
to expand macros on what comes after it. It wouldn't have worked
before then.
Neil.