purpleclay/chomp

[Feature]: add a new split combinator that is capable of splitting the input by a known delimiter

Closed this issue · 1 comments

Describe your feature

Add a Split combinator that provides a shortcut to splitting a string by a known delimiter. This should be a greedy combinator that will keep splitting until either the end of a line or the end of the input text. It should expect to split at least once.

Add a SplitN combinator that defines an expectation on the number of times the input should be split. Constraining the combinator.

Any additional information?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

In hindsight, this parser is too greedy and requires many side effects to be helpful.