An open API service indexing awesome lists of open source software.

https://github.com/damianfral/brainhask

A BrainFuck interpreter written in Haskell
https://github.com/damianfral/brainhask

brainfuck compiler haskell interpreter

Last synced: 2 months ago
JSON representation

A BrainFuck interpreter written in Haskell

Awesome Lists containing this project

README

        

# BrainHask

A Brainfuck interpreter written in Haskell.

## Run

```shell
nix run github:damianfral/brainhask -- --help
```

```text
brainhask - a brainfuck interpreter

Usage: brainhask (-i|--input FILE) [-o|--optimize OPTIMIZATIONLEVEL] [-a|--ast]

Available options:
-h,--help Show this help text
-i,--input FILE brainfuck file
-o,--optimize OPTIMIZATIONLEVEL
optimization level (0|1|2) (default: 3)
-a,--ast print the abstract syntax tree
```

## Benchmark

```shell
nix run github:damianfral/BrainHask#brainhask-bench -- --output criterion-report.html
```

![benchmark graph](benchmark/criterion-report.png)