System.Xml.Schema.SyntaxTreeNode.ConstructPos C# (CSharp) Méthode

ConstructPos() public abstract méthode

From a regular expression to a DFA Compilers by Aho, Sethi, Ullman. ISBN 0-201-10088-6, p135 Construct firstpos, lastpos and calculate followpos
public abstract ConstructPos ( BitSet firstpos, BitSet lastpos, BitSet followpos ) : void
firstpos BitSet
lastpos BitSet
followpos BitSet
Résultat void
        public abstract void ConstructPos(BitSet firstpos, BitSet lastpos, BitSet[] followpos);

Usage Example

 private static void ConstructChildPos(SyntaxTreeNode child, BitSet firstpos, BitSet lastpos, BitSet[] followpos) {
     BitSet firstPosTemp = new BitSet(firstpos.Count);
     BitSet lastPosTemp = new BitSet(lastpos.Count);
     child.ConstructPos(firstPosTemp, lastPosTemp, followpos);
     firstpos.Or(firstPosTemp);
     lastpos.Or(lastPosTemp);
 }