readBNF: Read text file.

View source: R/BNFfileIO.R

readBNFR Documentation

Read text file.

Description

readBNF() reads a text file and returns a character string.

Usage

readBNF(filename, eol = "")

Arguments

filename

A file name.

eol

End-of-line symbol(s). Default: ""

Value

A named list with

  • $filename the filename.

  • $BNF a character string with the newline symbol \n.

See Also

Other File I/O: newBNF(), writeBNF()

Examples

g<-booleanGrammar()
fn<-tempfile()
writeBNF(g, fn)
g1<-readBNF(fn)
unlink(fn)

xegaBNF documentation built on May 29, 2024, 10:23 a.m.

Related to readBNF in xegaBNF...