View source: R/printDerivations.R
decodeSymVec | R Documentation |
Decodes a vector of symbols.
decodeSymVec(v, ST)
v |
Vector of symbols. |
ST |
Symbol table. |
A program.
g<-compileBNF(booleanGrammar())
a<-randomDerivationTree(g$Start, g)
r<-treeRoot(a)
decodeSymVec(r, g$ST)
c<-unlist(lapply(treeChildren(a), FUN=treeRoot))
decodeSymVec(c, g$ST)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.