Rep

case Rep[S, A](source: Suspendable[S, A]) extends Suspendable[S, Type[A]]

Value members

Inherited methods

def *>[B](that: Suspendable[S, B]): Suspendable[S, B]
Inherited from
Suspendable
def <*[B](that: Suspendable[S, B]): Suspendable[S, Type[A]]
Inherited from
Suspendable
def backtrack: Suspendable[S, Type[A]]

If this parser fails with a committed result convert it to an epsilon result so that processing can continue with another parser. Usually used in conjection with orElse.

If this parser fails with a committed result convert it to an epsilon result so that processing can continue with another parser. Usually used in conjection with orElse.

Inherited from
Suspendable
def loop[B](input: String, offset: Int, continuation: Continuation[S, Type[A], B]): Resumable[S, B]
Inherited from
Suspendable
def map[B](f: Type[A] => B): Suspendable[S, B]
Inherited from
Suspendable
def orElse(that: Suspendable[S, Type[A]]): Suspendable[S, Type[A]]
Inherited from
Suspendable
def parse(input: String, offset: Int): Resumable[S, Type[A]]
Inherited from
Suspendable
def parseOrExn(input: String): Type[A]

Parse the input string without suspending or failing in other ways or throw an exception. Mainly useful for tests or quick hacks.

Parse the input string without suspending or failing in other ways or throw an exception. Mainly useful for tests or quick hacks.

Inherited from
Suspendable
def parseToCompletion(input: IterableOnce[String], offset: Int)(using ev: S =:= Type[A]): Result[Type[A]]
Inherited from
Suspendable
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product
def rep: Suspendable[S, Type[Type[A]]]

Repeat this parser one or more times

Repeat this parser one or more times

Inherited from
Suspendable
def void: Suspendable[S, Unit]

Ignore the output of this parser

Ignore the output of this parser

Inherited from
Suspendable
def ~[B](that: Suspendable[S, B]): Suspendable[S, (Type[A], B)]

Apply two parsers in sequence. Both must be resumable with the same type, as from the outside we cannot tell whether we are resuming the left or right side.

Apply two parsers in sequence. Both must be resumable with the same type, as from the outside we cannot tell whether we are resuming the left or right side.

Inherited from
Suspendable