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 }
public LinkedTreeNode(string nonTerminal, SourceData sourceData) : this(null, nonTerminal, new List <char>(), sourceData) { }