Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (23 sloc) 804 Bytes
DESCRIPTION
This is a Brainfuck interpreter for Parrot. Brainfuck is a full
computer programming language with only eight commands. For more
information, see http://www.catseye.mb.ca/esoteric/bf/ or
http://en.wikipedia.org/wiki/Brainfuck.
To compile the files:
$ parrot setup.pir
To check that the compiler is working:
$ parrot setup.pir test
To run an example Brainfuck program:
$ ../../parrot bf.pasm helloworld.bf
There is also a compiler:
$ ../../parrot bfc.pir helloworld.bf
Clifford Wolf <clifford (at) clifford.at> contributed a nice bf
program:
$ cat cw.txt
$ ../../parrot bf.pasm cw.bf < cw.txt > cw.c
$ cc -o cw cw.c
$ ./cw
If you want to run it faster, use the bf compiler:
$ ../../parrot -j bfc.pir cw.bf < cw.txt > cw.c
AUTHOR
Leon Brocard <acme@astray.com>