Search code examples
javacode-generationxtextxtend

Xtext separate code generator from grammar project


i'm wrinting a code generator and i was thinking in separate the code generator from de grammar. I've get success in generate the code of " MyDslGenerator.java", but my problem is how to integrate this project with the project of the grammar. The idea for this is to modularizate my project, having one part responsible for the grammar and ui generation, and another part responsible for the code generation. Every time i try to setup the code generator that is in another project, i get an error, such as that some methods wasn't implemented. What is the best way to separate my code generator from my project?


Solution

  • what about having two versions and bind them in runtime and ui. alternatively i dont know if is still working http://kthoms.wordpress.com/2011/09/28/moving-an-xtend-generator-into-its-own-plugin/ (at least the idea should be still valid)