Description Usage Arguments Examples
Parse a grammar based on recursion
1 | parseGrammar(mydic, topval = "top", currentstring = "")
|
mydic |
The dictionary to use for parsing. |
key |
The key to look up |
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.