|c to Pascal translators? bdc2@po.CWRU.Edu (1998-02-18)|
|Re: c to Pascal translators? email@example.com (1998-02-20)|
|Re: c to Pascal translators? firstname.lastname@example.org (Geert Bosch) (1998-02-20)|
|Re: c to Pascal translators? email@example.com (Peter D Baylies) (1998-02-20)|
|Re: c to Pascal translators? firstname.lastname@example.org (Tony Curtis) (1998-02-20)|
|Re: c to Pascal translators? email@example.com (1998-03-03)|
|Re: c to Pascal translators? firstname.lastname@example.org (Bret D Weinraub) (1998-03-05)|
|Re: c to Pascal translators? email@example.com (Ray Dillinger) (1998-03-06)|
|Re: c to Pascal translators? firstname.lastname@example.org (Frank Peelo) (1998-03-07)|
|Re: c to Pascal translators? RogerHA@aol.com (RogerHA) (1998-03-08)|
|[4 later articles]|
|From:||Peter D Baylies <email@example.com>|
|Date:||20 Feb 1998 17:57:09 -0500|
|Organization:||North Carolina State University|
|Keywords:||C, Pascal, translator|
Boris D. Cahan wrote:
> I am desperately seeking a C to Pascal translator, preferably source
> code, I found some OLD postings in the 89 and 90 archives, but wasn't
> able to follow up on any.
You probably found references to the original one, C to UCSD Pascal,
it would have been around 1989 that they were working on it. It
turned into CTOP12B.ZIP on any of the major ftp archives.
(i.e. ftp.cdrom.com or whatever, ftpsearch for a mirror near you :)
As for source code... well... you can at least read about the program
at the company website, it looks like it's a C to Ada translator
> [I know about Pascal to C, but I don't recall much in the other direction.
> C is more expressive than Pascal, it'd be hard. -John]
It might be hard, but in this case we're translating to Turbo Pascal.
This translator isn't great (they claim about 80% of programs would at
least compile without being edited), but depending on the Pascal (and
C!) dialect we're talking about, they can both be just as functional.
(i.e. Turbo Pascal 5.5 and up can often look more like C++ because of
its object oriented features, and obviously Delphi is much like Visual
C/Whatever) I think the only big problem in this case for me was not
having an unsigned longint in Turbo Pascal 7 (but you can find
specific libraries for this).
Return to the
Search the comp.compilers archives again.