Spend your time .. If you want to convert the code because you don’t understand or like the original language, my advice is: “Do not worry” (believe me, I made many attempts to convert the code), especially if you plan to just make a few small changes to existing code.
You cannot convert the code and compile it, not to mention flawless operation.
You may be able to translate the parts into something syntactically correct, but you will not have the libraries or frameworks (RTL / VCL) that the software relies on.
You will need to go back to the Delphi code and understand what is happening to fix the parts that do not work. It will take longer to fix errors in the generated code than it would take to examine existing code and completely rewrite it.
And if you have time to rewrite the software in another language, you can just roll up your sleeves, study the source language and change what you need to change in the existing code.
Wouter van nifterick
source share