OneOf

jaskell.parsec.OneOf
See theOneOf companion object
class OneOf[T](val items: Set[T]) extends Parsec[T, T]

OneOf success if item equals one of prepared.

Attributes

Version:

1.0.0

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

Members list

Concise view

Value members

Concrete methods

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

One of return success with state's next if it is equal of any one of prepared

One of return success with state's next if it is equal of any one of prepared

Attributes

Inherited methods

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

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

Inherited from:
Parsec

Concrete fields

val items: Set[T]