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.
Brаinfuck
Jump to navigation
Jump to search
- Not to be confused with Brainfuck.
brаinfuck is brainfuck extension
Brainfuck Info
Brainfuck operates on an array of memory cells, also referred to as the tape, 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 under the pointer |
-
|
Decrement the memory cell under the pointer |
.
|
Output the character signified by the cell at the pointer |
,
|
Input a character and store it in the cell at the pointer |
[
|
Jump past the matching ] if the cell under the pointer is 0
|
]
|
Jump back to the matching [ if the cell under the pointer is nonzero
|
Brаinfuck adds
&
|
zero both adjacent cells |
0-9
|
move to the corresponding cell |
@
|
Stop execution |
;
|
Input a character and store it in the cell at the pointer then output it |