Set<GrammarProduction> epsilonProductions = EpsilonProductionRemover.getEpsilonProductions(g, g.getNonterminal("S"));
assertTrue(epsilonProductions.isEmpty());
}
public void testECMA() throws Exception{
Grammar g = new Parser(DIR + "ecmascript.txt").parse();
new EpsilonProductionRemover().removeEpsilonProductions(g, "FunctionDeclaration");
Set<GrammarProduction> epsilonProductions = EpsilonProductionRemover.getEpsilonProductions(g, g.getNonterminal("FunctionDeclaration"));
assertTrue(epsilonProductions.isEmpty());
}