A simple and easy to use Brainfuck interpreter, written in TypeScript.
- Include this file in your TypeScript project.
- Import the default export into your target location.
- Call
BrainfuckInterpreter.parse
with your Brainfuck string.
import BrainfuckInterpreter from "./brainfuck-interpreter";
BrainfuckInterpreter.parse(
`>+++++++++[<++++++++>-]<.
>+++++++[<++++>-]<+.
>+++[<++>-]<+..
+++.
>+++++++++++++[<------>-]<-.
>+++++++++++[<+++++>-]<.
>++++++++[<+++>-]<.
+++.
------.
--------.
>+++++++++++[<------>-]<-.`
);