unifiedjs / handbook

Archived: see https://unifiedjs.com for current docs, guides, articles.
https://unifiedjs.com
MIT License
83 stars 1 forks source link

Build an interactive component for illustrating tree traversal #3

Closed johno closed 2 months ago

johno commented 5 years ago

Tree traversal is a complex topic that we should explain visually. Ideally we could render a tree structure and light up active visits to illustrate depth-first/breadth-first searches and their different variants.

We can also use this to show the mdast and how unist-util-visit works.

wooorm commented 5 years ago

Oh that’s a good idea! ⚡️

swyxio commented 5 years ago

i've never been a fan of how babel basically allows unrestricted traversal (so that babel plugin order both does and doesn't matter , but basically you get weird conflicts just bc of how they visit nodes)... i dont have much other AST traversal experience but maybe addressing some advice on good practices here would be nice

wooorm commented 2 months ago

Closing as the repo will be archived; while not interactive, there’s some more info on traversal on the unified site: https://unifiedjs.com/learn/