示例#1
0
 static void Main(string[] args)
 {
     Tree tree = new Tree();
     tree.Parse("(*(+12)(-25))");
     tree.Print();
     System.Console.WriteLine("\n{0}", tree.Calculate());
 }
示例#2
0
 public void Initialize()
 {
     tree = new Tree();
 }