public void AddAllChildren(LinkedList <string> children, LinkedList <string> terminals, BNFFileManager manager) { foreach (string child in children) { string definition = manager.GetDefinitionIfTerminal(child); descendants.AddLast(new Node(child, definition, this)); } DescendantCount = children.Count; }
public Tree(string bnfFile, string outputFile) { root = null; manager = new BNFFileManager(bnfFile); this.outputFile = outputFile; }