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