*** empty log message ***
[m17n/m17n-lib-cs.git] / xex.cs
diff --git a/xex.cs b/xex.cs
index 741e4f2..e54178c 100644 (file)
--- a/xex.cs
+++ b/xex.cs
@@ -8,13 +8,14 @@ public class Test
 {
   public static void Main(params string[] args)
   {
-    Xex.DebugDepth = 10;
+    Xex.TraceDepth = 10;
     Xex.Domain domain = new Xex.Domain ("test", null);
-    Xex xex = new Xex (domain, "xex.xml");
+    Xex.Term[] terms = Xex.Parse (domain, "xex.xml");
 
     if (args.Length >= 2 && args[0] == "-d")
-      Xex.DebugDepth = int.Parse (args[1]);
-    Console.WriteLine (xex);
-    Console.WriteLine (xex.Eval (domain));
+      Xex.TraceDepth = int.Parse (args[1]);
+    foreach (Xex.Term term in terms)
+      Console.WriteLine (term);
+    Console.WriteLine (Xex.Eval (domain, terms));
   }
 }