streamly icon indicating copy to clipboard operation
streamly copied to clipboard

Parallel alternative parsers

Open harendra-kumar opened this issue 6 months ago • 0 comments

In an alternative combinator we can feed the input in parallel to both the parsers until one of the parsers yields a result. We could use different strategies for using the result e.g. (1) compute in parallel but use the second parser only if the first parser fails, (2) use whichever parser yields the result first and discard the other.

The parallel parsing could be done sequentially or concurrently.

harendra-kumar avatar Jun 29 '25 17:06 harendra-kumar