public override void PrintTree() { Console.WriteLine(""); Console.WriteLine(String.Format("Statement [ {0} ]", Name)); Console.Write("[ return ]"); Console.WriteLine(" \\||/"); ExTree.PrintTree(this.tree); }
public override void PrintTree() { Console.WriteLine(""); Console.WriteLine(String.Format("Statement ' {0} '", Name)); Console.Write("[ = ]"); Console.WriteLine("--left son: [ " + IdName + " ]"); Console.WriteLine(" |"); ExTree.PrintTree(this.tree); }
public override void PrintTree() { Console.WriteLine(""); Console.WriteLine(String.Format("Statement [ {0} ]", Name)); Console.WriteLine("left son: { condition }--left son [null]"); Console.WriteLine(" |"); ExTree.PrintTree(this.tree); Console.WriteLine(" . . . "); Console.WriteLine("right son: { body }"); Console.WriteLine(" \\||/"); action.PrintTree(); }
public override void PrintTree() { Console.WriteLine(""); Console.WriteLine(String.Format("Statement ' {0} '", Name)); ExTree.PrintTree(this.tree); }
public void SetTree(Expression tree) { this.tree = ExTree.BuildTree(tree); }