Generate Different Text Languages from one DSL with MPS -


i'm looking way generate code in several different languages, start objc, java android, unity , javascript (cordova), repeated code. i'm writing code manually on , on in each language. i'm looking @ mps , thinking on developing 1 dsl , generate different code each language.

my question mps allow create different textgen different languages?

yes, mps allows target different languages. surely need distinguish between 2 logical "phases" of generation process in mps - generator, performs model transformations, , textgen, transforms models text. generator typically transforms dsl general-purpose language (still represented ast), while textgen defined general-purpose language transforms code text. several such general-purpose "base" languages exist - java, c, xml , few prototypes.

transforming dsl directly text through textgen defined dsl possible, feasible simple dsl only.


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -