Search code examples
eclipseeclipse-pluginantlrxtextstringtemplate

ANTLR and Xtext integration for developing plugin


My current project is focusing on code generation from High-level specification. More specifically, developers write high-level specifications and compiler parses them and generates Java code. For parser, I have used ANTLR grammar and for code generation I have used StringTemplateFiles.

For providing nice editor support (with syntax high lighting & coloring), I have used xText.

Now, the real problem comes - how can I integrate xText editor support with ANTLR parser and code generator? I want to provide nice eclipse plugin to developers.

Should I stick with xText and try to solve integration problem?/ Should I use only ANTLR and StringTemplateFiles and try to create Eclipse plugin out of it (I do not know - how can I do this)?

Other alternative suggestions are also welcomed.


Solution

  • Xtext generates Antlr parser and support template based generation via xtend in addition to the eclipse plugin - why not use it exclusively?