rndsubk | R Documentation |
rndsubk()
expands a non-terminal by a derivation
specified by k and returns a 1-level derivation tree.
rndsubk(sym, k, PT)
sym |
Non-terminal symbol. |
k |
Codon (An integer). |
PT |
Production table. |
1-level derivation tree.
Other Generate Derivation Tree:
generateCDT()
,
generateDerivationTree()
,
randomDerivationTree()
,
rndsub()
,
substituteSymbol()
g<-compileBNF(booleanGrammar())
rndsubk(g$Start, 207, g$PT)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.