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'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?