using System.Collections.Generic;
using System.IO;
using System.Xml;
-using System.Xml.Expression;
+using Xex = System.Xml.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.DebugDepth = 10;
+ Xex.Domain domain = new Xex.Domain ("test", null);
+ Xex xex = new Xex (domain, "xex.xml");
- Xexpression.debug_level = 10;
+ if (args.Length >= 2 && args[0] == "-d")
+ Xex.DebugDepth = int.Parse (args[1]);
Console.WriteLine (xex);
Console.WriteLine (xex.Eval (domain));
}