using System; using System.Collections.Generic; using System.Linq; using System.Text; using agree; class tester { static void Main(string[] args) { Config config = new Config(); config.parser.packing = Config.Parser.PackingOpts.Full; config.system.MultiThreading = false; Grammar g = new SysCommands.CmdTokLoadGrammar(SysObj.Instance, @"grammars\erg\erg", "erg", config).Task.Result; using (ParseControl ctrl = g.sub.Parse("The child has the flu.").Result) { Console.WriteLine(ctrl.chart.AllDerivations.Count); } } }