fastparse.parsers

Combinators

Related Doc: package parsers

object Combinators

Created by haoyi on 5/10/15.

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 Either[T](ps: Parser[T]*) extends Parser[T] with Product with Serializable

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

    Parses using one parser or the other, if the first one fails. Returns the first one that succeeds and fails if both fail

  3. 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

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

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

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

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

    Wraps another parser, succeeding it it fails and failing if it succeeds. Neither case consumes any input

  6. 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.

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

    Repeats the parser over and over.

    Repeats the parser over and over. Succeeds with a Seq of results if there are more than min successful parses. uses the delimiter between parses and discards its results

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

    A top-level, named parser.

    A top-level, named parser. Lazily evaluates the wrapped parser p only when parse is called to allow for circular dependencies between parsers.

  9. 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: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Definition Classes
    AnyRef → Any
  4. object Either extends Serializable

  5. 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.

    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.

    Intentionally completely type-unsafe internally, using casting all over the place, because it's near impossible to make the variable-length heterogenous-typed list type-safe without going crazy. If constructed by flatten-ing out a Sequence, the types are checked when the Sequence was constructed, so it's still safe.

  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  18. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped