XTend的命令行编译器 [英] Command line compiler for XTend

查看:83
本文介绍了XTend的命令行编译器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我找到了XTend(http://xtend-lang.org),听起来真的很棒!但是,我看不到该语言的任何独立命令行编译器。它似乎只能在日食下运行。我已经进行了一些研究,发现有人说它具有命令行编译器,但找不到下载链接。

编译器是否存在,独立存在,或者是否需要Eclipse?

问候

Hi all
I've found XTend (http://xtend-lang.org) and it really sounds great! But, I can't see any standalone command line compiler for this language. It seems only to run under eclipse. I've done some research, and found some people saying, that it has a command line compiler, but I can't find a download link.
Does the compiler exist, standalone, or do you need eclipse to use it?
Regards

推荐答案

没有文档,但是确实有命令行编译器在Xtend代码库中- Maven插件使用的相同代码(在Xtend主页)。

It is not documented, but there is indeed a command line compiler in the Xtend code base - the same one used by the Maven plug-in (that is documented in the Xtend homepage).

如果Maven插件不适合您,则可以直接从Maven存储库中的 http://build.eclipse.org/common/xtend/maven /org/eclipse/xtend/org.eclipse.xtend.standalone/2.3.1/ (对于2.3.1版),然后执行 org.eclipse.xtend.core.compiler.batch.Main 类。

If Maven plug-in does not work for you, then you could download the standalone jar version directly from the Maven repository at http://build.eclipse.org/common/xtend/maven/org/eclipse/xtend/org.eclipse.xtend.standalone/2.3.1/ (for version 2.3.1), and execute the org.eclipse.xtend.core.compiler.batch.Main class from it.

该类执行xtend编译器,并且可以显示用法信息(也可以从源文件)。

This class executes the xtend compiler, and usage information can be displayed (also readable from the source file).

这篇关于XTend的命令行编译器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆