Skip to content

Brainfuck Commands

Anar Software edited this page Jan 10, 2016 · 7 revisions

The Brainfuck language consists of only eight simple commands, each consisting of a single character:

Command Description

| Move the pointer to the right < | Move the pointer to the left

  • | Increment the byte at the data pointer
  • | Decrement the byte at the data pointer . | Output the byte at the data pointer , | Input a byte into memory cell at the data pointer [ | Jump past the matching ] if the byte at the data pointer is 0 ] | Jump back to the matching [ if the byte at the data pointer is not 0

All characters other than ><+-.,[] should be considered comments and ignored.