*** empty log message ***
[m17n/m17n-lib-cs.git] / xex.cs
1 using System;
2 using System.Collections.Generic;
3 using System.IO;
4 using System.Xml;
5 using Xex = System.Xml.Xexpression;
6
7 public class Test
8 {
9   public static void Main(params string[] args)
10   {
11     Xex.TraceDepth = 10;
12     Xex.Domain domain = new Xex.Domain ("test", null);
13     Xex.Term[] terms = Xex.Parse (domain, "xex.xml");
14
15     if (args.Length >= 2 && args[0] == "-d")
16       Xex.TraceDepth = int.Parse (args[1]);
17     foreach (Xex.Term term in terms)
18       Console.WriteLine (term);
19     Console.WriteLine (Xex.Eval (domain, terms));
20   }
21 }