🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #2944

Re: Pascal to C converter

#2944
From: Timo Salmi
Date: Tue, 06 Nov 1990 20:28
41 lines
2590 bytes
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
Technical Details
Message-ID: <1990Nov6.202851.28552@uwasa.fi>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rice!uupsi!sunic!news.funet.fi!uwasa.fi!ts
References: <QbBhiU600awDE6UEQ4@andrew.cmu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rice!uupsi!sunic!news.funet.fi!uwasa.fi!ts
From: ts@uwasa.fi (Timo Salmi)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Pascal to C converter
Message-ID: <1990Nov6.202851.28552@uwasa.fi>
Date: 6 Nov 90 20:28:51 GMT
References: <QbBhiU600awDE6UEQ4@andrew.cmu.edu>
Organization: University of Vaasa
Lines: 41