An open API service indexing awesome lists of open source software.

https://github.com/dimdengd/brainfuck.js

Another Brainfuck interpreter in JS
https://github.com/dimdengd/brainfuck.js

Last synced: 12 months ago
JSON representation

Another Brainfuck interpreter in JS

Awesome Lists containing this project

README

          

# brainfuck.js
Another Brainfuck interpreter in JS. Blogpost: https://dimden.dev/blog/?id=6-brainfuck-js

*Constructor: new Brainfuck(program, input, size)*.

## Example

```js
const program = "--[>--->->->++>-<<<<<-------]>--.>---------.>--..+++.>----.>+++++++++.<<.+++.------.<-.>>+.";
const bf = new Brainfuck(program);
let out = "";

bf.on("out", o => out += o);
bf.on("done", () => console.log(out));
bf.init();
```