igorw / brainfuck
Brainfuck implementation.
dev-master
2014-11-28 23:36 UTC
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: 2024-12-16 15:13:16 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