GenerateAutomataParser { public static void main(String[] args) { Log.ensureInitalization(); if (args.length != 2) { Log.error("0xEE630 Please specify one single path to the input model and one single path for the generated output"); return; } try { String filename = args[0]; ASTMCGrammar ast = new Grammar_WithConceptsParser() .parseMCGrammar(filename).get(); ModelPath modelPath = new ModelPath(Paths.get( "target/monticore-grammar-grammars.jar")); IGrammar_WithConceptsGlobalScope gs = Grammar_WithConceptsMill .grammar_WithConceptsGlobalScopeBuilder() .setModelPath(modelPath) .build(); Grammar_WithConceptsMill .grammar_WithConceptsSymbolTableCreatorDelegatorBuilder() .setGlobalScope(gs) .build() .createFromAST(ast); IterablePath handcodedPath = IterablePath.empty(); File outputDir = new File(args[1]); GlobalExtensionManagement glex = new GlobalExtensionManagement(); ParserGenerator.generateFullParser( glex, ast, gs, handcodedPath, outputDir); } catch (IOException e) { e.printStackTrace(); } }  static void main(String[] args);  }
@Ignore @Test public void test() { String[] args = {"src/test/resources/Automata.mc4", "target/gen"}; GenerateAutomataParser.main(args); }