decodeDTsym {xegaDerivationTrees} | R 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:
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)
[Package xegaDerivationTrees version 1.0.0.0 Index]