neslib/Chet

[Question] Why no C++?

Closed this issue · 1 comments

As in subject, why is C++ not supported?

This tool is created to integrate with C libraries (DLL's and static libraries). Delphi cannot integrate with C++ libraries, so there is no point in creating a C++ header translator. Furthermore, there are a lot of C++ features that cannot be translated to Delphi.

However, if your goal is to translate some "simple" C++ code to Delphi, then you can use my Neslib.Clang library to give it a go yourself. This library uses the Clang backend to parse C(++) code into an Abstract Syntax Tree, that you can then use to generate Delphi code. You can read more about this in my libclang for Delphi blog post.