/brainfudge

Primary LanguagePHPMIT LicenseMIT

brainfudge

Build Status

Installation

You should have composer installed on your system, as well as PHP >= 7.4.

  1. Clone the repository: git clone https://github.com/adoxography/brainfudge && cd brainfudge
  2. Generate the autoload file: composer dump-autoload

Usage

  1. brainfudge takes input from stdin. To use it interactively, run bin/brainfudge. To us it as part of a script, pipe some input in; e.g. echo '-[------->+<]>-.-[->+++++<]>++.+++++++..+++.' | bin/brainfudge

Testing

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.

License

MIT