Compiler Brainfuck to Javascript
npm install bf-compiler
bf-compile -i source.txt -o result.js
// or pass source code directly
br-compile -s '++--..><[]' -o result.js
import { compiler } from 'bf-compiler';
// using `require` in node.js
const result = compiler(source);
// pure compile result
result.compiler;
// compile result and preset function
result.code;
// Brainfuck tokens
result.tokens;
// Brainfuck ast
result.ast;
// Javascript ast
result.javascriptAst;