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

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Sat Jun 10 15:34:42 BST 2023


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

--- Comment #101 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to Dmitry Selyutin from comment #99)
> I'll come up with the patch to inline methods later. Note that the methods
> will need to have different names; the following won't work:
> 
> class StubVisitor(Visitor):
>     @visitormethod(str)
>     def __call__(self, node): ...
>     @visitormethod(int)
>     def __call__(self, node): ...

assert not in dict already (overwrite not permitted).

> The names can be whatever you like, they just need to be distinct.

yeah totally got it. love it.

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


More information about the libre-soc-bugs mailing list