Replies: 1 comment 3 replies
-
@junebash The main reason we've resisted adding this directly to the repo is a theoretical worry about performance...if the parser passed to It may be the case that our worry is unjustified, though! We'd love to see benchmarks comparing the approaches and trying to see if it's possible to encounter an issue. One other thought is with OneOf {
PrefixUpTo(/\v\v/)
Rest()
} I think this (and other things) will be fun to explore soon! Also, I'm going to convert this to a discussion, since we try to keep issues focussed on bugs. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In one of my projects, I have a line in a parser that looks like this:
Really what I need is to parse everything up to the next two lines, or the rest of the string otherwise, with something like this:
This isn't possible to express currently. Seems like it should be possible?
I'll see if I can cook up a PR, but I figured I'd mention it here first.
Beta Was this translation helpful? Give feedback.
All reactions