Skip to content

Latest commit

 

History

History
17 lines (15 loc) · 1.02 KB

README.md

File metadata and controls

17 lines (15 loc) · 1.02 KB

Brainfuck

A simple Brainfuck JS Interpreter

What is Brainfuck?

"Brainfuck is an esoteric programming language noted for its extreme minimalism. The language consists of only eight simple commands and an instruction pointer. Nevertheless, it was shown to be Turing-complete. It is designed to challenge and amuse programmers, and was not made to be suitable for practical use. It was created in 1993 by Urban Müller. The language's name is a reference to the vulgar term "brain fuck", which refers to things so complicated or unusual that they exceed the limits of one's understanding" (Wikipedia).

What are the commands?

Brainfuck C
> ++ptr;
< --ptr;
+ ++*ptr;
- --*ptr;
[ while (*ptr) {
] }
. putchar(*ptr);
, *ptr = getchar();