예제 #1
0
 public State GetNfa(RulePath path)
 {
     if (hex1 != null)
     {
         if (hex2 == null)
         {
             return(Thompson.Create(hex1.Value));
         }
         else
         {
             return(Thompson.Create(hex1.Value, hex2.Value));
         }
     }
     else
     {
         return(Thompson.Create(hexs.ToArray()));
     }
 }
예제 #2
0
 public State GetNfa(RulePath path, GetNfaParams param)
 {
     return(param.OnMarkRule(Thompson.Create(chars), path + chars));
 }
예제 #3
0
 public State GetNfa(RulePath path)
 {
     return(OnMarkRule(Thompson.Create(chars), path + chars));
 }