Skip to content

billyedmoore/brainf-ck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brainf-ck

Program to interpret and transpile code from the esoteric language BrainFuck performing optimisation along the way.

Read about the optimisations here.

General Usage

To interpret programs simply provide the name of a file containing brainfuck code.

brainf-ck your_program.bf 

To transpile/compile programs provide an output file, the transpilation language will be infered from the file extension of the output file.

Supported languages:

Language Extensions
x86-64 executable (linux) [".out"]
x86-64 assembly (linux) [".asm"]
bash [".sh", ".bash"]
c [".c"]
Haskell [".hs"]
Pascal [".pas"]
LLVM ir [".ll"]
whitespace [".ws"]

Example:

brainf-ck your_program.bf -o your_program.c

Run Tests

cabal test

About

Compiler, transpiler and interpreter for the esoteric language BrainFuck.

Topics

Resources

License

Stars

Watchers

Forks

Contributors