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