def parse_dimension(line):
    """Parse a dimension line from CDL"""
    line = line.replace('=', ' ')
    words = line.split()
    name = words[0]
    if words[1].upper() == "UNLIMITED":
        length = 0
        isUnlimited = True
    else:
        length = int(words[1])
        isUnlimited = False
    return name, length, isUnlimited