powered by
treeRoot() returns the root of a derivation tree.
treeRoot()
treeRoot(tree)
Root of a derivation tree.
Derivation tree.
Other Access Tree Parts: filterANL(), filterANLid(), treeANL(), treeChildren()
filterANL()
filterANLid()
treeANL()
treeChildren()
g<-compileBNF(booleanGrammar()) a<-randomDerivationTree(g$Start, g) treeRoot(a)
Run the code above in your browser using DataLab