omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Header parser

    Pythonista
    3
    3
    2610
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scj643
      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.

      1 Reply Last reply Reply Quote 0
      • Cethric
        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.

        1 Reply Last reply Reply Quote 0
        • dgelessus
          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.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB Forums | Contributors