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.


What's New for RAD Studio 11

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.
Related posts
DelphiRAD Studio

This Is How To Modernize Your Apps On Time And Under Budget

News

Announcing the Availability of RAD Studio 11 Alexandria

C++Code

This Week's Favorite Modern C++ Picks On LearnCPlusPlus.org

C++Code

This Week's New C++ Post Picks From LearnCPlusPlus.org

Leave a Reply

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

IN THE ARTICLES