WANTED: Pascal to C translator

Tor Lillqvist tml at tik.vtt.fi
Tue Mar 5 09:17:53 AEST 1991


In article <1991Mar1.124857.28326 at fwi.uva.nl> smagt at fwi.uva.nl (Patrick van der Smagt) writes:
   I'm looking for a program that can translate Pascal to C source code,
   pref. running under UNIX (sun4).  Any help would be very much
   appreciated.

There are two Pascal-to-C translators freely available that I know of.

One is called ptc, was written by Per Bergsten, and posted back in
1987, probably to what was called mod.sources then (?).  I have a
somewhat enhanced version available for ftp here, in
tik.vtt.fi:pub/ptc.  You might find the originally posted version,
plus a set of patches, from your favorite archive site.  Ptc handles
standard Pascal, with some small extensions.

Then there is p2c by Dave Gillepsie, posted to comp.sources.unix last
year (Volume 21, Issues 46--77 (yes, 32 parts)).  It has more features, for
example handles HP Pascal extensions (probably of no use to you).  P2c
should be available at various archive sites.

I have used ptc successfully to compile TeX, and can recommend it.
P2c also seems to be well written and tested, but I haven't used it.
--
Tor Lillqvist,
working, but not speaking, for the Technical Research Centre of Finland



More information about the Alt.sources mailing list