Packages

o

atto

Atto

object Atto extends Parsers with Syntaxes

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Atto
  2. Syntaxes
  3. ToParserOps
  4. Parsers
  5. Character
  6. Text
  7. Numeric
  8. Combinator
  9. Combinator0
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type CharRange = NumericRange[Char]
    Definition Classes
    Character

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. def advance(n: Int): Parser[Unit]
    Definition Classes
    Combinator0
  5. def andThen[A, B](m: Parser[A], b: ⇒ Parser[B]): Parser[(A, B)]
    Definition Classes
    Combinator0
  6. lazy val anyChar: Parser[Char]

    Parser that matches any character.

    Parser that matches any character.

    Definition Classes
    Character
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def attempt[T](p: Parser[T]): Parser[T]

    Attoparsec try, for compatibility reasons.

    Attoparsec try, for compatibility reasons. This is actually a no-op since atto parsers always rewind in case of failure.

    Definition Classes
    Combinator0
  9. def bananas[A](p: ⇒ Parser[A]): Parser[A]

    Turns a parser into one that consumes surrounding banana brackets (||)

    Turns a parser into one that consumes surrounding banana brackets (||)

    Definition Classes
    Text
  10. val bigDecimal: Parser[BigDecimal]

    Parser for an arbitrary-precision decimal.

    Parser for an arbitrary-precision decimal.

    Definition Classes
    Numeric
  11. val bigInt: Parser[BigInt]

    Parser for an arbitrary-precision integer.

    Parser for an arbitrary-precision integer.

    Definition Classes
    Numeric
  12. def binaryDigit: Parser[Char]

    Binary digit, 0 or 1

    Binary digit, 0 or 1

    Definition Classes
    Character
  13. def braces[A](p: ⇒ Parser[A]): Parser[A]

    Turns a parser into one that consumes surrounding curly braces {}

    Turns a parser into one that consumes surrounding curly braces {}

    Definition Classes
    Text
  14. def bracket[A, B, C](left: Parser[B], p: ⇒ Parser[A], right: ⇒ Parser[C]): Parser[A]

    Consumes left and right, including the trailing and preceding whitespace, respectively, and returns the value of p.

    Consumes left and right, including the trailing and preceding whitespace, respectively, and returns the value of p.

    Definition Classes
    Text
  15. val byte: Parser[Byte]

    Parser for a Byte (range-checked).

    Parser for a Byte (range-checked).

    Definition Classes
    Numeric
  16. def char(c: Char): Parser[Char]

    Parser that matches and returns only c.

    Parser that matches and returns only c.

    Definition Classes
    Character
  17. def charRange(rs: CharRange*): Parser[Char]
    Definition Classes
    Character
  18. def choice[F[_], A](fpa: F[Parser[A]])(implicit F: Foldy[F]): Parser[A]
    Definition Classes
    Combinator
  19. def choice[A](xs: Parser[A]*): Parser[A]
    Definition Classes
    Combinator
  20. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. def collect[A, B](m: Parser[A], f: PartialFunction[A, B]): Parser[B]
    Definition Classes
    Combinator
  22. def cons[F[_], A, B >: A](m: Parser[A], n: ⇒ Parser[List[B]])(implicit N: NonEmptyListy[F]): Parser[F[B]]
    Definition Classes
    Combinator
  23. def count[A](n: Int, p: Parser[A]): Parser[List[A]]
    Definition Classes
    Combinator
  24. def decimalDigit: Parser[Char]

    Decimal digit, 0-9.

    Decimal digit, 0-9.

    Definition Classes
    Character
  25. def delay[A](p: ⇒ Parser[A]): Parser[A]

    Construct the given parser lazily; useful when defining recursive parsers.

    Construct the given parser lazily; useful when defining recursive parsers.

    Definition Classes
    Combinator0
  26. def demandInput: Parser[Unit]
    Definition Classes
    Combinator0
  27. def digit: Parser[Char]

    Decimal digit, 0-9.

    Decimal digit, 0-9.

    Definition Classes
    Character
  28. def discardLeft[A, B](m: Parser[A], b: ⇒ Parser[B]): Parser[B]
    Definition Classes
    Combinator0
  29. def discardRight[A, B](m: Parser[A], b: ⇒ Parser[B]): Parser[A]
    Definition Classes
    Combinator0
  30. val double: Parser[Double]

    Parser for a Double (unchecked narrowing).

    Parser for a Double (unchecked narrowing).

    Definition Classes
    Numeric
  31. def either[E[_, _], A, B](m: Parser[A], b: ⇒ Parser[B])(implicit E: Eithery[E]): Parser[E[A, B]]
    Definition Classes
    Combinator0
  32. def elem(p: (Char) ⇒ Boolean, what: ⇒ String = "elem(...)"): Parser[Char]

    Parser that returns a Char if it satisfies predicate p.

    Parser that returns a Char if it satisfies predicate p.

    Definition Classes
    Character
  33. def endOfChunk: Parser[Boolean]
    Definition Classes
    Combinator0
  34. val endOfInput: Parser[Unit]

    Parser that matches end of input.

    Parser that matches end of input.

    Definition Classes
    Combinator0
  35. def ensure(n: Int): Parser[String]
    Definition Classes
    Combinator0
  36. def envelopes[A](p: ⇒ Parser[A]): Parser[A]

    Turns a parser into one that consumes surrounding envelope brackets [||]

    Turns a parser into one that consumes surrounding envelope brackets [||]

    Definition Classes
    Text
  37. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  38. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  39. def err[A](what: String): Parser[A]

    Parser that consumes no data and fails with the specified error message.

    Parser that consumes no data and fails with the specified error message.

    Definition Classes
    Combinator0
  40. def filter[A](m: Parser[A])(p: (A) ⇒ Boolean): Parser[A]
    Definition Classes
    Combinator
  41. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  42. val float: Parser[Float]

    Parser for a Float (unchecked narrowing).

    Parser for a Float (unchecked narrowing).

    Definition Classes
    Numeric
  43. val get: Parser[String]

    Parser that produces the remaining input (but does not consume it).

    Parser that produces the remaining input (but does not consume it).

    Definition Classes
    Combinator0
  44. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  45. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  46. def hexDigit: Parser[Char]

    Hex digit, 0-9, A-F, a-f

    Hex digit, 0-9, A-F, a-f

    Definition Classes
    Character
  47. def horizontalWhitespace: Parser[Char]

    Whitespace that is not a line break

    Whitespace that is not a line break

    Definition Classes
    Character
  48. val int: Parser[Int]

    Parser for an Int (range-checked).

    Parser for an Int (range-checked).

    Definition Classes
    Numeric
  49. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  50. def letter: Parser[Char]
    Definition Classes
    Character
  51. def letterOrDigit: Parser[Char]
    Definition Classes
    Character
  52. val long: Parser[Long]

    Parser for a Long (range-checked).

    Parser for a Long (range-checked).

    Definition Classes
    Numeric
  53. def lower: Parser[Char]
    Definition Classes
    Character
  54. def many[A](p: ⇒ Parser[A]): Parser[List[A]]

    Parser that matches zero or more p.

    Parser that matches zero or more p.

    Definition Classes
    Combinator
  55. def many1[F[_], A](p: ⇒ Parser[A])(implicit arg0: NonEmptyListy[F]): Parser[F[A]]

    Parser that matches one or more p.

    Parser that matches one or more p.

    Definition Classes
    Combinator
  56. def manyN[A](n: Int, a: Parser[A]): Parser[List[A]]
    Definition Classes
    Combinator
  57. def manyUntil[A](p: Parser[A], q: Parser[_]): Parser[List[A]]
    Definition Classes
    Combinator
  58. def modifyName[A](m: Parser[A], f: (String) ⇒ String): Parser[A]
    Definition Classes
    Combinator0
  59. def named[A](m: Parser[A], s: ⇒ String): Parser[A]
    Definition Classes
    Combinator0
  60. def namedOpaque[A](m: Parser[A], s: ⇒ String): Parser[A]
    Definition Classes
    Combinator0
  61. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  62. def noneOf(s: String): Parser[Char]

    Character is not in the given String

    Character is not in the given String

    Definition Classes
    Character
  63. def notChar(c: Char): Parser[Char]

    Parser that matches any character other than c.

    Parser that matches any character other than c.

    Definition Classes
    Character
  64. final def notify(): Unit
    Definition Classes
    AnyRef
  65. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  66. def octalDigit: Parser[Char]

    Octal digit, 0-7

    Octal digit, 0-7

    Definition Classes
    Character
  67. def ok[A](a: A): Parser[A]

    Parser that consumes no data and produces the specified value.

    Parser that consumes no data and produces the specified value.

    Definition Classes
    Combinator0
  68. def oneOf(s: String): Parser[Char]

    Character is in the given String

    Character is in the given String

    Definition Classes
    Character
  69. def opt[A](m: Parser[A]): Parser[Option[A]]
    Definition Classes
    Combinator
  70. def optElem[A](p: (Char) ⇒ Option[A]): Parser[A]

    elem + map in a single operation.

    elem + map in a single operation.

    Definition Classes
    Character
  71. def orElse[A, B >: A](m: Parser[A], b: ⇒ Parser[B]): Parser[B]
    Definition Classes
    Combinator0
  72. def pairBy[A, B](a: Parser[A], delim: Parser[_], b: Parser[B]): Parser[(A, B)]
    Definition Classes
    Combinator
  73. def parens[A](p: ⇒ Parser[A]): Parser[A]

    Turns a parser into one that consumes surrounding parentheses ()

    Turns a parser into one that consumes surrounding parentheses ()

    Definition Classes
    Text
  74. def phrase[A](p: Parser[A]): Parser[A]

    Parser that matches p only if there is no remaining input

    Parser that matches p only if there is no remaining input

    Definition Classes
    Combinator
  75. val pos: Parser[Int]
    Definition Classes
    Combinator0
  76. def satisfy(p: (Char) ⇒ Boolean): Parser[Char]

    Equivalent to elem(p) but without optional label arg.

    Equivalent to elem(p) but without optional label arg.

    Definition Classes
    Character
  77. def scan[S](s: S)(p: (S, Char) ⇒ Option[S]): Parser[String]

    Stateful scanning parser returning a string of all visited chars.

    Stateful scanning parser returning a string of all visited chars. Many combinators can be written in terms of scan; for instance, take(n) could be written as scan(n)((m, _) => m > 0 option m - 1).

    Definition Classes
    Text
  78. def sepBy[A](p: Parser[A], s: Parser[_]): Parser[List[A]]
    Definition Classes
    Combinator
  79. def sepBy1[F[_], A](p: Parser[A], s: Parser[_])(implicit N: NonEmptyListy[F]): Parser[F[A]]
    Definition Classes
    Combinator
  80. val short: Parser[Short]

    Parser for a Short (range-checked).

    Parser for a Short (range-checked).

    Definition Classes
    Numeric
  81. def signum: Parser[Int]

    Parser for a leading + or - as a signum, defaulting to 1

    Parser for a leading + or - as a signum, defaulting to 1

    Definition Classes
    Numeric
  82. def skip(p: (Char) ⇒ Boolean): Parser[Unit]

    Parser that skips a Char if it satisfies predicate p.

    Parser that skips a Char if it satisfies predicate p.

    Definition Classes
    Character
  83. def skipMany(p: Parser[_]): Parser[Unit]
    Definition Classes
    Combinator
  84. def skipMany1(p: Parser[_]): Parser[Unit]
    Definition Classes
    Combinator
  85. def skipManyN(n: Int, p: Parser[_]): Parser[Unit]
    Definition Classes
    Combinator
  86. def skipWhitespace: Parser[Unit]

    Parser that consumes horizontal and vertical whitespace

    Parser that consumes horizontal and vertical whitespace

    Definition Classes
    Text
  87. def spaceChar: Parser[Char]
    Definition Classes
    Character
  88. def squareBrackets[A](p: ⇒ Parser[A]): Parser[A]

    Turns a parser into one that consumes surrounding square brackets []

    Turns a parser into one that consumes surrounding square brackets []

    Definition Classes
    Text
  89. def string(s: String): Parser[String]

    Parser that matches and returns only s.

    Parser that matches and returns only s.

    Definition Classes
    Text
  90. def stringCI(s: String): Parser[String]

    Like string but case-insensitive s.

    Like string but case-insensitive s.

    Definition Classes
    Text
  91. def stringLiteral: Parser[String]

    Quoted strings with control and unicode escapes, Java/JSON style.

    Quoted strings with control and unicode escapes, Java/JSON style. *

    Definition Classes
    Text
  92. def stringOf(p: Parser[Char]): Parser[String]

    Parser that returns a string of characters matched by p.

    Parser that returns a string of characters matched by p.

    Definition Classes
    Text
  93. def stringOf1(p: Parser[Char]): Parser[String]

    Parser that returns a non-empty string of characters matched by p.

    Parser that returns a non-empty string of characters matched by p.

    Definition Classes
    Text
  94. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  95. def take(n: Int): Parser[String]

    Parser that returns the next n characters as a String.

    Parser that returns the next n characters as a String.

    Definition Classes
    Text
  96. lazy val takeRest: Parser[List[String]]

    Parser that consumes and returns all remaining chunks of input.

    Parser that consumes and returns all remaining chunks of input.

    Definition Classes
    Text
  97. lazy val takeText: Parser[String]

    Parser that consumes and returns all remaining input.

    Parser that consumes and returns all remaining input.

    Definition Classes
    Text
  98. def takeWhile(p: (Char) ⇒ Boolean): Parser[String]

    Parser that returns a string of characters passing the supplied predicate.

    Parser that returns a string of characters passing the supplied predicate. Equivalent to but more efficient than stringOf(elem(p)).

    Definition Classes
    Text
  99. def takeWhile1(p: (Char) ⇒ Boolean): Parser[String]

    Parser that returns a non-empty string of characters passing the supplied predicate.

    Parser that returns a non-empty string of characters passing the supplied predicate. Equivalent to but more efficient than stringOf1(elem(p)).

    Definition Classes
    Text
  100. def takeWith(n: Int, p: (String) ⇒ Boolean, what: ⇒ String = "takeWith(...)"): Parser[String]
    Definition Classes
    Text
  101. implicit def toParserOps[A](p: Parser[A]): ParserOps[A]
    Definition Classes
    ToParserOps
  102. def toString(): String
    Definition Classes
    AnyRef → Any
  103. def token[A](p: Parser[A]): Parser[A]

    Turns a parser into one that skips trailing whitespace

    Turns a parser into one that skips trailing whitespace

    Definition Classes
    Text
  104. def upper: Parser[Char]
    Definition Classes
    Character
  105. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  106. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  107. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  108. val wantInput: Parser[Boolean]
    Definition Classes
    Combinator0
  109. def whitespace: Parser[Char]

    Horizontal or vertical whitespace character

    Horizontal or vertical whitespace character

    Definition Classes
    Character

Inherited from Syntaxes

Inherited from ToParserOps

Inherited from Parsers

Inherited from Character

Inherited from Text

Inherited from Numeric

Inherited from Combinator

Inherited from Combinator0

Inherited from AnyRef

Inherited from Any

Ungrouped