igorw / befunge
Befunge-98 implementation.
dev-master
2013-08-24 02:07 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-11-18 15:33:03 UTC
README
Befunge is an esoteric programming language that operates in a 2d space, allowing the instruction pointer (ip) to point in any direction.
This interpreter is based on the funge-98 spec, and implements a non-concurrent two-dimensional variant of the language.
Example
Hello world:
0"!dlroW ,olleH">:#,_@
Count:
v @
> & 00p 0 10p ;; 0. ;; " ", ;; > 00g 10g w @
v <
> 10g 1+ 10p ;; 10g. ;; " ", ^
Usage
Just pass a filename to the interpreter:
$ bin/befunge examples/hello.b98
You can also pass the --debug
option to get a log of all instructions.
$ bin/befunge --debug examples/hello.b98
Stability
Highly experimental, unstable, incomplete. PRs welcome.