NAME

Acme::Beatnik - Source Filter to implement the Beatnik language

SYNOPSIS

use Acme::Beatnik;
blah blah blah

ABSTRACT

The Beatnik language is a based on scrabble word values. Each value points to a different instruction. The language is stack based and has a rather reduced instruction set.

DESCRIPTION

Beatnik is an esoteric programming language based on scrabble word values in the code. Each word value is linked to a certain instruction. The number of instructions is limited since there are only a certain number of values possible in Scrabble. Beatnik is a stack based programming language.

INSTRUCTION TABLE

Beatnik has the following word values linked to the instructions.

5   Push the next word value onto stack
6   Pop the first value from stack
7   Add the two topmost values from stack and push the result on stack
8   Read a character from input and push the ASCII value on stack
9   Read the first value from stack and print the character value
10  Subtract the two topmost values from stack and push the result back on stack
11  Swap the two topmost values from stack
12  Duplicate the first value from stack and push it onto stack
13  Move the Instruction Pointer X values forward if the first value on stack is zero (X being the next word value)
14  Move the Instruction Pointer X values forward if the first value on stack is not zero (X being the next word value)
15  Move the Instruction Pointer X values backward if the first value on stack is zero (X being the next word value)
16  Move the Instruction Pointer X values backward if the first value on stack is not zero (X being the next word value)
17  Halt the program

ENGLISH TILESET

Since Scrabble has different letter values for different countries, there is a problem. Acme::Beatnik uses the English based tileset. Future versions might include the possibility to have other tilesets as well.

A=1  B=3  C=3  D=2  E=1  F=4  G=2  H=4  I=1  J=8  K=5  L=1  M=3  N=1  O=1  P=3  Q=10  R=1  S=1  T=1  U=1  V=4  W=4  X=8  Y=4  Z=10

EXAMPLE

use Acme::Beatnik
Foo Bar Baz

Foo has word value 6, Bar has word value 5, Baz has word value 14. This does the following..

Pop the first value from stack
Push 14 on stack

AUTHOR

Hendrik Van Belleghem, <hendrik@ldl48.org>

COPYRIGHT AND LICENSE

Copyright 2003 by Hendrik Van Belleghem

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.