|
|
|
|
|
by sklogic
3934 days ago
|
|
And yet, the best place to add your pretty-printing and indentation hints is parser. Hints are attached to the grammar, so it makes sense to merge the two things, and then generate two different tools out of the single source. Three, actually - an AST pretty-printer, a textual code formatter and, finally, a parser itself. |
|
[1] https://github.com/estree/estree/issues/41