k+len(p)
k+len(p)(pronounced kay-len) is a variant of _ created by User:Yayimhere, simply to be closer to turing complete. it features the whole _ command set but one command, but the esolang is also with three extra commands
Command set
k+len(p) uses the following command set:
| Command | Effect |
|---|---|
% |
Delete a character from the end of the source code. |
^ |
Skip the next command if the last character in the source code is ^.
|
\ |
Append the next character to the end of the source code and skip it. |
+ |
Reverse the source-code and then append the whole program to the end of the program, without adding the first character of the source code. Note that the code pointer keeps its index. |
| Anything else | Redefine that character as the code that follows it, and append it to the end of the program. Now that character will be ran as a command doing that code(in place) |
Computational class
I dont know, but I would guess turing complete. However remembering the proof of FSA'ness, we see something interesting. If we label the length from the end of the program k, we see that whenever + specifically is ran we see something interesting happens to k's value, specifically, k is set to k+len(p)-1 where p is the program string. As you see, differently form the other commands, it increases the program length. Most interesting is that now, any value of k is possible using + \ combinations.