I have started a really really rough base for an objc header parser. You would give it headers and it would give you formated enums for the constants in it.
Forum Archive
Header parser
scj643
Mar 28, 2017 - 19:17
Cethric
Mar 30, 2017 - 00:58
From memory my OpenGLES library had very rudimentary header parsing (If its not on the github repo its probably on my iPad) if you wanted to have a look at it and use components of it. From memory it was very messy, it did what it needed to do but it wasn't very nice.
dgelessus
Mar 30, 2017 - 01:54
I think I already mentioned this in the past, but just in case I'll link to it here again: https://github.com/dgelessus/pythonista-c-utils. The C preprocessor part might be useful for you, to handle the conditional blocks and macro definitions and expansion. For the rest, you might be able to expand https://pypi.python.org/pypi/pycparser so it understands Objective-C syntax.