gkz / grasp

JavaScript structural search, replace, and refactor
http://graspjs.com
MIT License
1.28k stars 33 forks source link

Support for yield keyword and generator functions #12

Closed davidmarkclements closed 10 years ago

davidmarkclements commented 10 years ago

Realize that these are ES6 features and this not in any browser (without being behind flags) at present, however

1) can be used with node --harmony 2) will be main stream before we know it 3) grasp would be great for converting some async code to yield based 4) grasp would be great for converting es6 generator code to es5 equivalent code with the same control flow

Great tool btw, loving the power.

gkz commented 10 years ago

Hi! Glad you like Grasp. Grasp will support ES6 once the library we use to parse JS, acorn, supports ES6.

http://graspjs.com/faq/#is_es6_supported

marijnh/acorn#78

RReverser commented 10 years ago

To be closed by marijnh/acorn#110.