def alloc_range(pool: list, start: int, end: int, delimiter: int) ->list:
    """Allocates new token range from pool"""
    if pool:
        rng = pool.pop()
        rng[0] = start
        rng[1] = end
        rng[2] = delimiter
        return rng
    return [start, end, delimiter]
