-20kb smaller code size than acorn minified and 60 kb smaller than Esprima
- twice as fast as both acorn and Esprima except for JSX parsing. Here is Cherow 3x faster than Acorn.
- full support for Stage 3 proposals
- jsx through option
- Modular
And more...
Why another parser? Simply because existing parsers have many issues with them:
- Acorn is the most commonly used tool out there because of its support for recent ES standards, but it's slow and it often is too permissive in what it accepts. It's also not optimized for handheld devices.
- Esprima is a little faster than Acorn, but it's almost never updated, and their test suite has too many invalid tests. It also doesn't support recent ES standards.
- Babylon is highly coupled to Babel, and is comparatively very slow and buggy, and failing to correctly handle even stable ECMAScript standard features.
None of these parsers would fare any chance against the official Test262 suite, and most fail a substantial number of them.
Cherow v. 1.4 is not perfect, but address most of this issues. Still there are room for improvements.
1 main dev and 2 other devs behind Cherow sharing same nick.
All issues will be solved within 1 hour from the moment we get notified.
You don't have to wait couple of days or 3 years before your issue is fixed.
URL: https://github.com/cherow/cherow