DoWhileFuck
Jump to navigation
Jump to search
DoWhileFuck is an esolang invented by User:None1, inspired by brainfuck, it is actually brainfuck with do-while loops instead of while loops.
Commands
DoWhileFuck operates on an array of memory cells, each initially set to zero. There is a pointer, initially pointing to the first memory cell. The commands are:
Command | Description |
---|---|
>
|
Move the pointer to the right |
<
|
Move the pointer to the left |
+
|
Increment the memory cell at the pointer |
-
|
Decrement the memory cell at the pointer |
.
|
Output the character signified by the cell at the pointer |
,
|
Input a character and store it in the cell at the pointer |
[
|
Do nothing |
)
|
Jump back to the matching [ if the cell at the pointer is nonzero
|
Examples
Cat program
[,.)
Infinite loop
+[)