LolKek

From Esolang
Jump to navigation Jump to search

LolKek is modified Brainfuck. It has 19 commands. Commands:

LolKek      Brainfuck        Pseudocode
======================================================================================================================
+1          +                    mem[i]++;
-1          -                    mem[i]--;
<           <                    i--;
>           >                    i++;
[           [                    while(mem[i] != 0) {
]           ]                    }
.           .                    printf("%c", mem[i]);
,           ,                    scanf("%c", &mem[i]);
b           none                 if(mem[i] > buffer) {mem[i] = 1;} else {mem[i] = 0;}
=           none                 if(mem[i] == buffer) {mem[i] = 1;} else {mem[i] = 0;}
!           none                 mem[i] = !mem[i];
a           none                 mem[i] = mem[i] + buffer;
s           none                 mem[i] = mem[i] - buffer;
?           none                 mem[i] = floor(random(0, 15));
/           , (don't "stop")     ???
\           none                 mem[i] = millis(); //the time in milliseconds since the program was started
~           none                 pause(100 * mem[i]);
c           none                 buffer = mem[i];
p           none                 mem[i] = buffer;