a Brainfuck compiler targeting WebAssembly (or WASM)
bf-wasm
compiles Brainfuck source code from the standard input into a WASM module. The WASM module is written to the standard ouput. The WASM module is written in WebAssembly text format.
The wat2wasm - from The WebAssembly Binary Toolkit - should be used to translate WebAssembly text format to the binary format.
What is Brainfuck?
Brainfuck is an esoteric programming language created in 1993 by Urban Müller.
(from https://en.wikipedia.org/wiki/Brainfuck)
go get github.com/hiddenbyte/bf-wasm
make build # build bf-wasm
The bf-wasm
executable is available at the ./dist
folder after running make build
.
bf-wasm
compiles Brainfuck source code from the standard input into a WASM module. The WASM module is written to the standard ouput.
cat example.bf | bf-wasm > example.wat
See https://github.com/hiddenbyte/bf-wasm/tree/main/examples/