Exemplo n.º 1
0
        public void Print(string message, CommandState?state = null)
        {
            var messages = OutputStack.Peek();
            var process  = state ?? State;

            message = message.Capitalize();

            switch (process)
            {
            case CommandState.Before:
                messages.BeforeOutput.Add(IsMulti ? $"{Noun.Name}: {message}" : message);
                break;

            case CommandState.During:
                messages.DuringOutput.Add(IsMulti ? $"{Noun.Name}: {message}" : message);
                break;

            case CommandState.After:
                messages.DuringOutput.Clear();
                messages.AfterOutput.Add(message);
                break;
            }
        }
Exemplo n.º 2
0
 void PrintLog(int Rule)
 {
     OutputStack.Push(WorkStack.Pop());
     Log += '\n' + "M (" + OutputStack.Peek() + "," + input[Counter] + ") = " + Convert.ToString(Rule);
 }
Exemplo n.º 3
0
 void PrintLog(int Rule)
 {
     OutputStack.Push(WorkStack.Pop());
     Log += "M (" + OutputStack.Peek() + " , " + buffer.Token + ") = " + Convert.ToString(Rule) + "\n";
 }