grapes-alt-grapes: '%alt%' is the infix notation for the 'alt' function.

Description Usage Arguments Value Examples

Description

%alt% is the infix notation for the alt function.

Usage

1
p1 %alt% p2

Arguments

p1

the first parser

p2

the second parser

Value

Returns the first parser if it suceeds otherwise the second parser

Examples

1
(item() %alt% succeed("2")) ("abcdef")


Search within the Ramble package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.