SepBy

case class SepBy[E, T](parsec: Parsec[E, T], by: Parsec[E, _]) extends Parsec[E, Seq[T]]

sepBy p sep parses zero or more occurrences of p, separated by sep. Returns a list of values returned by p.

Version

1.0.0

trait Serializable
trait Product
trait Equals
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 <?>[C >: Seq[T]](message: String): Parsec[E, C]
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
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product

Concrete fields

val b: Parsec[E, _]
val p: Parsec[E, T]
val psc: Parsec[E, T]