failed {parcr}R 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)


[Package parcr version 0.5.1 Index]