laika.parse.MarkupParsers

TextParser

class TextParser extends Parser[String]

API for specifying further constraints on the parsers provided by this base trait.

For reading 3 or more '*' or '+'characters for example the constraint could be specified as follows:

anyOf('*','+') min 3
Linear Supertypes
MarkupParsers.Parser[String], (MarkupParsers.Input) ⇒ MarkupParsers.ParseResult[String], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TextParser
  2. Parser
  3. Function1
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

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. def *[U >: String](sep: ⇒ MarkupParsers.Parser[(U, U) ⇒ U]): MarkupParsers.Parser[U]

    Definition Classes
    Parser
  5. def *: MarkupParsers.Parser[List[String]]

    Definition Classes
    Parser
  6. def +: MarkupParsers.Parser[List[String]]

    Definition Classes
    Parser
  7. def <~[U](q: ⇒ MarkupParsers.Parser[U]): MarkupParsers.Parser[String]

    Definition Classes
    Parser
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) The call-by-name argument is evaluated at most once per constructed Parser object, instead of on every need that arises during parsing.

  8. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  10. def >>[U](fq: (String) ⇒ MarkupParsers.Parser[U]): MarkupParsers.Parser[U]

    Definition Classes
    Parser
  11. def ?: MarkupParsers.Parser[Option[String]]

    Definition Classes
    Parser
  12. def ^?[U](f: PartialFunction[String, U]): MarkupParsers.Parser[U]

    Definition Classes
    Parser
  13. def ^?[U](f: PartialFunction[String, U], error: (String) ⇒ String): MarkupParsers.Parser[U]

    Definition Classes
    Parser
  14. def ^^[U](f: (String) ⇒ U): MarkupParsers.Parser[U]

    Definition Classes
    Parser
  15. def ^^^[U](v: ⇒ U): MarkupParsers.Parser[U]

    Definition Classes
    Parser
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) The call-by-name argument is evaluated at most once per constructed Parser object, instead of on every need that arises during parsing.

  16. def andThen[A](g: (MarkupParsers.ParseResult[String]) ⇒ A): (MarkupParsers.Input) ⇒ A

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  17. def append[U >: String](p0: ⇒ MarkupParsers.Parser[U]): MarkupParsers.Parser[U]

    Definition Classes
    Parser
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) The call-by-name argument is evaluated at most once per constructed Parser object, instead of on every need that arises during parsing.

  18. def apply(in: MarkupParsers.Input): MarkupParsers.ParseResult[String]

    Definition Classes
    TextParser → Parser → Function1
  19. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  20. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. def compose[A](g: (A) ⇒ MarkupParsers.Input): (A) ⇒ MarkupParsers.ParseResult[String]

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  22. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  24. def filter(p: (String) ⇒ Boolean): MarkupParsers.Parser[String]

    Definition Classes
    Parser
  25. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  26. def flatMap[U](f: (String) ⇒ MarkupParsers.Parser[U]): MarkupParsers.Parser[U]

    Definition Classes
    Parser
  27. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  29. def into[U](fq: (String) ⇒ MarkupParsers.Parser[U]): MarkupParsers.Parser[U]

    Definition Classes
    Parser
  30. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  31. def map[U](f: (String) ⇒ U): MarkupParsers.Parser[U]

    Definition Classes
    Parser
  32. def max(count: Int): TextParser

    Creates and returns a new parser that consumes at most the specified maximum number of characters.

    Creates and returns a new parser that consumes at most the specified maximum number of characters. Always succeeds, unless a minimum number of matches is also specified.

  33. def min(count: Int): TextParser

    Creates and returns a new parser that fails if it does not consume the specified minimum number of characters.

    Creates and returns a new parser that fails if it does not consume the specified minimum number of characters. It may still consume more characters in case of further matches.

  34. def named(n: String): TextParser.this.type

    Definition Classes
    Parser
  35. final def ne(arg0: AnyRef): Boolean

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

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

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

    Definition Classes
    AnyRef
  39. def take(count: Int): TextParser

    Creates and returns a new parser that consumes exactly the specified numer of characters.

    Creates and returns a new parser that consumes exactly the specified numer of characters. Fails if there are less matches, but succeeds in case there are more matches, simply ignoring them. Calling take 3 for example is equivalent to calling min 3 max 3.

  40. def toString(): String

    Definition Classes
    Parser → Function1 → AnyRef → Any
  41. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. def withErrorMessage(msg: String): MarkupParsers.Parser[String]

    Definition Classes
    Parser
  45. def withFailureMessage(msg: String): MarkupParsers.Parser[String]

    Definition Classes
    Parser
  46. def withFilter(p: (String) ⇒ Boolean): MarkupParsers.Parser[String]

    Definition Classes
    Parser
  47. def |[U >: String](q: ⇒ MarkupParsers.Parser[U]): MarkupParsers.Parser[U]

    Definition Classes
    Parser
  48. def |||[U >: String](q0: ⇒ MarkupParsers.Parser[U]): MarkupParsers.Parser[U]

    Definition Classes
    Parser
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) The call-by-name argument is evaluated at most once per constructed Parser object, instead of on every need that arises during parsing.

  49. def ~[U](q: ⇒ MarkupParsers.Parser[U]): MarkupParsers.Parser[MarkupParsers.~[String, U]]

    Definition Classes
    Parser
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) The call-by-name argument is evaluated at most once per constructed Parser object, instead of on every need that arises during parsing.

  50. def ~![U](p: ⇒ MarkupParsers.Parser[U]): MarkupParsers.Parser[MarkupParsers.~[String, U]]

    Definition Classes
    Parser
  51. def ~>[U](q: ⇒ MarkupParsers.Parser[U]): MarkupParsers.Parser[U]

    Definition Classes
    Parser
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) The call-by-name argument is evaluated at most once per constructed Parser object, instead of on every need that arises during parsing.

Inherited from MarkupParsers.Parser[String]

Inherited from (MarkupParsers.Input) ⇒ MarkupParsers.ParseResult[String]

Inherited from AnyRef

Inherited from Any

Ungrouped