Learn R Programming

parcr (version 0.5.1)

failed: Testing for parser failure

Description

Use this function to test whether your parser failed, for example in unit testing of your parsers when writing a package.

Usage

failed(o)

Value

A logical value.

Arguments

o

Output from a parser.

See Also

print.marker()

Examples

Run this code
d <- (literal("A") %then% literal("B"))(c("A","A"))
d
failed(d)

Run the code above in your browser using DataLab