def parse_variable(line):
    """Parse a variable line from CDL"""
    line = line.replace('(', ' ')
    line = line.replace(')', ' ')
    line = line.replace(',', ' ')
    words = line.split()
    nctype = words[0]
    name = words[1]
    shape = tuple(words[2:])
    return name, nctype, shape