chooseNode {xegaDerivationTrees}R Documentation

Randomly selects an attributed node in an attributed node list.

Description

chooseNode() returns a random attributed node from an attributed node list.

Usage

chooseNode(ANL)

Arguments

ANL

Attributed node list.

Details

An attributed node has the following elements:

These elements can be used e.g.

Value

An attributed node.

See Also

Other Random Choice: chooseRule()

Examples

g<-compileBNF(booleanGrammar())
a<-randomDerivationTree(g$Start, g)
b<-treeANL(a, g$ST)
c<-chooseNode(b$ANL)


[Package xegaDerivationTrees version 1.0.0.6 Index]