Пример #1
0
 public QoDebugMessage(QoState state, string msg, int pos, char chr)
 {
     State = state;
     Message = msg;
     Position = pos;
     Char = chr;
 }
Пример #2
0
 /// <summary>
 /// Set the current state of the interpreter.
 /// </summary>
 /// <param name="state">State.</param>
 public void SetState(QoState state)
 {
     mem = state.MemoryImage;
     memptr = state.CellPointer;
     stack = new Stack<int> (state.GetReversedStackTape ());
     output = new StringBuilder (state.Output);
     errors = new List<QoDebugMessage> (state.Errors);
     functions = new List<QoFunction> (state.Functions);
     input = state.Input;
     inputpos = state.InputPointer;
 }