Coder Social home page Coder Social logo

spl's People

Contributors

affonso-gui avatar drsam94 avatar kikithegecko avatar oliver-ni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

spl's Issues

Error with an empty expression.

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]

Compiling problem.

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:
screenshot from 2014-03-09 14 02 17
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!

Hello-World Sample crashes!

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

Feature request: "with" for sums and "without" for differences

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:

  • using with instead of sum
  • and 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.

Error in "Let us return..."

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.