Skip to content

parrot/bf

Repository files navigation

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>

About

A compiler for the BF language for the Parrot Virtual Machine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published