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));
}
}