X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=xex.cs;h=a6190f24607d2b1782843c373b85135215f96577;hb=2d42f6c7d4ea06fec44c84d25097be67a0664318;hp=30b0c8a7160ad3e45eec810af1c0831beb52d967;hpb=1704d070aeebba69ffaa116451f5028adffb3095;p=m17n%2Fm17n-lib-cs.git diff --git a/xex.cs b/xex.cs index 30b0c8a..a6190f2 100644 --- a/xex.cs +++ b/xex.cs @@ -2,16 +2,18 @@ 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) { Xex.Domain domain = new Xex.Domain (null); - Xex xex = Xex.New ("xex.xml", domain); + Xex xex = new Xex (domain, "xex.xml"); - Xex.Debug = true; + if (args.Length >= 2 && args[0] == "-d") + Xex.debug_level = int.Parse (args[1]); + Console.WriteLine (xex); Console.WriteLine (xex.Eval (domain)); } }