printPT {xegaBNF}R Documentation

Print a production table of a grammar.

Description

Print a production table of a grammar.

Usage

printPT(PT, G, verbose = TRUE)

Arguments

PT

A production table of the grammar G.

G

A grammar object

verbose

Print production table? Default: TRUE.

Value

An invisible list of the production table.

See Also

Other Diagnostics: dataframePT()

Examples

g<-compileBNF(booleanGrammar())
cat("Production table:\n")
l<-printPT(g$PT, g, verbose=TRUE)
cat("Short Production table:\n")
printPT(g$SPT, g, verbose=TRUE)


[Package xegaBNF version 1.0.0.5 Index]