public State GetNfa(RulePath path, GetNfaParams param) { if (rules.ContainsKey(name) == false) throw new Exception(string.Format(@"@RuleLinkExpression: |{0}| rule not found", name)); var newPath = path + name; return param.OnMarkRule(rules[name].GetNfa(newPath, param), newPath); }
public State GetNfa(RulePath path, GetNfaParams param) { if (rules.ContainsKey(name) == false) { throw new Exception(string.Format(@"@RuleLinkExpression: |{0}| rule not found", name)); } var newPath = path + name; return(param.OnMarkRule(rules[name].GetNfa(newPath, param), newPath)); }
public State GetNfa(RulePath path, GetNfaParams param) { return param.OnMarkRule(Thompson.Create(chars), path + chars); }
public State GetNfa(RulePath path, GetNfaParams param) { return(param.OnMarkRule(Thompson.Create(chars), path + chars)); }