Open evan0greenup opened 3 months ago
If I'm understanding, you want a parser(a, b)
that does one of
tuple((peek(a), b))
tuple((not(a), b))
I can't think of a time that I've needed them. I'd be interested to know more about your case that this is common that having this in a library would be helpful.
Currently, there is
alt()
.For a parser
a
and another parserb
, If we need logic which is: using applying parserb
to the input, only if parsera
success or in other case not success. (parsera
does not consume input).Adding this feature would be good.