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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,58253cbf46bbb1fc,start X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.germany.com!feeder.erje.net!nuzba.szn.dk!news.jacob-sparre.dk!pnx.dk!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Automated conversion to C++? Date: Fri, 15 Feb 2008 14:33:08 +0100 Organization: Jacob's private Usenet server Message-ID: NNTP-Posting-Host: dhcp9.dhcp.nbi.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: jacob-sparre.dk 1203082500 27991 172.24.5.9 (15 Feb 2008 13:35:00 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Fri, 15 Feb 2008 13:35:00 +0000 (UTC) User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:qul6uOQrpa8HjO7RpHKo+/awp6Q= Xref: g2news1.google.com comp.lang.ada:19806 Date: 2008-02-15T14:33:08+01:00 List-Id: I have been offered to take part in a programming project with a rather annoying constraint: There should be C++ source available for the constructed program. The good part is that I am allowed to do the actual programming in Ada, and just use an automated translator to generate the C++ code. I have not been presented with any specific constraints on the generated C++ code (neither speed, nor quality), except that it should solve the task (i.e. be semantically equivalent to the Ada master). A bit of quick googling found me "adatoccpptranslator", which may be able to handle enough of the task. Do you know of any other plausible (and preferably Open Source) solutions? I have considered the path Ada -> ASIS -> (some)XML -> C++, but I suspect that the last step may be rather complicated to implement. Some things which my simplify the task: + I don't mind that you need a C++ class to implement an Ada scalar type. + I don't mind having generic packages/procedures/functions available only in their instantiated form in C++. Greetings, Jacob -- Who guards the guardians?