-
-
Notifications
You must be signed in to change notification settings - Fork 0
Document syntax trees #7
Comments
/CC @ChristianMurphy |
I would definitely like to see a more introductory guide to syntax trees that isn't a technical specification or glossary. In terms of it's form/design, I'm not sure a book like Babel is the right choice here. It scares me that it takes a book to understand babel while not all parts are may be relevant to what brought me there. On one hand it's nice to have a continuously evolving single-source of truth that encapsulates not just syntax trees, but also their context in the ecosystem. On the other hand interlinked single-purpose guides might be easier to consume. Personally, I've always preferred highly specific (and therefor short) articles and the like. The question for me though it whether syntax trees is still too big for a single guide/readme? Can it be split up? Introduction vs. working with them? |
I completely agree.
There are a lot of resources on syntax trees, the subject area is pretty large.
I think we may be able to
This sounds like a blog. |
Valid concern, I'd say some of the jargon and precise technicalities are beyond the scope here.
Exactly.
Coincidentally, this is what @wooorm and I have been talking about on what I should focus on. I'm currently thinking most about centralizing docs and guides on https://unified.js.org V2, which includes writing about syntax trees. As this is beyond the scope of just documenting syntax trees, I've created a new issue (does relate to #7): unifiedjs/unifiedjs.github.io#7 |
Thanks for starting the discussion @wooorm ! |
When working with trees, there are several tasks that occur a lot. And there’s jargon for those tasks. Explaining jargon in of course needed. Having those explanations in one place makes it easier to update, an gives a good introduction to syntax trees/unist for newcomers.
Using jargon is nice for utilities and others tools so they don’t have to explain everything all the time.
Current efforts
One effort to do that is the Glossary and Tree traversal appendices of unist.
As raised in syntax-tree/unist#25, the appendices are growing and it may be time to move them somewhere else.
Design
The form this takes could be either more technical, or more beginner friendly. In the latter case, it could be a bit like the introduction of the babel handbook.
It could be a readme file. Or it could be a guide on unified.js.org. Or it could be a GitBook / Docusaurus project.
Additional resources
The text was updated successfully, but these errors were encountered: