If you're looking for MiniScript 1.x, then there's the Cosmopolitan port that I made a while back (the article even made the Top 7 Featured DEV Posts of the Week for that week). The source code for that port is here, though if you do clone it to build it for yourself you should probably rebase it on the latest MiniScript upstream which I have updated to match the latest upstream MiniScript version (new build here, SHA256 hash bd802c2be2320739691920f13974f6a5dc950fade387ded8b15b8374e9aa95eb, if you trust me).
Specifically, to bundle a script (copying from my article):
- Copy
miniscript.com and rename the copy to something like MyAwesomeProgram.com or whatever you want (it only really needs a file extension if you're on Windows).
- Change the file extension of
MyAwesomeProgram.com to .zip.
- Copy your script (and any libraries you
imported) into the .zip.
- Write a
.args file containing the filename of your script preceded by /zip/ (so MyAwesomeProgram.ms would be put in there as /zip/MyAwesomeProgram.ms), and place that in the .zip file as well.
- Finally, change the file extension back to
.com (or remove it if you don't need it).
As for MiniScript 2.x, I haven't tried building it for Cosmopolitan Libc just yet; I don't imagine it'll be too much more difficult than building MiniScript 1.x was, and both GCC and Clang (the compilers used by cosmocc) support computed-goto, so it should be as performant as it possibly can be.