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

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Sun Jun 18 21:23:04 BST 2023


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

--- Comment #171 from Jacob Lifshay <programmerjake at gmail.com> ---
(In reply to Dmitry Selyutin from comment #170)

i'm imagining that visiting {("a", 1): 3.4, 2: {5, 6}} would do the following
visitor calls, more or less:
with visitor.visit_dict(item={("a", 1): 3.4, 2: {5, 6}}, path=[]):
    with visitor.visit_dict_entry(item=dict_entry(("a", 1), 3.4), path=[("a",
1)]):
        with visitor.visit_tuple(item=("a", 1), path=[("a", 1), 0]):
            with visitor.visit_str(item="a", path=[("a", 1), 0, 0]):
                pass
            with visitor.visit_str(item=1, path=[("a", 1), 0, 1]):
                pass
        with visitor.visit_float(item=3.4, path=[("a", 1), 1]):
            pass
    with visitor.visit_dict_entry(item=dict_entry(2, {5, 6}), path=[2]):
        with visitor.visit_int(item=2, path=[2, 0]):
            pass
        with visitor.visit_set(item={5, 6}, path=[2, 1]):
            with visitor.visit_int(item=5, path=[2, 1, 5]):
                pass
            with visitor.visit_int(item=6, path=[2, 1, 6]):
                pass

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


More information about the libre-soc-bugs mailing list