MooseX::Declare 和 Perl EPIC(Eclipse IDE)?

发布于 2024-09-16 12:05:29 字数 141 浏览 5 评论 0原文

如何使用 Eclipse 和 EPIC 插件获得跳转到 Moose 方法的支持? (使用 F3)

它们被声明为

class Point {
  method getDistance { ... }
}

How can I get support for jumping to Moose methods using Eclipse with the EPIC plugin? (Using F3)

They're declared like

class Point {
  method getDistance { ... }
}

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风为裳 2024-09-23 12:05:29

这并不容易... EPIC 中的 Perl 语法是使用 ANTLR(一个基于 Java 的解析器生成器)编写的。它被静态编译成 Java 代码,因此如果您想更改或添加默认的 Perl 语法,您必须深入研究 ANTLR 语法并重新编译 EPIC 插件。

部分语法可以找到,例如 这里

It won't be easy... The grammar for Perl in EPIC in written using ANTLR, a Java based, parsers' generator. It is statically compiled into Java code, so if you want to change the default Perl grammar, or add to it, you have to dive into ANTLR grammar and recompile the EPIC plugin.

Parts of the grammar can be found e.g. here.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文