Common · Knowledge

Shakespeare Programming Language

Esoteric programming language designed by Jon Åslund and Karl Hasselström

The Shakespeare Programming Language (SPL) is an esoteric programming language designed by Jon Åslund and Karl Wiberg. Like the Chef language, it is designed to make programs appear to be something other than programs – in this case, Shakespearean plays.

From Wikipedia

The Shakespeare Programming Language (SPL) is an esoteric programming language designed by Jon Åslund and Karl Wiberg. Like the Chef language, it is designed to make programs appear to be something other than programs – in this case, Shakespearean plays. A character list in the start of the program declares some number of stacks, naturally with names like "Romeo" and "Juliet". These characters enter into dialogue with each other in which they manipulate each other's topmost values, push and pop each other, and do input/output (I/O). The characters can also ask each other questions which behave as conditional statements. On the whole, the programming model is very similar to assembly language but much more verbose. The first line in a Shakespeare program is called the 'title'. The compiler considers anything from the first line to the first period to be a comment. This is the section where variables are declared. Each variable can hold a signed integer value and is of the following form: Where Name is the name of the variable and Description is ignored by the compiler.

Text: Wikipédia, CC BY-SA 4.0. ·

Open

Tap to close

Confirmation