Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A compiler for the BF language for the Parrot Virtual Machine
Parrot Perl
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
ports/plumage
t
.gitignore
LICENSE
MAINTAINER
README
bench.bf
bf.pasm
bfc.pir
bfco.pir
countdown.bf
cw.bf
cw.txt
helloworld.bf
setup.pir
test.bf

README

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>
Something went wrong with that request. Please try again.