Shakespeare Programming Language

A character list in the beginning of the program declares a number of stacks, naturally with names like "Romeo" and "Juliet".

[1] A piece of code in Shakespeare is broken into Acts which contain Scenes in which characters (variables) interact.

[1] The following format is used: Lines are represented as dialogue spoken by a character, and consist of at least one sentence.

[1] Possessive pronouns are ignored by the parser, while words pertaining to basic arithmetic are recognized as operations, such as "sum", "quotient", and "cube".

"Listen to your heart" or "Open your mind" cause the variable to receive input from the user; the former for a number and the latter for a character.

A subsequent line, starting "if so" or "if not", determines what happens in response to the truth or falsehood of the original condition.

A goto statement begins "Let us", "We shall", or "We must", continues "return to" or "proceed to", and then gives an act or scene.

program: The idea is to generate the ASCII values for each character of the string and print it using the "Speak your mind" command.

For instance, the first line of dialog said by Hamlet uses a combination of arithmetic operations to assign the decimal value 72 (binary 1001000) to the other protagonist Romeo, which in ASCII corresponds to the letter 'H'.