Replies: 2 comments 4 replies
|
Yes that could be very nice. One thing with automatically translating C/C++ headers though, is it's pretty much impossible to handle preprocessor macros correctly. You either have to preprocess it yourself, or rely on an existing C compiler which strips out all of the conditional compilation which we probably want to keep. A lot of the translation can't be done by looking at the source code alone, you have to know the context around why something is being used. For example, But yes, something simple maybe, with libclang to start, could be nice to have |
|
@IsaacShelton Please consider adding something like |
Uh oh!
There was an error while loading. Please reload this page.
Please take FreeBASIC's
fbfrogas an example:https://github.com/freebasic/fbfrog
Adept is very similar to FreeBASIC as both compile to C and use a C compiler to make the final binaries. I think implement such a tool for Adept will be much easier than FreeBASIC as Adept is already using LLVM. What do you think about using something like
libclangto parse the C/C++ headers to generate bindings for Adept?All reactions