Tool to compile the programming language called Shakespeare (or SPL), an exotic language copying the way of writing of William Shakespeare.
Shakespeare (Programming Language) - dCode
Tag(s) : Programming Language
dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!
Shakespeare is a programming language (abbreviated as SPL for Shakespeare Programming Language) whose source code .SPL files resemble plays by William Shakespeare.
A program begins with the designation of the variables (which are necessarily characters from Shakespeare, such as Hamlet, Othello, etc.). Variables are integers described by a common name. If it is rather positive, then the value is +1, and if it is rather negative the value is -1. Any adjective associated with a noun multiplies it by 2.
Example: Juliet, a beautiful woman
The following describes acts and scenes whose names allow you to make gotos.
Example: Act I: Start
The instructions are dialogues/replicas of the characters.
Example: Romeo: You are nothing.
To display the contents of the current pointer, the phrases Open your heart! or Speak your mind! are used.
The program ends with [Exeunt]
Due to its nature as natural language text, there are thousands of positive or negative words and the dictionaries used were not satisfactory. Most programs did not compile.
The most successful implementation currently is in Python: here but is stille very limited (about 30 positive words and 30 negative words are accepted)
The text is in the form of a play, and uses Shakespeare's characters.
Shakespeare Programming Language was proposed by Karl Wiberg and Jon Åslund in 2001.
dCode retains ownership of the "Shakespeare (Programming Language)" source code. Any algorithm for the "Shakespeare (Programming Language)" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Shakespeare (Programming Language)" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "Shakespeare (Programming Language)" or any other element are not public (except explicit open source licence like Creative Commons). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.
The content of the page "Shakespeare (Programming Language)" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source.
Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).
To cite dCode.fr on another website, use the link:
In a scientific article or book, the recommended bibliographic citation is: Shakespeare (Programming Language) on dCode.fr [online website], retrieved on 2025-04-16,