3 ms·
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 node
by cyocum 3y 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.
- heads 3y agoVisiting 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-Visitor-or-Transformer 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.