delphi2cpp Icon

delphi2cpp

A syntax-based utility for translating Pascal/Delphi code into C++

delphi2cppOverview

This program was initially developed in a week or so, in C++, using the GNU flex tool to generate a low-level parser (available for Windows here). flex is a bit archaic, but still a robust and efficient solution for text parsing; alternative solutions include the ANTLR code generator, or the spririt C++ template library.

Since its first publication, this translator has also been updated based on requests and contributions of a number of users who downloaded it (Thank you!).

The purpose of this translator is to automate a lot of the grunt work required translate Delphi/Pascal files to C++. It reads a .pas file and outputs a .h header and a .cpp implementation file. The program is written in about 1000 lines of C++ code.

The translator usually does a good job translating algorithms and various utilities. It also seeks to preserve the original formatting of the code in the generated files. However, the generated code will often not compile as is, and further editing and refactoring is usually needed.

This syntax-based translator is not a compiler; it does not understand the type of the variables being used, and has therefore limited capabilities. But it does a decent job saving time during a translation process. Some features of Delphi that are known to be incorrectly or partially translated; in the generated code, they are highlighted with a special comment ( /*?*/ ).

NEW

Fixed some bugs.

delphi2cppInformation

Version
1.0
Date
07.24.09
License
Free
Language
English
File Size
154KB
Developer
Category
SubCategory
Operating Systems
Windows XP, 2000, 98
System Requirements
No additional system requirements.
InstrumentLab VCL Icon
VCL/FMX Visual instruments - Gauges, Thermometers, Clocks, Segment Indicators
Trial
Dynamic DBTreeView Icon
Dynamic DBTreeView controls for Delphi
Free
EMS Source Rescuer Icon
Application which can help you to restore your lost Delphi project sources.
Trial
NotePad Delphi Icon
NotePad Delphi is a the advanced version of the famous notepad.
Free
Helicon Translator 6 Icon
makes it easy to internationalize and localize applications written in Delphi
Trial
FFVCL - Delphi FFmpeg VCL Components Icon
All-in-one solution for audio/video encoding and playing; perfect ffmpeg wrapper
Trial
teeChart Pro VCL/CLX Icon
Charting, Graphs for Delphi, C++Builder, RAD Studio, Turbos and Kylix
Trial
ComPort Icon
Delphi/BCB component for serial communication for Windows 95/98/ME/NT/2000/XP.
Trial
More