igorw / brainfuck
Brainfuck implementation.
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 1
Forks: 2
Open Issues: 0
pkg:composer/igorw/brainfuck
Requires
- psr/log: ~1.0
Requires (Dev)
- docopt/docopt: dev-master
- monolog/monolog: ~1.6
- phpunit/phpunit: ~3.7
This package is not auto-updated.
Last update: 2025-10-06 18:37:31 UTC
README
Brainfuck is a turing complete language with 8 instructions.
Example
Hello World:
>+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.>>>++++++++[<++++>-]
<.>>>++++++++++[<+++++++++>-]<---.<<<<.+++.------.--------.>>+.
Cat:
,[.,]
Usage
Just pass a filename to the interpreter:
$ bin/brainfuck examples/hello.b
You can also run the debug command to get a log of all instructions.
$ bin/brainfuck debug examples/hello.b