*** empty log message ***
[m17n/m17n-lib-cs.git] / M17N.cs
diff --git a/M17N.cs b/M17N.cs
index 3663570..2e13847 100644 (file)
--- a/M17N.cs
+++ b/M17N.cs
@@ -1,27 +1,25 @@
 using System;
-using M17N.Core;
 
-public class Test
+namespace M17N
 {
-  public static void Main()
+  public class M17N
   {
-    MSymbol sym1, sym2;
+    public static readonly int MajorVersion = 0;
+    public static readonly int MinorVersion = 0;
+    public static readonly int ReleaseNumber = 0;
 
-    sym1 = new MSymbol ("abc");
-    Console.WriteLine (sym1.ToString ());
-    sym2 = new MSymbol ("abc");
-    Console.WriteLine (sym2.ToString ());
-    Console.WriteLine (sym1 == sym2 ? "OK" : "NO");
-    sym1.put (MSymbol.nil, MSymbol.t);
+    public static bool debug = false;
 
-    MPlist p = new MPlist ();
+    public static void DebugPrint (string fmt, object arg)
+    {
+      if (debug)
+       Console.Write (fmt, arg);
+    }
 
-    p.put (MSymbol.t, sym1);
-    p.push (MSymbol.t, sym2);
-
-    MPlist pp = new MPlist ();
-    pp.put (MSymbol.t, p);
-    Console.WriteLine (pp.ToString ());
-    Console.WriteLine (p.get (MSymbol.t));
+    public static void DebugPrint (string fmt, object arg1, object arg2)
+    {
+      if (debug)
+       Console.Write (fmt, arg1, arg2);
+    }
   }
 }