rlm@po.CWRU.Edu (Robert L. Mullen) (10/06/90)
Is there a pascal to C source conversion utility availble? Bob Mullen Mullen@cwru.cwru.edu Mullen@cwru Bitnet -- Dr. Robert L. Mullen mullen@cwru (bitnet) mullen@cwru.cwru.edu (internet) 216-368-2423 Bingham 212A Department of Civil Eng. , CWRU, Cleveland, Ohio 44106.
piet@cs.ruu.nl (Piet van Oostrum) (10/08/90)
>>>>> In article <1990Oct6.144333.2334@usenet.ins.cwru.edu>, rlm@po.CWRU.Edu (Robert L. Mullen) (RLM) writes:
RLM> Is there a pascal to C source conversion utility availble?
There are at least two of these, called p2c and ptc.
p2c is a very elaborate one which knows all kinds of Pascal dialects and
even a bit of Modula-2.
ptc is a simple straightforward program that has been successfully used to
translate TeX and Metafont. It does not do procedural parameters where the
actual parameter is a nested procedure/function.
The difference can also be seen from the sizes of the packages:
-rw-r--r-- 1 piet staff 195967 Jul 3 13:50 ptc-1.10.tar.Z
-rw-r--r-- 1 piet staff 561084 Oct 8 12:36 p2c-1.18.tar.Z
How to get ptc-1.10.tar.Z and p2c-1.18.tar.Z from the archive at
Dept. of Computer Science, Utrecht University:
NOTE: In the following I have assumed your mail address is john@highbrow.edu.
Of course you must substitute your own address for this. This should be
a valid internet or uucp address. For bitnet users name@host.BITNET
usually works.
by FTP: (please restrict access to weekends or evening/night (i.e. between
about 20.00 and 0900 UTC).
ftp archive.cs.ruu.nl [131.211.80.5]
user name: anonymous or ftp
password: your own email address (e.g. john@highbrow.edu)
cd /pub
don't forget to set binary mode if the file is a tar/arc/zoo archive,
compressed or in any other way contains binary data.
get TEX/TEX3.0/ptc-1.10.tar.Z
get UNIX/p2c-1.18.tar.Z
by mail-server:
send the following message to
mail-server@cs.ruu.nl (or uunet!mcsun!hp4nl!ruuinf):
begin
path john@highbrow.edu
send TEX/TEX3.0/ptc-1.10.tar.Z
send UNIX/p2c-1.18.tar.Z
end
The path command can be deleted if we receive a valid from address in your
message. If this is the first time you use our mail server, we suggest you
first issue the request:
send HELP
--
Piet* van Oostrum, Dept of Computer Science, Utrecht University,
Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands.
Telephone: +31 30 531806 Uucp: uunet!mcsun!ruuinf!piet
Telefax: +31 30 513791 Internet: piet@cs.ruu.nl (*`Pete')