drsam94 / spl Goto Github PK
View Code? Open in Web Editor NEWA Compiler for the Shakespeare Programming Language Written in Python. Compiles from SPL to C.
License: The Unlicense
A Compiler for the Shakespeare Programming Language Written in Python. Compiles from SPL to C.
License: The Unlicense
Sorry, this look more like a Stackoverflow question than a Github issue but I am at the point where I wonder if it's not a problem with the compiler. Could you take a look ?
The compiler shows an error but I don't understand what the problem is:
The error is : Ill-formed Expression in [] at line 40
.
Here is the code of the scene, the line 40 is the blank line before [Exit Beatrice]
. It effectively is a blank line but why is it invalid ?
Scene II: The argument.
[Enter Dionyza and Beatrice]
Beatrice:
You are as disgusting as the product of a giant devil leech and the product of Angelo and Cassandra.
You the difference between the square of me and thyself!
[Exit Beatrice]
[Enter Angelo]
Dionyza:
Am I better than a codpiece ?
Angelo:
If so, let us proceed to scene III.
Dionyza:
Am I as important as nothing ?
Angelo:
If so, let us proceed to scene IV.
Open your heart !
[Exeunt]
Hi,
this is not actually your problem, but:
I have this code written in SPL and I can't get it compiled. Its for a geocache and I politly want to ask you, if you could help me with it... Mayby its just a small problem.
You'll find the code here (just down below another esoteric programming language): http://www.geocaching.com/geocache/GC1G66E_shakespeare-und-andere-grausamkeiten?guid=894d70e9-1a5c-416a-8920-00253680031b
Would be nice to hear from you!
I use your compiler (really great work), but had a problem with compiling scripts with too short comments after characters. This leaves me with this text:
With the source:
An infamous test program.
Romeo, he is a man.
Juliet, the second value.
Act I: Writing what necessary.
Scene I: Preparation of values.
[Enter Romeo and Juliet]
Juliet: You lying stupid fatherless big smelly half-witted coward!
You are as stupid as the difference between a handsome rich brave
hero and thyself! Open your heart.
[Exeunt]
Am I doing it wrong or is it a bug? Again, this program is a very good work!
The current master branch is not able to compile the Hello-World example from the spl docs.
The last functioning commit seems to be [adbddf3]
As a fix i manually reverted the line 320+ in the splc.py to what it hat before that commit.
Since I blindly hacked it, I have no idea of any side affects and would love to see a cleaner solution :D
The readme says "If the goal of Shakespeare is to make programs look like plays, then it is sub-optimal having to use words like 'square root' all over the place" and I very much agree with that.
I'm not sure whether this is what you meant with "I may add a way to define equivalent words for math functions in a text file." but I would like to propose an alternative wording for sums and differences:
with
instead of sum
without
instead of difference
So for example I would like to write
You are as lovely as the clearest warm peaceful summer's day without Hamlet.
instead of
You are as lovely as the difference between the clearest warm peaceful summer's day and Hamlet.
Also it would be very useful if it was possible to have more than two operands:
You are as charming as a brave handsome noble hero with a red rose and a cunning cute squirrel.
instead of
You are as charming as the sum of a brave handsome noble hero and the sum of a red rose and a cunning cute squirrel.
I stumbled across this, looks good!
I'm behind http://shakespearelang.org/ and the SPL compiler in JS, Horatio (https://github.com/mileszim/horatio).
I have an initial language specification here I've been toying around with, and I'm trying to build good documentation and a syntax highlighter to revive the language. https://docs.google.com/document/d/148Qc8dMrEVcnLs2dd-ZHyR7Kl7MeWlR-vTewY4Zr6wE/edit?usp=sharing
Are you interested in working on this together?
$ ./spl ../spl-1.2.1/examples/fibonacci.spl
[',', 'a', 'lover', 'with', 'an', 'accumulative', 'memory']
Expected a number, but found no noun at line 10
This is my code:
.
Ajax,.
Puck,.
Act I:
Scene I:
[Enter Ajax and Puck]
Puck:
Listen to thy heart!
Scene II:
Ajax:
You is the sum of thyself and a cat!
Is you better than me?
If not, let us proceed to Scene III.
Is the sum of the remainder of the quotient of you and me as good as nothing?
If not, let us proceed to Scene IV.
Let us return to Scene II.
Scene III:
Ajax:
You cat!
Open thy heart!
Scene IV:
Ajax:
You fat cat!
Open thy heart!
[Exeunt]
It's telling me Ill-formed Expression in [] at line 22
.
Can you please look into this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.