Learn R Programming

Ramble (version 0.1.1)

thentree: thentree keeps the full tree representation of the results of parsing. Otherwise, it is identical to then.

Description

thentree keeps the full tree representation of the results of parsing. Otherwise, it is identical to then.

Usage

thentree(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() %thentree% succeed("123")) ("abc")

Run the code above in your browser using DataLab