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/ http://pypi.python.org/pypi/cython-codegen/ the only problem with all of this is that gcc-xml is ill-maintained and is based on the C++ parser of GCC. so all is fine as long as what you parse is correct C++ code, but not all C code is valid C++... FYI, the CERN team (and its Reflex library) used to rely on gcc-xml to extract such meta-data from source code, but it is now migrating towards using LLVM/CLang. cheers, sebastien. -- ######################################### # Dr. Sebastien Binet # Laboratoire de l'Accelerateur Lineaire # Universite Paris-Sud XI # Batiment 200 # 91898 Orsay ######################################### _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
