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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6611a8a4679f925a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-12-31 09:46:36 PST Date: Wed, 01 Jan 2003 02:48:50 +0800 From: Adrian Hoe User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:0.9.4.1) Gecko/20020314 Netscape6/6.2.2 X-Accept-Language: en-us MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: P2Ada (v.22-Dec-2002) References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: akh-131-233.tm.net.my X-Original-NNTP-Posting-Host: akh-131-233.tm.net.my Message-ID: <3e11d773_1@news.tm.net.my> X-Trace: news.tm.net.my 1041356659 akh-131-233.tm.net.my (1 Jan 2003 01:44:19 +0800) Organization: TMnet Malaysia Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.cwix.com!news1.tm.net.my Xref: archiver1.google.com comp.lang.ada:32412 Date: 2003-01-01T02:48:50+08:00 List-Id: >>Hello. Recently G. A. Craig Carey (mostly) and I reworked P2Ada, a >>command-line Pascal to Ada translator. >> >>P2Ada is now able to translate large sources. Depending on >>the sources, the pre-work needed to have a successful translation and >>the rework after translation have been significantly reduced. >> >>Bugs fixed: a lot! >> >>Some of the new features: >> >>- Support for Sqr, Odd, Eof, Eoln, Read, ReadLn, Ord, Chr (standard >> > Pascal) > >> and type Double >>- For Borland integers, a transitional package is provided. >>- Turbo Pascal 7's CONST parameters translated. >>- Set expressions better translated (in form of array of Boolean). >>- A procedure Dispose is created for each access type. >>- For variables of a structured type, P2Ada creates an ad-hoc type for >> > them. > >>- Option to translate a "var" parameter by "var" instead >> of "in out": it is wrong but caught by the Ada compiler for the >> > rework. > >>- Name of procedures and functions put after "end". >>- Smarter recognition of variables (array elements, record fields,...) >>- Bigger buffers for translating large sources. >>- Added casing of Ada keywords (upper/lower/neutral). >> >>Enjoy! How well can P2Ada handle BCD (Binary Coded Decimal) in Turbo Pascal? I have a very old program written in Turbo Pascal with BCD and I am interested to have it translated to Ada. About 17KSLOC. -- type Dmitry is new Adrian; -- Adrian Hoe -- http://adrianhoe.com -- Remove *nospam* to email