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