treeRoot: Returns the root of a derivation tree.

View source: R/derivationTrees.R

treeRootR 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: filterANL(), filterANLid(), treeANL(), treeChildren()

Examples

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


xegaDerivationTrees documentation built on April 16, 2025, 5:11 p.m.