Learn R Programming

Ramble (version 0.1.1)

then: then combinator corresponds to sequencing in BNF. The parser (then(p1, p2)) recognises anything that p1 and p2 would if placed in succession.

Description

%then% is the infix operator for the then combinator, and it is the preferred way to use the then operator.

Usage

then(p1, p2)

Arguments

p1
the first parser
p2
the second parser

Value

recognises anything that p1 and p2 would if placed in succession.

See Also

alt, thentree

Examples

Run this code
(item() %then% succeed("123")) ("abc")

Run the code above in your browser using DataLab