Пример #1
0
 public override object EXECUTE(params object[] po)
 {
     if (_print)
     {
         return(MiMFa_IOService.FileToString(MCL.Address.Constructor));
     }
     else if (_delete && _all)
     {
         MiMFa_IOService.ClearFileContent(MCL.Address.Constructor);
     }
     else if (po != null && po.Length > 0)
     {
         string cmd = MCL.CrudeText(Normalization(po[0].ToString()).Replace("  ", " ")) + ";";
         if (_delete)
         {
             MiMFa_IOService.StringRemoveFromFile(MCL.Address.Constructor, cmd + ";");
         }
         else
         {
             MiMFa_IOService.StringNewLineAppendFile(MCL.Address.Constructor, cmd);
             MCL.Parse(cmd);
         }
     }
     return(Null);
 }
Пример #2
0
        public override object EXECUTE(params object[] po)
        {
            if (po == null || po.Length == 0)
            {
                return(Null);
            }
            string str = po[0].ToString();

            str = MCL.CrudeText(str);
            return(print(str.Split(',')));
        }
Пример #3
0
        public override object EXECUTE(params object[] po)
        {
            string[] sa = MiMFa_StringService.FirstFindAndSplit(MCL.CrudeText(po[0].ToString()).Trim(), MCLTools.SignPointer);

            string expr = sa.First().Trim().ToLower();

            expr = MCL.DownLayer(expr);
            expr = expr.Replace(MiMFa_CommandLanguage.StartSignStrongString, "").Replace(MiMFa_CommandLanguage.EndSignStrongString, "")
                   .Replace(MiMFa_CommandLanguage.StartSignString, "").Replace(MiMFa_CommandLanguage.EndSignString, "");
            string un = MCL.CrudeText(expr);

            expr = sa.Last().Trim().ToLower();
            expr = MCL.DownLayer(expr);
            expr = expr.Replace(MiMFa_CommandLanguage.StartSignStrongString, "").Replace(MiMFa_CommandLanguage.EndSignStrongString, "")
                   .Replace(MiMFa_CommandLanguage.StartSignString, "").Replace(MiMFa_CommandLanguage.EndSignString, "");
            string cmd = MCL.CrudeText(expr);

            MCL.PutsDic.AddOrSet(un, cmd);
            return(Null);
        }
Пример #4
0
 public override object EXECUTE(params object[] po)
 {
     if (po != null && po.Length > 0)
     {
         string name = po[0].ToString();
         name = MCLTools.ParenthesisPU.Parse(name);
         string[] stra = MiMFa_StringService.FirstFindAndSplit(name, MCLTools.StartSignParenthesis);
         Function fu   = new Function();
         fu.Name   = stra[0];
         fu.Access = MCL.EnvironmentAccess;
         stra      = MiMFa_StringService.FirstFindAndSplit(stra[1], MCLTools.EndSignParenthesis);
         fu.Inputs = MiMFa_CollectionService.ExecuteInAllItems(stra[0].Split(MCLTools.SplitSign), (os) => MCL.CrudeText(os).Trim());
         if (fu.Inputs.Length == 1 && string.IsNullOrEmpty(fu.Inputs[0]))
         {
             fu.Inputs = new string[] { }
         }
         ;
         fu.Commands = MCL.CrudeText(stra[1]).Trim();
         MiMFa_CommandLanguage.FunctionsList.Add(fu);
         return(fu);
     }
     return(Null);
 }
Пример #5
0
 public override object EXECUTE(params object[] po)
 {
     if (po != null && po.Length > 0)
     {
         var sa = MiMFa_StringService.FirstFindAndSplit(po[0].ToString(), ",");
         if (_open || o)
         {
             return(MCL.Compile(MiMFa_IOService.FileToString(PATH.getpath(MCL.Compile(sa[0])))));
         }
         else if (_save || s || sa.Length == 2)
         {
             MiMFa_IOService.StringToFile(MCL.Parse(PATH.getpath(sa[0] + extention)), MCL.CrudeText(sa[1]));
         }
     }
     return(Null);
 }