scj643 last edited by
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.
Cethric last edited by
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 last edited by
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.