Skip to content

Instantly share code, notes, and snippets.

@fcalderan
Created December 10, 2010 11:22
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 fcalderan/736099 to your computer and use it in GitHub Desktop.
Save fcalderan/736099 to your computer and use it in GitHub Desktop.
Typical Jamiroquai video explained by a context-free grammar
# Description:
# Typical Jamiroquai video explained by a context-free grammar (just for fun)
JV ::= <epsilon> | <Someone> <Does> <Something> in a <Place> | <Exceptions> ;
Someone ::= He | the invisible man ;
SomeoneElse ::= Him | another invisible man ;
Does ::= (runs away with | follows | drives) a ;
Something ::= (porsche | ferrari | moto | helicopter) followed by <SomeoneElse> <Consequence> ;
Consequence ::= wasting fuel | polluting environment | making roads insecure ;
Place ::= dull desertic land | desert | bright floor;
Exceptions ::= He dances all the time | Godzilla destroys a cinema ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment