Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/igorw/brainfuck-php
Brainfuck implementation.
https://github.com/igorw/brainfuck-php
Last synced: about 1 month ago
JSON representation
Brainfuck implementation.
- Host: GitHub
- URL: https://github.com/igorw/brainfuck-php
- Owner: igorw
- License: mit
- Created: 2013-08-20T16:54:56.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-28T23:36:13.000Z (almost 10 years ago)
- Last Synced: 2024-08-02T20:48:10.176Z (3 months ago)
- Language: PHP
- Homepage:
- Size: 312 KB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# brainfuck-php
![brainfuck](doc/brainfuck.png)
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
## References
* [Brian Raiter's guide](http://www.muppetlabs.com/~breadbox/bf/)
* [Daniel B. Cristofani's examples](http://www.hevanet.com/cristofd/brainfuck/)
* [Brainfuck on Esolang](http://esolangs.org/wiki/Brainfuck)