From: Gautier <gautier.demontmollin@maths.unine.ch>
Subject: Re: Improving P2Ada
Date: 1999/08/19
Date: 1999-08-19T00:00:00+00:00 [thread overview]
Message-ID: <37BC64A5.1449AA5F@maths.unine.ch> (raw)
In-Reply-To: 37BC2499.9D2E6E77@Maths.UniNe.CH
Thanks for replies...
The P2Ada way doesn't seem the only one.
Though, here is what I would/will add to current P2Ada (2.2) to
let it translate happily Borland-style sources:
* no forced order in CONST, TYPE, VAR, PROCEDURE/FUNCTION clauses
(like Ada 95) - most TP programs aren't "Pascal orthodox" on this
point (fortunately), so P2Ada fails there...
* CASE statements can have an ELSE part ( when others=> in Ada )
* there are ASM..END blocks like BEGIN..END (just comment out the
assembler opcodes...)
* there are SHL & SHR binary operators ( shift_left(.,.) in Ada )
* strings can have explicit ASCII characters: 'Blabla'#13#10're-blabla'
that would become "Blabla" & character'val(13) & ...
A later but more "banana-skinny" step is the OO part; to begin with...
TYPE xyz = OBJECT -> type xyz is tagged record
TYPE xyz = OBJECT(abc) -> type xyz is new abc with record
PROCEDURE xyz.toto; -> procedure toto(prefixed_obj: xyz) is
G.
next prev parent reply other threads:[~1999-08-19 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 [this message]
1999-08-26 0:00 ` Improving P2Ada (2) Gautier
[not found] ` <7q5cih$msg$1@scharff.fys.ku.dk>
1999-08-27 0:00 ` 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