OneOf

class OneOf[T](val items: Set[T]) extends Parsec[T, T]

OneOf success if item equals one of prepared.

OneOf success if item equals one of prepared.

Authors

mars

Version

1.0.0

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

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

Inherited methods

def !(state: State[T]): T
Inherited from
Parsec
def <|>[R >: T](p: Parsec[T, R]): Parsec[T, R]
Inherited from
Parsec
def ?(state: State[T]): Try[T]
Inherited from
Parsec
def attempt: Parsec[T, T]
Inherited from
Parsec
def iterate[R >: T](state: State[T]): Iterator[T, R]
Inherited from
Parsec

Concrete fields

val items: Set[T]