code: def match(self, tokens, item):
          
          for flag, get_handler in self.matchers.items():
              if flag in tokens:
                  return get_handler(self)(tokens, item)
          raise CoconutInternalException("invalid pattern-matching tokens", tokens)
docs: Performs pattern-matching processing.