code: def generate_matches(self, nodes):
          
          r = {}
          if nodes and self.match(nodes[0], r):
              yield 1, r
docs: Generator yielding all matches for this pattern.
  
          Default implementation for non-wildcard patterns.