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