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.
FastReport 4 for Delphi 7 Icon
An add-on component that allows your application to generate reports quickly.
Trial
EMS Source Rescuer Icon
Application which can help you to restore your lost Delphi project sources.
Trial
FFVCL - Delphi FFmpeg VCL Components Icon
All-in-one solution for audio/video encoding and playing; perfect ffmpeg wrapper
Trial
ComPort Icon
Delphi/BCB component for serial communication for Windows 95/98/ME/NT/2000/XP.
Trial
Addict Spell Check and Thesaurus Icon
Spell checking and thesaurus component suite for Delphi and C++Builder.
Trial
Collection of Delphi Examples Icon
Collection of most wanted Delphi examples with full source code.
Trial
TCAD for Delphi.BCB.Kylix.DotNET Icon
TCAD is a component that will help you write vector graphics applications.
Trial
Delphi Code Library Icon
Multi-language source code library and clipboard extender for Windows
Trial
More