LC.YRS@forsythe.stanford.edu (Richard Stanton) (12/06/89)
Someone was asking about a C to Pascal translator recently. I have seen such a beast in file pc/programmer/ctopas.zip on chyde.uwasa.fi (128.214.12.3). It seems very short, so I don't suppose it does too much, but it may be of interest. Richard Stanton pstanton@gsb-what.stanford.edu
bb16@prism.gatech.EDU (Scott Bostater) (12/07/89)
In article <6265@lindy.Stanford.EDU> LC.YRS@forsythe.stanford.edu (Richard Stanton) writes: >Someone was asking about a C to Pascal translator recently. I have >seen such a beast in file pc/programmer/ctopas.zip on chyde.uwasa.fi >(128.214.12.3). It seems very short, so I don't suppose it does too >much, but it may be of interest. > I have a copy of ctopas. My version was less than useful. It mainly does simple conversion ( /* -> {, { -> Begin, } -> End, etc.) and thats all. There was no re-working of the syntax for for loops or variable declarations. The worst part was that the program was written in C (MSC) and did not come with a compiled version. I tried compiling it under TurboC, but it didn't detect the EOF properly (so much for C portability :-). After looking through the source code a bit, I figured I could do it all with a few global change commands in a standard editor. DISCLAIMER: I did not get this file from chyde.uwasa.fi. It was either simtel or grape or a local BBS. I'm also not the greatest C guru around (that's why I wanted to translate to Pascal :-) so the EOF problem is probably an easy fix. Oh well, That my $0.05 ($0.02 plus overhead) -- Scott Bostater GTRI/RAIL/RAD (Ga. Tech) "My soul finds rest in God alone; my salvation comes from Him" -Ps 62.1 uucp: ...!{allegra,amd,hplabs,ut-ngp}!gatech!prism!bb16 Internet: bb16@prism.gatech.edu