def p_arregloD(p):
    """arregloD : '[' arregloE ']' ',' arregloD
                | '[' arregloE ']'
    """
    if len(p) > 4:
        if p[5][1] != p[2]:
            raise TypeError('Arrays in matrix must be of same size')
        p[0] = p[5][0] + 1, p[2]
    else:
        p[0] = 1, p[2]
