From: Gautier <Gautier.deMontmollin@Maths.UniNe.CH>
Subject: Improving P2Ada (2)
Date: 1999/08/26
Date: 1999-08-26T00:00:00+00:00 [thread overview]
Message-ID: <37C54799.C114B31C@Maths.UniNe.CH> (raw)
In-Reply-To: 37BC2499.9D2E6E77@Maths.UniNe.CH
Hi. Here is a new (very provisory) version that
allows translation of many (not all) Turbo/Borland
Pascal sources (no OO yet but it will come...).
ftp://ftp.unine.ch/incoming/gautier/newp2ada.zip
The archive contains all you need to (re-)build P2Ada
and customize further...
Gautier
---
Enhancement list from 1997 version
==================================
26.VIII.1999 [GdM]
a) Borland-ish add-ons:
- Str translated ( bug: should be put(s,123) instead of put(123,s) )
- ' character, written '' ( bug: should trash the 2nd ' )
- arbitrary order of declaration kinds, instead of label-const-type-var-proc
- typeless var parameters
- DIV becomes /
- SHL & SHR operators ( bug: translated by "a Shift_left( ; ) b" )
- programs not beginning by 'Program' !
- global initialized VARiables - in the CONSTant parts - ; aggregates
- strings with contraints
- typeless files
- else part in case..of
- asm...end blocks ( bug: not complete)
- special directives in proc/func decl. (like near/far/assembler)
- characters with explicit ascii (#223)
- borland string constants ('aaa'#123'bbb')
b) Improvements or bugfixes (any Pascal)
- begin/end simplified when safe (then/else/do/case)
- outputs "Null;" for empty statement
- outputs "WHEN others=> Null;" when no else part
next prev parent reply other threads:[~1999-08-26 0:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-08-19 0:00 Improving P2Ada Gautier
1999-08-19 0:00 ` Gautier
1999-08-26 0:00 ` Gautier [this message]
[not found] ` <7q5cih$msg$1@scharff.fys.ku.dk>
1999-08-27 0:00 ` Improving P2Ada (2) Gautier
[not found] ` <7q5vuc$u3i$1@scharff.fys.ku.dk>
1999-08-27 0:00 ` Gautier
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox