(self, node, results=None)
return BasePattern.match(self, node, results)
Override match() to insist on a leaf node.
Override match() to insist on a leaf node.
Override match () to insist on a leaf node .
def match(self, node, results=None):
        """Override match() to insist on a leaf node."""
        if not isinstance(node, Leaf):
            return False
        return BasePattern.match(self, node, results)
def match ( self , node , results = None ) : if not isinstance ( node , Leaf ) : return False return BasePattern . match ( self , node , results )