Code referenced in the talk "Writing Custom DSLs" I gave at JSConf 2014