Skip to main content
Deno 2 is finally here 🎉️
Learn more

FuckBrain

Another BrainFuck interpreter written in JavaScript for Deno.

Usage

import { Interpreter } from "https://deno.land/x/fuckbrain/mod.ts";

const code = `++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.`;
const debug = false;
const sizeLimit = 255;
const onInput = (): string | number => "R";
const interpreter = new Interpreter({
  onInput, debug, sizeLimit
});

await interpreter.execute(code);
console.log(interpreter.outputs.join("")); //Hello World!

I also added CLI file (index.ts), you could check the usage with deno run https://deno.land/x/fuckbrain/index.ts.

BrainFuck Example

Hello World!

License

MIT

Author

Discord: Sx | Stupid#9524
GitHub: NekoMaru76