BF interpreter, BF->C compiler, and (work in progress) C->BF compiler in one
  • Haskell 95.1%
  • Nix 3.8%
  • Brainfuck 1.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Emin Arslan 43bc965b5f
All checks were successful
/ build (push) Successful in 3s
Try using the new host runner alma-nix
2026-08-14 22:15:55 +03:00
.forgejo/workflows Try using the new host runner alma-nix 2026-08-14 22:15:55 +03:00
app minor change 2026-07-20 23:44:47 +03:00
.envrc add envrc and gitignore 2026-06-03 23:58:03 +03:00
.gitignore add envrc and gitignore 2026-06-03 23:58:03 +03:00
.woodpecker.yaml Added a woodpecker workflow for CI 2026-07-18 12:36:33 +03:00
CHANGELOG.md Initial commit 2026-06-03 23:48:53 +03:00
ctobf.cabal Fix dependency version, reorganize flake 2026-07-18 12:28:59 +03:00
flake.lock Initial commit 2026-06-03 23:48:53 +03:00
flake.nix Fix dependency version, reorganize flake 2026-07-18 12:28:59 +03:00
goldenratio.b disable buffering 2026-06-03 23:57:28 +03:00
LICENSE Initial commit 2026-06-03 23:48:53 +03:00
README.md updated readme 2026-06-04 20:49:17 +03:00

Brainfuck interpreter in haskell

This is a brainfuck interpreter written in haskell.

Getting Started

You'll need ghc and cabal installed on your system.

To interpret brainfuck code directly:

cat goldenratio.b | cabal run -- ctobf

To compile brainfuck code to C:

cat goldenratio.b | cabal run -- ctobf -c

To save it to a file instead of printing to standard output:

cat goldenratio.b | cabal run -- ctobf -c -o out.c