public void actionPerformed(ActionEvent e) {
		Grammar g=environment.getGrammar(UnrestrictedGrammar.class);
//        EDebug.print(g == null);
        if (g == null) return;

		Production[] p=g.getProductions();
		boolean isRegular=checkforLinearity(p);
		if (!isRegular)
		{
			if (!isContextFreeGrammar(p, g))
			{
				checkForSpecialUnrestrictedGrammar(p);
			}
		}
	}