Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 943e040890
Fetching contributors…

Cannot retrieve contributors at this time

39 lines (23 sloc) 0.804 kb
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>
Jump to Line
Something went wrong with that request. Please try again.