Skip to content

markusn/bfer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bfer

Build Status Coverage Status

Brainfuck to LLVM IR compiler written in Erlang.

Building

To build as a library to be included in another Erlang project:

rebar compile

To build as a standalone escript:

rebar compile escriptize

Usage

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.

Author

Markus Ekholm (markus at botten dot org).

License

3-clause BSD. For details see COPYING.

About

Brainfuck to LLVM IR compiler written in Erlang

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published