Example #1
0
        public RPNFunction FindFunction(RPNExpr expr, string func)
        {
            int index = functionList.IndexOfKey(func);

            if (index > -1)
            {
                Assembly    assembly = Assembly.GetAssembly(functionList.Values[index]);
                RPNFunction rpnFunc  = assembly.CreateInstance(functionList.Values[index].FullName) as RPNFunction;
                rpnFunc.Owner      = expr;
                rpnFunc.ObjectType = RPNObjectType.Function;

                return(rpnFunc);
            }
            else
            {
                return(null);
            }
        }
Example #2
0
 public RPNVariable(RPNExpr owner, RPNObjectType objectType) : base(owner, objectType)
 {
 }
Example #3
0
 public RPNOperand(RPNExpr owner, RPNObjectType objectType) : base(owner, objectType)
 {
 }
Example #4
0
 public RPNDataField(RPNExpr owner, RPNObjectType objectType) : base(owner, objectType)
 {
 }
Example #5
0
 public RPNObject(RPNExpr owner, RPNObjectType objectType)
 {
     Owner      = owner;
     ObjectType = objectType;
 }