You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For a parser a and another parser b, If we need logic which is: using applying parser b to the input, only if parser a success or in other case not success. (parser a does not consume input).
Adding this feature would be good.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: