Skip to content

Instantly share code, notes, and snippets.

@masak
Created June 22, 2012 18:57
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save masak/2974519 to your computer and use it in GitHub Desktop.
Trying to flesh out slangs
use BDD;
# Perl 6 here
bdd {
# Here I can use my awesome DSL
given ()
when LoginUser :id<greg> :password<sekkrit>
then UserLoggedIn :id<greg>
}
slang BDD {
# ...
}
# some way to introduce `token statement_control:bdd` into the main slang of the
# desperate hand waving
# make it work somehow!
# suggestions welcome
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment