[Libre-soc-bugs] [Bug 1094] insndb instruction database visitor-walker is needed

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Wed Jun 7 01:54:34 BST 2023


https://bugs.libre-soc.org/show_bug.cgi?id=1094

--- Comment #48 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
found another one that looks extremely nice
https://github.com/realistschuckle/pyvisitor

except that on close investigation it again relies on
visitors having the "control" over the recursion/nesting-depth
by forcing the visitor class-instance to call an "accept"
method on child-objects... which i don't think is a good idea.

however overriding __call__ i think has a lot of potential
https://github.com/realistschuckle/pyvisitor/blob/master/src/visitor.py

notice again how brutally-short that code is.  and how it
does *not* "import typing" or "import types". that's really
important!

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list