Exemple #1
0
        public override PNode evaluate(PNode evaluateMe, PatternMatcher successfulMatch)
        {
            PatternMatcher match = successfulMatch;

            //	Extract the "arguments" from the PatternMatcher.
            List<PNode> M = match.Matching;			//	The pattern -> prose index from the match
            string dllFileName = ((StringLiteralObject) M[4].value).literal;
            ProseObject newAssemblyWord = M[6].value;
            LoadAssemblyAction action = new LoadAssemblyAction(dllFileName, newAssemblyWord);

            value = new ProseObject[3];
            value[0] = M[0].value;
            value[1] = action;
            value[2] = M[7].value;

            PNode ret = replaceWithValueAt(evaluateMe, successfulMatch);
            value = null;
            return ret;
        }
        public override PNode evaluate(PNode evaluateMe, PatternMatcher successfulMatch)
        {
            PatternMatcher match = successfulMatch;

            //	Extract the "arguments" from the PatternMatcher.
            List <PNode>       M               = match.Matching;        //	The pattern -> prose index from the match
            string             dllFileName     = ((StringLiteralObject)M[4].value).literal;
            ProseObject        newAssemblyWord = M[6].value;
            LoadAssemblyAction action          = new LoadAssemblyAction(dllFileName, newAssemblyWord);

            value    = new ProseObject[3];
            value[0] = M[0].value;
            value[1] = action;
            value[2] = M[7].value;

            PNode ret = replaceWithValueAt(evaluateMe, successfulMatch);

            value = null;
            return(ret);
        }