Skip to content

JakubGrobelny/brainfrick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BrainFrick

Optimizing compiler for brainfuck


Currently supported targets:

  • C

Planned targets:

  • JVM

Compilation

In order to compile the project you need to have stack installed.

$ stack setup
$ stack build

To run the compiler use

$ stack exec brainfrick

Usage

brainfrick [OPTION...] file
  -o FILE    --output=FILE    output file
  -t TARGET  --target=TARGET  compilation target
  file                        input file

Valid targets are:

  • c