David Cournapeau wrote: > On Mon, Aug 24, 2009 at 8:16 AM, Sebastien Binet<[email protected]> wrote: >> On Thursday 20 August 2009 16:31:35 Stefan Behnel wrote: >>> Hi, >>> >>> I just stumbled over the Py++ project that reads C++ code using pygccxml >>> and comes with wrapper code generators for Boost.Python and ctypes. >>> >>> http://www.language-binding.net/pyplusplus/pyplusplus.html >>> >>> >From a first glance, it seems not too hard to add a third generator for >>> >>> Cython code that could write out the corresponding .pxd files and a simple >>> 1:1 API skeleton. >>> >>> Has anyone looked into this already? This would be a wonderful tool for >>> those who want to wrap larger libraries. >> I believe David threw a bunch of things together in that direction: >> http://cournape.wordpress.com/2008/12/01/cython-codegen-cython-code-generator- >> from-gccxml-files/ > > "Bunch of things" is a good description, it is nothing more than a hack. > >> , but it is now migrating towards using >> LLVM/CLang. > > I wanted to use clang as well - what is the status of the C parsing ? > It is usable ?
I didn't try it, but from the website: """ Clang is still under heavy development. Clang is considered to be a production quality C and Objective-C compiler when targetting X86-32 and X86-64 (other targets may have caveats, but are usually easy to fix). If you are looking for source analysis or source-to-source transformation tools, clang is probably a great solution for you. If you are interested in C++, full support is still way off. """ CPU support/output in general doesn't matter for us of course, so it seems like clang should be a workable solution for pure C code. -- Dag Sverre _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
