parseGrammar: Parse a grammar based on recursion

Description Usage Arguments Examples

Description

Parse a grammar based on recursion

Usage

1
parseGrammar(mydic, topval = "top", currentstring = "")

Arguments

mydic

The dictionary to use for parsing.

key

The key to look up

Examples

1
2
3
#' cat("top ::= <greeting> <place>!", "greeting ::= Hello | Howdy | Hey there | What's up", "place ::= fart <monkey>", "monkey ::= rawr | death | marquee", file="ex.data", sep="\n")
store <- readGrammar("ex.data")
parseGrammar(store, "top")

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