Пример #1
0
 static Fsa XIgnoreX(Fsa fsa, ISet <char> fsaAlphabet, ISet <char> symbols) =>
 fsa.Identity()
 .Compose(XintroX(fsaAlphabet, symbols))
 .Range();
Пример #2
0
 /* For a given automaton L and a set of symbols S, construct the automaton
 *   which recognizes all words from L with freely introduced symbols from S */
 static Fsa Ignore(Fsa fsa, ISet <char> fsaAlphabet, ISet <char> symbols) =>
 fsa.Identity()
 .Compose(Intro(fsaAlphabet, symbols))
 .Range();