/// <summary> /// Create a well-formed (that is, *complete*) /// map from a GPLEX.Parser.Partition. /// </summary> /// <param name="part">The Partition to use</param> internal CharClassMap(Parser.Partition part) { foreach (Parser.PartitionElement pElem in part.elements) { foreach (Parser.CharRange range in pElem.list.Ranges) { count++; TreeNode node = new TreeNode(range.minChr, range.maxChr, pElem.ord); if (root == null) { root = node; } else { root.InsertNewNode(node); } } } }
internal Accumulator(Partition part) { this.partition = part; }