final case class ParseRegex[Err](regex: Regex, onFailure: Option[Err]) extends Parser[Err, Char, Chunk[Char]] with Product with Serializable
- Alphabetic
- By Inheritance
- ParseRegex
- Serializable
- Product
- Equals
- Parser
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def *: Parser[Err, Char, Chunk[Chunk[Char]]]
Symbolic alias for repeat0
Symbolic alias for repeat0
- Definition Classes
- Parser
- final def +: Parser[Err, Char, Chunk[Chunk[Char]]]
Symbolic alias for repeat
Symbolic alias for repeat
- Definition Classes
- Parser
- final def <+>[Err2 >: Err, In2 <: Char, Result2](that: => Parser[Err2, In2, Result2]): Parser[Err2, In2, Either[Chunk[Char], Result2]]
Symbolic alias for orElseEither
Symbolic alias for orElseEither
- Definition Classes
- Parser
- final def <>[Err2 >: Err, In2 <: Char, Result2 >: Chunk[Char]](that: => Parser[Err2, In2, Result2]): Parser[Err2, In2, Result2]
Symbolic alias for orElse
Symbolic alias for orElse
- Definition Classes
- Parser
- final def <~[Err2 >: Err, In2 <: Char, Result2](that: => Parser[Err2, In2, Unit]): Parser[Err2, In2, Chunk[Char]]
Symbolic alias for zipLeft
Symbolic alias for zipLeft
- Definition Classes
- Parser
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ?: Parser[Err, Char, Option[Chunk[Char]]]
Symbolic alias for optional
Symbolic alias for optional
- Definition Classes
- Parser
- final def ??(name: String): Parser[Err, Char, Chunk[Char]]
Symbolic alias for named
Symbolic alias for named
- Definition Classes
- Parser
- final def as[Result2](result: Result2): Parser[Err, Char, Result2]
Ignores the parser's successful result and result in 'result' instead
Ignores the parser's successful result and result in 'result' instead
- Definition Classes
- Parser
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- final def atLeast(min: Int): Parser[Err, Char, Chunk[Chunk[Char]]]
Repeats this parser at least 'min' times.
Repeats this parser at least 'min' times.
The result is all the parsed elements until the first failure. The failure that stops the repetition gets swallowed and in case auto-backtracking is on, the parser backtracks to the end of the last successful item.
- Definition Classes
- Parser
- final def autoBacktracking: Parser[Err, Char, Chunk[Char]]
Enables auto-backtracking for this parser
Enables auto-backtracking for this parser
- Definition Classes
- Parser
- final def backtrack: Parser[Err, Char, Chunk[Char]]
Parser that resets the parsing position in case it fails.
Parser that resets the parsing position in case it fails.
By default backtracking points are automatically inserted. This behavior can be changed with the autoBacktracking, manualBacktracking and setAutoBacktracking combinators.
- Definition Classes
- Parser
- final def between[Err2 >: Err, In2 <: Char](left: Parser[Err2, In2, Any], right: Parser[Err2, In2, Any]): Parser[Err2, In2, Chunk[Char]]
Concatenates the parsers 'left', then this, then 'right'.
Concatenates the parsers 'left', then this, then 'right'.
All three must succeed. The result is this parser's result.
- Definition Classes
- Parser
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- lazy val compiledOpStack: InitialParser
- Definition Classes
- Parser
- lazy val compiledRegex: Compiled
- lazy val defaultImplementation: ParserImplementation
- Definition Classes
- Parser
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def filter[Result2, Err2 >: Err](condition: (Result2) => Boolean, failure: Err2)(implicit ev: <:<[Chunk[Char], Result2]): Parser[Err2, Char, Result2]
Checks the result of this parser with the given function.
Checks the result of this parser with the given function. If the 'condition' is false, fails with the given failure 'failure', otherwise results in the this parser's result.
- Definition Classes
- Parser
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def flatMap[Err2 >: Err, In2 <: Char, Result2](that: (Chunk[Char]) => Parser[Err2, In2, Result2]): Parser[Err2, In2, Result2]
Determines the continuation of the parser by the result of this parser, expressed by the function 'that'
Determines the continuation of the parser by the result of this parser, expressed by the function 'that'
- Definition Classes
- Parser
- final def flatten(implicit ev2: <:<[Chunk[Char], Chunk[String]]): Parser[Err, Char, String]
Flattens a result of parsed strings to a single string
Flattens a result of parsed strings to a single string
- Definition Classes
- Parser
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def manualBacktracking: Parser[Err, Char, Chunk[Char]]
Turns off auto-backtracking for this parser
Turns off auto-backtracking for this parser
- Definition Classes
- Parser
- final def map[Result2](to: (Chunk[Char]) => Result2): Parser[Err, Char, Result2]
Maps the parser's successful result with the given function 'to'
Maps the parser's successful result with the given function 'to'
- Definition Classes
- Parser
- final def mapError[Err2](f: (Err) => Err2): Parser[Err2, Char, Chunk[Char]]
Maps the error with the given function 'f'
Maps the error with the given function 'f'
- Definition Classes
- Parser
- final def named(name: String): Parser[Err, Char, Chunk[Char]]
Associates a name with this parser.
Associates a name with this parser. The chain of named parsers are reported in case of failure to help debugging parser issues.
- Definition Classes
- Parser
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val needsBacktrack: Boolean
- Attributes
- protected
- Definition Classes
- ParseRegex → Parser
- final def not[Err2 >: Err](failure: => Err2): Parser[Err2, Char, Unit]
Parser that fails with the given 'failure' if this parser succeeds
Parser that fails with the given 'failure' if this parser succeeds
- Definition Classes
- Parser
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val onFailure: Option[Err]
- def optimizeNode(state: OptimizerState): Parser[Err, Char, Chunk[Char]]
- Attributes
- protected
- Definition Classes
- ParseRegex → Parser
- lazy val optimized: Parser[Err, Char, Chunk[Char]]
The optimized parser tree used by the parser implementations
The optimized parser tree used by the parser implementations
- Definition Classes
- Parser
- final def optional: Parser[Err, Char, Option[Chunk[Char]]]
Make this parser optional.
Make this parser optional.
Failure of this parser will be ignored. In case auto-backtracking is enabled, backtracking is performed on it.
- Definition Classes
- Parser
- final def orElse[Err2 >: Err, In2 <: Char, Result2 >: Chunk[Char]](that: => Parser[Err2, In2, Result2]): Parser[Err2, In2, Result2]
Assigns 'that' parser as a fallback of this.
Assigns 'that' parser as a fallback of this. First this parser gets evaluated. In case it succeeds, the result is this parser's result. In case it fails, the result is 'that' parser's result.
If auto-backtracking is on, this parser will backtrack before trying 'that' parser.
- Definition Classes
- Parser
- final def orElseEither[Err2 >: Err, In2 <: Char, Result2](that: => Parser[Err2, In2, Result2]): Parser[Err2, In2, Either[Chunk[Char], Result2]]
Assigns 'that' parser as a fallback of this.
Assigns 'that' parser as a fallback of this. First this parser gets evaluated. In case it succeeds, the result is this parser's result wrapped in 'Left'. In case it fails, the result is 'that' parser's result, wrapped in 'Right'.
Compared to orElse, this version allows the two parsers to have different result types.
If auto-backtracking is on, this parser will backtrack before trying 'that' parser.
- Definition Classes
- Parser
- final def parseChars(input: Chunk[Char], parserImplementation: ParserImplementation)(implicit ev: <:<[Char, Char]): Either[ParserError[Err], Chunk[Char]]
Run this parser on the given 'input' chunk of characters using a specific parser implementation
Run this parser on the given 'input' chunk of characters using a specific parser implementation
- Definition Classes
- Parser
- final def parseChars(input: Chunk[Char])(implicit ev: <:<[Char, Char]): Either[ParserError[Err], Chunk[Char]]
Run this parser on the given 'input' chunk of characters
Run this parser on the given 'input' chunk of characters
- Definition Classes
- Parser
- def parseRec(state: ParserState): Chunk[Char]
- Attributes
- protected
- Definition Classes
- ParseRegex → Parser
- final def parseString(input: String, parserImplementation: ParserImplementation)(implicit ev: <:<[Char, Char]): Either[ParserError[Err], Chunk[Char]]
Run this parser on the given 'input' string using a specific parser implementation
Run this parser on the given 'input' string using a specific parser implementation
- Definition Classes
- Parser
- final def parseString(input: String)(implicit ev: <:<[Char, Char]): Either[ParserError[Err], Chunk[Char]]
Run this parser on the given 'input' string
Run this parser on the given 'input' string
- Definition Classes
- Parser
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val regex: Regex
- final def repeat: Parser[Err, Char, Chunk[Chunk[Char]]]
Repeats this parser at least once.
Repeats this parser at least once.
The result is all the parsed elements until the first failure. The failure that stops the repetition gets swallowed and in case auto-backtracking is on, the parser backtracks to the end of the last successful item.
- Definition Classes
- Parser
- final def repeat0: Parser[Err, Char, Chunk[Chunk[Char]]]
Repeats this parser zero or more times.
Repeats this parser zero or more times.
The result is all the parsed elements until the first failure. The failure that stops the repetition gets swallowed and in case auto-backtracking is on, the parser backtracks to the end of the last successful item.
- Definition Classes
- Parser
- final def repeatUntil[Err2 >: Err, In2 <: Char](stopCondition: Parser[Err2, In2, Any]): Parser[Err2, In2, Chunk[Chunk[Char]]]
Repeats this parser until the given
stopCondition
parser succeeds.Repeats this parser until the given
stopCondition
parser succeeds.- Definition Classes
- Parser
- final def repeatWithSep[Err2 >: Err, In2 <: Char](sep: Parser[Err2, In2, Unit]): Parser[Err2, In2, Chunk[Chunk[Char]]]
Repeats this parser at least once and requires that between each element, the 'sep' parser succeeds
Repeats this parser at least once and requires that between each element, the 'sep' parser succeeds
- Definition Classes
- Parser
- final def repeatWithSep0[Err2 >: Err, In2 <: Char](sep: Parser[Err2, In2, Unit]): Parser[Err2, In2, Chunk[Chunk[Char]]]
Repeats this parser zero or more times and requires that between each element, the 'sep' parser succeeds
Repeats this parser zero or more times and requires that between each element, the 'sep' parser succeeds
- Definition Classes
- Parser
- def runOptimizeNode(optimizerState: OptimizerState): Parser[Err, Char, Chunk[Char]]
- Attributes
- protected
- Definition Classes
- Parser
- def runStripNode(stripState: OptimizerState): Parser[Err, Char, Chunk[Char]]
- Attributes
- protected
- Definition Classes
- Parser
- final def setAutoBacktracking(enabled: Boolean): Parser[Err, Char, Chunk[Char]]
Enables or disables auto-backtracking for this parser
Enables or disables auto-backtracking for this parser
- Definition Classes
- Parser
- final def string(implicit ev: <:<[Char, Char]): Parser[Err, Char, String]
Ignores this parser's result and instead capture the parsed string fragment
Ignores this parser's result and instead capture the parsed string fragment
- Definition Classes
- Parser
- def strip: Parser[Err, Char, Chunk[Char]]
Strips all the name information from this parser to improve performance but reduces the failure message's verbosity.
Strips all the name information from this parser to improve performance but reduces the failure message's verbosity.
- Definition Classes
- Parser
- def stripNode(state: OptimizerState): Parser[Err, Char, Chunk[Char]]
- Attributes
- protected
- Definition Classes
- ParseRegex → Parser
- final def surroundedBy[Err2 >: Err, In2 <: Char](other: Parser[Err2, In2, Any]): Parser[Err2, In2, Chunk[Char]]
Surrounds this parser with the 'other' parser.
Surrounds this parser with the 'other' parser. The result is this parser's result.
- Definition Classes
- Parser
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- ParseRegex → AnyRef → Any
- final def transformEither[Err2, Result2](to: (Chunk[Char]) => Either[Err2, Result2]): Parser[Err2, Char, Result2]
Maps the parser's successful result with the given function 'to' that either fails or produces a new result value.
Maps the parser's successful result with the given function 'to' that either fails or produces a new result value.
- Definition Classes
- Parser
- final def transformOption[Result2](to: (Chunk[Char]) => Option[Result2]): Parser[Option[Err], Char, Result2]
Maps the parser's successful result with the given function 'to' that either produces a new result value or the failure is indicated in the error channel by the value None.
Maps the parser's successful result with the given function 'to' that either produces a new result value or the failure is indicated in the error channel by the value None.
- Definition Classes
- Parser
- final def unit: Parser[Err, Char, Unit]
Parser that does not consume any input and produces the unit value
Parser that does not consume any input and produces the unit value
- Definition Classes
- Parser
- 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()
- final def zip[Err2 >: Err, In2 <: Char, Result2, ZippedResult](that: => Parser[Err2, In2, Result2])(implicit zippable: Out[Chunk[Char], Result2, ZippedResult]): Parser[Err2, In2, ZippedResult]
Concatenates this parser with 'that' parser.
Concatenates this parser with 'that' parser. In case both parser succeeds, the result is a pair of the results.
- Definition Classes
- Parser
- final def zipLeft[Err2 >: Err, In2 <: Char, Result2](that: => Parser[Err2, In2, Any]): Parser[Err2, In2, Chunk[Char]]
Concatenates this parser with 'that' parser.
Concatenates this parser with 'that' parser. In case both parser succeeds, the result is the result of this parser. Otherwise the parser fails.
- Definition Classes
- Parser
- final def |[Err2 >: Err, In2 <: Char, Result2 >: Chunk[Char]](that: => Parser[Err2, In2, Result2]): Parser[Err2, In2, Result2]
Symbolic alias for orElse
Symbolic alias for orElse
- Definition Classes
- Parser
- final def ~[Err2 >: Err, In2 <: Char, Result2, ZippedResult](that: => Parser[Err2, In2, Result2])(implicit zippable: Out[Chunk[Char], Result2, ZippedResult]): Parser[Err2, In2, ZippedResult]
Symbolic alias for zip
Symbolic alias for zip
- Definition Classes
- Parser