You need to break down your expressions to something like this:
rows: DOUBLE | rows ',' DOUBLE
columns: rows | rows ';' rows
matrix: IDENTIFIER '.' '{' IDENTIFIER '}' '=' '[' columns ']'
Now you can have a vector<double> for your rows. A vector<
vector<double> > for your columns, and save the result in
your matrix.
Of course, when you get a columns in your matrix, you shoul