Example #1
0
 public LinkedTreeNode(LinkedTreeNode root, string nonTerminal, List <char> matched, SourceData sourceData)
 {
     _root        = root == null ? this : root;
     _nonTerminal = nonTerminal;
     _matched     = matched;
     _sourceData  = sourceData;
     _children    = new List <LinkedTreeNode>(); // TODO Ambiguity problem
 }
Example #2
0
 public LinkedTreeNode(string nonTerminal, SourceData sourceData) : this(null, nonTerminal, new List <char>(), sourceData)
 {
 }