创建更多相同类型的对象

Create more objects of the same type

我有一个包含一些常量和变量声明的 DSL,例如:

const c1 : Int
const c2 : Int

vars
  v1 : Int
  v2 : Int
  b : Bool

但我想要这样的东西:

const c1, c2 : Int

vars 
  v1, v2 : Int
  b : Bool

我无法从语法中找到一种方法...解决方案是什么?

你可以实现这个,我使用 DerivedState Computer 进行模型 2 模型转换 示例见 http://xtextcasts.org/episodes/18-model-optimization