コード例 #1
0
        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);
            }
        }
コード例 #2
0
 protected VariableCalcurator GetArray(VariableCalcurator index)
 {
     return(arrayInstance[index.Literal()]);
 }