Hacker News new | ask | show | jobs
by cyocum 902 days ago
Reading this, I am increasing my belief that this is very, if not exactly, like XSLT. You are searching a tree looking for parents, siblings, children, etc nodes then analysing or transforming them.
1 comments

Visiting and transforming trees is indeed a well trodden pattern. Here’s another kind of tree walking which I’ve enjoyed working with, this year:

https://libcst.readthedocs.io/en/latest/tutorial.html#Build-...

It is a little less pure than the functional XSLT, and also a lot more practical.