Microsoft.Automata.Rex.RexEngine.CreateFromRegexes C# (CSharp) Méthode

CreateFromRegexes() public méthode

Create a product of the automata of the given regexes.
public CreateFromRegexes ( RegexOptions options ) : Automaton
options RegexOptions
Résultat Automaton
        public Automaton<BDD> CreateFromRegexes(RegexOptions options, params string[] regexes)
        {
            Automaton<BDD> sfa = null;
            foreach (var regex in regexes)
            {
                var sfa1 = converter.Convert(regex, options);
                sfa = (sfa == null ? sfa1 : Automaton<BDD>.MkProduct(sfa, sfa1));
                if (sfa.IsEmpty)
                    break;
            }
            return sfa;
        }

Same methods

RexEngine::CreateFromRegexes ( ) : Automaton