comp.lang.ada
 help / color / mirror / Atom feed
From: Mats Weber <Mats.Weber@elca-matrix.ch>
Subject: Re: Lexical Conundrum
Date: 1998/02/24
Date: 1998-02-24T00:00:00+00:00	[thread overview]
Message-ID: <34F2BC0A.694AD65F@elca-matrix.ch> (raw)
In-Reply-To: 34F1BC2B.529629AF@lmco.com


Mark A Biggar wrote:

> Not really, as section 2.2(7) only talks about cases that require white space
> between tokens to be legal.  The real point in this example is the "or" is
> a keyword not an identifier, so the following "'" must be the start of
> a character literal, not the start of an attribute.  If you look at the
> LM grammar, you will find that there are NO cases where an attribute follows
> a key word and also NO cases where a character literal follows an identifier,

Not true: e.g. X.all'Address is legal.

> so you can always determine the meaning of "'" just by remembering the
> classification of the previous token.

True, but you have to treat all as a special case.




  reply	other threads:[~1998-02-24  0:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-02-19  0:00 Lexical Conundrum Nick Roberts
1998-02-23  0:00 ` Jean-Pierre Rosen
1998-02-23  0:00   ` Robert Dewar
     [not found] ` <EotBMK.MnK@world.std.com>
1998-02-22  0:00   ` Robert Dewar
     [not found]     ` <Eou91J.Es9@world.std.com>
1998-02-23  0:00       ` Robert Dewar
1998-02-23  0:00     ` Keith Thompson
1998-02-23  0:00       ` Robert Dewar
1998-02-26  0:00     ` Dr Steve Sangwine
1998-02-23  0:00   ` Mark A Biggar
1998-02-24  0:00     ` Mats Weber [this message]
1998-02-24  0:00       ` Robert Dewar
1998-03-05  0:00         ` Robert I. Eachus
  -- strict thread matches above, loose matches on Subject: below --
1998-02-22  0:00 Nick Roberts
1998-02-22  0:00 ` Robert Dewar
1998-02-24  0:00   ` John Roberts-Jones
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox