Niwa, hi, CodeGenerator has already been rewritten in python, combining the following:
* Mozilla's xpcom xpidl.py generator * gobject's codegen.py The following work was done: - The xpidl generator was modified to understand Webkit's IDL file format - gobject's codegen.py was modified to understand xpidl.py's AST object format - gobject codegen.py's output formatter was modified to understand both webkit datatypes and to output python It should be a trivial job to work out how to modify the code to output other generators. The only thing to watch out for is that it was a very fast hack put together quite quickly and there are unused parts (which will never be used) that still have gobject codegen output. Functionally however it works perfectly. By contrast, attempting to modify CodeGeneratorJS.pm to comprehend gobject took over eight weeks. The python-based code-generator was completed in under six. _______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-dev