void analyArgLanmbda(AnalyExpContext context)
        {
            var          totype       = LeftToExp.RetType;
            NewLambdaExp newLambdaExp = new NewLambdaExp(RightValueExp, RightValueExp, totype);

            RightValueExp = newLambdaExp;
            newLambdaExp.Analy(context);
        }
Exemple #2
0
 void analyArgLanmbda(AnalyExpContext context)
 {
     for (int i = 0; i < ExpProcDesc.ArgCount; i++)
     {
         TKTProcArg procArg = searchedProcDesc.GetArg(i);
         if (procArg.ArgType == TKTLambda.ActionType || procArg.ArgType == TKTLambda.CondtionType)
         {
             TKTProcArg   expArg       = ExpProcDesc.GetArg(i);
             Exp          exp          = expArg.Value as Exp;
             NewLambdaExp newLambdaExp = new NewLambdaExp(this, exp, procArg.ArgType);
             expArg.Value = newLambdaExp;
             newLambdaExp.Analy(context);
         }
     }
 }