object Parser
- Alphabetic
- By Inheritance
- Parser
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- final case class Backtrack[Err, In, Result](parser: Parser[Err, In, Result]) extends Parser[Err, In, Result] with Product with Serializable
- final case class CaptureString[Err, Err2](parser: Parser[Err, Char, Any]) extends Parser[Err2, Char, String] with Product with Serializable
- final case class Fail[+Err](failure: Err) extends Parser[Err, Any, Nothing] with Product with Serializable
- final case class Failed[+Err](failure: ParserError[Err]) extends Parser[Err, Any, Nothing] with Product with Serializable
- final case class FlatMap[Err, Err2, In, In2, Result, Result2](parser: Parser[Err, In, Result], f: (Result) => Parser[Err2, In2, Result2]) extends Parser[Err2, In2, Result2] with Product with Serializable
- final case class Ignore[Err, Err2, In, Result, Result2](parser: Parser[Err, In, Result], to: Result2) extends Parser[Err2, In, Result2] with Product with Serializable
- final case class Lazy[+Err, -In, +Result](inner: () => Parser[Err, In, Result]) extends Parser[Err, In, Result] with Product with Serializable
- final case class MapError[Err, Err2, In, Result](parser: Parser[Err, In, Result], mapParserErr: (ParserError[Err]) => ParserError[Err2]) extends Parser[Err2, In, Result] with Product with Serializable
- final case class Named[Err, In, Result](parser: Parser[Err, In, Result], name: String) extends Parser[Err, In, Result] with Product with Serializable
- final case class Not[Err, In](parser: Parser[Err, In, Any], failure: Err) extends Parser[Err, In, Unit] with Product with Serializable
- final case class Optional[Err, In, Result](parser: Parser[Err, In, Result]) extends Parser[Err, In, Option[Result]] with Product with Serializable
- final case class OrElse[Err, Err2, In, In2, Result, Result2](left: Parser[Err, In, Result], right: Parser[Err2, In2, Result2]) extends Parser[Err2, In2, Result2] with Product with Serializable
- final case class OrElseEither[Err, Err2, In, In2, Result, Result2](left: Parser[Err, In, Result], right: Parser[Err2, In2, Result2]) extends Parser[Err2, In2, Either[Result, Result2]] with Product with Serializable
- final case class ParseRegex[Err](regex: Regex, onFailure: Option[Err]) extends Parser[Err, Char, Chunk[Char]] with Product with Serializable
- final case class ParseRegexLastChar[Err](regex: Regex, onFailure: Option[Err]) extends Parser[Err, Char, Char] with Product with Serializable
- sealed trait ParserError[+Err] extends AnyRef
Type representing a parser error
- final case class Repeat[Err, In, Result](parser: Parser[Err, In, Result], min: Int, max: Option[Int]) extends Parser[Err, In, Chunk[Result]] with Product with Serializable
- final case class SetAutoBacktrack[Err, In, Result](parser: Parser[Err, In, Result], enabled: Boolean) extends Parser[Err, In, Result] with Product with Serializable
- final case class SkipRegex[Err](regex: Regex, onFailure: Option[Err]) extends Parser[Err, Char, Unit] with Product with Serializable
- final case class Succeed[+Result](value: Result) extends Parser[Nothing, Any, Result] with Product with Serializable
- final case class Transform[Err, Err2, In, Result, Result2](parser: Parser[Err, In, Result], to: (Result) => Result2) extends Parser[Err2, In, Result2] with Product with Serializable
- final case class TransformEither[Err, Err2, In, Result, Result2](parser: Parser[Err, In, Result], to: (Result) => Either[Err2, Result2]) extends Parser[Err2, In, Result2] with Product with Serializable
- final case class Zip[Err, Err2, In, In2, Result, Result2, ZippedResult](left: Parser[Err, In, Result], right: Parser[Err2, In2, Result2], zip: (Result, Result2) => ZippedResult) extends Parser[Err2, In2, ZippedResult] with Product with Serializable
- final case class ZipLeft[Err, Err2, In, In2, Result](left: Parser[Err, In, Result], right: Parser[Err2, In2, Any]) extends Parser[Err2, In2, Result] with Product with Serializable
- final case class ZipRight[Err, Err2, In, In2, Result, Result2](left: Parser[Err, In, Result], right: Parser[Err2, In2, Result2]) extends Parser[Err2, In2, Result2] with Product with Serializable
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
- lazy val alphaNumeric: Parser[String, Char, Char]
Parser of a single alpha-numeric character
- val anyChar: Parser[Nothing, Char, Char]
Parser that consumes a single character and returns it
- val anyString: Parser[Nothing, Char, String]
Parser that consumes the whole input and captures it as a string
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def char[Err](value: Char, failure: Err): Parser[Err, Char, Unit]
Parser that consumes the exact character 'value' or fails with 'failure' if it did not match, and results in the unit value
- def char(value: Char): Parser[String, Char, Unit]
Parser that consumes the exact character 'value' or fails if it did not match, and results in the unit value.
- def charIn(chars: Char*): Parser[String, Char, Char]
Parser that consumes a single character and succeeds with it if it is one of the provided 'chars'
- def charNotIn(chars: Char*): Parser[String, Char, Char]
Parser that consumes a single character and succeeds with it if it is NOT one of the provided 'chars'
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- lazy val digit: Parser[String, Char, Char]
Parser of a single digit
- lazy val end: Parser[Nothing, Any, Unit]
Parser that only succeeds if the input stream has been consumed fully.
Parser that only succeeds if the input stream has been consumed fully.
This can be used to require that a parser consumes the full input.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fail[Err](failure: Err): Parser[Err, Any, Nothing]
Parser that always fails with 'failure'
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- lazy val ignoreRest: Parser[Nothing, Char, Unit]
Parser that consumes and discards all the remaining input
- lazy val index: Parser[Nothing, Any, Int]
Parser that results in the current input stream position
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- lazy val letter: Parser[String, Char, Char]
Parser of a single letter
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def notChar[Err](value: Char, failure: Err): Parser[Err, Char, Char]
Parser that consumes a single character, fails with 'failure' if it is 'value', otherwise results with it
- def notChar(value: Char): Parser[String, Char, Char]
Parser that consumes a single character, fails if it is 'value', otherwise results with it
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def regex[Err](regex: Regex, failure: Err): ParseRegex[Err]
Parser that executes a regular expression on the input and results in the chunk of the parsed characters, or fails with 'failure'.
- def regexChar[Err](regex: Regex, failure: Err): ParseRegexLastChar[Err]
Parser that executes a regular expression on the input and results in the last parsed character, or fails with 'failure'.
Parser that executes a regular expression on the input and results in the last parsed character, or fails with 'failure'. Useful for regexes that are known to parse a single character.
- def regexDiscard[Err](regex: Regex, failure: Err): Parser[Err, Char, Unit]
Parser that executes a regular expression on the input but discards its result, and fails with 'failure' if the regex fails
- def string[Result](str: String, value: Result): Parser[String, Char, Result]
Parser that requires a given string 'str' and in case it could read it, results in 'value'
- def succeed[Result](value: Result): Parser[Nothing, Any, Result]
Parser that does not consume any input and succeeds with 'value'
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- lazy val unit: Parser[Nothing, Any, Unit]
Parser that does not consume the input and results in unit
- def unsafeRegex(regex: Regex): ParseRegex[Nothing]
Parser that executes a regular expression on the input and results in the chunk of the parsed characters.
Parser that executes a regular expression on the input and results in the chunk of the parsed characters. The regex is supposed to never fail.
- def unsafeRegexChar[E](regex: Regex): ParseRegexLastChar[E]
Parser that executes a regular expression on the input and results in the last parsed character.
Parser that executes a regular expression on the input and results in the last parsed character. The regex is supposed to never fail. Useful for regexes that are known to parse a single character.
- def unsafeRegexDiscard(regex: Regex): Parser[Nothing, Char, Unit]
Parser that executes a regular expression on the input but discards its result.
Parser that executes a regular expression on the input but discards its result. The regex is supposed to never fail.
- 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
- @throws(classOf[java.lang.InterruptedException]) @native()
- lazy val whitespace: Parser[String, Char, Char]
Parser of a single whitespace character
- case object End extends Parser[Nothing, Any, Unit] with Product with Serializable
- case object Index extends Parser[Nothing, Any, Int] with Product with Serializable
- object ParserError