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