Java/C/C++/C#/PHP to Pascal converter?

17,259

Solution 1

H2Pas is a popular tool to convert C headers to Pascal. I don't know of any to actually convert C code to Pascal code though.

From a quick google search, I see several that may or may not be good:

I am tempted to say you'll have to do a lot of it by hand one way or another.

Solution 2

Java to Pascal converter: http://www.pascalgamedevelopment.com/archive/index.php/t-4845.html

Solution 3

C to Pascal converters:

  1. http://cc.embarcadero.com/item/26951
  2. http://www.drbob42.com/delphi/headconv.htm
  3. http://rvelthuis.de/programs/convertpack.html
  4. http://www.astonshell.com/freeware/c2pas32
  5. http://www.cadkas.com/ec2delphi.php
  6. http://c2pas.sourceforge.net
  7. http://wiki.lazarus.freepascal.org/H2Pas
  8. http://wiki.freepascal.org/Chelper

Tips for conversion from C:

Biggest time saver tip for header conversion from C is to find a VB header and convert it with VB converter mentioned in other answer. This was almost always fully automated and changes I had to make were none or minor!

Share:
17,259
ThatJoeGuy
Author by

ThatJoeGuy

Updated on June 23, 2022

Comments

  • ThatJoeGuy
    ThatJoeGuy almost 2 years

    Does anyone know if there is a Java/C/C++/C#/PHP to Pascal converter?

  • ThatJoeGuy
    ThatJoeGuy almost 13 years
    Yeah, tried c2pas, but might as well write the program in pascal from scratch than use that. It may work for dead simple programs though.
  • naXa stands with Ukraine
    naXa stands with Ukraine almost 10 years
    Obsolete. Link to java2delphi.jar is broken.