Questions tagged [shakespeare-lang]

Shakespeare Programming Language is an esoteric programming language created with the design goal to make the source code resemble Shakespeare plays.

Shakespeare Programming Language is an esoteric programming language created with the design goal to make the source code resemble Shakespeare plays.

Overview

The characters in the play are variables. If you want to assign a character, let's say Hamlet, a negative value, you put him and another character on the stage and let that character insult Hamlet.

Input and output is done be having someone tell a character to listen their heart and speak their mind. The language contains conditionals, where characters ask each other questions, and jumps, where they decide to go to a specific act or scene. Characters are also stacks that can be pushed and popped.

The official documentation of the language is available on the official SPL SourceForge webpage.

Hello world!

The code can be viewed here: example of a hello world program in the SPL.

Credits

This article is based on Wikipedia and the official SourceForge of the language.

9 questions
8
votes
3 answers

Compiling and executing the Shakespeare Programming Language translator spl2c on Mac OS X 10.6 results in warnings/errors

I wanted to experiment with the Shakespeare programming language, so I downloaded it from here and executed the Makefile using cd spl-1.2.1 Make. The compilation of spl2c executes with a couple warnings: scanner.l:600: warning, rule cannot be…
Redwood
  • 66,744
  • 41
  • 126
  • 187
6
votes
1 answer

How does "Hello World" work in Shakespeare Programming Language?

Today while browsing Code Golf, I discovered a language based on Shakespeare known as the Shakespeare Programming Language (SPL). While trying to understand how the language worked, I came across the Wikipedia entry for SPL, which included example…
Stevoisiak
  • 23,794
  • 27
  • 122
  • 225
6
votes
2 answers

Shakespeare Variable Assignments Not Working

I have looked through several Shakespeare documentations, but I cannot figure out how to make my Shakespeare program work. I have tried the following: Shakespeare, A Program. Romeo, A young man. Juliet, a young woman Act I: A test of…
kaldavi
  • 63
  • 5
3
votes
2 answers

ld.exe cannot find -lfl

I'm using mingw to compile the Shakespeare Programming Language and during the compilation I get the following error. c:/users/neil/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot find -lfl collect2: ld returned 1 exit…
Neil
  • 625
  • 1
  • 7
  • 12
1
vote
3 answers

Shakespeare Programming Language Help - Windows

I've recently gotten interested in the esoteric programming language Shakespeare Programming Language (SPL) and have tried to install the only windows-friendly interpreter I could find, from: https://pypi.python.org/pypi/shakespearelang/0.2.0 It was…
Graviton
  • 371
  • 1
  • 4
  • 14
1
vote
1 answer

How to run Shakespeare (.SPL) file in C

How do I run a program written in Shakespeare Programming Language? I've scanned the internet for the info but I still can't solve this problem. On the original site it's given a translator for C and some GCC Frontend links. However, the links just…
vvmatorin
  • 21
  • 7
1
vote
1 answer

Shakespeare Programming Language - errors while compiling

To translate hello.spl to C, I run ./spl2c hello.c which works fine. Next I run gcc hello.c, but I get this error: fatal error: spl.h: No such file or directory. spl.h and hello.c are in the same directory. I tried to change the…
Skyler
  • 2,834
  • 5
  • 22
  • 34
0
votes
0 answers

SPL (Shakespear Programming Language) highlighting for NeoVim

I'm a bit new to TreeSitter and I have been recently trying to create a syntax highlighting for NeoVim for this esoteric language called SPL. I have tried installing the nvim plugin treesitter-playground and it works, but not with SPL language. It…
notcarl
  • 11
  • 2
0
votes
0 answers

Problems compiling the Shakespeare Programming Language? spl2c

For testing and fun purposes I downloaded the Shakespeare Programming language. http://shakespearelang.sourceforge.net/ I tried to run the Makefile through make and it spits out this result: gcc grammar.tab.o scanner.o strutils.o -O2 -Wall -lfl -o…
Davis Keene
  • 213
  • 1
  • 5
  • 12