derive {xegaBNF} | R Documentation |
derives()
returns the identifier list which expands
a non-terminal identifier.
Warning: No error checking implemented.
derive(RuleIndex, RHS)
RuleIndex |
An index (integer) in the production table. |
RHS |
The right-hand side of the production table. |
A vector of numerical identifiers.
Other Utility Functions:
id2symb()
,
isNonTerminal()
,
isTerminal()
,
rules()
,
symb2id()
a<-booleanGrammar()$BNF
ST<-makeSymbolTable(a)
PT<-makeProductionTable(a,ST)
derive(1, PT$RHS)
derive(2, PT$RHS)
derive(3, PT$RHS)
derive(5, PT$RHS)