View source: R/derivationTrees.R
substituteSymbol | R Documentation |
substituteSymbol()
generates a nested list with the non-terminal symbol as the root
(first list element) and the derived symbols as the second list element.
substituteSymbol(rindex, PT)
rindex |
Rule index. |
PT |
Production table. |
2-element list.
Other Generate Derivation Tree:
generateCDT()
,
generateDerivationTree()
,
randomDerivationTree()
,
rndsub()
,
rndsubk()
g<-compileBNF(booleanGrammar())
substituteSymbol(3, g$PT)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.