Learn R Programming

dataquieR (version 2.1.0)

util_parse_redcap_rule: Interpret a REDcap-style rule and create an expression, that represents this rule

Description

Interpret a REDcap-style rule and create an expression, that represents this rule

Usage

util_parse_redcap_rule(
  rule,
  debug = 0,
  entry_pred = "REDcapPred",
  must_eof = FALSE
)

Value

expression the interpreted rule

REDcap rules 1

REDcap rules 2

REDcap rules 3

For resolving left-recursive rules, StackOverflow

helps understanding the grammar below, just in case, theoretical computer science is not right in your mind currently.

Arguments

rule

character REDcap style rule

debug

integer debug level (0 = off, 1 = log, 2 = breakpoints)

entry_pred

character for debugging reasons: The production rule used entry point for the parser

must_eof

logical if TRUE, expect the input to be eof, when the parser succeeded, fail, if not.

See Also

Other parser_functions: util_interpret_limits(), util_interpret_range(), util_parse_assignments(), util_parse_interval()