| rndsub {xegaDerivationTrees} | R Documentation |
Transforms a non-terminal symbol into a random 1-level derivation tree.
Description
rndsub() expands a non-terminal by a random derivation
and returns a 1-level derivation tree.
Usage
rndsub(sym, PT)
Arguments
sym |
Non-terminal symbol. |
PT |
Production table. |
Value
Derivation tree with 1-level.
See Also
Other Generate Derivation Tree:
generateDerivationTree(),
randomDerivationTree(),
rndsubk(),
substituteSymbol()
Examples
g<-compileBNF(booleanGrammar())
rndsub(g$Start, g$PT)
[Package xegaDerivationTrees version 1.0.0.0 Index]