'Add a new stream filter to this lexer.'

def add_filter(self, filter_, **options):

    if (not isinstance(filter_, Filter)):
        filter_ = get_filter_by_name(filter_, **options)
    self.filters.append(filter_)
