public static void removeProductionsForVariable(String variable,
			Grammar grammar) {
		GrammarChecker gc = new GrammarChecker();
		Production[] productions = GrammarChecker.getProductionsWithVariable(
				variable, grammar);
		for (int k = 0; k < productions.length; k++) {
			grammar.removeProduction(productions[k]);
		}
	}