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,4fe319e8a983326a X-Google-Attributes: gid103376,public From: Charles Hixson Subject: Re: C question (was: Ada & C) Date: 2000/01/18 Message-ID: <3884AA55.3F0BF240@earthlink.net>#1/1 X-Deja-AN: 574311603 Content-Transfer-Encoding: 7bit References: <3878D189.80E1CCB4@gte.net> <387CE6DC.4DFDDFC4@ftw.rsc.raytheon.com> <85ipn5$7pu2@news.cis.okstate.edu> <85j3a5$r3p$1@nnrp1.deja.com> <85j4r7$9qe1@news.cis.okstate.edu> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-ELN-Date: Tue Jan 18 10:00:43 2000 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 948218443 198.94.156.19 (Tue, 18 Jan 2000 10:00:43 PST) Organization: EarthLink Network, Inc. MIME-Version: 1.0 NNTP-Posting-Date: Tue, 18 Jan 2000 10:00:43 PST Newsgroups: comp.lang.ada Date: 2000-01-18T00:00:00+00:00 List-Id: "Ira D. Baxter" wrote: > If you have the right parser technology, parsing C is not hard and you > don't need the symbol table immediately. GLR parsing handles problems > like typedef names by proposing multiple parses: in this case, one > assuming its a typedef name, and the other assuming its a conventional > identifier. > Which can be resolved later, of course, with the symbol table. > > We offer reengineering tools that not only parse C, but C++, Ada95, > Fortran95, > you name it using this technology. See > http://www.semdesigns.com/Products/DMS/DMSToolkit.html. > > I would expect C2ADA to not be very easy. Pointer casts and arithmetic > are a bitch to translate. > Actually, I tend to feel that pointer casts *SHOULD NOT* be translated. Some things ought to be with a semantic level of understanding rather than merely a syntactic level.