Re:Fast ECMAScript Parser – Alternative to Acorn / Esprima
by z3t4 on Tuesday September 26, 2017 @07:40AM
(#15337777)
How do they compare in extensibility ?
Re:Fast ECMAScript Parser – Alternative to Acorn / Esprima
by bd82 on Tuesday September 26, 2017 @09:03AM
(#15338215)
Acorn has a plugin system:
https://github.com/ternjs/acorn#plugins
But as far as I know Esprima does not: https://github.com/jquery/esprima/issues/1168
I have no idea about Cherow...
But please consider that performance is not the only factor when building parsers.
Extensibility is a major concern. Afaik Babylon (used in babel) is a fork of Acorn partly driven by the need for greater extensibility. https://github.com/babel/babylon
Another example is espree used in ESLint https://github.com/eslint/espree According to their readme.md espree was based on Esprima and is now using Acorn. Specifically for extensibility reasons. https://github.com/eslint/espree/issues/200