| |
|
| java.lang.Object ro.infoiasi.donald.compiler.cfg.CFG
CFG | public class CFG (Code) | | Context Free Grammar
|
addStartProduction | public Production addStartProduction()(Code) | | Adds a new start non-terminal $START to the grammar
and the production $START ::= oldStart EOF
|
computeFirst | public void computeFirst()(Code) | | |
computeFollow | public void computeFollow()(Code) | | |
computeNullable | public void computeNullable()(Code) | | |
isInvertible | public boolean isInvertible()(Code) | | |
printFirst | public void printFirst()(Code) | | |
printFollow | public void printFollow()(Code) | | |
printNullable | public void printNullable()(Code) | | |
symbolCount | public int symbolCount()(Code) | | |
toChomskyNormalForm | public void toChomskyNormalForm()(Code) | | Transforms a grammar to the Chomsky normal form
all the precedences and semantic actions are discarded from the productions
|
|
|
|