Open xjamundx opened 8 years ago
ESTree is the standard Acorn and Esprima use. It has no notion of tokens. We had some discussions around a CST that didn't really go all that far.
@mikesherov was jscs using esprima directly the whole time?
Until 3.0. But a CST
module was created that intelligently combined the tree with the tokens for easy manipulation, whitespace changes.
This is helpful. Describes the differences between babylon
and estree
:
https://github.com/babel/babylon#output
I plan to write something for #5, I think that should help normalizing the understanding.
I found this quote from nicholas zakas pretty interesting about why eslint couldn't use acorn directly: https://github.com/eslint/espree#frequently-asked-questions
This repo should try to highlight clearly what differences exist between the various parsers, most of all of which share the same AST structure and basic API.