Exemplo n.º 1
0
 public static bool TryLoad(string line)
 {
     if (!(line.Substring(0, 8) == "getinput"))
     {
         return(false);
     }
     GetInputInstruction.Load(line);
     return(true);
 }
Exemplo n.º 2
0
        public static IInstruction Load(string line)
        {
            GetInputInstruction inputInstruction = new GetInputInstruction("");
            List <string>       list             = new List <string>();

            Program.ToWords(line, 'ﻃ', (ICollection <string>)list);
            inputInstruction.Variable_Name = list[1].Replace("\\n", "\n");
            return((IInstruction)inputInstruction);
        }