I don't know the details, but I think that ITK [1] uses GCCXML to create its Python bindings on Linux/Windows/OSX.
[1]: http://www.itk.org -F On Mon, Dec 10, 2012 at 12:45 PM, Hugo Parente Lima <[email protected] > wrote: > On Monday, December 10, 2012 12:42:35 PM John Ehresman wrote: > > On 12/10/12 12:32 PM, Hugo Parente Lima wrote: > > >> My thought on the code generator was to have the C++ parser write > > >> the parse tree out to some xml file that could then be read by a > > >> code generator written in python. Then the C++ parser could > > >> possibly be replaced with something else and the generator could > > >> be more quickly improved since it's now implemented in python. > > >> Changing it would still require C++ knowledge, though, because > > >> it's emitting C++ code. > > > > > > There's GCCXML[1], so the python program just read the output of > > > GCC XML plus some other file with meta information equivalent to > > > the current typesystem but less verbose and outputs the binding > > > code, seems easy, but it's a looooonnng task. > > > > As a first small step, I would modify shiboken to output the parse > > tree from its internal C++ parser. I would do this mainly to minimize > > the changes to the generator and the goal here is to get the generator > > code converted to python and not to replace the C++ parser. > > > > Later, alternative parsers could be investigated and perhaps used -- > > something based on gcc worries me though because it may not be easy to > > install and use on Windows. > > For sure, this practically throw GCCXML out of the table. > > A guy used this parser used by Shiboken generator, QtCreator, KDevelop, > etc.. > to output XML and use it in a Lua-Qt binding, I indeed did some experiments > with this years ago. > > > Cheers, > > > > John > _______________________________________________ > PySide mailing list > [email protected] > http://lists.qt-project.org/mailman/listinfo/pyside > > -- -- Félix C. Morency, M.Sc. Plateforme d’analyse et de visualisation d’images Centre Hospitalier Universitaire de Sherbrooke Centre de recherche clinique Étienne-Le Bel Local Z5-3031 | 819.346.1110 ext 16634
_______________________________________________ PySide mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/pyside
