Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@rsimoes
Created December 30, 2011 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rsimoes/1541294 to your computer and use it in GitHub Desktop.
Save rsimoes/1541294 to your computer and use it in GitHub Desktop.
Concatenative, stack-oriented Perl DSL
"What is 2 + 3?" . say . readline
. { 2 . 3 . add . eqn }
. { "Correct!" . say } . { "Incorrect" . say }
. ifte
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment