You should have composer installed on your system, as well as PHP >= 7.4.
- Clone the repository:
git clone https://github.com/adoxography/brainfudge && cd brainfudge
- Generate the autoload file:
composer dump-autoload
brainfudge
takes input fromstdin
. To use it interactively, runbin/brainfudge
. To us it as part of a script, pipe some input in; e.g.echo '-[------->+<]>-.-[->+++++<]>++.+++++++..+++.' | bin/brainfudge
To test the CLI, run bin/test_cli
. The only dependency is Bash.
To test the library, install the development dependencies with composer install
. Then run bin/test_lib
.