public static boolean isVariableInProductions(Grammar grammar,
			String variable) {
		ProductionChecker pc = new ProductionChecker();
		Production[] productions = grammar.getProductions();
		for (int k = 0; k < productions.length; k++) {
			if (ProductionChecker.isVariableInProduction(variable,
					productions[k])) {
				return true;
			}
		}
		return false;
	}