readBNF {xegaBNF} | R Documentation |
readBNF()
reads a text file and
returns a character string.
readBNF(filename, eol = "")
filename |
A file name. |
eol |
End-of-line symbol(s). Default: "" |
A named list with
$filename the filename.
$BNF a character string with the newline symbol \n.
Other File I/O:
newBNF()
,
writeBNF()
g<-booleanGrammar()
fn<-tempfile()
writeBNF(g, fn)
g1<-readBNF(fn)
unlink(fn)