Beispiel #1
0
 public override void ComputeLastPos(RegexpBuilder bld)
 {
     Left.ComputeLastPos(bld);
     Right.ComputeLastPos(bld);
     LastPos = (BitArray)Left.FirstPos.Clone();
     LastPos.Or(Right.LastPos);
 }
Beispiel #2
0
 public override void ComputeLastPos(RegexpBuilder bld)
 {
     Left.ComputeLastPos(bld);
     Right.ComputeLastPos(bld);
     LastPos = (BitArray)Right.LastPos.Clone();
     if (Right.Nullable)
     {
         LastPos.Or(Left.LastPos);
     }
 }