From: tmoran@bix.com (Tom Moran)
Subject: Re: Actual Ada style: type names and unary +
Date: 1998/01/18
Date: 1998-01-18T00:00:00+00:00 [thread overview]
Message-ID: <34c23271.734660@SantaClara01.news.InterNex.Net> (raw)
In-Reply-To: 34c177d8.17705498@SantaClara01.news.InterNex.Net
Robert Dewar says
>Your scanner is broken, here are some definitions of unary + from adainclude
and gives examples of function "+" ... declarations.
I should have been clearer. My scanner was looking for USES, not
DECLARATIONS of unary plus and it found 3 - all numeric. The Gnat
adainclude is, of course, more likely to have declarations than uses
so it is not a complete test case. The files I checked on the Ada
CDROM are a better corpus for that - they had zero uses of unary plus.
The scanner's current definition of a use of a unary plus is a + not
in the last column and preceded (ignoring white space) by one of "(",
",", or "=" on the same line. Then I look manually to eliminate
multi-line arithmetic expressions. If someone with a true Ada parser
would do a fuller study of a large, diverse body of existing Ada
source code, it would be a contribution to knowledge and an aid in
stepping beyond theological argument, IMHO.
next prev parent reply other threads:[~1998-01-18 0:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-01-18 0:00 Actual Ada style: type names and unary + Tom Moran
1998-01-18 0:00 ` Tom Moran [this message]
1998-01-22 0:00 ` Mats Weber
1998-01-18 0:00 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox