class Attempt[E, T] extends Parsec[E, T]

The parser try p behaves like parser p, except that it pretends that it hasn't consumed any input when an error occurs.

This combinator is used whenever arbitrary look ahead is needed. Since it pretends that it hasn't consumed any input when p fails, the (<|>) combinator will try its second alternative even when the first parser failed while consuming input.

Version

1.0.0

Linear Supertypes
Parsec[E, T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Attempt
  2. Parsec
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Attempt(parsec: Parsec[E, T])

Value Members

  1. def !(s: State[E]): T
    Definition Classes
    Parsec
  2. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  3. final def ##: scala.Int
    Definition Classes
    AnyRef → Any
  4. def <?>[U >: T](message: String): Parsec[E, U]
    Definition Classes
    Parsec
  5. def <|>[U >: T](parsec: Parsec[E, U]): Parsec[E, U]
    Definition Classes
    Parsec
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. def ?(s: Seq[E]): Try[T]
    Definition Classes
    Parsec
  8. def ?(s: State[E]): Try[T]
    Definition Classes
    Parsec
  9. def apply(s: State[E]): Try[T]
    Definition Classes
    AttemptParsec
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def ask(s: Seq[E]): Try[T]
    Definition Classes
    Parsec
  12. def ask(s: State[E]): Try[T]
    Definition Classes
    Parsec
  13. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. def hashCode(): scala.Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. def option(s: State[E]): Option[T]
    Definition Classes
    Parsec
  23. def parse(s: State[E]): T
    Definition Classes
    Parsec
  24. val parsec: Parsec[E, T]
  25. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. final def wait(arg0: Long, arg1: scala.Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Parsec[E, T]

Inherited from AnyRef

Inherited from Any

Ungrouped