ANTLR 语法的编辑器生成器?
我正在使用 ANTLR 创建一种新的通用编程语言,我对此非常满意。
由于我想提供良好的工具来轻松开发用我的语言编写的程序,因此我开始考虑通过适当的 Eclipse 插件实现该语言的编辑器。
是否有任何工具/项目可以让您拥有一个成熟的编辑器(具有语法突出显示、代码完成等)。我知道 Xtext 允许你自动执行此操作,ANTLR 怎么样?
我在 ANTLR 邮件列表中看到了此邮件但它没有答案
I'm using ANTLR for creating a new general purpose programming language and I'm quite happy with it.
Due to the fact that I would like to provide good tools for ease the development of programs written with my language I'm starting to thinking on realising a editor for that language through a proper Eclipse plugin.
Is there any tools/project that allow you to have a fully-fledged editor (with syntax highlighting, code completion, etc.). I know that Xtext allow you to do this in automatic, what about ANTLR?
I've seen this mail to the ANTLR mailing list but it has no answers
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我想尝试一下 Xtext。它没有在语法级别上提供 Antlr 的所有功能,但该框架提供了出色的基础架构组件,例如与 Eclipse 建模组件和 Eclipse UI 的紧密集成。
I'd give Xtext a try. It does not provide all the features of Antlr on the grammar level, but the framework offers great infrastructure components such as a tight integration with the Eclipse modeling components and the Eclipse UI.
Monticore 似乎几乎达到了您(和我)所希望的效果。在他们的 消息序列图示例 中,有一个 Eclipse 编辑器,它是一个 Eclipse 示例项目。我目前正在调查此事。
Monticore 基于 antlr,语法看起来与 ANTLR 非常相似。
Monticore almost seems to do what you (and I) hope for. In their Message Sequence Chart example there is an Eclipse Editor, it is an Eclipse Sample project. I am currently looking into it.
Monticore is based upon antlr and the grammar looks quite similar to ANTLRs.