Beispiel #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()));
     }
 }
Beispiel #2
0
 public State GetNfa(RulePath path, GetNfaParams param)
 {
     return(param.OnMarkRule(Thompson.Create(chars), path + chars));
 }
Beispiel #3
0
 public State GetNfa(RulePath path)
 {
     return(OnMarkRule(Thompson.Create(chars), path + chars));
 }