I need to take issue with some of the assertions in your original post.

Firstly, you don't need to write a partial C parser for the GLsizei parameter. You just need to use an XML parser. The...