Thank you Sebastien, <div><br></div><div>I have a feeling that the work you have already done will be a great help!</div><div><br></div><div>Jeff Kunkel<br><br><div class="gmail_quote">On Sat, Nov 6, 2010 at 1:58 PM, Sebastien Binet <span dir="ltr"><<a href="mailto:binet@cern.ch">binet@cern.ch</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">hi,<br>
<div class="im"><br>
On Sat, 6 Nov 2010 12:06:28 -0400, Jeff Kunkel <<a href="mailto:jdkunk3@gmail.com">jdkunk3@gmail.com</a>> wrote:<br>
> The overall goal would be<br>
> 1: parse the names, return types, and parameters of functions with a given<br>
> context like a namespace, class, struct or global scope.<br>
> 2: parse classes, structs, enums, etc for the name, internal objects,<br>
> members, member methods, virtual overrides, inheritance, etc.<br>
> 3: The final output would be the boost::python C++ code wrapper with as<br>
> descriptive an interface as the C++ class itself.<br>
<br>
</div>have you looked at the python bindings to libclang and the<br>
cindex-dump.py script ?<br>
<a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/bindings/python/" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/bindings/python/</a><br>
<a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/bindings/python/examples/cindex/cindex-dump.py?revision=96107&view=markup" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/bindings/python/examples/cindex/cindex-dump.py?revision=96107&view=markup</a><br>
<br>
I have been wanting to improve those and do something along the same<br>
lines than yours (but for cython code generation)<br>
<br>
recently, I came back at this topic (and submitted a few patches)<br>
my work in progress on improving the libclang python bindings can be<br>
found there:<br>
<a href="http://bitbucket.org/binet/py-clang" target="_blank">http://bitbucket.org/binet/py-clang</a><br>
<br>
cheers,<br>
<font color="#888888">sebastien.<br>
</font></blockquote></div><br></div>