}
public static Schedule getSchedules (String resourceDir, String friendlyGrammarDir, String grammarName, String outputDir, boolean write, boolean isFixedOrder, boolean isExhaustive, boolean isSingle, int maxLen, boolean verbose) throws Exception {
final String friendlyGrammar = friendlyGrammarDir + grammarName;
AleFrontend grammar = new AleFrontend(friendlyGrammar, AGEvaluatorSwipl.chainLoops, false);
grammar.initFtl(!AGEvaluatorSwipl.chainLoops);
AGEvaluatorSwipl ages = new AGEvaluatorSwipl(grammar.alegEval, grammar.ast, write);
String prologGrammar = ages.alegAstToSwiplAst();
//int r = new Double(Math.random() * 1000000).intValue() % 1000000;
File prettyGrammar = new File(friendlyGrammar);
String prologGrammarPath =