Program to interpret and transpile code from the esoteric language BrainFuck performing optimisation along the way.
Read about the optimisations here.
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.ccabal test