RunDevelopment / refa

A library for finite automata and regular expressions in the context of JS RegExp
MIT License
21 stars 3 forks source link

The FA `fromWords` methods should also support word sets #39

Closed RunDevelopment closed 3 years ago

RunDevelopment commented 3 years ago

The new signature should be fromWords(words: Iterable<ReadonlyWord | ReadonlyWordSet>, ...).

If possible, implement this using an FABuilder<T, CharSet>, so the same algorithm can be used for all FA implementations.