A simple interpreter for the infamous esoteric language, in C. Made by me!
Though, literally everyone has done this.
It's a... uh... I-
Just read this: https://en.wikipedia.org/wiki/Brainfuck
Prerequisite: install realine.
sudo apt install libreadline-devFirst compile the files:
makeYou can optionally add in CC=<compiler of your choice>.
Then:
./brainfudge -h # for help
./brainfudge # for running REPL
./brainfudge -f <file> # for running brainfudge
./brainfudge -c <file> # for compiling to C
I saw a video on brainfudge by Fireship and my brain decided to make something. I really don't know why my brain acts like that, but it was nice making what I made.
- Better memory management.
- Better error handling (specially for REPL).
- Fix potential undefined behaviour and bugs.
Now you can transpile brainfudge to C!
Now to add indentation to the compiled C... Tiresome work.
PS:
I renamed the repository just because mentioning this to people was getting tiresome.
While I cannot afford to jeopardize my company, I can totally rename this repository so... Brainfudge.
We live in a society.