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 onInput = () => "R";
const interpreter = new Interpreter(onInput, debug);

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!)[https://deno.land/x/fuckbrain/hello_world.bf]

License

MIT

Author

Discord: Sx | Stupid#9524 GitHub: NekoMaru76