bradengroom/scala-automata-library

implement getCommonPrefix()

Closed this issue · 1 comments

This method will return a string that is the common prefix of all words accepted by the automaton.

The common prefix of (a+a*) would be "a" because this automaton will accept any number of a's greater than 0.

(a|b) however would have a common prefix of "" (empty string).

No longer going to be implemented