Keep the scope limited; address a small part of your domain and don't try to make the DSL a general programming language.
保证有限的作用域;仅仅解决领域中相应的小部分问题,不要让DSL变成一个通用编程语言。
As byte code generated from JRuby will run in the JRE, the DSL is categorized as "internal" - which USES a general programming language to create a specific programming language.
因为由JRuby生成的字节码最终会在JRE上运行,所以这个DSL应该被视为“内部”DSL——使用一个通用编程语言来创建一个特定编程语言。
The idea is that activities in a process graph are linked to a component that implements the runtime behaviour of that activity in a general purpose programming language.
它的思想是将过程图中的活动与一个实现该活动运行时行为的组件相关联,组件由一种通用编程语言实现。
应用推荐