A little brainfuck compiler doodad whatsit
| src | ||
| .gitignore | ||
| LICENSE | ||
| README.md | ||
| shard.yml | ||
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