%alt% {Ramble} | R Documentation |
%alt%
is the infix notation for the alt
function.%alt%
is the infix notation for the alt
function.
p1 %alt% p2
p1 |
the first parser |
p2 |
the second parser |
Returns the first parser if it suceeds otherwise the second parser
(item() %alt% succeed("2")) ("abcdef")