예제 #1
0
        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);
        }
예제 #2
0
 public void Run(InterpreterStorage storage)
 {
     InterpreterUtils.SaveValue(storage, storage.stack.Pop());
 }