%alt% {Ramble}R Documentation

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

Description

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

Usage

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

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

[Package Ramble version 0.1.1 Index]