failed: Testing for parser failure

View source: R/marker.R

failedR Documentation

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)

Arguments

o

Output from a parser.

Value

A logical value.

See Also

print.marker()

Examples

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


parcr documentation built on June 22, 2024, 10:31 a.m.