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.
TVicHW32 Icon
TVicHW32 is a general purpose device driver.
Demo
DFM Editor Icon
Standalone editor for Delphi Form files (*.dfm) in both binary and text format
Free
InstrumentLab VCL Icon
VCL/FMX Visual instruments - Gauges, Thermometers, Clocks, Segment Indicators
Trial
Delphi Icon
Delphi is Windows and multi-platform development software.
Trial
DynamicSkinForm Icon
Create cool application with skins support!
Trial
CAD Import VCL: dwg, dxf, plt, svg, cgm in Delphi Icon
DXF DWG PLT HPGL SVG CGM Import for Borland Delphi and C++Builder developers
Trial
ComPort Icon
Delphi/BCB component for serial communication for Windows 95/98/ME/NT/2000/XP.
Trial
EMS Source Rescuer Icon
Application which can help you to restore your lost Delphi project sources.
Trial
More