grasp icon indicating copy to clipboard operation
grasp copied to clipboard

Incorrect docs ? parser information

Open ainthek opened this issue 5 years ago • 1 comments

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

ainthek avatar Jul 10 '18 13:07 ainthek

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

gkz avatar Jul 11 '18 00:07 gkz