Skip to content

the Shakespeare Programming Language as a Rust macro

Notifications You must be signed in to change notification settings

zorbulator/laertes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laertes

An implementation of the Shakespeare Programming Language as a proc macro in Rust.

Differences from the original

additions

  • allows gotos using scene/act titles inspired by drsam94/Spl

limitations

  • doesn't allow ', ", or other grouping characters as Rust requires them to all match
  • hyphenated words like "flirt-gill" don't work as they are interpreted as identifier/punctuation/identifier instead of one identifier
  • multi-word operators like "the remainder of the quotient of" and "square root" have been shortened to a single word "modulus" or "root" because this looks better and makes parsing easier

Usage

Just import this crate and put the program inside the macro, like in the examples. You may need to modify existing programs to fit the limitations.

About

the Shakespeare Programming Language as a Rust macro

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages