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