NTimes

org.parboiled2.RuleDSLCombinators.NTimes
sealed trait NTimes

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def times[I <: HList, O <: HList](r: Rule[I, O])(implicit s: Lifter[Seq, I, O]): Rule[In, StrictOut] & Repeated

Repeats the given sub rule r the given number of times. Both bounds of the range must be positive and the upper bound must be >= the lower bound. If the upper bound is zero the rule is equivalent to MATCH.

Repeats the given sub rule r the given number of times. Both bounds of the range must be positive and the upper bound must be >= the lower bound. If the upper bound is zero the rule is equivalent to MATCH.

Resulting rule type is Rule0 if r == Rule0 Rule1[Seq[T]] if r == Rule1[T] Rule[I, O] if r == Rule[I, O <: I] // so called "reduction", which leaves the value stack unchanged on a type level

Attributes