Пример #1
0
 public InternalTreeNode(
     IInternalForestNode internalNode,
     IForestDisambiguationAlgorithm stateManager)
 {
     _disambiguationAlgorithm = stateManager;
     _internalNode            = internalNode;
     _children = new List <ITreeNode>();
     SetSymbol(_internalNode);
 }
Пример #2
0
 public InternalTreeNode(
     ISymbolForestNode internalNode,
     IForestDisambiguationAlgorithm stateManager)
 {
     this.disambiguationAlgorithm = stateManager;
     this.internalNode            = internalNode;
     this.children = null;
     SetSymbol(this.internalNode);
 }
Пример #3
0
 public InternalTreeNode(
     IInternalForestNode internalNode,
     IForestDisambiguationAlgorithm stateManager)
 {
     _disambiguationAlgorithm = stateManager;
     _internalNode = internalNode;
     _children = new ReadWriteList<ITreeNode>();
     SetSymbol(_internalNode);
 }
Пример #4
0
 protected DisambiguatingForestNodeVisitorBase(IForestDisambiguationAlgorithm forestDisambiguationAlgorithm)
 {
     ForestDisambiguationAlgorithm = forestDisambiguationAlgorithm;
 }
Пример #5
0
 public IInternalTreeNode GetParseTree(IForestDisambiguationAlgorithm disambiguate = null)
 {
     return(new InternalTreeNode(GetParseForestRootNode(), disambiguate ?? new SelectFirstChildDisambiguationAlgorithm()));
 }
Пример #6
0
 public LoggingNodeVisitor(IForestDisambiguationAlgorithm stateManager)
     : base(stateManager)
 {
     Init();
 }
Пример #7
0
 public LoggingNodeVisitor(IForestDisambiguationAlgorithm stateManager)
     : base(stateManager)
 {
     Init();
 }
 protected DisambiguatingForestNodeVisitorBase(IForestDisambiguationAlgorithm forestDisambiguationAlgorithm)
 {
     ForestDisambiguationAlgorithm = forestDisambiguationAlgorithm;
 }