Inspired by Lallafa I’ve been hacking in Python the last couple of days.
I’m writing a parser for the NDK 3.9 header files with the goal to automatically create stub code from structure definitions.
Lots of structs and fields contain plain binary values that only need to be endian-adjusted, so these can be automatically handled. Plain pointer references to other structs will also be straight forward, but there will be problems with the giant heap of APTRs and BPTRs scattered all over. Manual guidance will be required for all of these.
This parsing and generating will hopefully save me a lot of work in the end.
Hacking Python
January 8th, 2012 by Moggen