readGrammar: New Grammar Parser

Description Usage Arguments Examples

Description

New Grammar Parser

New Grammar Parser

Usage

1
2
3
readGrammar(filename)

readGrammar(filename)

Arguments

filename

The filename to run through the function.

filename

The filename to run through the function.

Examples

1
2
3
4
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")
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")

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