Brainfuck interpreter (JavaScript)
Program
Description
This JavaScript program executes the given program written in the brainfuck programming language.
The source code is available.
Examples
-
Hello world:
++++++++++[>+++++++>++++++++++>+++>++++< <<<-]>++.>+.+++++++..+++.>>++++.<++.<+++ +++++.--------.+++.------.--------.>+. -
Echo the input:
,[.,] -
Reverse the input:
,[>,]<[.<] -
Infinite loop:
+[] -
Binary counter:
- [ >[->]+ +[-<+]- ]