fastparse.parsers

Combinators

object Combinators

Parsers which are made up of other parsers, adding to or combining their behavior

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Combinators
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. case class Capturing(p: Parser[_]) extends Parser[String] with Product with Serializable

    Captures the string parsed by the given parser p.

  2. case class Cut[T](p: Parser[T]) extends Parser[T] with Product with Serializable

  3. case class Either[T](ps: Parser[T]*) extends Parser[T] with Product with Serializable

    Parses using one parser or the other, if the first one fails.

  4. case class Logged[+T](p: Parser[T], msg: String, output: (String) ⇒ Unit) extends Parser[T] with Product with Serializable

    Wraps a parser and prints out the indices where it starts and ends, together with its result

  5. case class Lookahead(p: Parser[_]) extends Parser[Unit] with Product with Serializable

    Wraps another parser, succeeding/failing identically but consuming no input

  6. case class NoCut[T](p: Parser[T]) extends Parser[T] with Product with Serializable

  7. case class NoTrace[T](p: Parser[T]) extends Parser[T] with Product with Serializable

    Wrap a parser in this if you don't want for it to show up in a stack trace

  8. case class Not(p: Parser[_]) extends Parser[Unit] with Product with Serializable

    Wraps another parser, succeeding it it fails and failing if it succeeds.

  9. case class Opaque[+T](p: Parser[T], msg: String) extends Parser[T] with Product with Serializable

    A wrapper that replaces target parser and its inner parsers in the stack trace.

  10. case class Optional[+T, R](p: Parser[T])(implicit ev: Optioner[T, R]) extends Parser[R] with Product with Serializable

    Wraps a parser and succeeds with Some if p succeeds, and succeeds with None if p fails.

  11. case class Repeat[T, +R](p: Parser[T], min: Int, max: Int, delimiter: Parser[_])(implicit ev: Repeater[T, R]) extends Parser[R] with Product with Serializable

    Repeats the parser over and over.

  12. case class Rule[+T](name: String, p: () ⇒ Parser[T]) extends Parser[T] with Product with Serializable

    A top-level, named parser.

  13. case class Sequence[+T1, +T2, R](p1: Parser[T1], p2: Parser[T2], cut: Boolean)(implicit ev: Sequencer[T1, T2, R]) extends Parser[R] with Product with Serializable

    Parsers two things in a row, returning a tuple of the two results if both things succeed

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. object Either extends Serializable

  7. object Sequence extends Serializable

    Contains an optimized version of Sequence called Sequence.Flat that combines a tree of Sequence nodes from the left, into a single tail-recursive function working over a Vector of their contents.

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  20. def toString(): String

    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped