Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ArtOfWarfare

macrumors G3
Original poster
Nov 26, 2007
9,670
6,211
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?
 
I thought apple had some rules about including code that wasn't compiled to native?
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?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.