Try   HackMD

Brainfuck
Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More β†’
Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More β†’

+-,.[]

variable name x, y, temp0, temp1,... should be replaced by< or > to move to its position in real code
temp prefix: temporary cell initialize to 0
Code prefix: code block

most code might consume the input.
use copy value to copy the input if necessary


copy value

  • set y as a copy of x
x[y+temp0+x-] temp0[x+temp0-] // x = temp0

arithmetic

  • x = 0
x[-]
  • y = x
x[y+x-]
  • z = x+y
x[z+x-] y[z+y-]
  • z = x-y
x[z+x-] y[z-y-]
  • z = x*y
x[ y[ z+temp0+ y-] temp0[y+temp0-] // y = temp0 x-]
  • z = x/y

logic gate

  • y = NOT x
x[y-x-]y+

compare

  • z = (x > y)

condition

reference