Xref: utzoo comp.lang.c:25791 comp.lang.pascal:3062 comp.lang.misc:4056 Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!samsung!umich!mailrus!hellgate.utah.edu!uplherc!wicat!meph!gsarff From: gsarff@meph.UUCP (Gary Sarff) Newsgroups: comp.lang.c,comp.lang.pascal,comp.lang.misc Subject: Re: Pascal to C Conversion Message-ID: <00015@meph.UUCP> Date: 9 Feb 90 00:53:09 GMT References: <52037@XAIT.Xerox.COM> <1990Feb2.172112.4509@cunixf.cc.columbia.edu> <3576@garth.UUCP> <4007@cbnewsl.ATT.COM> Organization: WICAT Systems Inc., Orem Utah Lines: 25 In article <4007@cbnewsl.ATT.COM>, feg@clyde.ATT.COM (Forrest Gehrke,2C-119,7239,ATTBL) writes: >In article <3576@garth.UUCP>, phipps@garth.UUCP (Clay Phipps) writes: >> We are also looking for an automatic Pascal-to-C source-code converter. >> > >> >In your reply, please indicate the source for the converter, >> >price (if applicable), >> >any positive / negative experience you may have, >> >and language flavors supported. > >You will find a fairly good translator on SIMTEL20 archives >under MSDOS.C directory which was put out by Microsoft >a couple of years ago. T2C.ARC 152K bytes > >Its specially configured to translate TurboPascal to MSC, natch. > >Although any of the these Pascal-C translators can handle >most of the job, none of them can unravel Pascal's nested >functions. The translators leave that task to humans. > I have one that does do nested procedures and functions. It came off of usenet a few years ago (2,3?) in comp.sources.unix I believe. It is in Pascal, (there was a C version posted, which was the pascal version run on itself), and produced pretty bizarre looking code compared to what p2c produces, but it did do nested procedures, variant records, pascal I/O, etc.