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: Mark Mitchell <mark at codesourcery dot com>
- Subject: Re: Objective C lexer - small cleanup
- From: Phil Edwards <pedwards at disaster dot jaj dot com>
- Date: Fri, 29 Jun 2001 14:58:08 -0400
- Cc: Neil Booth <neil at daikokuya dot demon dot co dot uk>, Zack Weinberg <zackw at Stanford dot EDU>, Stan Shebs <shebs at apple dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- References: <20010629143419.A22496@disaster.jaj.com> <122740000.993843810@warlock.codesourcery.com>
On Fri, Jun 29, 2001 at 12:43:30PM -0700, Mark Mitchell wrote:
>
> > Schweet. There's a really annoying C++ language ambiguity that I'm told
> > can be handled by sufficiently large lookahead.
>
> Yup. We will be handling that declaration/expression ambiguity. That's
> one of the major motivations for going to 10,000 lines of trouble, so far.
There's a proposal for C++0x to allow the 'auto' keyword to disambiguate
the situation in favor of object declarations, thereby reversing some
of the examples given in [8.2] (and incidentally giving some purpose to
'auto' *grin*). I'm hoping to do this with your parser, just as a proof
of concept rather than a GNU extension.
Phil
--
Would I had phrases that are not known, utterances that are strange, in
new language that has not been used, free from repetition, not an utterance
which has grown stale, which men of old have spoken.
- anonymous Egyptian scribe, c.1700 BC