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——使用一个通用编程语言来创建一个特定编程语言。
应用推荐