gkz / grasp

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

Incorrect docs ? parser information #125

Open ainthek opened 6 years ago

ainthek commented 6 years ago

Documentation, parser page https://www.graspjs.com/faq/ says:

Why does Grasp use Acorn rather than Esprima to parse JS?

Esprima and Acorn are both JavaScript parsers that output in the Mozilla SpiderMonkey AST format. Grasp uses Acorn as it is much faster at parsing JavaScript when location information is needed.

Howver it seems that you have started to use flow-parser, Please can you patch the docs and explain why ? Thanx

gkz commented 6 years ago

Ah, I see. We switched to flow-parser as it supports all ES features and flow type syntax. There might be a better option now though