chain

fun chain(pattern: RuleBuilder<*>.() -> Unit): RuleBuilder<N>

Adds a OneOrMoreElement that matches 1 or more times.

This is equivalent to repeat(min = 1, max = Int.MAX_VALUE, pattern).

Return

this RuleBuilder for chaining

Parameters

pattern

A lambda defining the element(s) to repeat