safe_malloc
safe_malloc

Reputation: 896

Access the compiler AST for C++ classes and function signatures for automatically binding to Lua

I use Luabind to manually bind my classes to Lua. Each time I write a new class, I do this binding manually. Is it possible to get a C++ compiler to output the details of a class, its functions, function signatures and overloaded functions' information as XML?

Or write a plugin for a C++ compiler to access this information? I could then use this information to generate the binding automatically.

Has anyone done something similar?

Upvotes: 1

Views: 172

Answers (1)

safe_malloc
safe_malloc

Reputation: 896

Thanks Ira. I decided to go with CLANG for parsing my C++ code and generating the bindings.

Upvotes: 0

Related Questions