Adding support for generators (yield keyword)

ported from https://github.com/jashkenas/coffee-script