Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Why no C++? #24

Closed
anonimo82 opened this issue Mar 20, 2023 · 1 comment
Closed

[Question] Why no C++? #24

anonimo82 opened this issue Mar 20, 2023 · 1 comment

Comments

@anonimo82
Copy link

anonimo82 commented Mar 20, 2023

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

@neslib
Copy link
Owner

neslib commented Sep 8, 2023

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.

@neslib neslib closed this as completed Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants