object all extends Parsers
- Alphabetic
- By Inheritance
- all
- Parsers
- Character
- Text
- Numeric
- Combinator
- Combinator0
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def advance(n: Int): Parser[Unit]
- Definition Classes
- Combinator0
- def andThen[A, B](m: Parser[A], b: ⇒ Parser[B]): Parser[(A, B)]
- Definition Classes
- Combinator0
- lazy val anyChar: Parser[Char]
Parser that matches any character.
Parser that matches any character.
- Definition Classes
- Character
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- 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
- 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
- val bigDecimal: Parser[BigDecimal]
Parser for an arbitrary-precision decimal.
Parser for an arbitrary-precision decimal.
- Definition Classes
- Numeric
- val bigInt: Parser[BigInt]
Parser for an arbitrary-precision integer.
Parser for an arbitrary-precision integer.
- Definition Classes
- Numeric
- def binaryDigit: Parser[Char]
Binary digit, 0 or 1
Binary digit, 0 or 1
- Definition Classes
- Character
- 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
- def bracket[A, B, C](left: Parser[B], p: ⇒ Parser[A], right: ⇒ Parser[C]): Parser[A]
Consumes
left
andright
, including the trailing and preceding whitespace, respectively, and returns the value ofp
.Consumes
left
andright
, including the trailing and preceding whitespace, respectively, and returns the value ofp
.- Definition Classes
- Text
- val byte: Parser[Byte]
Parser for a Byte (range-checked).
Parser for a Byte (range-checked).
- Definition Classes
- Numeric
- def char(c: Char): Parser[Char]
Parser that matches and returns only
c
.Parser that matches and returns only
c
.- Definition Classes
- Character
- def charRange(rs: CharRange*): Parser[Char]
- Definition Classes
- Character
- def choice[F[_], A](fpa: F[Parser[A]])(implicit arg0: Foldable[F]): Parser[A]
- Definition Classes
- Combinator
- Annotations
- @SuppressWarnings()
- def choice[A](xs: Parser[A]*): Parser[A]
- Definition Classes
- Combinator
- Annotations
- @SuppressWarnings()
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws(classOf[java.lang.CloneNotSupportedException])
- def collect[A, B](m: Parser[A], f: PartialFunction[A, B]): Parser[B]
- Definition Classes
- Combinator
- def cons[A, B >: A](m: Parser[A], n: ⇒ Parser[List[B]]): Parser[NonEmptyList[B]]
- Definition Classes
- Combinator
- def count[A](n: Int, p: Parser[A]): Parser[List[A]]
- Definition Classes
- Combinator
- def decimalDigit: Parser[Char]
Decimal digit, 0-9.
Decimal digit, 0-9.
- Definition Classes
- Character
- 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
- def demandInput: Parser[Unit]
- Definition Classes
- Combinator0
- def digit: Parser[Char]
Decimal digit, 0-9.
Decimal digit, 0-9.
- Definition Classes
- Character
- def discardLeft[A, B](m: Parser[A], b: ⇒ Parser[B]): Parser[B]
- Definition Classes
- Combinator0
- def discardRight[A, B](m: Parser[A], b: ⇒ Parser[B]): Parser[A]
- Definition Classes
- Combinator0
- val double: Parser[Double]
Parser for a Double (unchecked narrowing).
Parser for a Double (unchecked narrowing).
- Definition Classes
- Numeric
- def either[A, B](m: Parser[A], b: ⇒ Parser[B]): Parser[Either[A, B]]
- Definition Classes
- Combinator0
- def elem(p: (Char) ⇒ Boolean, what: ⇒ String = "elem(...)"): Parser[Char]
Parser that returns a
Char
if it satisfies predicatep
.Parser that returns a
Char
if it satisfies predicatep
.- Definition Classes
- Character
- def endOfChunk: Parser[Boolean]
- Definition Classes
- Combinator0
- val endOfInput: Parser[Unit]
Parser that matches end of input.
Parser that matches end of input.
- Definition Classes
- Combinator0
- def ensure(n: Int): Parser[String]
- Definition Classes
- Combinator0
- 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
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- 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
- def filter[A](m: Parser[A])(p: (A) ⇒ Boolean): Parser[A]
- Definition Classes
- Combinator
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- val float: Parser[Float]
Parser for a Float (unchecked narrowing).
Parser for a Float (unchecked narrowing).
- Definition Classes
- Numeric
- 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
- final def getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hexDigit: Parser[Char]
Hex digit, 0-9, A-F, a-f
Hex digit, 0-9, A-F, a-f
- Definition Classes
- Character
- def horizontalWhitespace: Parser[Char]
Whitespace that is not a line break
Whitespace that is not a line break
- Definition Classes
- Character
- val int: Parser[Int]
Parser for an Int (range-checked).
Parser for an Int (range-checked).
- Definition Classes
- Numeric
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def letter: Parser[Char]
- Definition Classes
- Character
- def letterOrDigit: Parser[Char]
- Definition Classes
- Character
- val long: Parser[Long]
Parser for a Long (range-checked).
Parser for a Long (range-checked).
- Definition Classes
- Numeric
- def lower: Parser[Char]
- Definition Classes
- Character
- 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
- def many1[A](p: ⇒ Parser[A]): Parser[NonEmptyList[A]]
Parser that matches one or more
p
.Parser that matches one or more
p
.- Definition Classes
- Combinator
- def manyN[A](n: Int, a: Parser[A]): Parser[List[A]]
- Definition Classes
- Combinator
- def manyUntil[A](p: Parser[A], q: Parser[_]): Parser[List[A]]
- Definition Classes
- Combinator
- def modifyName[A](m: Parser[A], f: (String) ⇒ String): Parser[A]
- Definition Classes
- Combinator0
- def named[A](m: Parser[A], s: ⇒ String): Parser[A]
- Definition Classes
- Combinator0
- def namedOpaque[A](m: Parser[A], s: ⇒ String): Parser[A]
- Definition Classes
- Combinator0
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noneOf(s: String): Parser[Char]
Character is not in the given String
Character is not in the given String
- Definition Classes
- Character
- 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
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def octalDigit: Parser[Char]
Octal digit, 0-7
Octal digit, 0-7
- Definition Classes
- Character
- 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
- Annotations
- @SuppressWarnings()
- def oneOf(s: String): Parser[Char]
Character is in the given String
Character is in the given String
- Definition Classes
- Character
- def opt[A](m: Parser[A]): Parser[Option[A]]
- Definition Classes
- Combinator
- def optElem[A](p: (Char) ⇒ Option[A]): Parser[A]
elem
+map
in a single operation.elem
+map
in a single operation.- Definition Classes
- Character
- def orElse[A, B >: A](m: Parser[A], b: ⇒ Parser[B]): Parser[B]
- Definition Classes
- Combinator0
- def pairBy[A, B](a: Parser[A], delim: Parser[_], b: Parser[B]): Parser[(A, B)]
- Definition Classes
- Combinator
- 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
- def phrase[A](p: Parser[A]): Parser[A]
Parser that matches
p
only if there is no remaining inputParser that matches
p
only if there is no remaining input- Definition Classes
- Combinator
- val pos: Parser[Int]
- Definition Classes
- Combinator0
- 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
- 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 asscan(n)((m, _) => m > 0 option m - 1)
.- Definition Classes
- Text
- def sepBy[A](p: Parser[A], s: Parser[_]): Parser[List[A]]
- Definition Classes
- Combinator
- def sepBy1[A](p: Parser[A], s: Parser[_]): Parser[NonEmptyList[A]]
- Definition Classes
- Combinator
- val short: Parser[Short]
Parser for a Short (range-checked).
Parser for a Short (range-checked).
- Definition Classes
- Numeric
- def signum: Parser[Int]
Parser for a leading
+
or-
as a signum, defaulting to1
Parser for a leading
+
or-
as a signum, defaulting to1
- Definition Classes
- Numeric
- def skip(p: (Char) ⇒ Boolean): Parser[Unit]
Parser that skips a
Char
if it satisfies predicatep
.Parser that skips a
Char
if it satisfies predicatep
.- Definition Classes
- Character
- def skipMany(p: Parser[_]): Parser[Unit]
- Definition Classes
- Combinator
- def skipMany1(p: Parser[_]): Parser[Unit]
- Definition Classes
- Combinator
- def skipManyN(n: Int, p: Parser[_]): Parser[Unit]
- Definition Classes
- Combinator
- def skipWhitespace: Parser[Unit]
Parser that consumes horizontal and vertical whitespace
Parser that consumes horizontal and vertical whitespace
- Definition Classes
- Text
- def spaceChar: Parser[Char]
- Definition Classes
- Character
- 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
- def string(s: String): Parser[String]
Parser that matches and returns only
s
.Parser that matches and returns only
s
.- Definition Classes
- Text
- def stringCI(s: String): Parser[String]
Like
string
but case-insensitives
.Like
string
but case-insensitives
.- Definition Classes
- Text
- 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
- 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
- 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
- final def synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def take(n: Int): Parser[String]
Parser that returns the next
n
characters as aString
.Parser that returns the next
n
characters as aString
.- Definition Classes
- Text
- 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
- lazy val takeText: Parser[String]
Parser that consumes and returns all remaining input.
Parser that consumes and returns all remaining input.
- Definition Classes
- Text
- 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
- 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
- def takeWith(n: Int, p: (String) ⇒ Boolean, what: ⇒ String = "takeWith(...)"): Parser[String]
- Definition Classes
- Text
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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
- def upper: Parser[Char]
- Definition Classes
- Character
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws(classOf[java.lang.InterruptedException])
- val wantInput: Parser[Boolean]
- Definition Classes
- Combinator0
- def whitespace: Parser[Char]
Horizontal or vertical whitespace character
Horizontal or vertical whitespace character
- Definition Classes
- Character