treeRoot {xegaDerivationTrees}R Documentation

Returns the root of a derivation tree.

Description

treeRoot() returns the root of a derivation tree.

Usage

treeRoot(tree)

Arguments

tree

Derivation tree.

Value

Root of a derivation tree.

See Also

Other Access Tree Parts: filterANLid(), filterANL(), treeANL(), treeChildren()

Examples

g<-compileBNF(booleanGrammar())
a<-randomDerivationTree(g$Start, g)
treeRoot(a) 


[Package xegaDerivationTrees version 1.0.0.0 Index]