comp.lang.ada
 help / color / mirror / Atom feed
From: Dr Steve Sangwine <S.J.Sangwine@Reading.ac.uk>
Subject: Re: Lexical Conundrum
Date: 1998/02/26
Date: 1998-02-26T00:00:00+00:00	[thread overview]
Message-ID: <34F57423.62EF622D@Reading.ac.uk> (raw)
In-Reply-To: dewar.888209206@merv


Robert Dewar wrote:

>I am puzzled. 2.2(7) says

>7   One or more separators are allowed between any two adjacent lexical
>elements, before the first of each compilation, or after the last.  At least
>one separator is required between an identifier, a reserved word, or a
>numeric_literal and an adjacent identifier, reserved word, or numeric_
>literal.

Robert Duff's point is that the separators are allowed but not
required. 2.2(7) explains where the separators are needed such as

      or X in

where X is an identifier and

     orXin

would be interpreted as something else. But it doesn't say
(explicitly) that you don't need separators for

     or 'A' in

As an Ada user since 1986 (not involved with compilers) it
had never occurred to me to leave the separators out. Thanks
for an interesting discussion.

-----------------
Dr S. J. Sangwine
Department of Engineering
The University of Reading
Whiteknights, Reading RG6 6AY, UK
Email: S.J.Sangwine@Reading.ac.uk
Tel: 0118 931 8584 (+44 118 931 8584 outside UK)
Fax: 0118 931 3327
Web: http://www.elec.rdg.ac.uk/~stssjs/sjs.html







  parent reply	other threads:[~1998-02-26  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 [this message]
1998-02-23  0:00   ` Mark A Biggar
1998-02-24  0:00     ` Mats Weber
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