zeroOrMore

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

Adds a RepeatableElement that matches 0 or more times.

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

Return

this RuleBuilder for chaining

Parameters

pattern

A lambda defining the element(s) to repeat