Hi All,<br><br>some information. I wrote a tool to extract all proto/typedef/enum/class from all QT cpp headers. <br>Yesterday it passed all files in v 4.2.2 release. <br>This is the first step I am thinking about to make a new PerlQT binding. 
<br>the procedue in my mind is:<br>1) grab all required information directly from cpp headers and store them as YAML format as per <br>file basis;<br>2) define an interface policy to determine which one to export and which one not; or possibly arrange 
<br>    an abstract API layer to wrap some interface changes;<br>3) manally write a typedef for all involved type/class(s);<br>4) generate stubs;<br>5) compile and link.<br><br>the idea is still rough. At this moment, I would like to discuss with you all, try to get other ideas.
<br><br>just check out from <tt style="margin: 1em; font-size: 120%;"><a href="https://dongxu.googlecode.com/svn/trunk/PerlQT">https://dongxu.googlecode.com/svn/trunk/PerlQT</a><br>The grammar is based on a famous parse module in Perl world - Parse::RecDescent. Differred 
<br>from a formal compiler, it behaves a little bit fuzzy. Hope it works on other release, since <br>I am not very sure I've got all QT-specific macros.<br><br>instructions:<br>$make gen_parse<br>and coffee, it will walk through nearly over 700 files
<br><br>notes:<br>1) currently there is no proper parse result, I just print debug info into each YAML file, <br>   just check the content in each of them;<br>2) unfortunately it only works on linux, GNU make and perl are required;
<br clear="all"></tt><br>todos:<br>  pls pls feel free to give your idea/opinion on this tool, I do need some other things.<br><br>-- <br>Cheers, Dongxu<br>__END__<br><a href="http://search.cpan.org/~dongxu">http://search.cpan.org/~dongxu
</a>