multiterm

Expert: Return an IntervalsSource over the disjunction of all terms that are accepted by the given automaton

Parameters

ca

an automaton accepting matching terms

pattern

string representation of the given automaton, mostly used in exception messages

Throws

if the automaton accepts more than DEFAULT_MAX_EXPANSIONS terms


fun multiterm(ca: CompiledAutomaton, maxExpansions: Int, pattern: String): IntervalsSource

Expert: Return an IntervalsSource over the disjunction of all terms that are accepted by the given automaton

WARNING: Setting `maxExpansions` to higher than the default value of [DEFAULT_MAX_EXPANSIONS] can be both slow and memory-intensive

Parameters

ca

an automaton accepting matching terms

maxExpansions

the maximum number of terms to expand to

pattern

string representation of the given automaton, mostly used in exception messages

Throws

if the automaton accepts more than maxExpansions terms