Beispiel #1
0
        public override void Write(StringBuilder strb, int depth)
        {
            strb.Space(depth);
            if (Parameter.Count == 0)
            {
                strb.Append("<Invalid empty command>");
            }
            else
            {
                ASTValue comName = Parameter[0] as ASTValue;
                if (comName == null)
                    strb.Append("<Invalid command name>");
                else
                    strb.Append("!").Append(comName.Value);

                for (int i = 1; i < Parameter.Count; i++)
                {
                    strb.AppendLine();
                    Parameter[i].Write(strb, depth + 1);
                }
            }
        }
Beispiel #2
0
	public override void Write(StringBuilder strb, int depth) => strb.Space(depth).Append(Value);