Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 689 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 689 Bytes

BrainHask

A Brainfuck interpreter written in Haskell.

Run

nix run github:damianfral/brainhask -- --help
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

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

benchmark graph