View source: R/derivationTrees.R
decodeCDT | R Documentation |
decodeCDT()
returns a program
(a text string with the terminal symbol string).
If the derivation tree still has non-terminal leaves,
the non-terminal leaves are omitted.
The program produces a syntax error.
The program can not be repaired.
decodeCDT(tree, ST)
tree |
Derivation tree. |
ST |
Symbol table. |
A program.
Other Decoder:
decodeAndFixDT()
,
decodeDT()
,
decodeDTsym()
,
decodeTree()
,
leavesIncompleteDT()
g<-compileBNF(booleanGrammar())
a<-randomDerivationTree(g$Start, g)
decodeCDT(a, g$ST)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.