I'd like to build a DSL and use it as follows:
- The DSL compiles to Java.
- I don't intend to write my DSL programs and compile them from an IDE. Instead I'd like to export the DSL compiler and package it (i.e. as a JAR), so I can invoke the DSL compiler from a Java application to compile "code written in my DSL" into "Java source code" (I'll use other libraries to programmatically compile Java into bytecode).
Can I use MPS to build a DSL and export its compiler as described?