public VariableCalcurator GetInstance(IDictionary <string, VariableCalcurator> variables = null) { if (variables == null) { variables = defaultVariables; } if (DataType == DataType.Identifier) { return(variables[paramString].GetInstance(variables)); } else if (DataType == DataType.Array) { return(arrayInstance[indexVar.Literal()].GetInstance(variables)); } else { return(this); } }
protected VariableCalcurator GetArray(VariableCalcurator index) { return(arrayInstance[index.Literal()]); }