In my current project, I use the xText editor to write dsl specifications (i.e. voc.mydsl, arch.mydsl and network.mydsl). I like the xText editor because of its code completion and other functions.
However, I have a separate Java program. This java program accepts text files (i.e., voc.txt, arch.txt, network.txt) as inputs, parses these files with an ANTLR parser, and generates code using StringTemplate files.
Now, my problem is that currently I have to follow these steps manually:
(1) I write dsl specifications in the XText editor (voc.mydsl, arch.mydsl and network.mydsl).
(2) I will copy these specifications into three text files (i.e. voc.txt, arch.txt, network.txt).
(3) Finally, I run a Java program to parse these .txt files and generate the code.
Is there a way that I can automate (with one click) all three of the above steps? Let me know if you need any part.
source share