X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=xex.cs;fp=xex.cs;h=a6190f24607d2b1782843c373b85135215f96577;hb=31b2c4af4ae5abdd1d6aba6b17c1d088459aefee;hp=1ea49e0036bdf7568148dfe8675b7f81811b3bb7;hpb=62a15d3e7eca5370344e8d55c38c1e8943b371f7;p=m17n%2Fm17n-lib-cs.git diff --git a/xex.cs b/xex.cs index 1ea49e0..a6190f2 100644 --- a/xex.cs +++ b/xex.cs @@ -2,16 +2,17 @@ using System; using System.Collections.Generic; using System.IO; using System.Xml; -using System.Xml.Expression; +using Xex = System.Xml.Expression.Xexpression; public class Test { - public static void Main() + public static void Main(params string[] args) { - Xexpression.Domain domain = new Xexpression.Domain (null); - Xexpression xex = new Xexpression ("xex.xml", domain); + Xex.Domain domain = new Xex.Domain (null); + Xex xex = new Xex (domain, "xex.xml"); - Xexpression.debug_level = 10; + if (args.Length >= 2 && args[0] == "-d") + Xex.debug_level = int.Parse (args[1]); Console.WriteLine (xex); Console.WriteLine (xex.Eval (domain)); }