grapes-thentree-grapes: '%thentree%' is the infix operator for the then combinator,...

Description Usage Arguments Value See Also Examples

Description

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

Usage

1
p1 %thentree% 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

1
(item() %thentree% succeed("123")) ("abc")

Example output

$result
$result[[1]]
[1] "a"

$result[[2]]
[1] "123"


$leftover
[1] "bc"

Ramble documentation built on May 1, 2019, 7:17 p.m.