My own language -> iOS Apps

Discussion in 'iOS Programming' started by ArtOfWarfare, Sep 12, 2015.

  1. ArtOfWarfare macrumors 604

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #1
    I'm writing my own language right now. Thus far the only way you can run it is with Python (the compiler outputs .pyc files - Python byte code.)

    I'm wondering what the best path to go from my language to something that runs on iOS is.

    #1 - I could write something that just translates the AST of code in my language into a .swift file. Then I could use Xcode to run that.

    #2 - I could maybe write an interpreter for my language in Swift. Then you just include files with the code in my language + the interpreter. Would Apple allow such an app on the App Store?

    #3 - Can I maybe use LLVM somehow to go straight from code in my language to a native iOS app?
     
  2. chown33 macrumors 604

    Joined:
    Aug 9, 2009
    #2
  3. ArtOfWarfare thread starter macrumors 604

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #3
    I thought apple had some rules about including code that wasn't compiled to native?
     
  4. chown33 macrumors 604

    Joined:
    Aug 9, 2009
    #4
    IIRC, that restriction was lifted a while ago. Best to review the current terms and rules, rather than relying on my "IIRC" or your own recollection.

    There are BASIC interpreters in the app store. How would those be possible otherwise?
     

Share This Page