Beatnik Interpreter

This is a fully functional interpreter for the Beatnik programming language (http://www.cliff.biffle.org/esoterica/beatnik.html), written in Postscript.

The only documentation available is the extensively commented source code.

Please note that the sample program provided at the "official website" is in fact NOT a valid program but produces a stack underflow after 8 instructions or so (a fact easily observable by looking at the source code for just a second, isn't it?)

The interpreter and all beatnik-programs available here were written by Kevin Stadler (kevin dot stadler at gmx dot at) and Florian Motlik in January 2008, except for 99 bottles of beer by Paul Dale, taken from the 99 bottles of beer website.

The numbers found at the beginning of some of the beatnik programs are "comments" indicating the scrabble scores of the program words (for easier "debugging"). Print Yourself can be terminated by entering "q".

Quickstart

Simply download the postscript-file as well as a beatnik-sample-program of your choice (e.g. 99 bottles of beer) and execute it with ghostscript (which is included in most linux-distributions) with the following commands:

$ gs Beatnik.ps
...
GS>(99bottles.beatnik)
GS<1>parse
GS<1>beatnik
99 bottle(s) of beer on the wall,
...
[ICO]NameLast modifiedSizeDescription

[DIR]Parent Directory  -  
[   ]99bottles.beatnik29-Jan-2008 16:52 6.3K 
[   ]Beatnik.ps29-Jan-2008 16:52 3.7K 
[   ]printyourself.beatnik29-Jan-2008 16:59 55  

Apache/2.2.22 (Debian) DAV/2 mod_fcgid/2.3.6 PHP/5.4.36-0+deb7u3 mod_python/3.3.1 Python/2.7.3 mod_ssl/2.2.22 OpenSSL/1.0.1e mod_perl/2.0.7 Perl/v5.14.2 Server at www.complang.tuwien.ac.at Port 80