Nice brainfuck interpreter implemented in PHP programming language.
NOTE: This is a joke project just to mess around a bit!
To use the tool, you need to have PHP interpreter installed and then run:
- Mac/UNIX:
$ cd ./path/to/bf.php $ php ./src/bf.php
- Windows
$ cd .\path\to\bf.php $ php .\src\bf.php
You can execute files just passing a file path in the arguments or if you don't provide anything it will enter a very simple REPL that works just like the classic BASIC interactive shell.
By using the argument flag -m <MEMORY>
you can specify the maximum memory capacity that will be allocated for the execution of the program.
This is also valid for the REPL.
Have fun!
By Marcio Dantas