Mint to TSC

Nov 30, 2012 at 12:18 PM
Not anymore
"Run, rabbit run. Dig that hole, forget the sun."
Join Date: Jan 28, 2010
Location: Internet
Posts: 1369
Age: 34
Converts Mint code to TSC.
Well not really. The version of the Mint language implemented in this program is a very limited subset of Mint that is barely Turing complete.

Example Input:
Code:
#0300
x = true
y = true
teleport 300 if x
display Hello, world!
5000 = true
100 = true
<END
#0200
teleport 200 if 100
<END

Example Output:
Code:
#0300
<FL+4001
<FL+4002
<FLJ4001:0300<MSGHello,<NOD world!<NOD<CLO<FL+5000<FL+0100<END
#0200
<FLJ0100:0200<END

So yeah, you can name your flags and stuff.

Download Mint to TSC v0.1
You need Python 3 to run this.

To run it, use the command prompt (gasp!)
Use cd (change directory) to get to the right folder. Then type in python MintToTSC.py YOUR_FILE_NAME to transform a file.

If you don't know how to use the command prompt / Terminal / console, talk to me and I will write a bash or batch file for you.

If it still doesn't work, contact me again.
 
Nov 30, 2012 at 3:40 PM
Based Member
"Life begins and ends with Nu."
Join Date: Dec 31, 2011
Location: United States
Posts: 2314
Age: 27
Very interesting.

Just one question though.
Carrotlord said:
Example Input:
Code:
display Hello, world!
Example Output:
Code:
<MSGHello,<NOD world!<NOD<CLO
What part of that mint script converted to that first <NOD? Perhaps it could have been triggered by that comma, but that appears in the converted TSC script as well. There are many circumstances under which I want to continue onward without a <NOD even if I use a comma, so if you're looking for suggestions on improving this, I'd say make an effective way to more easily control <NODs, because I wouldn't want one to appear every time I type a comma.

Mind you, this nitpicking is done solely based off of looking at your two pieces of code provided, and I have neither actually tried your program, nor have any experience programming in mint. So there's a chance I'm missing something.
 
Nov 30, 2012 at 4:34 PM
Not anymore
"Run, rabbit run. Dig that hole, forget the sun."
Join Date: Jan 28, 2010
Location: Internet
Posts: 1369
Age: 34
<NODs are inserted after punctuations.
I do that anyway when I write TSC code.

If you don't want that, just write the <MSG out manually.
Of course, that is very painful and you have to remember to
split your lines correctly to prevent textbox overflow...

EDIT: Setting a variable to false will trigger <FL-. That's not in the example.
 
Dec 1, 2012 at 5:41 AM
Not anymore
"Run, rabbit run. Dig that hole, forget the sun."
Join Date: Jan 28, 2010
Location: Internet
Posts: 1369
Age: 34
Dec 2, 2012 at 11:51 AM
Administrator
Forum Administrator
"Life begins and ends with Nu."
Join Date: Jul 15, 2007
Location: Australia
Posts: 6210
Age: 38
Permission to put on the site?
 
Dec 2, 2012 at 2:34 PM
Not anymore
"Run, rabbit run. Dig that hole, forget the sun."
Join Date: Jan 28, 2010
Location: Internet
Posts: 1369
Age: 34
Yes. Certainly it can be put on the tribute site. Basically you can say that TSCMint is a very simple "away from the hardware" language that offers naming of flags as if they were bound variables and some other features.

Some people might still prefer good ol' TSC though.

EDIT: You can also link the Prezi (online presentation software), which is the tutorial for the language. However, the tutorial talks about really advanced topics that are hard to do with the simple version of Mint. Such as addition, subtraction, and maybe even (*gasp*) multiplication! :orangebell:
 
Top