extractKey: Extract A Key From The Dictionary

Description Usage Arguments Value Examples

Description

A function to extract keys from the unique dictionary syntax, which goes key ::= val1 | val2 | etc..., and put it in its proper format. See the complementary functions extractValue and the opposite function buildEntry for other options.

Usage

1
extractKey(inString, format = TRUE)

Arguments

inString

A string to be formatted.

format

If set to TRUE (default), then <> are added around the word for insertion into a story.

Value

This function returns the modified string.

Examples

1
extractKey("rawr ::= a | b | c", format=TRUE)

ecology-rocks/grammaR documentation built on May 15, 2019, 7:58 p.m.