Brainfuck interpreter and CLI written in TypeScript. It interprets vanilla Brainfuck, no fancy stuff!
npm install -g https://github.com/tobiasholler/brnfck.git
brnfck file.bf
With input
brnfck file.bf -i "HELLO"
Debug mode for more output
brnfck file.bf -i "HELLO" -d
For everything else, --help
is your friend
brnfck --help
This interpreter is compiles the Brainfuck code to JavaScript which will then be run using the eval
function. At the beginning of this project the code was run with a old style interpreter, it took ~1430 seconds to run Mandelbrot now with the compiler it only takes ~60 seconds (tested on my machine).
- Read Files to input
- Input during execution
- Update code to make it less confusing and more organized
- Video Driver, so you can program Games in Brainfuck