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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,fc52c633190162e0 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!p77g2000hsh.googlegroups.com!not-for-mail From: "Harald Korneliussen" Newsgroups: comp.lang.ada Subject: Re: why learn C? Date: 2 Apr 2007 02:39:33 -0700 Organization: http://groups.google.com Message-ID: <1175506773.841686.242590@p77g2000hsh.googlegroups.com> References: <1172144043.746296.44680@m58g2000cwm.googlegroups.com> <1172161751.573558.24140@h3g2000cwc.googlegroups.com> <546qkhF1tr7dtU1@mid.individual.net> <5ZULh.48$YL5.40@newssvr29.news.prodigy.net> <1175215906.645110.217810@e65g2000hsc.googlegroups.com> <1175230352.808212.15550@e65g2000hsc.googlegroups.com> <1175236212.771445.135460@y66g2000hsf.googlegroups.com> <1175246243.5771.67.camel@localhost.localdomain> <1175495871.568965.134490@n59g2000hsh.googlegroups.com> NNTP-Posting-Host: 213.184.192.82 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1175506775 30107 127.0.0.1 (2 Apr 2007 09:39:35 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 2 Apr 2007 09:39:35 +0000 (UTC) In-Reply-To: <1175495871.568965.134490@n59g2000hsh.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; nb-NO; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: p77g2000hsh.googlegroups.com; posting-host=213.184.192.82; posting-account=5vUApw0AAADF5Kx_4-L9ZPdL9lZywYoQ Xref: g2news1.google.com comp.lang.ada:14730 Date: 2007-04-02T02:39:33-07:00 List-Id: On Apr 2, 8:37 am, "kevin cline" wrote: > The preprocessor is no trouble at all, because it can be run > separately. No trouble at all? Ha! You can tell that to the Edison Design Group people. For some real-life experiences about C++, see the first article from this staic analysis summit: http://samate.nist.gov/docs/NIST_Special_Publication_500-262.pdf > But it's true that C and C++ are hard to parse with a LALR > grammar. It seems EDG are about the only ones with a decent semantic parser for C++, even they have no chance whatsoever of supporting everything out there (I'm stuck with a c++ compiler from this obscure little company called Borland, so I can forget about static analysis tools) > Building a full Ada parser from scratch is not easy either. The > easiest way to write tools for either language is probably to build on > the GNU parsers. In which case you get a GNU-specific parser, which is not a good thing. I don't know how much easier it is to build an Ada parser, you could ask the Bauhaus folks, their tool handles Ada (and is mostly written in it, too).