On 5/27/2015 12:14 AM, Branko Čibej wrote:
  2. Use a C++ parser (e.g., from LLVM) to generate a machine-readable
     structure description, and generate the marshalling code from that.

Option 2 is by far the most user-friendly, because users could just
point the generator to their existing class definitions. But it's
probably a huge amount of work.
Branko,

This is really an awesome solution if we want to perform marshalling automatically.

Apple extensively uses libclang for code analysis and generation in its Objective-C runtime. We can go the same way. Here is a good introductory article on clang: http://szelei.me/code-generator/

--
Denis

Reply via email to