*** empty log message ***
[m17n/m17n-lib-cs.git] / expr.cs
diff --git a/expr.cs b/expr.cs
index 1d4af26..e527b92 100644 (file)
--- a/expr.cs
+++ b/expr.cs
@@ -1,5 +1,5 @@
 using System;
-using System.Collections.Generic;
+using System.IO;
 using M17N;
 using M17N.Core;
 
@@ -7,5 +7,15 @@ public class Test
 {
   public static void Main()
   {
+    MExpression expr = new MExpression ();
+
+    using (FileStream stream = new FileStream ("eval.txt", FileMode.Open))
+      {
+       MPlist plist = new MPlist (stream);
+
+       foreach (MPlist p in plist)
+         expr.Add (p);
+      }
+    Console.WriteLine (expr+"="+expr.Eval (null));
   }
 }