예제 #1
0
 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;
 }
예제 #2
0
 public Tree(string bnfFile, string outputFile)
 {
     root            = null;
     manager         = new BNFFileManager(bnfFile);
     this.outputFile = outputFile;
 }