User:Unname4798/Esolangs/Deadfsh: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
Unname4798 (talk | contribs)
No edit summary
Unname4798 (talk | contribs)
No edit summary
Line 1: Line 1:
I am not registered on Esolang Wiki.
I am not registered on Esolang Wiki. Also, I cannot register on Esolang Wiki, because the CAPTCHAs are too hard.


Deadfsh is an esoteric programming language like Deadfish, but this one doesn't have an increment command. It doesn't follow the "acc == -1 || acc == 256" tradition.
Deadfsh is an esoteric programming language like Deadfish, but this one doesn't have an increment command. It doesn't follow the "acc == -1 || acc == 256" tradition.

Revision as of 11:52, 7 July 2024

I am not registered on Esolang Wiki. Also, I cannot register on Esolang Wiki, because the CAPTCHAs are too hard.

Deadfsh is an esoteric programming language like Deadfish, but this one doesn't have an increment command. It doesn't follow the "acc == -1 || acc == 256" tradition.

Commands

d: Decrement
s: Square
o: Output

Interpreter

var input = "dso";
var number = 0;
for (var i = 0; i < input.length; i++) {
 if (input[i] == "d") {
  number -= 1;
 }
 if (input[i] == "s") {
  number *= number;
 }
 if (input[i] == "o") {
  console.log(number);
 }
}