using System;
-using M17N.Core;
-public class Test
+namespace M17N
{
- static void symbol_test ()
+ public class M17N
{
- MSymbol sym1, sym2;
-
- Console.WriteLine ("### Symbol test ###");
- 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);
-
- MPlist p = new MPlist ();
-
- 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));
- }
-
- static void mtext_test ()
- {
- MText mt;
-
- Console.WriteLine ("### MText test ###");
- mt = new MText ("abc");
- Console.WriteLine (mt);
- Console.WriteLine (mt + new MText ("def"));
- Console.WriteLine (mt);
+ public static readonly int MajorVersion = 0;
+ public static readonly int MinorVersion = 0;
+ public static readonly int ReleaseNumber = 0;
+
+ public static bool debug = false;
+
+ public static void DebugPrint (string fmt, object arg)
+ {
+ if (debug)
+ Console.Write (fmt, arg);
+ }
+
+ public static void DebugPrint (string fmt, object arg1, object arg2)
+ {
+ if (debug)
+ Console.Write (fmt, arg1, arg2);
+ }
}
-
- static void mtext_property_test ()
- {
- Console.WriteLine ("### MTextProperty test ###");
- }
-
- public static void Main()
- {
- symbol_test ();
- mtext_test ();
- mtext_property_test ();
- }
-
}