@Valdimir, I spotted a few issues in the generated header file.
- property can be 'writeonly' and 'readonly'. The former is not being handled.
- enumeration elements should be separated by commas instead of semicolons.
- T[][] case is unhandled (array of array of T).
- array template class and a few others symbols are not defined (at least that's the parser result from Eclipse IDE).
Instead of fixing those issues in Python which I am not familiar with (I am a Perl guy :-), I have enhanced ScriptCompiler executable to output the C header file based on your work. I hope you don't mind.
Here is a screenshot from Eclipse IDE.
