ManyTill

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.

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.

Authors

Mars Liu

Version

1.0.0

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

Value members

Concrete methods

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

Inherited methods

def !(state: State[E]): Seq[T]
Inherited from
Parsec
def <|>[R >: Seq[T]](p: Parsec[E, R]): Parsec[E, R]
Inherited from
Parsec
def ?(state: State[E]): Try[Seq[T]]
Inherited from
Parsec
def attempt: Parsec[E, Seq[T]]
Inherited from
Parsec
def iterate[R >: Seq[T]](state: State[E]): Iterator[E, R]
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]