Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 796 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 796 Bytes

Brainfuck in PHP

Nice brainfuck interpreter implemented in PHP programming language.

NOTE: This is a joke project just to mess around a bit!

Getting started

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