ManyTill

jaskell.parsec.ManyTill
See theManyTill companion object
class ManyTill[E, T, L](val parser: Parsec[E, T], val end: Parsec[E, L]) extends Parsec[E, Seq[T]]

manyTill p end applies parser p zero or more times until parser end succeeds. Returns the list of values returned by p. This parser can be used to scan comments.

Attributes

Version:

1.0.0

Companion:
object
Graph
Supertypes
trait Parsec[E, Seq[T]]
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def apply(s: State[E]): Try[Seq[T]]

Inherited methods

def !(state: State[E]): B

Attributes

Inherited from:
Parsec
def <?>[C >: Seq[T]](message: String): Parsec[A, C]

Attributes

Inherited from:
Parsec
def <|>[R >: Seq[T]](p: Parsec[E, R]): Parsec[A, R]

Attributes

Inherited from:
Parsec
def ?(state: State[E]): Try[B]

Attributes

Inherited from:
Parsec
def attempt: Parsec[A, B]

Attributes

Inherited from:
Parsec
def iterate[R >: Seq[T]](state: State[E]): Iterator[A, R]

Attributes

Inherited from:
Parsec

Concrete fields

val end: Parsec[E, L]
val parser: Parsec[E, T]
val psc: Attempt[E, T]
val till: Attempt[E, L]