예제 #1
0
 public override void ComputeLastPos(RegexpBuilder bld)
 {
     Left.ComputeLastPos(bld);
     Right.ComputeLastPos(bld);
     LastPos = (BitArray)Left.FirstPos.Clone();
     LastPos.Or(Right.LastPos);
 }
예제 #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);
     }
 }