decodeDTsym: Decodes a derivation tree into a list of the leaf symbols of...

View source: R/derivationTrees.R

decodeDTsymR Documentation

Decodes a derivation tree into a list of the leaf symbols of the derivation tree.

Description

Decodes a derivation tree into a list of the leaf symbols of the derivation tree.

Usage

decodeDTsym(tree, ST)

Arguments

tree

Derivation tree.

ST

Symbol table.

Value

List of the leaf symbols of the derivation tree.

See Also

Other Decoder: decodeAndFixDT(), decodeCDT(), decodeDT(), decodeTree(), leavesIncompleteDT()

Examples

g<-compileBNF(booleanGrammar())
t1<-generateDerivationTree(sym=g$Start,sample(100, 10, replace=TRUE), G=g)
decodeDTsym(t1$tree, g$ST) 


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