public override void VisitMatScalAddElement(MatScalAdd element)
 {
     VisitElement(element.getLhs());
     VisitElement(element.getRhs());
 }
 public override void VisitMatScalAddElement(MatScalAdd element)
 {
     VisitElement(element.getRhs());
     string var = element.getLhs().getText();
     int varval = (int)mVariableMap[var];
     Console.WriteLine("variable on matscaladd:{0}",var);
     resultMessage += string.Format("variable on matscaladd:{0}", var)+"\n";
     Console.WriteLine("Value of it is:{0}",varval);
     resultMessage += string.Format("Value of it is:{0}", varval)+"\n";
     scalar = var;
 }