public InternalTreeNode( IInternalForestNode internalNode, IForestDisambiguationAlgorithm stateManager) { _disambiguationAlgorithm = stateManager; _internalNode = internalNode; _children = new List <ITreeNode>(); SetSymbol(_internalNode); }
public InternalTreeNode( ISymbolForestNode internalNode, IForestDisambiguationAlgorithm stateManager) { this.disambiguationAlgorithm = stateManager; this.internalNode = internalNode; this.children = null; SetSymbol(this.internalNode); }
public InternalTreeNode( IInternalForestNode internalNode, IForestDisambiguationAlgorithm stateManager) { _disambiguationAlgorithm = stateManager; _internalNode = internalNode; _children = new ReadWriteList<ITreeNode>(); SetSymbol(_internalNode); }
protected DisambiguatingForestNodeVisitorBase(IForestDisambiguationAlgorithm forestDisambiguationAlgorithm) { ForestDisambiguationAlgorithm = forestDisambiguationAlgorithm; }
public IInternalTreeNode GetParseTree(IForestDisambiguationAlgorithm disambiguate = null) { return(new InternalTreeNode(GetParseForestRootNode(), disambiguate ?? new SelectFirstChildDisambiguationAlgorithm())); }
public LoggingNodeVisitor(IForestDisambiguationAlgorithm stateManager) : base(stateManager) { Init(); }