Skip to content

Instantly share code, notes, and snippets.

@InvalidLenni
Created January 27, 2022 18:36
Show Gist options
  • Select an option

  • Save InvalidLenni/a792d4ec79a0a438e4db6b798f471984 to your computer and use it in GitHub Desktop.

Select an option

Save InvalidLenni/a792d4ec79a0a438e4db6b798f471984 to your computer and use it in GitHub Desktop.

Infos about brainfuck

First, brainfuck ## What is brainfuck?

What is brainfuck?

Brainfuck is an esoteric programming language created in 1993 by Urban Müller. ... Brainfuck simply requires one to break commands into microscopic steps. The language's name is a reference to the slang term brainfuck, which refers to things so complicated or unusual that they exceed the limits of one's understanding.

Is brainfuck useful?

imo, nope. Brainfuck is a fun programming language.

Getting Started with brainfuck

Getting Started to brainfuck your brain?! Here we go!

Brainfuck Syntax

> = increases memory pointer, or moves the pointer to the right 1 block.
< = decreases memory pointer, or moves the pointer to the left 1 block.
+ = increases value stored at the block pointed to by the memory pointer
- = decreases value stored at the block pointed to by the memory pointer
[ = like c while(cur_block_value != 0) loop.
] = if block currently pointed to's value is not zero, jump back to ...
, = like c getchar(). input 1 character.
. = like c putchar(). print 1 character to the console.

This gist is not fully completed. You can help to complete this!

Examples

soon:tm:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment