public static bool TryLoad(string line) { if (!(line.Substring(0, 8) == "getinput")) { return(false); } GetInputInstruction.Load(line); return(true); }
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); }