|C to pascal, just this once email@example.com (Gary Cowley) (2000-08-05)|
|Re: C to pascal, just this once derekNOSPAM@knosof.co.uk (2000-08-10)|
|Re: C to pascal, just this once firstname.lastname@example.org (Scott Nicol) (2000-08-10)|
|Re: C to pascal, just this once email@example.com (Franck Pissotte) (2000-08-10)|
|Re: C to pascal, just this once firstname.lastname@example.org (Julio C. Rincon) (2000-08-13)|
|Re: C to pascal, just this once email@example.com (2000-08-13)|
|From:||Scott Nicol <firstname.lastname@example.org>|
|Date:||10 Aug 2000 00:06:08 -0400|
|Keywords:||C, Pascal, translator|
Gary Cowley wrote:
> I have a one-time requirement to convert some c-source to pascal.
If its not too many lines, I'd just convert it by hand. There are a
few problems with machine translations. First, there are two major
dialects of C (K&R and ANSI) and about a dozen dialects of PASCAL
(ANSI standard, ANSI extended, Digital, Borland, MPW, ...), so you'll
need a translator that performs the correct translation. Second,
although C and PASCAL are superficially similar, there are a lot of
details that are different (pointers, static initialization, ...).
In other words, unless you have hundreds of thousands of lines of
code to translate, you'll probably spend more time tracking down a
translator and then dealing with its bugs than if you just bit the
bullet and translated by hand.
> I haven't programmed in C for almost 15 years so rusty is +not+ the
> I'd appreciate some help. I don't want it to cost an arm and a leg
OK, so you might not be able to hand-translate yourself. How about
hiring a CS student?
Return to the
Search the comp.compilers archives again.