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
- Host: GitHub
- URL: https://github.com/damianfral/brainhask
- Owner: damianfral
- License: mit
- Created: 2014-11-16T09:59:43.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2025-03-01T15:09:44.000Z (4 months ago)
- Last Synced: 2025-03-01T16:22:25.223Z (4 months ago)
- Topics: brainfuck, compiler, haskell, interpreter
- Language: Haskell
- Homepage: https://damianfral.github.io/BrainHask
- Size: 670 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 interpreterUsage: 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
```