public override void Execute(Stack <Data_type> execution_stack, ref int cursor_pos, TextWriter text_output, TextReader text_input) { int new_val = execution_stack.Pop().Get_int_val(); Data_type left = execution_stack.Pop(); left.Set_int_value(new_val); }
public override void Execute(Stack <Data_type> execution_stack, ref int cursor_pos, TextWriter text_output, TextReader text_input) { int index = execution_stack.Pop().Get_int_val(); Data_type variable = execution_stack.Pop().Get_data_type_at_index(index); execution_stack.Push(variable); }
public override void Execute(Stack <Data_type> execution_stack, ref int cursor_pos, TextWriter text_output, TextReader text_input) { Data_type var = execution_stack.Pop(); int new_val = int.Parse(text_input.ReadLine()); if (new_val == null) { throw new Our_runtime_exception("Введено не целое число"); } var.Set_int_value(new_val); }
public override void Execute(Stack <Data_type> execution_stack, ref int cursor_pos, TextWriter text_output, TextReader text_input) { Data_type var = execution_stack.Pop(); text_output.Write("{0}\r\n", var.Get_int_val()); }
public Put_data_type_to_stack(Data_type data_type_val) { Data_type_val = data_type_val; }