View source: R/derivationTrees.R
decodeTree | R Documentation |
decodeTree()
returns a
list of all symbols of a derivation tree
in depth-first left-to-right order
(coded as R Factor with the symbol identifiers as levels).
decodeTree(tree, ST)
tree |
Derivation tree. |
ST |
Symbol table. |
List of all symbols in depth-first left-to-right order.
Other Decoder:
decodeAndFixDT()
,
decodeCDT()
,
decodeDT()
,
decodeDTsym()
,
leavesIncompleteDT()
g<-compileBNF(booleanGrammar())
a<-randomDerivationTree(g$Start, g)
decodeTree(a, g$ST)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.