acornIs the parser of JS, I also know
babel-parserIt’s also a JS parser, but what’s the difference between them?
@babel/parser(previously Babylon) from
acornFork comes out, but it’s basically rewritten, but some
acornThe algorithm is still popular.
There are still some differences between them:
- @Babel / parser does not support third-party plug-ins.
- Acorn only supports the proposal of the fourth stage (basically equivalent to writing the standard, but it’s just a matter of time. See here).
- The ast format is different, but you can start the estree plug-in of @ Babel / parser to match the ast format of acorn