2016-05-17 72 views

回答

2

是的,请查看http://git.eclipse.org/c/mmt/org.eclipse.atl.git/tree/tests/org.eclipse.m2m.atl.emftvm.tests/src/org/eclipse/m2m/atl/emftvm/tests/compiler/CompilerTest.java#n221以获取灵感(编译器输出可以在不保存字节码的情况下运行)。基于这个测试代码,你可以构建一个独立的编译器。

Eclipse的集成编译器代码可以在这里找到:http://git.eclipse.org/c/mmt/org.eclipse.atl.git/tree/plugins/org.eclipse.m2m.atl.emftvm.compiler/src/org/eclipse/m2m/atl/emftvm/compiler/AtlToEmftvmCompiler.java

Eclipse的集成编译器要求您保存字节码在Eclipse工作区。

请注意:常规Q &关于ATL的论坛可以在https://www.eclipse.org/forums/index.php/f/241/ 找到。您可能会在那里得到更快的答复。