Extracting both rhs & lhs of a statement within braces. Number of dimensions info is also extracted