A little brainfuck compiler doodad whatsit
Find a file
2026-01-16 23:02:04 -04:00
src Initial Commit 2026-01-16 23:00:20 -04:00
.gitignore Initial Commit 2026-01-16 23:00:20 -04:00
LICENSE Added README.md and LICENSE 2026-01-16 23:02:04 -04:00
README.md Added README.md and LICENSE 2026-01-16 23:02:04 -04:00
shard.yml Initial Commit 2026-01-16 23:00:20 -04:00

An unimpressive brainfuck compiler writtenin Crystal

Has the following quirks/details compared to usual brainfuck

  • A total of 65536 data cells
  • The data pointer wraps around in the case of overflow/underflow
  • Characters are handled as UTF-8 rather than ASCII
  • Might just randomly break because I coded this in like 20 minutes with no major testing

Usage:

crystal run src/brainfuck.cr -- [INPUT]

[INPUT] can either be a filepath or the brainfuck code itself