We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.
User:Qwertyuiopas
I don't know what I need to do, but a certain program is developing entirely unintentionally to just the kind of thing that could be used as a programming language...
It started as picking a random line in a file, and writing it to output, but if it came across anything in []s, it would interpret it as a filename, and try recursing with it, for the end result of "replacing" it with a random line from that file, if that file existed.
Then I modified some of the code...
Adding an escape sequence of \n for newlines, and any character directly after a \ was interpreted as a literal character(so \\ evaluates to \, and \[ wouldn't be treated as a file-recurse)
Also, a 256 char string storage. At first, the text was simply read into a string, but after a later modification, it was fully parsed, just like anything else. And similarily, a local(to that file-recurse) set of 256 was added.
Through this, you could use string-storage 00(they are addressed through case-insensitive two-digit hex numbers) as the current path, allowing libraries that use that to refrence the component files in the same directory, and such "libraries" could contain some of their own.
Through all that, a program created for simple mad-lib style generated insults has grown toward the state of fully functional but severely unrealistic programming language.
Complete syntax:
(NN refers to two hex-digits, case insensitive)
(* means any character)
(%%% means anything(except the matching closing bracket))
NN - global string storage access
'NN - local string storage access
(neither parsed directly, only as part of later described statements)
<NN*%%%> - store %%% (parsed) in global string NN
<'NN*%%%> - store %%% (parsed) in local string NN
[:NN%%%] - Output contents of global string NN, then proceed as if the :NN didn't exist
[:'NN%%%] - Output contents of local string NN, then proceed as if the :NN didn't exist
[|NN%%%] - Try to open the contents of global string NN as if it were a filename(If so, file-recurse into it), then proceed as if the :NN didn't exist
[|'NN%%%] - Try to open the contents of global string NN as if it were a filename(If so, file-recurse into it), then proceed as if the :NN didn't exist
[%%%] - Try to open %%% as a filename, and if it exists, file-recurse into it. (: and | are invalid filename characters, and so if they start the %%%, take presedence, though all variants of them resturns to parse the remainder "normally")
\n - newline
\* - output a literal character of *. This skips it, so a \\n becomes a literal \n, not a \ then a newline. A \\\n becomes a \ then a newline. a \\\\n becomes a \\n.
\ (at the end of a line) - ignore the newline, acting as if both lines were a single one
* - if all else fails, output it as a literal character
Logical operations can be accomplished through the use of a local var as a filename. Postfix the file with a var that is usually blank so that if it is not, the file is not parsed(as it refrences a diffrent, hopefully nonexistant, file. However, it means that if-else and if are identical, with the exception that for if-else the modified filename is also a file, with diffrent contents.
With [:(optional ')NN%%%]s, a var refrence is parsed then outputted, but in all other cases of [%%%], the %%% is not parsed before being treated as a filename. (Neither is the var in [|(optional ')NN%%%])
Please help me come up with a name for this, and/or any features that just *must* exist if any. When it is "done", if it isn't already, I would like to make it into an official page, but I don't know how to make it according to guideines(and would need to give it a name first anyway)
If you want the source code, I can give it to you, though it is in C, and severely understested. Somehow, I feel that suits this site well.