Add support for ecmascript 6 generator functions

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.