makeSymbolTable {xegaBNF} | R Documentation |
makeSymbolTable()
extracts all terminal
and non-terminal symbols from a BNF
and builds a data frame with the columns
Symbols (string), NonTerminal (0 or 1), and SymbolId (int).
The symbol "NotExpanded" is added which codes
depth violations of a derivation tree.
makeSymbolTable(BNF)
BNF |
A character string with the BNF. |
A data frame with the columns
Symbols
, NonTerminal
, and SymbolID
.
makeSymbolTable(booleanGrammar()$BNF)