Brainfuck to LLVM IR compiler written in Erlang.
To build as a library to be included in another Erlang project:
rebar compile
To build as a standalone escript:
rebar compile escriptize
When using as a library in another Erlang module the main entry point is bfer_lib:compile/2
which
takes Brainfuck code as a string and returns LLVM IR as a string.
Used as a standalone escript bfer
can generate native code if llvm and some kind of cc is installed:
bfer [-o] INPUT.bf OUTPUT
Specifying -o "optimizes" the generated LLVM IR.
Markus Ekholm (markus at botten dot org).
3-clause BSD. For details see COPYING
.