Parses a given string and creates a list of SyncPoints.

def parse(s, subs):
    """Parses a given string and creates a list of SyncPoints."""
    if len(subs) == 0:
        return []

    points = []
    requests = _tokenize_request(s)

    if len(requests) == 1 and requests[0].type_ == _Request.Type.OFFSET:
        return _offset_subtitles(requests[0], subs)
    return _sync_subtitles(requests, subs)