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,fa2cc518ef3b992c X-Google-Attributes: gid103376,public From: "Samuel T. Harris" Subject: Re: scripting/extension language for Ada (we have an opportunity here) Date: 2000/02/15 Message-ID: <38A9A7D4.5331F2C3@Raytheon.com>#1/1 X-Deja-AN: 586245327 Content-Transfer-Encoding: 7bit References: <389207CC.C16D80E8@averstar.com> <38971028.BB16D8A2@earthlink.net> <3899F757.FAE131B3@free.fr> <389D43A6.786C7B79@free.fr> <880gpk$fv04@ftp.kvaerner.com> <38A47E5A42406034@earthlink.net> <38A53714.3EBC10C3@online.no> <38A5E4FC.9C20A0E4@Raytheon.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Raytheon Aerospace Engineering Services Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-02-15T00:00:00+00:00 List-Id: Robert A Duff wrote: > > "Samuel T. Harris" writes: > > > I have no problem with using [] instead of () for array indexing. > > The [] can be easily converted back to () for use in a conventional > > compiler. > > Along this line, {} can be used for aggregates. > > Parsing Ada is notoriously difficult because of the overloading > > of () for indexes, subprograms, and aggregates. > > But if you don't do the "notoriously difficult" stuff, then you can't > automatically translate "[" into "(" (etc) and expect it to always work. > > - Bob Certainly I can. Since [] and {} are not legal Ada tokens, they many only appear in comments and string literals. A syntax to handle these so that other [] and {} are converted to () is trivial to do. -- Samuel T. Harris, Principal Engineer Raytheon, Aerospace Engineering Services "If you can make it, We can fake it!"