public void Run(InterpreterStorage storage) { Console.Write("Enter int value: "); int input = 0; while (!int.TryParse(Console.ReadLine(), out input)) { Console.Write("Wrong value. Try again: "); } InterpreterUtils.SaveValue(storage, input); }
public void Run(InterpreterStorage storage) { InterpreterUtils.SaveValue(storage, storage.stack.Pop()); }