def p_dotlist(p):
    """dotlist : "." ID "=" expression
               | dotlist "," "." ID "=" expression """
    if len(p) <= 5:
        p[0] = [[p[2], p[4]]]
    else:
        p[0] = p[1] + [[p[4], p[6]]]
