View source: R/derivationTrees.R
leavesIncompleteDT | R Documentation |
For incomplete derivation trees, non-terminal symbols are leaves.
leavesIncompleteDT(tree, ST, leavesList = list())
tree |
Derivation tree. |
ST |
Symbol table. |
leavesList |
List of symbol identifiers. |
Must perform a depth-first left-to-right tree traversal to collect all leave symbols (terminal and non-terminal symbols).
List of symbol identifiers.
Other Decoder:
decodeAndFixDT()
,
decodeCDT()
,
decodeDT()
,
decodeDTsym()
,
decodeTree()
g<-compileBNF(booleanGrammar())
a<-randomDerivationTree(g$Start, g)
leavesIncompleteDT(a, g$ST)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.