TransformEither
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Inherited methods
Symbolic alias for repeat0
Symbolic alias for repeat
Symbolic alias for orElseEither
Symbolic alias for orElse
Symbolic alias for zipLeft
Symbolic alias for optional
Symbolic alias for named
Ignores the parser's successful result and result in 'result' instead
Ignores the parser's successful result and result in 'result' instead
Attributes
- Inherited from:
- Parser
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.
Attributes
- Inherited from:
- Parser
Enables auto-backtracking for this parser
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.
Attributes
- Inherited from:
- Parser
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.
Attributes
- Inherited from:
- Parser
Repeats this parser exactly N times
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.
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.
Attributes
- Inherited from:
- Parser
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'
Attributes
- Inherited from:
- Parser
Flattens a result of parsed strings to a single string
Turns off auto-backtracking for this parser
Maps the parser's successful result with the given function 'to'
Maps the error with the given function 'f'
Associates a name with this parser. The chain of named parsers are reported in case of failure to help debugging parser issues.
Associates a name with this parser. The chain of named parsers are reported in case of failure to help debugging parser issues.
Attributes
- Inherited from:
- Parser
Parser that fails with the given 'failure' if this parser succeeds
Parser that fails with the given 'failure' if this parser succeeds
Attributes
- Inherited from:
- Parser
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.
Attributes
- Inherited from:
- Parser
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.
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.
Attributes
- Inherited from:
- Parser
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'.
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.
Attributes
- Inherited from:
- Parser
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.
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.
Attributes
- Inherited from:
- VersionSpecificParser
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
Attributes
- Inherited from:
- Parser
Run this parser on the given 'input' chunk of characters
Run this parser on the given 'input' chunk
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
Attributes
- Inherited from:
- Parser
Run this parser on the given 'input' string
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
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.
Attributes
- Inherited from:
- Parser
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.
Attributes
- Inherited from:
- Parser
Repeats this parser until the given stopCondition
parser succeeds.
Repeats this parser until the given stopCondition
parser succeeds.
Attributes
- Inherited from:
- Parser
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
Attributes
- Inherited from:
- Parser
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
Attributes
- Inherited from:
- Parser
Enables or disables auto-backtracking for this parser
Ignores this parser's result and instead capture the parsed string fragment
Ignores this parser's result and instead capture the parsed string fragment
Attributes
- Inherited from:
- Parser
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.
Attributes
- Inherited from:
- Parser
Surrounds this parser with the 'other' parser. The result is this parser's result.
Surrounds this parser with the 'other' parser. The result is this parser's result.
Attributes
- Inherited from:
- Parser
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.
Attributes
- Inherited from:
- Parser
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.
Attributes
- Inherited from:
- Parser
Parser that does not consume any input and produces the unit value
Parser that does not consume any input and produces the unit value
Attributes
- Inherited from:
- Parser
Concatenates this parser with 'that' parser. In case both parser succeeds, the result is a pair of the results.
Concatenates this parser with 'that' parser. In case both parser succeeds, the result is a pair of the results.
Attributes
- Inherited from:
- Parser
Concatenates this parser with 'that' parser. In case both parser succeeds, the result is the result of this parser. Otherwise the parser fails.
Concatenates this parser with 'that' parser. In case both parser succeeds, the result is the result of this parser. Otherwise the parser fails.
Attributes
- Inherited from:
- Parser
Symbolic alias for orElse