Add support for generator functions from ecmascript 6

Hi, I added support for generator function from ecmascript 6. Here is a [test regular expression](http://regexr.com/?38e4j) against which I was testing.