Have an amazing solution built in RAD Studio? Let us know. Looking for discounts? Visit our Special Offers page!
C++

C-To-Delphi Converter Tool Can Quickly And Easily Help You Convert Standard C Code To Delphi

the future of starts demands massive productivity

Developer Wouter Van Nifterick has a C-To-Delphi converter tool available over on GitHub under an MIT open source license. The tool contains a split view where you can write standard C code on the left side of the split view and it will show you translated code in Object Pascal (Delphi) on the right side of the split view. The DelphiAST library is used to perform syntax checking on the Delphi code side. Some of the features of the converter tool include:

  • If function main exists, a program will be generated. Otherwise a pascal unit with interface/implementation sections.
  • Converts routines and arguments
  • Converts for loops
  • Converts case statements
  • Converts structs
  • Converts enums
  • Converts 1 and 2 dimensional arrays
  • Converts many other common routines to Delphi equivalents (strcpy,strcat,strlen,printf,argv,argc,etc)
  • Converts classes
  • drag/drop multiple C files to the application. It’ll find the .h files that belong to it, and convert all to .pas files in the same folder

If you are looking to convert some standard C code to Delphi or utilize some libraries that are written in C from your Delphi applications this converter tool can really give you a head start.

Head over and check out the full source code and download the C-To-Delphi Converter tool.

See What's New in 12.2 Athens See What's New in 12.2 Athens Dev Days of Summer 2-24

Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder.
Design. Code. Compile. Deploy.
Start Free Trial   Upgrade Today

   Free Delphi Community Edition   Free C++Builder Community Edition

About author

FMXExpress.com has over 600 articles with all kinds of tips and tricks for Delphi FireMonkey on Android, IOS, OSX, Windows, and Linux.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

IN THE ARTICLES