lbf is a brainfuck interpreter/compiler written in lua. It supports AST optimization as well as backends for multiple languages, including brainfuck itself.
For now, the best way to install lbf is to clone this repo, and install argparse
from luarocks. Running lbf must be done from its directory until a packaged version is available.
run
: simply run the given brainfuck programlua
: generate Lua codeluarun
: generate Lua code and run it; it has a long startup time, but is the fastest to executejs
: genetate JavaScript code meant for a browser, usingprompt
andalert
bf
: generate brainfuck code, useful to optimize a programfastc
: generates C code without any safety checkiusearchbtw
: generates I use Arch btw code