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