9
votes

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

2
Xtext uses ANTLR under the hood - moritz
I know that. What I'm asking is if exists any tool that starting from a ANTLR grammar allows you to generate a editor plugin for eclipse (like what is doina Xtext). Is anything like that existing for ANTLR or not? - the_dark_destructor

2 Answers

5
votes

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.

3
votes

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.