创建Java扩展的最佳工具是什么?

时间:2020-12-20 00:00:32

Our project group is working on a Java language extension and we have been trying to figure out what tool we should use for this purpose. The extension will primarily consist of a modification of the concurrency model used in Java. We have been looking at two tools so far: Polyglot and Javacc. Javacc seems to be a bit more easy to use, but as we will be making some significant changes to the language it might still not be a good idea to use it over the more advanced Polyglot as it might be better at coping with the increased complexity.

我们的项目组正致力于Java语言扩展,我们一直在努力找出应该用于此目的的工具。扩展将主要包括对Java中使用的并发模型的修改。到目前为止,我们一直在研究两种工具:Polyglot和Javacc。 Javacc似乎更容易使用,但由于我们将对语言进行一些重大更改,因此在更高级的Polyglot上使用它可能仍然不是一个好主意,因为它可能更好地应对增加的复杂性。

Do you have any experience with these tools and/or do you have other tool recommendations?

您是否有使用这些工具的经验和/或您是否有其他工具建议?

2 个解决方案

#1


1  

ANTLR is a very good choice. It's a bit more active than JavaCC, and the documentation is better. There's a book available on Amazon that you'll find to be very helpful.

ANTLR是一个非常好的选择。它比JavaCC更活跃,文档更好。亚马逊上有一本书,你会发现它非常有帮助。

#2


2  

Check Jetbrain's MPS, but I have no experiences with it so far.

检查Jetbrain的MPS,但到目前为止我还没有使用它。

#1


1  

ANTLR is a very good choice. It's a bit more active than JavaCC, and the documentation is better. There's a book available on Amazon that you'll find to be very helpful.

ANTLR是一个非常好的选择。它比JavaCC更活跃,文档更好。亚马逊上有一本书,你会发现它非常有帮助。

#2


2  

Check Jetbrain's MPS, but I have no experiences with it so far.

检查Jetbrain的MPS,但到目前为止我还没有使用它。