From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ea81c3e062ea7ba4 X-Google-Attributes: gid103376,public From: tmoran@bix.com (Tom Moran) Subject: Re: Actual Ada style: type names and unary + Date: 1998/01/18 Message-ID: <34c23271.734660@SantaClara01.news.InterNex.Net>#1/1 X-Deja-AN: 317108164 References: <34c177d8.17705498@SantaClara01.news.InterNex.Net> Organization: InterNex Information Services 1-800-595-3333 Newsgroups: comp.lang.ada Date: 1998-01-18T00:00:00+00:00 List-Id: 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.