2016-05-17 35 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/ 找到。您可能會在那裏得到更快的答覆。