This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Objective C lexer - small cleanup


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]