Skip to content

Nice brainfuck interpreter implemented in PHP programming language

License

Notifications You must be signed in to change notification settings

marc-dantas/bf.php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Nice brainfuck interpreter implemented in PHP programming language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published