30

C-to-Delphi (C to Delphi Dialect of Pascal) source code converter

 5 years ago
source link: https://www.tuicool.com/articles/hit/fuqEvmF
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

C-To-Delphi

Description

This tool will convert most of your standard C code. .

Download executable here.

It contains a split view, with C on the left and Delphi on the right. The Delphi code gets updated in realtime when you edit the C code. The editors are kept in sync, so you can easily find how a specific piece of code was converted.

  • The Syntax checks of the generated code is verified. (uses DelphiAST)

  • You can even run the generated code by pressing F9 (uses DWS)

  • You can 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.

Features:

  • 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

2eqYr2Z.png!web


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK