Idea: An interpreter for Revlang, an esolang with these three commands:
0 - Prepend 0 to the string
1 - Prepend 1 to the string
X - Output the current string
0 - Prepend 0 to the string
1 - Prepend 1 to the string
X - Output the current string
Comments
-
-
PkmnQ is cool 1 year ago
Actually do nested statement definitions work like I think they do -
PkmnQ is cool 1 year ago
Yeah looks like it from the interpreter, good -
PkmnQ is cool 1 year ago
My convention's going to be that every defined statement starts with a χ, and that it can be called with a Χι to call it normally or an Χ to destroy it then call it (can't think of a way to destroy it by itself, sadly)
-
ΙςχΧισΙΣ1ΘΧισΙΣ0ΘΧισΙΣ1ΘΧισΙΣ1ΘΧισΙΣ0ΘΘσ acts as a separator
Σ acts as where the string is read by the program
0 and 1 will have to replace their own definitions, then restore it back to the original