[comp.os.msdos.programmer] Pascal to C converter

bk19+@andrew.cmu.edu (Bradley D. Keister) (11/06/90)

I'm looking for a simple Pascal to C converter which handles the basic
syntax, but not compiler-specific features.  I'm interested in converting
some Turbo Pascal 5.x programs to C (no objects in them).  I know there are
some generic versions around, but I can't find them at this point.  The
only converter I can find on simtel20 is T2C, which is designed specifically
for TP 4.0, and which dies at the first line it doesn't understand.
There used to be a file server at the U of Missouri that had such a thing,
but I can't find that either.

Brad Keister
Physics Dept.
Carnegie Mellon U

keister@poincare.phys.cmu.edu

ts@uwasa.fi (Timo Salmi) (11/07/90)

In article <QbBhiU600awDE6UEQ4@andrew.cmu.edu> bk19+@andrew.cmu.edu (Bradley D. Keister) writes:
>I'm looking for a simple Pascal to C converter which handles the basic
>syntax, but not compiler-specific features.  I'm interested in converting
>some Turbo Pascal 5.x programs to C (no objects in them).  I know there are
>some generic versions around, but I can't find them at this point.  The
>only converter I can find on simtel20 is T2C, which is designed specifically
>for TP 4.0, and which dies at the first line it doesn't understand.
>There used to be a file server at the U of Missouri that had such a thing,
>but I can't find that either.
>
>Brad Keister

An extract from my FAQ file (/pc/ts/tsfaq11b.arc at uwasa.fi):

6. *****
 Q: I'm looking for a program to convert Turbo Pascal code
automatically to C.

 A: To find utilities for such a specific purpose the very first
thing to do is to look through file lists. At uwasa.fi there are
useful file lists such as /pc/INDEX, /pc/pd2/simibm.arc, and
/pc/pd2/files-mm.zip. Here is some information as an example:
 From simibm (Simtel20 file list) ---------------------------------
 T2C.ARC        Microsoft's Turbo Pascal to C translator
 TPTC17.ARC     Turbo Pascal to C translator, 1of4
 TPTC17SC.ARC   Turbo Pascal to C - src for translator, 2of4
 TPTC17TC.ARC   Turbo Pascal to C - test cases, 3of4
 TPTCINFO.ARC   Info on Turbo Pascal to C translator, 4of4
 From files-mm (Micro Maniacs Opus file list) ---------------------
 PTOC.ZIP       79789           Pascal To C Conversion Program.
 TPC.ZIP        26262           Converts TurboPascal to C.
 GLOCKEN.ZIP   112240 01/15/88  Glockenspiel Turbo Pascal to 'C'
 TPTOQC.ZIP    112062 12/01/87  Translate Turbo Pascal to Quick 'C'
 TPAS2MSC.ZIP  111884 12/10/89  MS Convert Turbo Pascal to MS C
 I've also heard positive comments on a P2C, but I do not know where
it is available.

...................................................................
Prof. Timo Salmi        (Moderating at anon. ftp site 128.214.12.3)
School of Business Studies, University of Vaasa, SF-65101, Finland
Internet: ts@chyde.uwasa.fi Funet: gado::salmi Bitnet: salmi@finfun