Code referenced in "Writing Custom DSLs [JSConf2014]"