示例#1
0
 /// <summary>
 /// Write output as interpretation result
 /// </summary>
 /// <param name="w">writer</param>
 /// <param name="indentValue">space size</param>
 /// <param name="currentLine">in-progress line add</param>
 /// <param name="config">configuration</param>
 public new void Execute(TextWriter w, ref int indentValue, ref string currentLine, Configuration config)
 {
     foreach (string e in this.Datas)
     {
         if (e.StartsWith("[") && e.EndsWith("]"))
         {
             string r = e.Substring(1, e.Length - 2);
             r = config.Execute(r);
             (this.Variables[r] as AccuChild).Execute(w, ref indentValue, ref currentLine, config, this.CurrentDirectory);
         }
         else
         {
             string val = config.Execute(e);
             PrinterObject.IndentSource(w, indentValue, ref currentLine, val);
         }
     }
 }