Creates a sequence handler by combining this one and a getNext
function such that when this
handler finishes, a second handler is created by passing its result ot getNext
.
Creates a sequence handler by combining this one and a getNext
function such that when this
handler finishes, a second handler is created by passing its result ot getNext
.
The output type of the second handler
A function that takes this handler's result to create a second handler
The combined handler
Alias for apply
, to help use this object in for-comprehensions.
Alias for apply
, to help use this object in for-comprehensions.
Creates a sequence handler by combining this one and a getNext
function such that when this
handler finishes, a second handler is created by passing its result ot getNext
.
The output type of the second handler
A function that takes this handler's result to create a second handler
The combined handler
Convenience for using this object in for-comprehensions; wraps this ToSequence
by calling f
on the first handler's result and passing that into the getNext
function.
Convenience for using this object in for-comprehensions; wraps this ToSequence
by calling f
on the first handler's result and passing that into the getNext
function.
You probably don't want to call this directly
An intermediate object for creating sequence-based combination methods for a Parser or Consumer.
Type constructor for the parser/consumer of a given output type
Output type for the "first" parser/consumer; using the combination methods in this trait will result in an instance of T1 being used to create a "second" parser/consumer/transformer to be run sequentially after the first.