Last edited by merthsoft on 31 Aug 2012 10:47:16 am; edited 2 times in total

As a joke, I (with the help of Tari) made an esoteric programming language called Merthese. Here's the spec:

Quote:

Merthese is an esoteric programming language written by Merthsoft. It has 5 instructions:
m - Prints "merth"
e - Prints a new line (defined as new line for the environment)
r - Prints a space
t - Prints a random-length string of random letters where letters are [a-z], and the length of the string is between [0, 13.4)
h - Seeks to the character after the next "h" character

All other characters are ignored. The program terminates when input ends.

Last edited by Weregoose on 23 Jun 2011 12:42:11 pm; edited 1 time in total

Requested:

Code:

PROGRAM:MERTHESE
Input Str1
"?→Str2
For(X,1,length(Str1
sub(Str1,X,1→Str3
If Str3="M
Str2+"MERTH→Str2
If Str3="E
Then
Disp sub(Str2+" ",2,length(Str2
"?→Str2
End
If Str3="R
Str2+" →Str2
If Str3="T
Then
For(A,0,int(rand13.4)-1
Str2+sub("ABCDEFGHIJKLMNOPQRSTUVWXYZ",randInt(1,26),1→Str2
End
End
If Str3="H
inString(Str1+"H","H",X+1→X
End
sub(Str2+" ",2,length(Str2

If you'd rather use Ans as your input, get rid of ":Input Str1" and put ":Ans→Str1" there instead.

You can set it to Merthing @ Kerm mode (Tanner's extension) by doing Merthterpreter.exe -k, and you can set the seed by doing -s seed. So:
Merthterpreter.exe -k -s 1
Sets it into Kerm mode with a seed of one, and:
Merthterpreter.exe -s 1
Just gives it a seed of 1.

I would find it trivial to write the shell script to wrap that program and find the seeds on Linux, but how are you doing it on Windows? Did you modify the program to iterate over possible seeds instead of doing batch scripting for the sake of simplicity?

Alright, so now we've got a C# implementation, a TI-BASIC implementation, and a Python (3.1?) implementation. Let's get more! Someone make the z80 implementation!

KermMartian wrote:

I would find it trivial to write the shell script to wrap that program and find the seeds on Linux, but how are you doing it on Windows? Did you modify the program to iterate over possible seeds instead of doing batch scripting for the sake of simplicity?

Python. And it's running on Linux now so I could run it in a screen session.

Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.